403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.216.115
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/sqlparse/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/sqlparse/__pycache__/cli.cpython-311.pyc
�

�e}_P��N�dZddlZddlZddlmZddlZddlmZd�Zd�Z	dd�Z
dS)	aeModule that contains the command line app.

Why does this file exist, and why not put this in __main__?
  You might be tempted to import things from __main__ later, but that will
  cause problems: the code will get executed twice:
  - When you run `python -m sqlparse` python will execute
    ``__main__.py`` as a script. That means there won't be any
    ``sqlparse.__main__`` in ``sys.modules``.
  - When you import __main__ it will get executed again (as a module) because
    there's no ``sqlparse.__main__`` in ``sys.modules``.
  Also see (1) from http://click.pocoo.org/5/setuptools/#setuptools-integration
�N)�
TextIOWrapper)�
SQLParseErrorc
��gd�}tjddd���}|�d��|�ddd	d
d���|�d
dtj���|�d��}|�dddd|d�d�d�|D���������|�dddd|d�d�d�|D���������|�ddd d!d"d#gd$���|�d%d&d'd(d)�*��|�d+d,d-d'd(d.�*��|�d/d0d1td2�3��|�d4d5d'd(d6�*��|�d7d8d'd(d9�*��|�d:d;d'd(d<�=��|�d>d?d'd(d@�=��|�dAdBdCtdD�3��|�dEdFd(tdG�3��|�dHdIdJdK�L��|S)MN)�upper�lower�
capitalize�	sqlformatzEFormat FILE according to OPTIONS. Use "-" as FILE to read from stdin.z%(prog)s  [OPTIONS] FILE, ...)�prog�description�usage�filenamez-oz	--outfile�outfile�FILEz)write output to FILE (defaults to stdout))�dest�metavar�helpz	--version�version)�actionrzFormatting Optionsz-kz
--keywords�CHOICE�keyword_casez,change case of keywords, CHOICE is one of {}z, c3�@K�|]}d�|��V��dS�z"{}"N��format��.0�xs  �./usr/lib/python3/dist-packages/sqlparse/cli.py�	<genexpr>z create_parser.<locals>.<genexpr>?�.����>�>�1�f�m�m�A�&�&�>�>�>�>�>�>�)rr�choicesrz-iz
--identifiers�identifier_casez/change case of identifiers, CHOICE is one of {}c3�@K�|]}d�|��V��dSrrrs  rrz create_parser.<locals>.<genexpr>Gr r!z-lz
--language�LANG�
output_format�python�phpzJoutput a snippet in programming language LANG, choices are "python", "php"z--strip-comments�strip_comments�
store_trueFzremove comments)rr�defaultrz-rz
--reindent�reindentzreindent statementsz--indent_width�indent_width�z(indentation width (defaults to 2 spaces))rr+�typerz--indent_after_first�indent_after_firstz2indent after first line of statement (e.g. SELECT)z--indent_columns�indent_columnsz<indent all columns by indent_width instead of keyword lengthz-az--reindent_alignedz%reindent statements to aligned format)rr+rz-sz--use_space_around_operatorsz*place spaces around mathematical operatorsz--wrap_after�
wrap_afterrz*Column after which lists should be wrappedz
--comma_first�comma_firstz-Insert linebreak before comma (default False)z
--encoding�encodingzutf-8z*Specify the input encoding (default utf-8))rr+r)
�argparse�ArgumentParser�add_argument�sqlparse�__version__�add_argument_groupr�join�int�bool)�
_CASE_CHOICES�parser�groups   r�
create_parserrA s���4�4�4�M�
�
$�
�*�-�	���F����
�#�#�#�
����k�
��
8�	�:�:�:�������$��&�&�&�

�%�%�&:�;�;�E�	����l��
��
;�
B�
B��I�I�>�>�
�>�>�>�>�>�@�@��A�A�A�
����o��
��
>�
E�
E��I�I�>�>�
�>�>�>�>�>�@�@��A�A�A�
����l��
��5�!�+��,�,�,�
����
���
�� � � �
����l�
���
"��$�$�$�
����
��
�
7��9�9�9�
����
!���
A��C�C�C�
����
���
K��M�M�M�
����"���
4�	�6�6�6�
����,���
9�	�;�;�;�
����
��
�
9��;�;�;�
����
��
�
<��>�>�>�
����
��
9�	�;�;�;��Mr!c�j�tj�d�|����dS)z5Print msg and optionally exit with return code exit_.z[ERROR] {}
�)�sys�stderr�writer)�msgs r�_errorrH�s+���J���^�*�*�3�/�/�0�0�0��1r!c���t��}|�|��}|jdkrhttjj|j���}	|���}|�	��n�#|�	��wxYw	t|j|j���5}d�|�����}ddd��n#1swxYwYn?#t$r2}td�|j|����cYd}~Sd}~wwxYwd}|jr_	t|jd|j���}d}nK#t$r2}td�|j|����cYd}~Sd}~wwxYwtj}t%|��}	t&j�|��}n9#t,$r,}td	�|����cYd}~Sd}~wwxYwt'j|fi|��}	|�|	��|���|r|���d
S)N�-)r4�zFailed to read {}: {}F�wTzFailed to open {}: {}zInvalid options: {}r)rA�
parse_argsr
rrD�stdin�bufferr4�read�detach�openr;�	readlines�OSErrorrHrr�stdout�varsr8�	formatter�validate_optionsrrF�flush�close)
�argsr?�wrapper�data�f�e�close_stream�stream�formatter_opts�ss
          r�mainrd�s���
�_�_�F����T�"�"�D��}������	� 0�4�=�I�I�I��	��<�<�>�>�D��N�N������G�N�N��������	B��d�m�d�m�<�<�<�
.���w�w�q�{�{�}�}�-�-��
.�
.�
.�
.�
.�
.�
.�
.�
.�
.�
.����
.�
.�
.�
.����	B�	B�	B��'�.�.�t�}�a�@�@�B�B�
B�
B�
B�
B�
B�
B�����	B�����L��|��	K��$�,��d�m�D�D�D�F��L�L���	K�	K�	K��1�8�8���q�I�I�J�J�J�J�J�J�J�J�����	K��������$�Z�Z�N�7�!�+�<�<�^�L�L�����7�7�7��+�2�2�1�5�5�6�6�6�6�6�6�6�6�����7����	���/�/��/�/�A�
�L�L��O�O�O�
�L�L�N�N�N����������1s��A>�>B�C3�3(C'�C3�'C+�+C3�.C+�/C3�3
D/�='D*�$D/�*D/�<E�
F�%'F�F�F�6G�
H� !H�H�H)N)�__doc__r5rD�iorr8�sqlparse.exceptionsrrArHrd�r!r�<module>ris���������
�
�
�
�����������-�-�-�-�-�-�
t�t�t�n
�
�
�'
�'
�'
�'
�'
�'
r!

Youez - 2016 - github.com/yon3zu
LinuXploit