
    5i%                        S SK r S SKrS SKrS SKrS SKJr  S SKJrJrJ	r	J
r
JrJr  \R                  S:X  a  S SKJr   S SKrSSKJrJrJr  SS	KJr  S
\\   4S jr\R:                  " 5       \R<                  " SS\" 5       \R>                  " SS9SS9\R<                  " SSS\R@                  " / SQ5      SS9\R<                  " SSS\RB                  SS9\RD                  " \S9\RF                  S\RH                  S\S\S\S
S4
S  j5       5       5       5       5       5       r%\S!\RL                  S
\
\\      4S" j5       r'\%RQ                  S#S$9\RF                  \R<                  " S%S&S'\R@                  " / S(Q5      S)S9S\RH                  S&\S
S4S* j5       5       5       r)\%RQ                  S+S$9\RF                  \RT                  " S,SS-9\RT                  " S.SS-9S\RH                  S,\S.\S
S4S/ j5       5       5       5       r+\%RQ                  5       \RF                  \RT                  " S,SS-9S\RH                  S,\S
S4S0 j5       5       5       r,\%RQ                  5       \RF                  \RT                  " S,SS-9S\RH                  S,\S
S4S1 j5       5       5       r-\%RQ                  S2S0S39\RF                  \R<                  " S4SS5S69\RT                  " S7S8\R\                  S99S\RH                  S:\/S7\\   S
S4S; j5       5       5       5       r0S<\\   S=\	\\4   S
S4S> jr1g! \ a1    \R$                  R'                  S5        \R(                  " S5         GNf = f)?    N)contextmanager)IOAnyDictIteratorListOptionalwin32)PopenzkIt seems python-dotenv is not installed with cli option. 
Run pip install "python-dotenv[cli]" to fix this.   )dotenv_valuesset_key	unset_key)__version__returnc                       [         R                  " 5       n [         R                  R	                  U S5      nU$ ! [         a     gf = f)zN
Return a path for the ${pwd}/.env file.

If pwd does not exist, return None.
Nz.env)osgetcwdFileNotFoundErrorpathjoin)cwdr   s     X/var/www/html/BTCUSD/btcusdt_trading_app/venv/lib/python3.13/site-packages/dotenv/cli.pyenumerate_envr      sA    iik 77<<V$DK  s   9 
AAz-fz--fileT)	file_okayzNLocation of the .env file, defaults to .env file in current working directory.)defaulttypehelpz-qz--quotealways)r   neverautozbWhether to quote or not the variable values. Default mode is always. This does not affect parsing.z-ez--exportFz;Whether to write the dot file as an executable bash script.)versionctxfilequoteexportc                     X#US.U l         g)zAThis script is used to set, get or unset values from a .env file.)QUOTEEXPORTFILEN)obj)r#   r$   r%   r&   s       r   clir,   &   s    4 >CG    r   c              #      #     [        U 5       nUv   SSS5        g! , (       d  f       g= f! [         a;  n[        SU 3[        R                  S9  [        R
                  " S5         SnAgSnAff = f7f)zr
Open a file and yield the corresponding (decoded) stream.

Exits with error code 2 if the file cannot be opened.
NzError opening env file: )r$      )openOSErrorprintsysstderrexit)r   streamexcs      r   stream_filer8   C   sS     $Z6L ZZ (.SZZ@sC   A6. . A6
+. A6. 
A31A.)A6.A33A6list)namez--formatoutput_formatsimple)r<   jsonshellr&   zlThe format in which to display the list. Default format is simple, which displays name=value without quotes.c                    U R                   S   n[        U5       n[        US9nSSS5        US:X  a+  [        R                  " [
        R                  " WSSS95        gUS:X  a  S	OS
n[        W5       HE  nXF   nUc  M  US;   a  [        R                  " U5      n[        R                  " U U SU 35        MG     g! , (       d  f       N= f)z!Display all the stored key/value.r*   r6   Nr=   r/   T)indent	sort_keysr&   zexport  )r&   r>   =)
r+   r8   r   clickechor=   dumpssortedshlexr%   )r#   r;   r$   r6   valuesprefixkvs           r   list_valuesrN   S   s     776?D	T	ff- 
 

4::fQ$?@+x7RA	A} $77AA

fXaS!-.   
	s   
B==
Csetkey)requiredvaluec                     U R                   S   nU R                   S   nU R                   S   n[        X1X$U5      u  panU(       a  [        R                  " U SU 35        g[        R
                  " S5        g)zStore the given key/value.r*   r(   r)   rD   r   N)r+   r   rE   rF   r3   r5   )r#   rP   rR   r$   r%   r&   successs          r   	set_valuerU   p   se     776?DGGGEWWXF!$U6BG%

cU!E7#$r-   c                    U R                   S   n[        U5       n[        US9nSSS5        WR                  U5      nU(       a  [        R
                  " U5        g[        R                  " S5        g! , (       d  f       NT= f)z%Retrieve the value for the given key.r*   r@   Nr   )r+   r8   r   getrE   rF   r3   r5   )r#   rP   r$   r6   rJ   stored_values         r   rW   rW      s\    
 776?D	T	ff- 
 ::c?L

<  
	s   
A33
Bc                     U R                   S   nU R                   S   n[        X!U5      u  pAU(       a  [        R                  " SU 35        g[        R
                  " S5        g)zRemoves the given key.r*   r(   zSuccessfully removed r   N)r+   r   rE   rF   r3   r5   )r#   rP   r$   r%   rT   s        r   unsetrZ      sO    
 776?DGGGET.LG

*3%01r-   ignore_unknown_options)context_settingsz--override/--no-overridezKOverride variables from the environment file with those from the .env file.)r   r   commandline)nargsr   overridec                    U R                   S   n[        R                  R                  U5      (       d  [        R
                  " SU S3U S9e[        U5      R                  5        VVs0 s H)  u  pEUc  M
  U(       d  U[        R                  ;  d  M'  XE_M+     nnnU(       d,  [        R                  " S5        [        R                  " S5        [        X&5        gs  snnf )z/Run command with environment variables present.r*   zInvalid value for '-f' "z" does not exist.)r#   NzNo command given.r   )r+   r   r   isfilerE   BadParameterr   itemsenvironrF   r3   r5   run_command)r#   r`   r]   r$   rL   rM   dotenv_as_dicts          r   runrh      s     776?D77>>$  'v-?@c
 	

 $D)//11FQ 	&!2::*= 	1   

&',s   )	C6CCcommandenvc                 <   [         R                  R                  5       nUR                  U5        [        R
                  S:X  aA  [        U SSSUS9nUR                  5       u    n[        R                  " UR                  5        g[         R                  " U S   XS9  g)a  Replace the current process with the specified command.

Replaces the current process with the specified command and the variables from `env`
added in the current environment variables.

Parameters
----------
command: List[str]
    The command and it's parameters
env: Dict
    The additional environment variables

Returns
-------
None
    This function does not return any value. It replaces the current process with the new one.

r
   Tr   F)universal_newlinesbufsizer>   rj   )argsrj   N)r   re   copyupdater3   platformr   communicater5   
returncodeexecvpe)ri   rj   cmd_envp_s        r   rf   rf      sr    * jjooGNN3
||w 'dAUPWX}}1


71:G9r-   )2r=   r   rI   r3   
contextlibr   typingr   r   r   r   r   r	   rq   
subprocessr   rE   ImportErrorr4   writer5   mainr   r   r   r"   r   strr   groupoptionPathChoiceBOOLversion_optionpass_contextContextr,   PathLiker8   ri   rN   argumentrU   rW   rZ   UNPROCESSEDboolrh   rf    r-   r   <module>r      s    	  
 % : :<<7  4 3  x}  O	d	#	Y 	1	2	m 		F k*?U]] ?# ?c ?3 ?4 ?  + 0?
 bkk hr#w&7   &	;	<
0/U]] /3 /4 /  /& %%$'	5== 	s 	3 	4 	 ( &  	 %U]]    &   %u}} 3 4  &   7>?	V
 Re.?.?@-U]] -d -c -t - A  @-& :c  :c3h  :D  :[  JJ	< HHQKs   L 3MM