Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/jsonschema/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/jsonschema/__pycache__/cli.cpython-310.pyc
o

>��]	�@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|vrd|}t|�S)N�.zjsonschema.r)�name�r	�0/usr/lib/python3/dist-packages/jsonschema/cli.py�_namedAnyWithDefaultsrcCs6t|��
}t�|�Wd�S1swYdS)N)�open�json�load)�path�filer	r	r
�
_json_files
$�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))�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��}|ddurt|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}|dpdD]}|�|�D]
}|�|j|d��d	}q#q|S)
N�error_formatrr)rFrr	)�errorT)�check_schema�iter_errors�write�format)r"�stdout�stderrr(r�errored�instancer)r	r	r
r&Os�r&)�__doc__�
__future__r�argparser
r$�
jsonschemar�jsonschema._reflectr�jsonschema.validatorsrrr�ArgumentParserr �add_argumentr!�argvr'r.r/r&r	r	r	r
�<module>sV��
�	�	��

Spamworldpro Mini