
    PThC              7      v   d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl	m
Z
 d dlmZmZmZmZ d dlZd dlZd dlmZ d dlmZmZmZmZmZmZmZmZmZmZmZ d dl m!Z! d dl"m#Z#m$Z$  ejJ                   e& ejN                                     Z( ejJ                   e& ejN                                     Z) ejJ                  e      Z*dd	Z+d
Z, ejZ                  d      Z.ddZ/ ej`                  ddi       ejb                  dd       ejd                  de3ddd       ejd                  de4ddd       ejd                  de3dd       ejd                  de4dd       ejd                  d dd!d"#       ejd                  d$d%dd& ejj                  d'      (       ejd                  d)d*dd+,       ejd                  d-d.dd/,       ejd                  d0e6d1dd23       ejd                  d4de4d56       ejd                  d7e3 e+e      d8d9d:       ejd                  d;e3 e+e      d8d<d:       ejd                  d=e3 e+e      d8d>d:       ejd                  d?e4d@dAd       ejd                  dBe4dCdDd       ejd                  dEe6dFdGd       ejd                  dHe6dFdId       ejd                  dJe7ddKd       ejd                  dLe)d8dMd       ejd                  dNe*d8dOd       ejd                  dP ejj                  d'      ddQd       ejd                  dR ejj                  d'      ddSd       ejd                  dTe(ddUd       ejd                  dVdddW#       ejd                  dXdddY#       ejd                  dZddd[#       ejd                  d\ddd]#       ejd                  d^ddd_#       ejd                  d`e3dda       ejd                  dbe3dcdd       ejd                  dee4ddf       ejd                  dge4dhdi       ejd                  dje4ddk       ejd                  dle4dmdnd       ejd                  doe4ddp       ejd                  dqe3ddrd       ejd                  dse3ddtd       ejd                  due3ddvd       ejd                  dwe4 e4e      dxd       ejd                  dye4 e4ejp                        dzd       ejd                  d{e3dd|d       ejd                  d}e3d~dd       ejd                  dddd,       ejd                  dde/d!dd       ejd                  ddcdd       ejd                  dde4dd       ejd                  ddd!dd      	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd                                                                                                                                                                                                                                                                                                                                                       Z9ddddd8d8d8d@dCdFdFdd8d8d!dddd1ddedddddddcddhddmddddeejp                  dd~dddd!dd.	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZ:ddZ;e<dk(  r e9        yy)    )annotationsN)RawConfigParser)IOAnyCallableget_args)ASGIApplication)
INTERFACESLIFESPAN
LOG_LEVELSLOGGING_CONFIGSSL_PROTOCOL_VERSIONConfigHTTPProtocolTypeInterfaceTypeLifespanTypeLoopFactoryTypeWSProtocolType)Server)ChangeReloadMultiprocessc                L    ddj                  d t        |       D               dS )N[|c              3  ,   K   | ]  }|d k7  s	|  yw)noneN ).0keys     Q/home/www/backend.miabetepe.com/venv/lib/python3.12/site-packages/uvicorn/main.py	<genexpr>z%_metavar_from_type.<locals>.<genexpr>'   s     H#-Hs   
])joinr   )_types    r    _metavar_from_typer%   &   s%    sxxHxHHIKK       uvicorn.errorc           	        |r| j                   ry t        j                  dj                  t        j
                  t        j                         t        j                         t        j                                      | j                          y )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)ctxparamvalues      r    print_versionr;   /   sf    C))	JJU\\''&<<>..0??$	 	] 	
 HHJr&   auto_envvar_prefixUVICORN)context_settingsappUVICORN_APP)envvarz--hostz	127.0.0.1zBind 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--udszBind to a UNIX domain socket.)rB   rC   rD   z--fdz)Bind to socket from this file descriptor.z--reloadFzEnable auto-reload.)is_flagrC   rD   z--reload-dirreload_dirszRSet reload directories explicitly, instead of using the current working directory.)exists)multiplerD   rB   z--reload-includereload_includeszSet 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.)rI   rD   z--reload-excludereload_excludeszSet 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.)rB   rC   rE   rD   z	--workersz~Number of worker processes. Defaults to the $WEB_CONCURRENCY environment variable if available, or 1. Not valid with --reload.)rC   rB   rD   z--loopautoz"Event loop factory implementation.)rB   metavarrC   rD   rE   z--httpzHTTP protocol implementation.z--wsz"WebSocket protocol implementation.z--ws-max-sizei   z#WebSocket max size message in bytesz--ws-max-queue    z2The maximum length of the WebSocket message queue.z--ws-ping-intervalg      4@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
--lifespanzLifespan implementation.z--interfacez:Select ASGI3, ASGI2, or WSGI as the application interface.z
--env-filezEnvironment configuration file.z--log-configzBLogging configuration file. Supported formats: .ini, .json, .yaml.z--log-levelzLog level. [default: info]z--access-log/--no-access-logzEnable/Disable access log.z--use-colors/--no-use-colorsz!Enable/Disable colorized logging.z"--proxy-headers/--no-proxy-headerszaEnable/Disable X-Forwarded-Proto, X-Forwarded-For to populate url scheme and 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-ipszComma 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	--backlogi   z0Maximum 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-certfilezSSL certificate filez--ssl-keyfile-passwordzSSL 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-certszCA 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.)rF   callbackexpose_valueis_eagerrD   z	--app-dirzuLook for APP in the specified directory, by adding this to the PYTHONPATH. Defaults to the current working directory.)rC   rE   rD   z--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.)rF   rC   rD   rE   c/                   t        | fi d|d|d|d|d|d|d|d|d	|	d
|
d|d|d|d|d|t        n|d|d|d|d|d|xs d d|xs d d|xs d d|d|d|d|d|d|d|d|d|d | d!|!d"|"d#|#d$|$d%|%d&|&d'|'d(|(d)|)d*|*D /cg c]  }/|/j                  d+d,       c}/d-|+d.|.d/|,d0|- y c c}/w )1Nhostportudsfdloophttpwsws_max_sizews_max_queuews_ping_intervalws_ping_timeoutws_per_message_deflatelifespanenv_file
log_config	log_level
access_log	interfacereloadrG   rJ   rK   reload_delayworkersproxy_headersserver_headerdate_headerforwarded_allow_ips	root_pathlimit_concurrencybackloglimit_max_requeststimeout_keep_alivetimeout_graceful_shutdownssl_keyfilessl_certfilessl_keyfile_passwordssl_versionssl_cert_reqsssl_ca_certsssl_ciphersrR   :   
use_colorsfactoryapp_dirrV   )runr   split)0r?   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rb   rc   rd   ri   rj   rG   rJ   rK   rk   rl   re   rf   rg   rh   rm   rn   ro   rp   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   r{   r|   r}   rR   r   r   rV   r   headers0                                                   r    mainr   =   s1   D 00 0 	0
 0 0 0 0  0 "0 *0 (0  60 0 0  &0%7>Z!0" #0$ %0& '0( )0*  '4+0, (/4-0. (/4/00 "102 304 $506 $708  90: 0;0< =0> ,?0@ A0B .C0D .E0F #<G0H  I0J "K0L 2M0N  O0P $Q0R "S0T  U0V 5<<&c1%<W0X Y0Z [0\ ]0^ 'D_0V =s   C).rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rb   rc   rd   ri   rj   rG   rJ   rK   rk   rl   re   rf   rg   rh   rm   rn   ro   rp   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   r{   r|   r}   rR   r   r   r   rV   c       .           |, t         j                  j                  d|,       t        | fi 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-|-d.|.}/t	        |//      }0|/j
                  s|/j                  d0kD  rKt        | t              s;t        j                  d1      }1|1j                  d2       t        j                  d0       	 |/j                  r8|/j                         }2t        |/|0j                   |2g3      j!                          nW|/j                  d0kD  r8|/j                         }2t#        |/|0j                   |2g3      j!                          n|0j!                          |/j&                  rIt(        j                  j+                  |/j&                        r t)        j,                  |/j&                         	 |0j.                  s7|/j                  s*|/j                  d0k(  rt        j                  t0               y y y y # t$        $ r Y w xY w# |/j&                  rJt(        j                  j+                  |/j&                        r t)        j,                  |/j&                         w w w xY w)4Nr   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rb   rc   rd   ri   rj   rG   rJ   rK   rk   rl   re   rf   rg   rh   rm   rn   ro   rp   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   r{   r|   r}   rR   r   r   rV   )configr   r(   zRYou must pass the application as an import string to enable 'reload' or 'workers'.)targetsockets)syspathinsertr   r   rj   rl   
isinstancestrlogging	getLoggerwarningr7   should_reloadbind_socketr   r   r   KeyboardInterruptrZ   osrH   removestartedSTARTUP_FAILURE)3r?   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rb   rc   rd   ri   rj   rG   rJ   rK   rk   rl   re   rf   rg   rh   rm   rn   ro   rp   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   r{   r|   r}   rR   r   r   r   rV   r   serverloggersocks3                                                      r    r   r     ss   d 7#// / 	/
 / / / /  / "/ */ (/  6/ / /  !/"  #/$ (%/& ('/( ")/* +/, -/. //0 1/2 3/4 $5/6 $7/8  9/: 0;/< =/> ,?/@ A/B .C/D .E/F #<G/H  I/J "K/L 2M/N  O/P $Q/R "S/T  U/V W/X Y/Z [/\ 'D]/F` 6"F!+ZS5I""?3kl"%%'D

TFCGGI^^a%%'D

TFCGGIJJL ::"''..4IIfjj!>>&"6"66>>Q;N! <O"6>   ::"''..4IIfjj! 5:s&   'BI 	I'$I* &I''I* *AKc                z    | dk(  r"t        j                  dt               ddlm} |S t        dt         d|        )NServerStatezOuvicorn.main.ServerState is deprecated, use uvicorn.server.ServerState instead.r   )r   zmodule z has no attribute )warningswarnDeprecationWarninguvicorn.serverr   AttributeError__name__)namer   s     r    __getattr__r   Q  s@    }]	
 	/
78*,>tfE
FFr&   __main__)r$   r   returnr   )r8   zclick.Contextr9   zclick.Parameterr:   boolr   None)`r?   r   rX   r   rY   intrZ   r   r[   r   r\   LoopFactoryType | strr]   zHTTPProtocolType | strr^   zWSProtocolType | strr_   r   r`   r   ra   floatrb   r   rc   r   rd   r   ri   r   rj   r   rG   	list[str]rJ   r   rK   r   rk   r   rl   r   re   r   rf   r   rg   r   rh   r   rm   r   rn   r   ro   r   rp   r   rq   r   rr   r   rs   r   rt   r   ru   r   rv   
int | Nonerw   r   rx   r   ry   r   rz   r   r{   r   r|   r   r}   r   rR   r   r   r   r   r   rV   r   r   r   r   r   )`r?   z*ASGIApplication | Callable[..., Any] | strrX   r   rY   r   rZ   
str | Noner[   r   r\   r   r]   z/type[asyncio.Protocol] | HTTPProtocolType | strr^   z-type[asyncio.Protocol] | WSProtocolType | strr_   r   r`   r   ra   float | Nonerb   r   rc   r   rd   r   ri   r   rj   r   rG   list[str] | str | NonerJ   r   rK   r   rk   r   rl   r   re   str | os.PathLike[str] | Nonerf   z7dict[str, Any] | str | RawConfigParser | IO[Any] | Nonerg   zstr | int | Nonerh   r   rm   r   rn   r   ro   r   rp   r   rq   r   rr   r   rs   r   rt   r   ru   r   rv   r   rw   r   rx   r   ry   r   rz   r   r{   r   r|   r   r}   r   rR   zlist[tuple[str, str]] | Noner   zbool | Noner   r   r   r   rV   r   r   r   )r   r   r   r   )=
__future__r   asyncior   r   r4   sslr   r   configparserr   typingr   r   r   r   r/   r2   uvicorn._typesr	   uvicorn.configr
   r   r   r   r   r   r   r   r   r   r   r   r   uvicorn.supervisorsr   r   ChoicelistkeysLEVEL_CHOICESLIFESPAN_CHOICESINTERFACE_CHOICESr%   r   r   r   r;   commandargumentoptionr   r   Pathr   r   	CERT_NONEr   r   r   r   r   r&   r    <module>r      s   "   	  
 
  ( . .   *    " :T/*//"3455<<]X]]_ 56  ELL, L 			?	+ !5y ABm,		$ 		L gC4STf33^_j$<QR	]	4	  
@	 
	 		_ 	
=	 	/	- 	/0	( 
	~.	- 		. 		= 		. 		- 		4 		# 		E 	4	 	* 	4	 	M 		% "	%	 "	,	 (	l	 (	0	 $	.	 	
.	 		W	 		i	 		;	 		P	 		W !		C	 oCNY]^		 		 	$%	7 		K 		 		3 	L	 	0 
2	 %#		Q 	Qa	a
a a 
	a
 	a  a !a 	a a a a a !a a a  !a" #a$ %a& 'a( )a* +a, -a. /a0 1a2 3a4 5a6 7a8 9a: ;a< =a> ?a@ AaB CaD EaF  *GaH IaJ KaL MaN OaP QaR SaT UaV WaX YaZ [a\ $.]a^ _a` 
aa _ S ` U - Cb	aN "(<B8>%)$(#'#%*..2.2.2JX"&26$(%),01526'++#,0"04a|"	3|" |" 	|"
 
|" 	|"  |" :|" 	6|" |" |" #|" "|" !|" |"  !|"" #|"$ (%|"& ,'|"( ,)|"* +|", -|". ,/|"0 H1|"2  3|"4 5|"6 7|"8 9|": ;|"< 0=|"> ?|"@ "A|"B C|"D #E|"F G|"H  *I|"J /K|"L 0M|"N %O|"P Q|"R S|"T U|"V W|"X *Y|"Z [|"\ ]|"^ _|"` $.a|"b 
c|"~	G zF r&   