Files
serveur-d-authentification/venv/lib/python3.10/site-packages/__pycache__/decouple.cpython-310.pyc

104 lines
10 KiB
Plaintext
Raw Normal View History

o
2026-10-13 11:19:54 +00:00
<00><><EFBFBD>j|"<00>@sZddlZddlZddlZddlmZddlmZddlmZejZ e dkr0ddl
m Z m Z e Zn
ddl mZ m Z eZe dkrCd d
<EFBFBD>Znd d
<EFBFBD>Zd Zhd <0A>Zhd<0E>Zdd<10>ZGdd<12>de<16>ZGdd<14>de<18>Ze<19>ZGdd<16>de<18>ZGdd<18>de<18>ZGdd<1A>de<1C>ZGdd<1C>de<1C>ZGdd<1E>de<1C>ZGdd <20>d e<18>Z e <20>Z!Gd!d"<22>d"e<18>Z"Gd#d$<24>d$e<18>Z#dS)%<25>N)<01>shlex)<01>open)<01> OrderedDict)<03>rr)<02> ConfigParser<65> NoOptionError)<02>SafeConfigParserr)r<00>rcC<00>
2026-10-13 11:19:54 +00:00
|<00>|<01>S<00>N)<01> read_file<6C><02>parser<65>file<6C>r<00>R/var/www/cerfig_sso_authentification/venv/lib/python3.10/site-packages/decouple.py<70><lambda><00>
rcCr
r )<01>readfpr rrrrrzUTF-8><00>1<>t<>y<>on<6F>yes<65>true><00>0<>f<>n<>no<6E>off<66>falsecCs:t|t<01>r|S|<00><02>}|tvrdS|tvrdStd|<00><01>)NTFzInvalid truth value: )<06>
isinstance<EFBFBD>bool<6F>lower<65> TRUE_VALUES<45> FALSE_VALUES<45>
ValueError<EFBFBD><01>valuerrr<00> strtobool!s
 r)c@s eZdZdS)<02>UndefinedValueErrorN)<03>__name__<5F>
__module__<EFBFBD> __qualname__rrrrr*.sr*c@seZdZdZdS)<03> Undefinedz,
Class to represent undefined type.
N)r+r,r-<00>__doc__rrrrr.2sr.c@sBeZdZdZdd<03>Zdd<05>Zedd<07><00>Zeefdd <09>Z d
d <0B>Z
d S) <0A>Configz2
Handle .env file format used by Foreman.
cCs
||_dSr )<01>
repository)<02>selfr1rrr<00>__init__B<00>
zConfig.__init__cCs$t|<01>}|dkr t|<01>Stt|<01><01>S)zP
Helper to convert config values to boolean as ConfigParser do.
<20>)<03>strr"r))r2r(rrr<00> _cast_booleanEszConfig._cast_booleancCs|Sr rr'rrr<00>_cast_do_nothingLszConfig._cast_do_nothingcCsv|tjvr tj|}n||jvr|j|}nt|t<04>r"td<01>|<01><01><01>|}t|t<04>r0|j}||<04>S|tur7|j }||<04>S)zD
Return the value for option or default if defined.
z={} not found. Declare it as envvar or define a default value.)
<EFBFBD>os<6F>environr1r!r.r*<00>formatr8r"r7)r2<00>option<6F>default<6C>castr(rrr<00>getPs
 
 

<08>z
Config.getcOs|j|i|<02><01>S)z-
Convenient shortcut to get.
)r?<00>r2<00>args<67>kwargsrrr<00>__call__gszConfig.__call__N) r+r,r-r/r3r7<00> staticmethodr8<00> undefinedr?rCrrrrr0=s
 r0c@s*eZdZdefdd<03>Zdd<05>Zdd<07>ZdS) <09>RepositoryEmptyr5cC<00>dSr r)r2<00>source<63>encodingrrrr3o<00>zRepositoryEmpty.__init__cCsdS)NFr<00>r2<00>keyrrr<00> __contains__rrJzRepositoryEmpty.__contains__cCrGr rrKrrr<00> __getitem__urJzRepositoryEmpty.__getitem__N)r+r,r-<00>DEFAULT_ENCODINGr3rMrNrrrrrFns rFc@s0eZdZdZdZefdd<04>Zdd<06>Zdd<08>Zd S)
<EFBFBD> RepositoryIniz0
Retrieves option keys from .ini files.
<20>settingscCsFt<00>|_t||d<01><02>}t|j|<03>Wd<00>dS1swYdS)N<>rI)rrr<00> read_config)r2rHrI<00>file_rrrr3s"<22>zRepositoryIni.__init__cCs|tjvp |j<02>|j|<01>Sr )r9r:r<00>
has_option<EFBFBD>SECTIONrKrrrrM<00>s
<02>zRepositoryIni.__contains__cCs*z |j<00>|j|<01>WStyt|<01><01>wr )rr?rVr<00>KeyErrorrKrrrrN<00>s
 <02>zRepositoryIni.__getitem__N) r+r,r-r/rVrOr3rMrNrrrrrPys   rPc@s,eZdZdZefdd<03>Zdd<05>Zdd<07>ZdS) <09> RepositoryEnvzM
Retrieves option keys from .env files with fall back to os.environ.
cCs<>i|_t||d<01><02>W}|D]K}|<04><02>}|r|<04>d<02>sd|vrq |<04>dd<04>\}}|<05><02>}|<06><02>}t|<06>dkrR|ddkr@|ddksL|dd krR|dd krR|dd<08>}||j|<q Wd<00>dS1scwYdS)
NrR<00>#<23>=<3D>r r<00>'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")<06>datar<00>strip<69>
startswith<EFBFBD>split<69>len)r2rHrIrT<00>line<6E>k<>vrrrr3<00>s<  <02>"<22>zRepositoryEnv.__init__cC<00>|tjvp ||jvSr <00>r9r:r_rKrrrrM<00><00>zRepositoryEnv.__contains__cC<00>
|j|Sr <00>r_rKrrrrN<00>r4zRepositoryEnv.__getitem__N)r+r,r-r/rOr3rMrNrrrrrX<00>s
  rXc@s*eZdZdZd
dd<04>Zdd<06>Zdd<08>Zd S) <0B>RepositorySecretz<74>
Retrieves option keys from files,
where title of file is a key, content of file is a value
e.g. Docker swarm secrets
<20> /run/secrets/c Cs`i|_t<01>|<01>}|D]#}ttj<04>||<03>d<01><02>}|<04><06>|j|<Wd<00>n1s(wYq
dS)N<>r)r_r9<00>listdirr<00>path<74>join<69>read)r2rH<00>lsrrrrrr3<00>s
<1C><02><04>zRepositorySecret.__init__cCrgr rhrKrrrrM<00>rizRepositorySecret.__contains__cCrjr rkrKrrrrN<00>r4zRepositorySecret.__getitem__N)rm)r+r,r-r/r3rMrNrrrrrl<00>s

 rlc@sReZdZdZedefdefg<02>ZeZ ddd<06>Z
dd<08>Z d d
<EFBFBD>Z d d <0C>Z d d<0E>ZdS)<10>
AutoConfigz<EFBFBD>
Autodetects the config file and type.
Parameters
----------
search_path : str, optional
Initial search path. If empty, the default search path is the
caller's path.
z settings.iniz.envNcCs||_d|_dSr )<02> search_path<74>config)r2rurrrr3<00>s
zAutoConfig.__init__cCsn|jD]}tj<02>||<02>}tj<02>|<03>r|Sqtj<02>|<01>}|r5tj<02>|<04>tj<02>tj<02>tj<08><01>kr5|<00> |<04>SdS)Nr5)
<EFBFBD> SUPPORTEDr9rprq<00>isfile<6C>dirname<6D>normcase<73>abspath<74>sep<65>
_find_file)r2rp<00>
configfile<EFBFBD>filename<6D>parentrrrr}<00>s
 <02> &
zAutoConfig._find_filecCs\z |<00>tj<02>|<01><01>}Wn tyd}Ynw|j<05>tj<02>|<02>t<08>}t |||j
d<02><02>|_ dS)Nr5rR) r}r9rpr{<00> Exceptionrwr?<00>basenamerFr0rIrv)r2rpr<00>
Repositoryrrr<00>_load<61>s <02>zAutoConfig._loadcCs t<00><01>}tj<03>|jjjj<07>}|Sr )<08>sys<79> _getframer9rpry<00>f_back<63>f_code<64> co_filename)r2<00>framerprrr<00> _caller_path<74>szAutoConfig._caller_pathcOs*|js |<00>|jp |<00><03><00>|j|i|<02><01>Sr )rvr<>rur<>r@rrrrC<00>szAutoConfig.__call__r )r+r,r-r/rrPrXrwrOrIr3r}r<>r<>rCrrrrrt<00>s
<06>

rtc@s,eZdZdZedejefdd<04>Zdd<06>Z dS)<08>CsvzK
Produces a csv parser that return a list of transformed elements.
<20>,cCs||_||_||_||_dS)ai
Parameters:
cast -- callable that transforms the item just before it's added to the list.
delimiter -- string of delimiters chars passed to shlex.
strip -- string of non-relevant characters to be passed to str.strip after the split.
post_process -- callable to post process all casted values. Default is `list`.
N)r><00> delimiterr`<00> post_process)r2r>r<>r`r<>rrrr3s
z Csv.__init__csN|dur<08><00><00>S<00>fdd<03><08>t|dd<05>}<02>j|_d|_<04><00><00>fdd<07>|D<00><01>S)zThe actual transformationNcs<00><00>|<00><01>j<01><01>Sr )r>r`)<01>s)r2rrrszCsv.__call__.<locals>.<lambda>T)<01>posixc3s<00>|]}<01>|<01>VqdSr r)<02>.0r<EFBFBD>)<01> transformrr<00> <genexpr>s<02>zCsv.__call__.<locals>.<genexpr>)r<>rr<><00>
whitespace<EFBFBD>whitespace_split)r2r(<00>splitterr)r2r<>rrCs  z Csv.__call__N)
r+r,r-r/<00> text_type<70>stringr<67><00>listr3rCrrrrr<>s r<>c@s(eZdZdZdedfdd<04>Zdd<06>ZdS)<07>ChoiceszD
Allows for cast and validation based on a list of choices.
NcCsJ|pg|_||_|p g|_g|_|j<03>|j<00>|j<03>dd<02>|jD<00><01>dS)z<>
Parameters:
flat -- a flat list of valid choices.
cast -- callable that transforms value before validation.
choices -- tuple of Django-like choices.
cSsg|]\}}|<01>qSrr)r<>r(<00>_rrr<00>
<listcomp>3sz$Choices.__init__.<locals>.<listcomp>N)<05>flatr><00>choices<65> _valid_values<65>extend)r2r<>r>r<>rrrr3&s

zChoices.__init__cCs*|<00>|<01>}||jvrtd<01>||j<01><02><01>|S)Nz.Value not in list: {!r}; valid values are {!r})r>r<>r&r;)r2r(r<>rrrrC5s


<04>zChoices.__call__)r+r,r-r/r<>r3rCrrrrr<>!s r<>)$r9r<>r<>r<00>ior<00> collectionsr<00> version_info<66> PYVERSION<4F> configparserrrr6r<>r<00>unicoderSrOr$r%r)r<>r*<00>objectr.rEr0rFrPrXrlrtrvr<>r<>rrrr<00><module>s>   
 1 >