Files
aitsc/.venv/Lib/site-packages/dotenv/__pycache__/cli.cpython-312.pyc

79 lines
9.8 KiB
Plaintext
Raw Normal View History

2025-02-23 09:07:52 +08:00
<EFBFBD>
2025-08-29 00:34:40 +08:00
<00><19>h5<00><00><><00>ddlZddlZddlZddlZddlmZddlmZmZm Z m
2025-02-23 09:07:52 +08:00
Z
2025-08-29 00:34:40 +08:00
m Z m Z ejdk(rddlmZ ddlZddlmZmZmZdd lmZd
e efd <0B>Zej:<00>ej<d d e<1C>ej>d<0E><0F>d<10><11>ej<dddej@gd<15><01>d<16><11>ej<dddejBd<1A><11>ejDe<1A><1B>ejFdejHdededed
df
d <20><04><00><00><00><00><00>Z%ed!ejLd
e
e efd"<22><04>Z'e%jQ<00>ejFej<d#d$ej@gd%<25><01>d&<26><11>dejHd'e)d
dfd(<28><04><00><00>Z*e%jQ<00>ejFejVd)d<0E>*<2A>ejVd+d<0E>*<2A>dejHd)ed+ed
dfd,<2C><04><00><00><00>Z,e%jQ<00>ejFejVd)d<0E>*<2A>dejHd)ed
dfd-<2D><04><00><00>Z-e%jQ<00>ejFejVd)d<0E>*<2A>dejHd)ed
dfd.<2E><04><00><00>Z.e%jQd/di<01>0<EFBFBD>ejFej<d1dd2<64>3<EFBFBD>ejVd4d5ej^<00>6<EFBFBD>dejHd7e)d4e ed
dfd8<64><04><00><00><00>Z0d9e ed:eeefd
dfd;<3B>Z1y#e$r1ej$j'd<06>ej(d<07>Y<00><03>)wxYw)<<3C>N)<01>contextmanager)<06>Any<6E>Dict<63>IO<49>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>}tjj |d<02>}|S#t$rYywxYw)zZ
2025-02-23 09:07:52 +08:00
Return a path for the ${pwd}/.env file.
If pwd does not exist, return None.
2025-08-29 00:34:40 +08:00
Nz.env)<05>os<6F>getcwd<77>FileNotFoundError<6F>path<74>join)<02>cwdrs <20>7D:\pythonpj\aitsc\.venv\Lib\site-packages\dotenv/cli.py<70> enumerate_envrsA<00><00> <14><10>i<EFBFBD>i<EFBFBD>k<EFBFBD><03> <0E>7<EFBFBD>7<EFBFBD><<3C><<3C><03>V<EFBFBD> $<24>D<EFBFBD> <0F>K<EFBFBD><4B> <1D><14><13><14>s<00>8<00> A<03>Az-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>|_y)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><1E><16><14>><3E>C<EFBFBD>G<EFBFBD>rc#<00><>K<00> t|<00>5}|<01><03>ddd<01>y#1swYyxYw#t$r3}td|<02><00>tj<00><03>t d<04>Yd}~yd}~wwxYw<01>w)z~
2025-02-23 09:07:52 +08:00
Open a file and yield the corresponding (decoded) stream.
Exits with error code 2 if the file cannot be opened.
2025-08-29 00:34:40 +08:00
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_filer85sP<00><00><><00><10> <11>$<24>Z<EFBFBD>6<EFBFBD><18>L<EFBFBD><18>Z<EFBFBD>Z<EFBFBD><5A> <12><10> <0A>(<28><13><05>.<2E>S<EFBFBD>Z<EFBFBD>Z<EFBFBD>@<40> <0C>Q<EFBFBD><07><07><><10>sC<00>A(<01> )<00><03>)<00>A(<01>&<07>)<00>A(<01>)<00> A%<03>)A <03>A(<01> A%<03>%A(z--format<61>simple)r9<00>json<6F>shellr&zlThe format in which to display the list. Default format is simple, which displays name=value without quotes.<2E>formatc<00><><00>|jd}t|<02>5}t|<03><02>}ddd<03>|dk(r,tjt j dd<06><07><00>y|dk(rd nd
}t<04>D]?}||}|<07><01> |d vrtj|<07>}tj|<05>|<06>d |<07><00><04><00>Ay#1swY<00><>xYw) 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>listrLEs<><00><00> <0F>7<EFBFBD>7<EFBFBD>6<EFBFBD>?<3F>D<EFBFBD> <14>T<EFBFBD> <1A>f<EFBFBD><1E>f<EFBFBD>-<2D><06>
2025-02-23 09:07:52 +08:00
<1B><0E><16><17> <0A>
<EFBFBD>
<EFBFBD>4<EFBFBD>:<3A>:<3A>f<EFBFBD>Q<EFBFBD>$<24>?<3F>@<40>$<24><08>0<><19>b<EFBFBD><06><17><06><1E>A<EFBFBD><16>q<EFBFBD> <09>A<EFBFBD><10>}<7D><19>0<>0<><1D> <0B> <0B>A<EFBFBD><0E>A<EFBFBD><15>
<EFBFBD>
<EFBFBD>f<EFBFBD>X<EFBFBD>a<EFBFBD>S<EFBFBD><01>!<21><13>-<2D>.<2E>  <20>
2025-08-29 00:34:40 +08:00
<1B> <1A>s <00> B8<03>8C<07>key)<01>required<65>valuec<00><><00>|jd}|jd}|jd}t|||||<05>\}}}|rtj|<01>d|<02><00><03>yt d<05>y)zStore the given key/value.r*r(r)rBr N)r+rrCrDr5)r#rMrOr$r%r&<00>successs r<00>setrR^sg<00><00> <0F>7<EFBFBD>7<EFBFBD>6<EFBFBD>?<3F>D<EFBFBD> <0F>G<EFBFBD>G<EFBFBD>G<EFBFBD> <1C>E<EFBFBD> <10>W<EFBFBD>W<EFBFBD>X<EFBFBD> <1E>F<EFBFBD>!<21>$<24><03>U<EFBFBD>E<EFBFBD>6<EFBFBD>B<><17>G<EFBFBD>S<EFBFBD>%<25><0E> <0A>
2025-02-23 09:07:52 +08:00
<EFBFBD>
2025-08-29 00:34:40 +08:00
<EFBFBD>c<EFBFBD>U<EFBFBD>!<21>E<EFBFBD>7<EFBFBD>#<23>$<24> <0C>Q<EFBFBD>r-c<00><><00>|jd}t|<02>5}t|<03><02>}ddd<03>j|<01>}|rt j
|<05>yt d<04>y#1swY<00>>xYw)z%Retrieve the value for the given key.r*r>Nr )r+r8r <00>getrCrDr5)r#rMr$r6rH<00> stored_values rrTrTnsX<00><00>
2025-02-23 09:07:52 +08:00
<0F>7<EFBFBD>7<EFBFBD>6<EFBFBD>?<3F>D<EFBFBD> <14>T<EFBFBD> <1A>f<EFBFBD><1E>f<EFBFBD>-<2D><06>
<1B><1A>:<3A>:<3A>c<EFBFBD>?<3F>L<EFBFBD><13> <0A>
<EFBFBD>
<EFBFBD><<3C> <20> <0C>Q<EFBFBD><07>
2025-08-29 00:34:40 +08:00
<1B> <1A>s <00> A%<03>%A.c<00><><00>|jd}|jd}t|||<03>\}}|rtjd|<01><00><02>yt d<04>y)zRemoves the given key.r*r(zSuccessfully removed r N)r+rrCrDr5)r#rMr$r%rQs r<00>unsetrWsO<00><00>
2025-02-23 09:07:52 +08:00
<0F>7<EFBFBD>7<EFBFBD>6<EFBFBD>?<3F>D<EFBFBD> <0F>G<EFBFBD>G<EFBFBD>G<EFBFBD> <1C>E<EFBFBD><1C>T<EFBFBD>3<EFBFBD><05>.<2E>L<EFBFBD>G<EFBFBD>S<EFBFBD><0E> <0A>
<EFBFBD>
2025-08-29 00:34:40 +08:00
<EFBFBD>*<2A>3<EFBFBD>%<25>0<>1<> <0C>Q<EFBFBD>r-<00>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>overridec<00><><00>|jd}tjj|<03>st j
d|<03>d<03>|<00><04><00>t |<03>j<00>D<00><04>cic]\}}|<05>|s|tjvr||<05><02> }}}|s t jd<06>td<07>t||<06>ycc}}w)z/Run command with environment variables present.r*zInvalid value for '-f' "z" does not exist.)r#NzNo command given.r ) r+rr<00>isfilerC<00> BadParameterr <00>items<6D>environrDr5<00> run_command)r#r]rZr$rJrK<00>dotenv_as_dicts r<00>runre<00>s<><00><00> <0F>7<EFBFBD>7<EFBFBD>6<EFBFBD>?<3F>D<EFBFBD> <0A>7<EFBFBD>7<EFBFBD>><3E>><3E>$<24> <1F><13> <20> <20>(<28><14><06>.?<3F> @<40><13>
2025-02-23 09:07:52 +08:00
<EFBFBD>
<EFBFBD> $<24>D<EFBFBD>)<29>/<2F>/<2F>1<><06>1<>F<EFBFBD>Q<EFBFBD><01> <0C>=<3D>h<EFBFBD>!<21>2<EFBFBD>:<3A>:<3A>*=<3D>
<EFBFBD>1<EFBFBD><04>1<><13><06> <17> <0A>
<EFBFBD>
2025-08-29 00:34:40 +08:00
<EFBFBD>&<26>'<27> <0C>Q<EFBFBD><07><0F> <0B>^<5E>,<2C><>s<00>&#B;<06>command<6E>envc<00>0<00>tjj<00>}|j|<01>tj
dk(r9t |ddd|<02><05>}|j<00>\}}t|j<00>ytj|d||<02><06>y)a<>Replace the current process with the specified command.
2025-02-23 09:07:52 +08:00
2025-08-29 00:34:40 +08:00
Replaces the current process with the specified command and the variables from `env`
2025-02-23 09:07:52 +08:00
added in the current environment variables.
Parameters
----------
command: List[str]
The command and it's parameters
env: Dict
The additional environment variables
Returns
-------
2025-08-29 00:34:40 +08:00
None
This function does not return any value. It replaces the current process with the new one.
2025-02-23 09:07:52 +08:00
2025-08-29 00:34:40 +08:00
r
TrF)<04>universal_newlines<65>bufsizer;rg)<02>argsrgN) rrb<00>copy<70>updater3<00>platformr <00> communicater5<00>
returncode<EFBFBD>execvpe)rfrg<00>cmd_env<6E>p<>_s rrcrc<00>sw<00><00>*<11>j<EFBFBD>j<EFBFBD>o<EFBFBD>o<EFBFBD><1F>G<EFBFBD> <0B>N<EFBFBD>N<EFBFBD>3<EFBFBD><17>
<EFBFBD>|<7C>|<7C>w<EFBFBD><1E> <12>'<27>%)<29><1B><1D><1D>  <1F><01>
<11>}<7D>}<7D><EFBFBD><04><01>1<EFBFBD> <0C>Q<EFBFBD>\<5C>\<5C><1A>
<EFBFBD>
<EFBFBD>
<EFBFBD>7<EFBFBD>1<EFBFBD>:<3A>G<EFBFBD><17>9r-)2r:rrGr3<00>
contextlibr<00>typingrrrrrr rn<00>
subprocessr rC<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>PathLiker8rf<00>boolrL<00>argumentrRrTrW<00> UNPROCESSEDrerc<00>r-r<00><module>r<>s<><00><01> <0B> <09> <0C>
<EFBFBD>%<25>:<3A>:<3A><06><<3C><<3C>7<EFBFBD><1A> <20><10><10> 4<>3<> <20> <10>x<EFBFBD><03>}<7D> <10> <0A><15><1B><1B><1D> <0A><15><1C><1C>d<EFBFBD>H<EFBFBD>m<EFBFBD>o<EFBFBD><1D>5<EFBFBD>:<3A>:<3A><04>-<2D>c<>e<01><0E><15><1C><1C>d<EFBFBD>I<EFBFBD>x<EFBFBD><1F>5<EFBFBD><<3C><<3C> ;<3B><<3C>w<>y<01><0E><15><1C><1C>d<EFBFBD>J<EFBFBD><05><18>:<3A>:<3A>P<>R<01><16><15><15><15>k<EFBFBD>*<2A><06><13><13>?<3F>U<EFBFBD>]<5D>]<5D>?<3F>#<23>?<3F>c<EFBFBD>?<3F>3<EFBFBD>?<3F>4<EFBFBD>?<3F><14>+<2B>R<01>y<01>e<01><0F>?<3F>
2025-02-23 09:07:52 +08:00
<10> <10>b<EFBFBD>k<EFBFBD>k<EFBFBD> <10>h<EFBFBD>r<EFBFBD>#<23>w<EFBFBD>&7<> <10><10> <10><05><1B><1B><1D><06><13><13> <0A><15><1C><1C>j<EFBFBD>(<28><1F>5<EFBFBD><<3C><<3C> E<>F<>?<3F>@<01>/<2F>e<EFBFBD>m<EFBFBD>m<EFBFBD>/<2F>T<EFBFBD>/<2F>d<EFBFBD>/<2F> @<01><14><0F> /<2F>&<05><1B><1B><1D><06><13><13><0F><15><1E><1E><05><04>%<25><0F><15><1E><1E><07>$<24>'<27> <10>U<EFBFBD>]<5D>]<5D> <10><13> <10>S<EFBFBD> <10>T<EFBFBD> <10>(<28>&<26><14><0F> <10><05><1B><1B><1D><06><13><13><0F><15><1E><1E><05><04>%<25> <10>U<EFBFBD>]<5D>]<5D> <10><13> <10><14> <10>&<26><14><0F> <10><05><1B><1B><1D><06><13><13><0F><15><1E><1E><05><04>%<25><10>u<EFBFBD>}<7D>}<7D><10>3<EFBFBD><10>4<EFBFBD><10>&<26><14><0F><10><05><1B><1B>7<><14>><3E><1B>?<3F><06><13><13> <0A><15><1C><1C><1E> <10> V<><02>
2025-08-29 00:34:40 +08:00
<10><15><1E><1E> <0A>R<EFBFBD>e<EFBFBD>.?<3F>.?<3F>@<40>-<2D>U<EFBFBD>]<5D>]<5D>-<2D>d<EFBFBD>-<2D><14>c<EFBFBD><19>-<2D>t<EFBFBD>-<2D>A<01> <02><14>@<01>-<2D>($:<3A><14>c<EFBFBD><19>$:<3A><14>c<EFBFBD>3<EFBFBD>h<EFBFBD><1E>$:<3A>D<EFBFBD>$:<3A><>y<13><10><07>J<EFBFBD>J<EFBFBD><14><14>I<01>J<01> <0C>C<EFBFBD>H<EFBFBD>H<EFBFBD>Q<EFBFBD>K<EFBFBD><10>s<00>L5<00>52M+<03>*M+