403Webshell
Server IP : 85.112.90.236  /  Your IP : 192.168.1.26
Web Server : Apache
System : Linux 85-112-90-236.cprapid.com 6.12.0-211.7.3.el10_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 12:46:58 EDT 2026 x86_64
User : ftechme ( 1002)
PHP Version : 8.2.32
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.12/site-packages/jsonschema/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.12/site-packages/jsonschema/__pycache__/cli.cpython-312.pyc
�

�% g� ��4�dZddlmZddlmZddlmZddlZddlZddlZddl	Z	ddl
Z
	ddlmZddlmZmZddlmZdd	lmZmZe
j.d
ed��Gd
�de�ZeGd�d��ZeGd�d��ZeGd�d��Zd�Zej>d��Z e jCddddd��e jCddd �!�e jCd"d#d$d%gd$d&�'�e jCd(d)ed*�+�e jCd,d-�!�e jCd.d/ejDd0��1�e jCd2d3�!�d4�Z#d5�Z$ejJd6dfd7�Z&ejNejPejRfd8�Z*y#e
$r
ddlmZY��fwxYw)9z"
The ``jsonschema`` command line.
�)�metadata)�JSONDecodeError)�dedentN��resolve_name)�define�field)�SchemaError)�_RefResolver�
validator_forz�The jsonschema CLI is deprecated and will be removed in a future version. Please use check-jsonschema instead, which can be installed from https://pypi.org/project/check-jsonschema/�)�
stacklevelc��eZdZy)�_CannotLoadFileN)�__name__�
__module__�__qualname__���3/usr/lib/python3.12/site-packages/jsonschema/cli.pyrr#s��rrc�d�eZdZe�Ze�Ze�Zed��Zd�Z	d�Z
d�Zd�Zd�Z
y)�
_Outputterc�j�|ddk(rt|d�}n|ddk(r
t�}|||��S)N�output�plain�error_format�pretty)�	formatter�stdout�stderr)�_PlainFormatter�_PrettyFormatter)�cls�	argumentsrr rs     r�from_argumentsz_Outputter.from_arguments.sB���X��'�)�'�	�.�(A�B�I�
�x�
 �H�
,�(�*�I��Y�v�f�E�Erc�f�	t|�}|5	t
j|�cddd�S#t$r0|j|tj���t��wxYw#t$r0|j|tj���t��wxYw#1swYyxYw)N��path�exc_info)
�open�FileNotFoundError�filenotfound_error�sysr)r�json�loadr�
parsing_error)�selfr(�files   rr/z_Outputter.load6s���	$���:�D�
�
(��y�y���	(�	(��	!�	$��#�#������#�G�!�#�#�	$��#�
(��"�"��s�|�|�~�"�F�%�'�'�
(���T�s%�/�B'�A+�9A(�+9B$�$B'�'B0c�n�|jj|jjdi|���y�Nr)�_stderr�write�
_formatterr,�r1�kwargss  rr,z_Outputter.filenotfound_errorD�)�������=�4�?�?�=�=�G��G�Hrc�n�|jj|jjdi|���yr4)r5r6r7r0r8s  rr0z_Outputter.parsing_errorGs)�������8�4�?�?�8�8�B�6�B�Crc�n�|jj|jjdi|���yr4)r5r6r7�validation_errorr8s  rr=z_Outputter.validation_errorJs)�������;�4�?�?�;�;�E�f�E�Frc�n�|jj|jjdi|���yr4)�_stdoutr6r7�validation_successr8s  rr@z_Outputter.validation_successMr:rN)rrrr	r7r?r5�classmethodr%r/r,r0r=r@rrrrr'sJ����J��g�G��g�G��F��F�(�I�D�G�Irrc�8�eZdZed�ZdZd�Zd�Zd�Zd�Z	y)r"z`        ===[{type}]===({path})===

        {body}
        -----------------------------
        z===[SUCCESS]===({path})===
c�\�|jj|ddj|���S)Nr+z{!r} does not exist.�r(�type�body)�
_ERROR_MSG�format�r1r(r)s   rr,z#_PrettyFormatter.filenotfound_error^s2�����%�%��$�'�.�.�t�4�&�
�	
rc��|\}}}djtj|||��}|jj	||j
|��S)N�rD)�join�	traceback�format_exceptionrGrHr)r1r(r)�exc_type�	exc_value�
exc_traceback�	exc_liness       rr0z_PrettyFormatter.parsing_errores[��-5�*��)�]��G�G��&�&�x��M�J�
�	����%�%���"�"��&�
�	
rc�f�|jj||jj|��S)NrD)rGrH�	__class__r�r1�
instance_path�errors   rr=z!_PrettyFormatter.validation_errorps1�����%�%�����)�)��&�
�	
rc�:�|jj|��S)N)r()�_SUCCESS_MSGrH�r1rVs  rr@z#_PrettyFormatter.validation_successws��� � �'�'�]�'�;�;rN)
rrrrrGrYr,r0r=r@rrrr"r"Qs.���	��J�2�L�
�	
�
�<rr"c�2�eZdZe�Zd�Zd�Zd�Zd�Zy)r!c�$�dj|�S)Nz{!r} does not exist.
)rHrIs   rr,z"_PlainFormatter.filenotfound_error�s��'�.�.�t�4�4rc�L�dj|dk(rdn
t|�|d�S)NzFailed to parse {}: {}
�<stdin>�)rH�reprrIs   rr0z_PlainFormatter.parsing_error�s,��)�0�0���*�I��T�
��Q�K�
�	
rc�<�|jj||��S)N)�	file_namerW)�
_error_formatrHrUs   rr=z _PlainFormatter.validation_error�s���!�!�(�(�=��(�N�Nrc��y)NrKrrZs  rr@z"_PlainFormatter.validation_success�s��rN)	rrrr	rcr,r0r=r@rrrr!r!{s ���G�M�5�
�O�rr!c�*�d|vrd|z}t|�S)N�.zjsonschema.r)�names r�_resolve_name_with_defaultrh�s��
�$���t�#�����rzJSON Schema Validation CLI)�descriptionz-iz
--instance�append�	instancesz�
        a path to a JSON instance (i.e. filename.json) to validate (may
        be specified multiple times). If no instances are provided via this
        option, one will be expected on standard input.
    )�action�dest�helpz-Fz--error-formata�
        the format to use for each validation error message, specified
        in a form suitable for str.format. This string will be passed
        one formatted object named 'error' for each ValidationError.
        Only provide this option when using --output=plain, which is the
        default. If this argument is unprovided and --output=plain is
        used, a simple default representation will be used.
    )rnz-oz--outputrrz�
        an output format to use. 'plain' (default) will produce minimal
        text with one line for each error, while 'pretty' will produce
        more detailed human-readable output on multiple lines.
    )�choices�defaultrnz-Vz--validatorz�
        the fully qualified object name of a validator to use, or, for
        validators that are registered with jsonschema, simply the name
        of the class.
    )rErnz
--base-uriz�
        a base URI to assign to the provided schema, even if it does not
        declare one (via e.g. $id). This option can be used if you wish to
        resolve relative references to a particular URI (or local path)
    z	--version�version�
jsonschema)rlrq�schemaz=the path to a JSON Schema to validate with (i.e. schema.json)c��ttj|xsdg���}|ddk7r|drtjd��|ddk(r
|d�d|d<|S)Nz--help��argsrrrz3--error-format can only be used with --output plainz"{error.instance}: {error.message}
)�vars�parser�
parse_argsrW)rvr$s  rryry�sr���V�&�&�D�,>�X�J�&�?�@�I����g�%�)�N�*C��l�l�A�
�	
����g�%�)�N�*C�*K�$I�	�.�!��rc��d}|j|�D]}d}|j||���|s|j|��|S)NFT�rVrW)rV)�iter_errorsr=r@)rV�instance�	validator�	outputter�invalidrWs      r�_validate_instancer��sO���G��&�&�x�0�����"�"��e�"�L�1���$�$�=�$�A��Nrr_c�V�tjtt|�����y)Nru)r$)r-�exit�runryrus r�mainr��s���H�H�S�:�4�0�
1�2rc����tj|||���	�j|d�}|d}|�t	|�}	|j|�|dr�j|d}}n	��fd�}dg}|d	�t|d	|�
�nd}	|||	��}
d}|D]}	||�}
|t||
|
��
�z}�|S#t$rYywxYw#t$r }�j|d|��Yd}~yd}~wwxYw#t$rd}Y�jwxYw)N)r$rr rsr_r~r{rkc���	tj��S#t$r0�jdt	j
���t
��wxYw)Nr^r')r.r/rr0r-r)r)�_r�stdins ��rr/zrun.<locals>.load
sO���
(��y�y��'�'��"�
(��'�'�"�S�\�\�^�(��&�'�'�	
(�s	��9Ar^�base_uri)r��referrer)�resolverr)rVr}r~r)
rr%r/rr�check_schemar
r=rr�)r$rr r�rs�	ValidatorrWr/rkr�r~�	exit_code�eachr}rs   `          @rr�r��so����)�)����*��I�����	�(� 3�4���+�&�I���!�&�)�	�����v�&����#�.�.�)�K�*@�i��	(��K�	�

�:�	�	*���:�&���15�
�
�&�8�4�I��I���
	��D�z�H�
�+�"�!�#�#�	�
�I�
����c��������"�"�#�H�-��	#�	
�����<�	��I�	�s;�B;�C
�C6�;	C�C�
	C3�C.�.C3�6D�D)+�__doc__�	importlibrr.r�textwrapr�argparser-rM�warnings�pkgutilr�ImportError�pkgutil_resolve_name�attrsrr	�jsonschema.exceptionsr
�jsonschema.validatorsrr�warn�DeprecationWarning�	Exceptionrrr"r!rh�ArgumentParserrx�add_argumentrqryr��argvr�rr r�r�rrr�<module>r�s���� ����
���2�$� �-�=�
��
�
�	:����	�i�	��&I�&I��&I�R�&<�&<��&<�R�����(�
!��	 �	 �,�
������,��	�
�	�	�����
�
��
�����*�
�h���
�	�	�����-�	#�
�������
���������H���\�*���
����	H������h�h�q�r�l�3��*�*�S�Z�Z�s�y�y�:��}�2�1�1�2�s�F�F�F

Youez - 2016 - github.com/yon3zu
LinuXploit