AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /snap/core20/2599/lib/python3/dist-packages/jsonschema/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /snap/core20/2599/lib/python3/dist-packages/jsonschema/__pycache__/cli.cpython-38.pyc
U

>��]	�@s�dZddlmZddlZddlZddlZddlmZddlm	Z	ddl
mZdd�Zd	d
�Z
ejdd�Zejd
ddde
dd�ejddddd�ejddedd�ejdded�ejdd e
d!�d"d#�Zejd$d�fd%d&�Zejejfd'd(�ZdS))z"
The ``jsonschema`` command line.
�)�absolute_importN)�__version__��namedAny)�
validator_forcCsd|krd|}t|�S)N�.zjsonschema.r)�name�r	�0/usr/lib/python3/dist-packages/jsonschema/cli.py�_namedAnyWithDefaultsrc
Cs*t|��}t�|�W5QR�SQRXdS)N)�open�json�load)�path�filer	r	r
�
_json_files
rzJSON Schema Validation CLI)Zdescriptionz-iz
--instance�append�	instancesz\a path to a JSON instance (i.e. filename.json) to validate (may be specified multiple times))�action�dest�type�helpz-Fz--error-formatz"{error.instance}: {error.message}
z�the format to use for each error output message, specified in a form suitable for passing to str.format, which will be called with 'error' for each error)�defaultrz-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.)rrz	--version�version)rr�schemaz3the JSON Schema to validate with (i.e. schema.json))rrcCs6ttj|pdgd��}|ddkr2t|d�|d<|S)Nz--help��args�	validatorr)�vars�parser�
parse_argsr)r�	argumentsr	r	r
r Dsr �cCst�tt|d�d��dS)Nr)r!)�sys�exit�runr rr	r	r
�mainKsr&cCsh|d}|d|dd�}|�|d�d}|dp6dD]*}|�|�D]}|�|j|d��d	}qFq8|S)
N�error_formatrr)rFrr	)�errorT)Zcheck_schemaZiter_errors�write�format)r!�stdout�stderrr'rZerrored�instancer(r	r	r
r%Osr%)�__doc__Z
__future__r�argparser
r#Z
jsonschemarZjsonschema._reflectrZjsonschema.validatorsrrr�ArgumentParserr�add_argumentr �argvr&r+r,r%r	r	r	r
�<module>sZ��
�	�	��

Anon7 - 2022
AnonSec Team