Files
loustique-home/venv/lib/python3.11/site-packages/dotenv/__pycache__/cli.cpython-311.pyc

85 lines
12 KiB
Plaintext
Raw Normal View History

2026-03-21 10:53:02 +01:00
<EFBFBD>
V<><56>i<EFBFBD><00><00><><00>ddlZddlZddlZddlZddlmZddlmZmZm Z m
Z
m Z m Z ej dkrddlmZ ddlZn5#e$r-ej<00>d<06><00>ejd<07><00>YnwxYwddlmZmZmZdd lmZd
e efd <0B>Zej<00><00>ejd d e<1C><00>ejd<0E><0F><00>d<10><11><00>ejdddej gd<15><01><00>d<16><11><00>ejdddej!d<1A><11><00>ej"e<1A><1B><00>ej#dej$dededed
df
d <20><04><00><00><00><00><00><00><00><00><00><00><00>Z%ed!ej&d
e
eefd"<22><04><00>Z'e%<25>(d#<23>$<24><00>ej#ejd%d&d'ej gd(<28><01><00>d)<29><11><00>dej$d&ed
dfd*<2A><04><00><00><00><00><00>Z)e%<25>(d+<2B>$<24><00>ej#ej*d,d<0E>-<2D><00>ej*d.d<0E>-<2D><00>dej$d,ed.ed
dfd/<2F><04><00><00><00><00><00><00><00>Z+e%<25>(<00><00>ej#ej*d,d<0E>-<2D><00>dej$d,ed
dfd0<64><04><00><00><00><00><00>Z,e%<25>(<00><00>ej#ej*d,d<0E>-<2D><00>dej$d,ed
dfd1<64><04><00><00><00><00><00>Z-e%<25>(dddd2<64><03>3<EFBFBD><00>ej#ejd4dd5<64>6<EFBFBD><00>ej*d7d8ej.<00>9<EFBFBD><00>dej$d:e/d7e0ed;fd
dfd<<3C><04><00><00><00><00><00><00><00>Z1d=e ed>e eefd
dfd?<3F>Z2dS)@<40>N)<01>contextmanager)<06>IO<49>Any<6E>Dict<63>Iterator<6F>List<73>Optional<61>win32)<01>PopenzkIt seems python-dotenv is not installed with cli option.
Run pip install "python-dotenv[cli]" to fix this.<2E>)<03> dotenv_values<65>set_key<65> unset_key)<01> __version__<5F>returnc<00><><00> tj<00><00>}n#t$rYdSwxYwtj<00>|d<02><00>}|S)zZ
Return a path for the ${pwd}/.env file.
If pwd does not exist, return None.
Nz.env)<05>os<6F>getcwd<77>FileNotFoundError<6F>path<74>join)<02>cwdrs <20>V/home/maxime/Documents/loustiques-home/venv/lib/python3.11/site-packages/dotenv/cli.py<70> enumerate_envrsP<00><00> <14><10>i<EFBFBD>k<EFBFBD>k<EFBFBD><03><03><> <1C><14><14><14><13>t<EFBFBD>t<EFBFBD><14><><EFBFBD><EFBFBD> <0A>7<EFBFBD><<3C><<3C><03>V<EFBFBD> $<24> $<24>D<EFBFBD> <0F>Ks <00><00>
$<03>$z-fz--fileT)<01> file_okayzNLocation of the .env file, defaults to .env file in current working directory.)<03>default<6C>type<70>helpz-qz--quote<74>always)r<00>never<65>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.)<01>version<6F>ctx<74>file<6C>quote<74>exportc<00><00>|||d<01>|_dS)zAThis script is used to set, get or unset values from a .env file.)<03>QUOTE<54>EXPORT<52>FILEN)<01>obj)r#r$r%r&s r<00>clir,&s<00><00>4<1E><16><14>><3E>><3E>C<EFBFBD>G<EFBFBD>G<EFBFBD>G<EFBFBD>rc#<00><>K<00> t|<00><00>5}|V<00>ddd<01><00>dS#1swxYwYdS#t$r=}td|<02><00>tj<00><03><00>tjd<04><00>Yd}~dSd}~wwxYw)z~
Open a file and yield the corresponding (decoded) stream.
Exits with error code 2 if the file cannot be opened.
NzError opening env file: )r$<00>)<06>open<65>OSError<6F>print<6E>sys<79>stderr<72>exit)r<00>stream<61>excs r<00> stream_filer8Cs<><00><00><00><00><14> <11>$<24>Z<EFBFBD>Z<EFBFBD> <19>6<EFBFBD><18>L<EFBFBD>L<EFBFBD>L<EFBFBD> <19> <19> <19> <19> <19> <19> <19> <19> <19> <19> <19> <19><><EFBFBD><EFBFBD> <19> <19> <19> <19> <19> <19><> <12><14><14><14> <0A>.<2E><13>.<2E>.<2E>S<EFBFBD>Z<EFBFBD>@<40>@<40>@<40>@<40> <0B><08><11> <0B> <0B> <0B> <0B> <0B> <0B> <0B> <0B> <0B><><EFBFBD><EFBFBD><EFBFBD><14><><EFBFBD>s,<00>2<00>%<03> 2<00>)<07>2<00>)<07>2<00>
A9<03>2A4<03>4A9<03>list)<01>namez--format<61> output_format<61>simple)r<<00>json<6F>shellr&zlThe format in which to display the list. Default format is simple, which displays name=value without quotes.c<00><><00>|jd}t|<02><00>5}t|<03><02><00>}ddd<03><00>n #1swxYwY|dkr+tjt j|dd<06><07><00><00><00>dS|dkrd nd
}t|<04><00>D]?}||}|<07>3|d vrtj |<07><00>}tj|<05>|<06>d |<07><00><04><00><00>@dS) z!Display all the stored key/value.r*<00>r6Nr=r/T)<02>indent<6E> sort_keysr&zexport <20>)r&r><00>=)
r+r8r <00>click<63>echor=<00>dumps<70>sorted<65>shlexr%)r#r;r$r6<00>values<65>prefix<69>k<>vs r<00> list_valuesrNSs0<00><00> <0F>7<EFBFBD>6<EFBFBD>?<3F>D<EFBFBD> <14>T<EFBFBD> <1A> <1A>.<2E>f<EFBFBD><1E>f<EFBFBD>-<2D>-<2D>-<2D><06>.<2E>.<2E>.<2E>.<2E>.<2E>.<2E>.<2E>.<2E>.<2E>.<2E>.<2E><><EFBFBD><EFBFBD>.<2E>.<2E>.<2E>.<2E><15><06><1E><1E> <0A>
<EFBFBD>4<EFBFBD>:<3A>f<EFBFBD>Q<EFBFBD>$<24>?<3F>?<3F>?<3F>@<40>@<40>@<40>@<40>@<40>+<2B>x<EFBFBD>7<>7<><19><19>R<EFBFBD><06><17><06><1E><1E> /<2F> /<2F>A<EFBFBD><16>q<EFBFBD> <09>A<EFBFBD><10>}<7D> <20>$7<>7<>7<><1D> <0B>A<EFBFBD><0E><0E>A<EFBFBD><15>
<EFBFBD>f<EFBFBD>-<2D>a<EFBFBD>-<2D>-<2D>!<21>-<2D>-<2D>.<2E>.<2E>.<2E><>  /<2F> /<2F> <00>:<03>><07>><07>set<65>key)<01>required<65>valuec<00><><00>|jd}|jd}|jd}t|||||<05><00>\}}}|rtj|<01>d|<02><00><03><00>dSt jd<05><00>dS)z<>
Store the given key/value.
This doesn't follow symlinks, to avoid accidentally modifying a file at a
potentially untrusted path.
r*r(r)rDr N)r+rrErFr3r5)r#rQrSr$r%r&<00>successs r<00> set_valuerVps<><00><00> <0F>7<EFBFBD>6<EFBFBD>?<3F>D<EFBFBD> <0F>G<EFBFBD>G<EFBFBD> <1C>E<EFBFBD> <10>W<EFBFBD>X<EFBFBD> <1E>F<EFBFBD>!<21>$<24><03>U<EFBFBD>E<EFBFBD>6<EFBFBD>B<>B<><17>G<EFBFBD>S<EFBFBD>%<25><0E><14> <0A>
<EFBFBD>c<EFBFBD>#<23>#<23>E<EFBFBD>#<23>#<23>$<24>$<24>$<24>$<24>$<24> <0B><08><11> <0B> <0B> <0B> <0B> r-c<00><00>|jd}t|<02><00>5}t|<03><02><00>}ddd<03><00>n #1swxYwY|<04>|<01><00>}|rt j|<05><00>dSt jd<04><00>dS)z%Retrieve the value for the given key.r*r@Nr )r+r8r <00>getrErFr3r5)r#rQr$r6rJ<00> stored_values rrXrX<00>s<><00><00>
<0F>7<EFBFBD>6<EFBFBD>?<3F>D<EFBFBD> <14>T<EFBFBD> <1A> <1A>.<2E>f<EFBFBD><1E>f<EFBFBD>-<2D>-<2D>-<2D><06>.<2E>.<2E>.<2E>.<2E>.<2E>.<2E>.<2E>.<2E>.<2E>.<2E>.<2E><><EFBFBD><EFBFBD>.<2E>.<2E>.<2E>.<2E><1A>:<3A>:<3A>c<EFBFBD>?<3F>?<3F>L<EFBFBD><13><14> <0A>
<EFBFBD><<3C> <20> <20> <20> <20> <20> <0B><08><11> <0B> <0B> <0B> <0B> rOc<00><><00>|jd}|jd}t|||<03><00>\}}|rtjd|<01><00><02><00>dSt jd<04><00>dS)z<>
Removes the given key.
This doesn't follow symlinks, to avoid accidentally modifying a file at a
potentially untrusted path.
r*r(zSuccessfully removed r N)r+rrErFr3r5)r#rQr$r%rUs r<00>unsetr[<00>sh<00><00> <0F>7<EFBFBD>6<EFBFBD>?<3F>D<EFBFBD> <0F>G<EFBFBD>G<EFBFBD> <1C>E<EFBFBD><1C>T<EFBFBD>3<EFBFBD><05>.<2E>.<2E>L<EFBFBD>G<EFBFBD>S<EFBFBD><0E><14> <0A>
<EFBFBD>0<>3<EFBFBD>0<>0<>1<>1<>1<>1<>1<> <0B><08><11> <0B> <0B> <0B> <0B> r-)<03>allow_extra_args<67>allow_interspersed_args<67>ignore_unknown_options)<01>context_settingsz--override/--no-overridezKOverride variables from the environment file with those from the .env file.)rr<00> commandline<6E><65><EFBFBD><EFBFBD><EFBFBD>)<02>nargsr<00>override.c<00>t<00><01>|jd}tj<00>|<03><00>st jd|<03>d<03>|<00><04><00><00><01>fd<05>t |<03><00><00><00><00>D<00><00>}|s(t jd<06><00>tj
d<07><00>tg|<02>|j <00>|<04><00>dS) z/Run command with environment variables present.r*zInvalid value for '-f' "z" does not exist.)r#c<00>@<00><01>i|]\}}|<02><07>s|tjv<01>||<02><02>S)N)r<00>environ)<04>.0rLrMrcs <20>r<00>
<dictcomp>zrun.<locals>.<dictcomp><3E>s><00><><00><06><06><06> <12>Q<EFBFBD><01> <0C>=<3D>h<EFBFBD>=<3D>!<21>2<EFBFBD>:<3A>*=<3D>*=<3D>
<EFBFBD>1<EFBFBD>*=<3D>*=<3D>*=r-zNo command given.r N) r+rr<00>isfilerE<00> BadParameterr <00>itemsrFr3r5<00> run_command<6E>args)r#rcr`r$<00>dotenv_as_dicts ` r<00>runro<00>s<><00><><00> <0F>7<EFBFBD>6<EFBFBD>?<3F>D<EFBFBD> <0A>7<EFBFBD>><3E>><3E>$<24> <1F> <1F>
<EFBFBD><13> <20> @<40><04> @<40> @<40> @<40>c<EFBFBD>
<EFBFBD>
<EFBFBD>
<EFBFBD>
<EFBFBD><06><06><06><06>#<23>D<EFBFBD>)<29>)<29>/<2F>/<2F>1<>1<><06><06><06>N<EFBFBD> <17><14> <0A>
<EFBFBD>&<26>'<27>'<27>'<27> <0B><08><11> <0B> <0B> <0B><0F>)<29>+<2B>)<29><03><08>)<29>><3E>:<3A>:<3A>:<3A>:<3A>:r-<00>command<6E>envc<00>R<00>tj<00><00><00>}|<02>|<01><00>tjdkrFt |ddd|<02><05><00>}|<03><00><00>\}}t j|j <00><00>dStj
|d||<02><06><00>dS)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
TrF)<04>universal_newlines<65>bufsizer>rq)rmrqN) rrf<00>copy<70>updater3<00>platformr <00> communicater5<00>
returncode<EFBFBD>execvpe)rprq<00>cmd_env<6E>p<>_s rrlrl<00>s<><00><00>*<11>j<EFBFBD>o<EFBFBD>o<EFBFBD><1F><1F>G<EFBFBD> <0B>N<EFBFBD>N<EFBFBD>3<EFBFBD><17><17><17>
<EFBFBD>|<7C>w<EFBFBD><1E><1E> <12>'<27>d<EFBFBD>A<EFBFBD>U<EFBFBD>PW<50> X<> X<> X<><01><10>}<7D>}<7D><EFBFBD><EFBFBD><04><01>1<EFBFBD> <0B><08><11><1C><1E><1E><1E><1E><1E>
<EFBFBD>
<EFBFBD>7<EFBFBD>1<EFBFBD>:<3A>G<EFBFBD><17>9<>9<>9<>9<>9<>9r-)3r=rrIr3<00>
contextlibr<00>typingrrrrrr rw<00>
subprocessr rE<00> ImportErrorr4<00>writer5<00>mainr rrr"r<00>strr<00>group<75>option<6F>Path<74>Choice<63>BOOL<4F>version_option<6F> pass_context<78>Contextr,<00>PathLiker8rprN<00>argumentrVrXr[<00> UNPROCESSED<45>bool<6F>tuplerorl<00>r-r<00><module>r<>s<><00><01> <0B> <0B> <0B> <0B> <09> <09> <09> <09> <0C> <0C> <0C> <0C>
<EFBFBD>
<EFBFBD>
<EFBFBD>
<EFBFBD>%<25>%<25>%<25>%<25>%<25>%<25>:<3A>:<3A>:<3A>:<3A>:<3A>:<3A>:<3A>:<3A>:<3A>:<3A>:<3A>:<3A>:<3A>:<3A>:<3A>:<3A><06><<3C>7<EFBFBD><1A><1A> <20> <20> <20> <20> <20> <20><10><10>L<EFBFBD>L<EFBFBD>L<EFBFBD>L<EFBFBD><4C><12><10><10><10><07>J<EFBFBD><14><14> <<3C><06><06><06> <0A>C<EFBFBD>H<EFBFBD>Q<EFBFBD>K<EFBFBD>K<EFBFBD>K<EFBFBD>K<EFBFBD>K<EFBFBD> <10><><EFBFBD><EFBFBD>4<>3<>3<>3<>3<>3<>3<>3<>3<>3<> <20> <20> <20> <20> <20> <20> <10>x<EFBFBD><03>}<7D> <10> <10> <10> <10> <0A><15><1B><1D><1D> <0A><15><1C><08> <0C> <19>M<EFBFBD>O<EFBFBD>O<EFBFBD> <13><15><1A>d<EFBFBD> #<23> #<23> #<23> Y<> <02><02><02><0E><15><1C><08> <0A> <14> <15><15><1C>1<>1<>1<> 2<> 2<> m<> <02><02><02><0E><15><1C><08><0E> <11> <0E><1A> F<> <02><02><02><16><15><15>k<EFBFBD>*<2A>*<2A>*<2A><06><13>?<3F>U<EFBFBD>]<5D>?<3F>#<23>?<3F>c<EFBFBD>?<3F>3<EFBFBD>?<3F>4<EFBFBD>?<3F>?<3F>?<3F><14><13>+<2B>*<2A><02><02><02><02><02><02><0F><1D>0?<3F>
<10> <14>b<EFBFBD>k<EFBFBD> <14>h<EFBFBD>r<EFBFBD>#<23>w<EFBFBD>&7<> <14> <14> <14><10><1E> <14><05><1B><1B>&<26><1B><19><19><06><13> <0A><15><1C><0E><13> <14> <15><15><1C>;<3B>;<3B>;<3B> <<3C> <<3C>
0<EFBFBD> <02><02><02>/<2F>U<EFBFBD>]<5D>/<2F>3<EFBFBD>/<2F>4<EFBFBD>/<2F>/<2F>/<2F><02><02><14><13><1A><19>/<2F>&<05><1B><1B>%<25><1B><18><18><06><13><0F><15><1E><05><04>%<25>%<25>%<25><0F><15><1E><07>$<24>'<27>'<27>'<27><14>5<EFBFBD>=<3D><14>s<EFBFBD><14>3<EFBFBD><14>4<EFBFBD><14><14><14>(<28>'<27>&<26>%<25><14><13><19><18><14>$<05><1B><1B><1D><1D><06><13><0F><15><1E><05><04>%<25>%<25>%<25> <14>U<EFBFBD>]<5D> <14><13> <14><14> <14> <14> <14>&<26>%<25><14><13><0F><1D> <14><05><1B><1B><1D><1D><06><13><0F><15><1E><05><04>%<25>%<25>%<25> <14>u<EFBFBD>}<7D> <14>3<EFBFBD> <14>4<EFBFBD> <14> <14> <14>&<26>%<25><14><13><0F><1D> <14> <05><1B><1B> <20>#(<28>"&<26><06><06> <0A><02><02><07><13> <0A><15><1C><1E> <10> V<><02><02><02>
<10><15><1E> <0A>R<EFBFBD>e<EFBFBD>.?<3F>@<40>@<40>@<40>;<3B>U<EFBFBD>]<5D>;<3B>d<EFBFBD>;<3B><15>s<EFBFBD>C<EFBFBD>x<EFBFBD><1F>;<3B>T<EFBFBD>;<3B>;<3B>;<3B>A<01>@<40> <02><02><14><13><02><02>;<3B>( :<3A><14>c<EFBFBD><19> :<3A><14>c<EFBFBD>3<EFBFBD>h<EFBFBD><1E> :<3A>D<EFBFBD> :<3A> :<3A> :<3A> :<3A> :<3A> :s<00>><00>/A0<03>/A0