HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //proc/676643/root/usr/local/CyberCP/bin/__pycache__/jp.cpython-310.pyc
o

�h��@s\ddlZddlZddlZddlmZddlZddlmZdd�Zedkr,e�	e��dSdS)�N)�pformat)�
exceptionsc
Cs�t��}|�d�|jdddd�|jdddd	�|��}|j}|jr:t�|j�}tj	�
t|j��tj	�
d
�dS|j
rYt|j
d��
}t�|�}Wd�n1sSwYn
tj��}t�|�}ztj	�
tjt�||�d
dd��tj	�
d
�WdStjy�}ztj�
d|�WYd}~dSd}~wtjy�}ztj�
d|�WYd}~dSd}~wtjy�}ztj�
d|�WYd}~dSd}~wtjy�}ztj�
d|�WYd}~dSd}~ww)N�
expressionz-fz
--filenamezaThe filename containing the input data.  If a filename is not given then data is read from stdin.)�helpz--ast�
store_truez-Pretty print the AST, do not search the data.)�actionr�
r�r�F)�indent�ensure_asciizinvalid-arity: %s
�zinvalid-type: %s
zunknown-function: %s
zsyntax-error: %s
)�argparse�ArgumentParser�add_argument�
parse_argsr�ast�jmespath�compile�sys�stdout�writer�parsed�filename�open�json�load�stdin�read�loads�dumps�searchr�
ArityError�stderr�JMESPathTypeError�UnknownFunctionError�
ParseError)�parser�argsr�f�data�e�r,�B/usr/local/CyberCP/lib/python3.10/site-packages/../../../bin/jp.py�mainsX
����


������r.�__main__)
rrr�pprintrrrr.�__name__�exitr,r,r,r-�<module>s)�