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: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/lib64/python3.10/site-packages/uvicorn/__pycache__/main.cpython-310.pyc
o

�hRC�7@s�ddlmZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
ddlmZm
Z
mZddlZddlZddlmZddlmZmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!ddl"m#Z#ddl$m%Z%m&Z&e�'e(e�)���Z*e�'e(e�)���Z+e�'e(e�)���Z,e�'e(e�)���Z-e�'d	d
�e�)�D��Z.e�'e�Z/dZ0e�1d�Z2d�dd�Z3ej4ddid�ej5ddd�ej6de7ddd d!�ej6d"e8d#d$d d!�ej6d%e7dd&d'�ej6d(e8dd)d'�ej6d*d d+d,d-�ej6d.d/d d0ej9d d1�d2�ej6d3d4d d5d6�ej6d7d8d d9d6�ej6d:e:d;d d<d=�ej6d>de8d?d@�ej6dAe.dBdCd d!�ej6dDe+dBdEd d!�ej6dFe,dBdGd d!�ej6dHe8dIdJd d!�ej6dKe8dLdMd d!�ej6dNe:dOdPd d!�ej6dQe:dOdRd d!�ej6dSe;d dTd d!�ej6dUe-dBdVd d!�ej6dWe/dBdXd d!�ej6dYej9d d1�ddZd d!�ej6d[ej9d d1�dd\d d!�ej6d]e*dd^d d!�ej6d_d d d`d-�ej6dad ddbd-�ej6dcd d ddd-�ej6ded d dfd-�ej6dgd d dhd-�ej6die7ddjd'�ej6dke7dldmd'�ej6dne8ddod'�ej6dpe8dqdrd'�ej6dse8ddtd'�ej6due8dvdwd d!�ej6dxe8ddyd'�ej6dze7dd{d d!�ej6d|e7dd}d d!�ej6d~e7ddd d!�ej6d�e8e8e�d�d d!�ej6d�e8e8ej<�d�d d!�ej6d�e7dd�d d!�ej6d�e7d�d�d d!�ej6d�d�d d�d6�ej6d�d e3d+d d�d��ej6d�dld d�d��ej6d�d�e8dd�d'�ej6d�d d+d�d d��d�d�d̄�������������������������������������������������Z=dd#dddBdBdBdIdLdOdOd dBdBd+dddd;ddedd d d d ddlddqddvddddeej<dd�dddd+dd͜.d�d�dڄZ>d�d�dބZ?e@d�k�r�e=�dSdS)��)�annotationsN)�RawConfigParser)�IO�Any�Callable)�ASGIApplication)�HTTP_PROTOCOLS�
INTERFACES�LIFESPAN�
LOG_LEVELS�LOGGING_CONFIG�LOOP_SETUPS�SSL_PROTOCOL_VERSION�WS_PROTOCOLS�Config�HTTPProtocolType�
InterfaceType�LifespanType�
LoopSetupType�WSProtocolType)�Server)�ChangeReload�MultiprocesscCsg|]}|dkr|�qS)�none�)�.0�keyrr�?/usr/local/CyberCP/lib/python3.10/site-packages/uvicorn/main.py�
<listcomp>(�r��
uvicorn.error�ctx�
click.Context�param�click.Parameter�value�bool�return�NonecCs@|r|jrdSt�djtjt��t��t�	�d��|�
�dS)NzKRunning uvicorn {version} with {py_implementation} {py_version} on {system})�version�py_implementation�
py_version�system)�resilient_parsing�click�echo�format�uvicorn�__version__�platform�python_implementation�python_versionr-�exit)r"r$r&rrr�
print_version0s
��r8�auto_envvar_prefix�UVICORN)�context_settings�app�UVICORN_APP)�envvarz--hostz	127.0.0.1zBind socket to this host.T)�type�default�help�show_defaultz--porti@zABind socket to this port. If 0, an available port will be picked.z--udszBind to a UNIX domain socket.)r?r@rAz--fdz)Bind to socket from this file descriptor.z--reloadFzEnable auto-reload.)�is_flagr@rAz--reload-dir�reload_dirszRSet reload directories explicitly, instead of using the current working directory.)�exists)�multiplerAr?z--reload-include�reload_includesz�Set glob patterns to include while watching for files. Includes '*.py' by default; these defaults can be overridden with `--reload-exclude`. This option has no effect unless watchfiles is installed.)rFrAz--reload-exclude�reload_excludesz�Set glob patterns to exclude while watching for files. Includes '.*, .py[cod], .sw.*, ~*' by default; these defaults can be overridden with `--reload-include`. This option has no effect unless watchfiles is installed.z--reload-delayg�?zTDelay between previous and next check if application needs to be. Defaults to 0.25s.)r?r@rBrAz	--workersz~Number of worker processes. Defaults to the $WEB_CONCURRENCY environment variable if available, or 1. Not valid with --reload.)r@r?rAz--loop�autozEvent loop implementation.z--httpzHTTP protocol implementation.z--wsz"WebSocket protocol implementation.z
--ws-max-sizeiz#WebSocket max size message in bytesz--ws-max-queue� z2The maximum length of the WebSocket message queue.z--ws-ping-intervalg4@z#WebSocket ping interval in seconds.z--ws-ping-timeoutz"WebSocket ping timeout in seconds.z--ws-per-message-deflatez)WebSocket per-message-deflate compressionz
--lifespanzLifespan implementation.z--interfacez:Select ASGI3, ASGI2, or WSGI as the application interface.z
--env-filezEnvironment configuration file.z--log-configzBLogging configuration file. Supported formats: .ini, .json, .yaml.z--log-levelzLog level. [default: info]z--access-log/--no-access-logzEnable/Disable access log.z--use-colors/--no-use-colorsz!Enable/Disable colorized logging.z"--proxy-headers/--no-proxy-headerszdEnable/Disable X-Forwarded-Proto, X-Forwarded-For, X-Forwarded-Port to populate remote address info.z"--server-header/--no-server-headerz%Enable/Disable default Server header.z--date-header/--no-date-headerz#Enable/Disable default Date header.z--forwarded-allow-ipsz�Comma separated list of IP Addresses, IP Networks, or literals (e.g. UNIX Socket path) to trust with proxy headers. Defaults to the $FORWARDED_ALLOW_IPS environment variable if available, or '127.0.0.1'. The literal '*' means trust everything.z--root-path�zLSet the ASGI 'root_path' for applications submounted below a given URL path.z--limit-concurrencyz^Maximum number of concurrent connections or tasks to allow, before issuing HTTP 503 responses.z	--backlogiz0Maximum number of connections to hold in backlogz--limit-max-requestszEMaximum number of requests to service before terminating the process.z--timeout-keep-alive�zLClose Keep-Alive connections if no new data is received within this timeout.z--timeout-graceful-shutdownz8Maximum number of seconds to wait for graceful shutdown.z
--ssl-keyfilezSSL key filez--ssl-certfilezSSL certificate filez--ssl-keyfile-passwordzSSL keyfile passwordz
--ssl-versionz,SSL version to use (see stdlib ssl module's)z--ssl-cert-reqsz@Whether client certificate is required (see stdlib ssl module's)z--ssl-ca-certszCA certificates filez
--ssl-ciphers�TLSv1z(Ciphers to use (see stdlib ssl module's)z--header�headerszASpecify custom default HTTP response headers as a Name:Value pairz	--versionz%Display the uvicorn version and exit.)rC�callback�expose_value�is_eagerrAz	--app-dirzuLook for APP in the specified directory, by adding this to the PYTHONPATH. Defaults to the current working directory.)r@rBrAz--h11-max-incomplete-event-size�h11_max_incomplete_event_sizezFFor h11, the maximum number of bytes to buffer of an incomplete event.z	--factoryzFTreat APP as an application factory, i.e. a () -> <ASGI app> callable.)rCr@rArB�str�host�port�int�uds�fd�loopr�httpr�wsr�ws_max_size�ws_max_queue�ws_ping_interval�float�ws_ping_timeout�ws_per_message_deflate�lifespanr�	interfacer�reload�	list[str]�reload_delay�workers�env_file�
log_config�	log_level�
access_log�
proxy_headers�
server_header�date_header�forwarded_allow_ips�	root_path�limit_concurrency�backlog�limit_max_requests�timeout_keep_alive�timeout_graceful_shutdown�
int | None�ssl_keyfile�ssl_certfile�ssl_keyfile_password�ssl_version�
ssl_cert_reqs�ssl_ca_certs�ssl_ciphers�
use_colors�app_dir�factoryc//Cs�t|fid|�d|�d|�d|�d|�d|�d|�d|�d	|	�d
|
�d|�d|�d
|
�d|�d|dur5tn|�d|�d|�d|�d|�d|pGd�d|pLd�d|p�d�d|�d|�d|�d|�d|�d|�d|�d|�d|�d | �d!|!�d"|"�d#|#�d$|$�d%|%�d&|&�d'|'�d(|(�d)|)�d*d+d,�|*D��d-|+�d.|.�d/|,�d0|-��dS�d|�d|�d|�d|�d|�d|�d|�d|�d|�d | �d!|!�d"|"�d#|#�d$|$�d%|%�d&|&�d'|'�d(|(�d)|)�d*d+d,�|*D��d-|+�d.|.�d/|,�d0|-��dS)1NrTrUrWrXrYrZr[r\r]r^r`rarbrhrirjrkrcrdrDrGrHrfrgrlrmrnrorprqrrrsrtrurwrxryrzr{r|r}rNcSsg|]}|�dd��qS)�:�)�split)r�headerrrrr�rzmain.<locals>.<listcomp>r~r�rrR)�runr)/r<rTrUrWrXrYrZr[r\r]r^r`rarbrcrdrDrGrHrfrgrhrirjrkrlrmrnrorprqrrrsrtrurwrxryrzr{r|r}rNr~rrRr�rrr�main>s,a��������	�
���
���������������������� �!�"�#�$�%�&�'�(�)�*�+�,�-�.�/���������� �!�"�#�$�%�&�'�(�)�*�+�,�-�.�/�r�).rTrUrWrXrYrZr[r\r]r^r`rarbrcrdrDrGrHrfrgrhrirjrkrlrmrnrorprqrrrsrtrurwrxryrzr{r|r}rNr~rr�rR�*ASGIApplication | Callable[..., Any] | str�
str | None�)type[asyncio.Protocol] | HTTPProtocolType�'type[asyncio.Protocol] | WSProtocolType�float | None�list[str] | str | None�str | os.PathLike[str] | None�7dict[str, Any] | str | RawConfigParser | IO[Any] | None�str | int | None�list[tuple[str, str]] | None�bool | Nonec.3	Csl|,durtj�d|,�t|fid|�d|�d|�d|�d|�d|�d|�d	|�d
|	�d|
�d|�d
|�d|
�d|�d|�d|�d|�d|�d|�d|�d|�d|�d|�d|�d|�d|�d|�d|�d|�d|�d |�d!| �d"|!�d#|"�d$|#�d%|$�d&|%�d'|&�d(|'�d)|(�d*|)�d+|*�d,|+�d-|-�d.|.��}/t|/d/�}0|/js�|/jd0kr�t|t�s�t	�
d1�}1|1�d2�t�d0�zLz.|/j
r�|/��}2t|/|0j|2gd3���n|/jd0kr�|/��}2t|/|0j|2gd3���n|0��Wn	ty�YnwW|/j�rtj�|/j��rt�|/j�n|/j�rtj�|/j��rt�|/j�www|0j�s0|/j
�s2|/jd0k�r4t�t�dSdSdSdS)4NrrTrUrWrXrYrZr[r\r]r^r`rarbrcrdrDrGrHrfrgrhrirjrkrlrmrnrorprqrrrsrtrurwrxryrzr{r|r}rNr~r�rR)�configr�r!zRYou must pass the application as an import string to enable 'reload' or 'workers'.)�target�sockets)�sys�path�insertrrrdrg�
isinstancerS�logging�	getLogger�warningr7�
should_reload�bind_socketrr�r�KeyboardInterruptrW�osrE�remove�started�STARTUP_FAILURE)3r<rTrUrWrXrYrZr[r\r]r^r`rarbrcrdrDrGrHrfrgrhrirjrkrlrmrnrorprqrrrsrtrurwrxryrzr{r|r}rNr~rr�rRr��server�logger�sockrrrr��s�2��������	�
���
������������������� �!�"�#�$�%�&�'�(�)�*�+�,�-�.�
0



�������r��namercCs8|dkrt�dt�ddlm}|Stdt�d|����)N�ServerStatezOuvicorn.main.ServerState is deprecated, use uvicorn.server.ServerState instead.r)r�zmodule z has no attribute )�warnings�warn�DeprecationWarning�uvicorn.serverr��AttributeError�__name__)r�r�rrr�__getattr__Os�r��__main__)r"r#r$r%r&r'r(r))`r<rSrTrSrUrVrWrSrXrVrYrrZrr[rr\rVr]rVr^r_r`r_rar'rbrrcrrdr'rDrerGrerHrerfr_rgrVrhrSrirSrjrSrkr'rlr'rmr'rnr'rorSrprSrqrVrrrVrsrVrtrVrurvrwrSrxrSryrSrzrVr{rVr|rSr}rSrNrer~r'rrSrRrvr�r'r(r))`r<r�rTrSrUrVrWr�rXrvrYrrZr�r[r�r\rVr]rVr^r�r`r�rar'rbrrcrrdr'rDr�rGr�rHr�rfr_rgrvrhr�rir�rjr�rkr'rlr'rmr'rnr'ror�rprSrqrvrrrVrsrvrtrVrurvrwr�rxr�ryr�rzrVr{rVr|r�r}rSrNr�r~r�rr�r�r'rRrvr(r))r�rSr(r)A�
__future__r�asyncior�r�r4�sslr�r��configparserr�typingrrrr/r2�uvicorn._typesr�uvicorn.configrr	r
rrr
rrrrrrrrr�r�uvicorn.supervisorsrr�Choice�list�keys�
LEVEL_CHOICES�HTTP_CHOICES�
WS_CHOICES�LIFESPAN_CHOICES�LOOP_CHOICES�INTERFACE_CHOICESr�r�r�r8�command�argument�optionrSrV�Pathr_r'�	CERT_NONEr�r�r�r�rrrr�<module>s�@


��
���	������������
�
��������	�����������������lg�


�