HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python37/bin/__pycache__/jp.cpython-37.pyc
B

�P�e��@sXddlZddlZddlZddlmZddlZddlmZdd�ZedkrTe�	e��dS)�N)�pformat)�
exceptionsc
Cs�t��}|�d�|jdddd�|jdddd	�|��}|j}|jrtt�|j�}tj	�
t|j��tj	�
d
�dS|j
r�t|j
d��}t�|�}WdQRXntj��}t�|�}y0tj	�
tjt�||�d
dd��tj	�
d
�Wn�tjk
�r}ztj�
d|�dSd}~XYn�tjk
�rL}ztj�
d|�dSd}~XYnjtjk
�r�}ztj�
d|�dSd}~XYn6tjk
�r�}ztj�
d|�dSd}~XYnXdS)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�searchrZ
ArityError�stderrZJMESPathTypeErrorZUnknownFunctionErrorZ
ParseError)�parser�argsr�f�data�e�r(�@/opt/alt/python37/lib/python3.7/site-packages/../../../bin/jp.py�mainsD



r*�__main__)
rrr�pprintrrrr*�__name__�exitr(r(r(r)�<module>s)