ÿØÿà JFIF    ÿÛ „ !.%+&8&+/1555$;@;4?.451 4,$,44444444444414444444444444444444444444444444444444ÿÀ  á á" ÿÄ     ÿÄ ?    !1AQaq"2‘¡±ÁðBRbrÑá#‚’¢²3S CñÿÄ   ÿÄ !    !1QAa‘2ÿÚ   ? 5˜Z¯V¦cø)›t/? z¨±>Õ5€¶‹Á¤·¼z¼Ü¬+ñ®v¤¨_ˆR­BFn©—˜ý®ç̝P8gýt·ÉSTŦˆìät?þé¼íìN/Þa)ì–í6ô… Ï¿øÃj´¿KÇü]ÿ ªô¹-eKànëÕHTx}ýSÜ›ÿ ”7Ø×&µ<¦  ¥ÑO¶[Ù¯ä¨ÞÃÿ PZ-¬;#õ|•oaÿ ©CìÞz3˜öː/¤­ñTûIØ}š^ mÓ%ªxˆ¥ÉŸu=Z+ISe¿45™¼u;ú&WØ÷€æßQ™®{|íx*TC“#ZŠìZ§²‹ 6pv…³¿¡äª*áZÐ%ÒOáˆo"x«OHk w±æ+¬V(kMúŸ5Vö«$ ÁrÏbàb57/luR ¸ÑÛj Òµì`Мq­û žICÀÊ•©4€Âcà¨Ï€O´<èÐ:›ù(Ë^L8þ‘ÍÌ#¸Ð_Ì©ÙK(Öz 4¬û+¸;ü’V’84‘¬ÃŽ:[â‡ÔÌáõp¢~§ªlæ£ö{®G>J¼"°‡7¯ÆÉèßû ‹É‹§ÁòÃýâßî ^ƾÙõ‹×óH#«LP½ïX=xÑÍ$|W?•~• îëÔ©ª‹ {ÝT…Kÿ ”hûâá)J*ö˜–ÔU;iÇ€/ ÆþjóZ\ýwØ=Ìm ºèËL9 ýèÆð/¨’¥öo=nË.%Îì ŽÕ¯È|{Oj²ƒE6e/ßdÄõ²Ìâ1O®ò×TsəԸhOMýíMˆ¿¼H˜l²,7Â¥#MF/Úf°Ö½± ¸–dr‹NýÊ íjqx{œÉ ä-È ¦ øÄër¨q°ð †nцýÑÄÆ’mä…n<0È™;ÁÝá¯ÁZƒ7FÀmì­ É&9ˆîéi¶ùN§Y• ÃZãAâ?•‡©‰ , ó¾IŸŠc1 4â&y­&pŠ­6;M À 0¹qç»p.á …ŸÅáK@%6·y6ƒ‰3?”úºŽ‰éX5ªPT §µ!=Mž«Ú½‹ÅgÂSâÉaþÓoö–¯ÁÔìR>5éÿ üs¶ÆUcÌ kÇR ]ÿ ù¬¼«VŽ;Â|‡~¢¦”ÏŰæ {L™Õ°Óv¹ò¸írޡעCÃ!íVÕ {¶»sŒNPg/ "uÕbkm²“$ďå¿é¹§°½æz¯6 †s¿!s–wÚÝ“™Œ °.ûj>·+™Òa…©Œ&rÝÎtÛë긪Ît’LAVp%c Úý[ÄzJ¾ÇàXXç@˜ó<êL]·T˜¾¥1Ó©V‡g´æ½¦Ý@¹óø!_@´ÞâSÁ —S3™•& ]@JHÚý©ZŽ €×æÔr»Áf!‡yÞ4Mv*èÓã_{‘åóUuљØ«Oïé*®EvÑ Œ÷‡U \"㪒ÍK+À 4“M¡ï:0¥5í!'<@î´”>Ç»&Z–ïCCV˜Ì5Šo&îhè.žû |ÓK©h$s6KìŒëã)¹hI¦GïOåóI;ììü#É$Š0…Ææ¥TØ.5­¾gn´ “ÂÖ\:hœ89G)J@„}œ:’Ò{/Š"¦_Æ×7Æ3VÇŠÊa]ÚŒÙ€Ä–=®uÁßâACZƒ§§£ Qnâ:«,×{tyø¬iÛcœÜÄ€H½ÄÍCk´÷šß .W'b¤Íåh]÷€=,Žv×cÚEÚHXJX¶îo¨FÒtèöŸ>ªª6[J®Fµ£sGÁeqõfe\íjÒÐïÄÐGˆe1Ø‹.Ø”‘Ëuø Y­ˆÜ ŽG|zùªüMpDnQWÄ”%JŠ™)â*p@Örš«ÕT2Ð%ˆG#ª„ ·¤!°ŸOTÂT¸aÚ%4&h™LµšØüÐ.F¿²ÐÞ_Ç‚¾ÅÃaÜ÷09Æ q€öy˜v‡85õN÷]¬äѼóS{°_MެúÔ#°Ç¸0åÞè2ëôPcvÆw9®ií1Ä8F™˜à‰´+‰Ik1òÝ7“Ñ×ÒsÝ\x‚h`ÞÑ`ó"|µEcý£n˜h`}GÞ !±ù²Ápü²ß6 0ïi󜵩SÈÇ7˜-ÕURO˜¦´f$ªž-Í6(œ}<„ éc øs]ŽŽ„*—¾ ìdŽ„)méª\¿êÎIg¾ØÞ~I#C/¼¼´EÁÈŽi8“©õådô·>euä ƒ'Ê×लR1ÉJE1ÐAát`t;ÇР%Ý<‡¥„ÍÆ`×Oyó)õiI€ñQaŸ4Ûù\áàaÃÔ¹HÃu¹*k€¦<„e S‡&õÏ B!ŽhüÞ`yj}mªf×\¿ Ç~æ­9‡û\՞Ǖg²1Žû5V7 !àöšm° c`ܬøÇìµÒ'P"?…´Ö,"§^•õލsÔ)6˜sæéÍR¼ ò|Sl”‹7 nPW Gòú÷½§O¯‡„l¡kSÞŒr½PÊ@æ¢pŽ-mÿ #Ÿ˜Àº¶Áä¦;ïÔæ$1££`“Õ>„—·ž)ßð³ñ#Ï Ô$¶œ‰ÊE‹À;÷º ¯«P:Ñ”8–IÊtpÞ3ª“>ê“þës4ò2OÏÕ­±zô†Õ§‰.÷ä¸;¿˜“'œ›žª}«Œ{ª±Ì 9ÔóÞÕ‡0 $íWV3Üì¬ —@kÝ4@¿r¼±½¬™›?øØæ´'Áé®CË3-g$˜ö‡×auÚi´Žp/êÛ æF›Ú2v‹ã¿¿,nB1̨ƃqÞa5͝@&Æû“él÷ \C²½UÍc ¯k×¢U ÖéQå™—-r wô ÞÏ<Ò=&=ÿ Ôê Òêˈt,i—;LîÜ á¸*ÚÃ1$êL•LÍ <É)ýÐà’ ;F™{ƒ™˜€&'}‚ãÄK`¡ÞT@I;®žZóè‚s’7®°›+§O­Åq©é»²9<Ô J ¼9O’HL»Ùïì¸rk¼Ž_ý‘TŸu[²ßÚŒ·ü÷B%¯E ŸÔX5êO´ Ç•€’I0 ÉJX` ñ¹õ%;µŸD‘«´€àwÒ™U ûئžÖö\×®×´8 ½‡ºÐÆÓ§?Àkmœ=;d5*@-ì0F Rªýš[Ü6âö̃ڸr*KA9· u*µæ£?U¸Âêí†8@¦X4 e-ò„0s{ HâUpU?¼mñRa°®a%Ð'tÉ×’\¾ÊÉ]t›h>·(Ë@R¼¡Ãt h}’O÷au<+nT…Ö…MӐ??Óe95 q>í/;&JSû °¯ÊéÞ øƒ*Ã2½Ài&:nôUl=¾¿5eˆ3”ñc|Ú2V”>„»&eE;«ÚäC p¢Û úy 9š[ŒÌx¼擼A&DåÒ¯ˆ¤ÀÌ;"˜ ÏQä¸åhÊ}Ûq«Û0WžÒ|»€ø®öCm5•\ÇÀ§Pe3£]0ÃàLDÉ‰1øªxjgwT‚÷¿LΨK‹›ùs—xˆÜ±µ kæ¸f‰‰ÜGk/LÛØ6d9ò¶ùA{ƒA3š/¬D¬khÓk‰`˜"㯒r¿±Óã jx‡°e}<Ñø\3y:'À•/h½Í€Ç4~g ?Û(¼]v‘ªlKÎâ~?O‚W%{Ì:“'©úNq¾›úo(X’¥¯ˆ nFê{Ç€ü?º'ë ø‹ì Þ09ŒÌç9Æ —ËC`j@ÓÄ(+a‹un¸#ÂꟋ{K`‘ÑÍÍ'à´»/Û,KW;Þ4²þð ï Nm|~fGÏ(…³Ã)«1ö­Õ ¥‡¨©ƒÃ™ü-s=à=U66Ï«Ýc蓦W¹íž®›nÔ%êÇìŒ<#Ü×84ån®Ð ÒåOC` ñânÑs‡¢ç 1õ%Îhì½Ã½® e:ݼUZo™`  ÅZŸŒÊ«ê1ÏÄo$q¹Þ€©ˆhÐÉä¯ñ[!…Ú˜àJ:x2$Íß&PåT£6ç— ‡Í*4Ýšçjÿ ‰É nófÐ ó(L5C•åÆ\rMÒ@ò }y-W}™üýVù—ú¢=Ù”c®‘< M ž ´Phr ¦©TD ‘ù.$´÷O‡‘V2Æò.=IUŒ=ž‡â¬i™aþÓåÙ?òUø'ØÖ•.~* šTŒ!•-×áºTâ®ä#õü'´ eýlYÅÓeÕKÂrT"CÚ@u!Óxƒ{š3€}1¿(r}%«nËamjÑ%ÑNEò v ˜à  σöK³,*º.àzù¨™Ó ÚçâU¦*¿ 9{%Ö¹ njûdaXöb) kÛÆ±ûÓ\°M7ˆÂ=û›ç¿Ã‚­V»Cg–8ÙêE- j)k$º`Ã-ùEýeBÆÇ]c¡°ñty&Òd0nõ'¡W+ƒ*|–øµFa\GQªEAÔp5\Ǽ·¼Ç8·õ -â§Ú[ ‡ uZeÖ 3}×d'+¹:ð+K†Û®s!Ï$úe€<Û”x)1»a­¡LC]¸µík…ÚàA»AYº{†ªS[¦5HÒ7ù --,ísòDØ€èk ÞÀîÜ ò@â( ËNˆë›4ô½•/¦o‡€Û7 ê•ÆêòðÜy'Án½µ á˜ݦ ndeo…[ì¶Ê,¥R³Ä=À±—–ß;£™´ñSâ*g§”ïaið‘Jå~™ÓÞ ß³Õ¢»8x埒²52>AÊb&-÷\7´éÄù€T˜,w;3{ï˜k…à¹ÄqÀ«œ{€\ ˆ¾[´¨јr &Úé„Ívˆ±8†¿]|¬ņ4I×pÞS1ÈÖz‰#Ìv‡G!YNògñ:màTz¢Ý1ô©^O=~ë|5Bã™ç•¼µõ•bÆ@úÕS¬ÈŒ#¬zünrŸ û” Z²•èðV"ÁHÚý©wÝ €7¼Ìu1hÑa3Éä û f$o¿É ™Ú›ÝçnpÒ3äÌ3†Í§,Äï]$‰/pê †«À¼¸e9­Æê_C]žƒ·ý·frÁN«, E=›Çq -‰öŒ:aÏ¿±í&£Í:-} 84‘ÿ eƒQÑeëSsuiA ³g㟥ú£?ÿ ʼn*”“÷aühe:ÊWa@ÒÞk±eØ] F Ô—r.åä˜ @ö¥ªZoÐýYL·¥S²G/‡ñ <~*ZÆ´è>JlòàÛÆ½ÿ 窘ìGN¢:I®KšJp/`íIÁÀõ#Ä-€ö­šµŒoF4|ÆQØÆ@Ì|£Ô…¢À{9˜è½Üó›€ôYÒÎYsið;ís¤€à²ˆ‚4qÉVŒI$ ‰"° æµ8cXGjœˏ¡Aâý•ËÜ¢ûï e·çLx']á"oÅÎê3¯Ç—¹”ó0nå‚âg{Œñ> S´˜îè°g238‚ãköÝfÚd´6Ò€;ò÷±¢™¼›º ¢Æ'¥Ðx'e¬ç ]bÈÆV¢ó‹kýBO ðÊâ$Ÿ!×T 3Mýמ žìٍàÌü‘8÷€àæØ8æ©6‰©L´«…oãpð„~Çk‰!ñ;‹”ÛžÍ àž±z Ÿôû øŸÝužÏ;ÿ #|u6™Þ¬ÚˆÐõA4¶â|ôl|Ê2ŽÇ¤ÝÅÇY.<#Aí.k§hóF‚”Y; M½Ö4hŸ4&›­¿tès´%FìL¥£Ãk‰ÇT¤haÁ¤ÚxfÉ`ÑìË›>i 3t‚:,–+^÷´–{Û–Nxi"x‘Ûg î¨>¥Õ܁ùZH,2Û“:8xÊ¢Çí9.É-Ìâã-=çjwµS˜dütžçwýGòú®®ûº_ˆýx$–¡ãøO EÚÛÏ÷R„×w+3£Á£öUMyR²¹âŒ°š›¸Ñãò9§Ó_Dl+Ùßc›úšGÅÌc†Ž!Ko=¶.‘Îÿ c²(2®V mª.ÿ ¹B›¹å ù„öŸSV>™ü¯$y:G¢Z×àøúdî¹û­·ýÇ´:•c LÍõi_‹ö+ÎæGÊè>OŠ•äž´§Þ{X}¨1ÚTc›»Qþ•êô°t¿OP?eæ~É{5]•ÙR£r5†nZ\ã@ &îJõ ¾àC°þV>fé¥/ü5ñÊIº_é5 ;e­h<@ Ä&æÃëE%;X,ÒãÆÞ`Oò¦kŸm#˜!ÀyÄ¢| óLšò¥Ä` ¶R=|ÈCâh5ò3DˆïF†ðÒ#ÅìÛœ?¸yhBãœí ZxßÎÄhºRK„`Þödvײ™ÀÈÑÒgŒuY w³%†ƒÓzõ ÖÏp‚dH®¦A´ù§»ÓÇMæ~)ˆð‡û:ù&Ä •vGD´À n ݇¼Ö8Fö óáà£~Ë¥x`oK|Ä?fxiØü%pìR>éò+Û±éÎ>núlFŤ'tq8LZÏvÃ?„¡ß±È⽆¯³íü@x|PöUäèØã¡ð‚ŒAìÏ"vÍwóŸÍ{ ý0.z È•Ö{,N¡£¡ŸKÕÙž>Ýœþ ÍÀ°<×EA!Å‚D™IúOÍ¡>ôG}Â` ÍßkÜL™Ž Þð™ {IøF²¹òQ3&!ÃÂÞz.d&Ï-sH¸,Ôõ˜ŽP€ 77ˆÝ¼ÊëÜw =cÕ Ú,ØÐ5ÎYÐ)ì´öœgŒ[¤ßv㙑8心>h]§µháYš£²ºÑ.{Ï7Sð•?´~×SÃKýJÛ˜ ™Íäiúu<µX¶1õ^kâçIÑ£sZ4h>j*ÔšD:4­¿_ ÷¸ Õxæÿ ¸?Mù _•­ÊÐ ä ÷ý ÑwL œ­ïnTkÛUÍN©ë:¦fV ¶ÜÔÜMªÅâA½–¿R×TXš-%iTÊT•‡Ù‚JôϐZxWÑè‰f‰òG º ×Õû2aZ7OU3[“×AT–ÞŒ…-‘¤”Ì ì&(ˆ¿­•ƒkï’:ðY¦W‘ Å)“†‘˜³Åtcø˜ñTÂwÚÇ4|üLÇªí–v- qˆèU qPE.†â‘˜µ Æ,ÐÅs]8¾„oúÑ i>ÜxxÈó)ƒ ´æÁâØ$À‰vžŸf$Ž |ãw;ÀÁIJ»b` {¦Ó¤Ú$©YÀ‘n@Óïž«9J¼êG m¤ ܯ¹ÌW4€ÐÒÅÛ‡#褕Ÿn-?í|с¥÷Ú¹¬'´ÞÜ9ÓK `hê£SÄSà?7—Wí_´…óB›»:=Ãïq`<8ñÓŒÑlú2d¬ê³£hÖ[l|$vÝro~'R®‰§°ñmY ͧäP |PUª¹·:3Œ[Û{Xÿ ºâ@‚W–Äé u‚ ¯´*=íή.pûÒdt @G‰¬ s¸ ëÉücr ÞæÑ¨Ê@>¤¢Ö±. Þ'¯°ÌME[YéïĵÂCå½ Ué©Áû'Ê9%eÔðNU”ë‘ÌsD3/®+UI˜9h.WC”빓$#:pz:YÓ ¿xž* ³$Í +$kñAŠ‹†¢ Uê>¸)_š¬÷©ßAÂÔb9ÇU ¯¾á•9¯ÏÏ÷O÷¼¼Fähal1‰3Ì[Ïr•´UCksNÐ] R‘¸¥H+§Šé†c©vÖÞ0iÓ76s†î!§=ß ¼~Ô'°Ãmäoäš³ªøi1úÉ)³yV8 CLÄØÁ‘WYïi€H6ÖÑiámø^ÈY´°Ñ7¥Û*—Ñ©L«Qƒï—Ùrÿ ›£Ð*š¸ˆL©ˆ$ˆ ÷¾D§9È®«qbqC)–ˆïv´çñsÑVT­Ø, <àïºÀO«Jý·õ àfPìð .wFšir´þ’2_Y *Æ€x\« ì€9š@ Ž|F⇥ˆkZ@hÖÄ0t¿-<“‹qµ¾*ZL¤Ú)&BJpÓF5=$„at*Zš$’ÑtdûÝRI1 2މ$€$I$#‰SÞ’Hë¬ï;Á$¡t$’`<(ñÇt)$‡Ð.Êf¢X’Kt=Éé$‚ˆªè¢oÝëòI%Rgcª÷ŠyI%¡‰ÿ !ñ)´õ $¤ Ô’IIGÿÙ =XadZddlZddlZddlZddlZddlZddlZddlZddlm Z ddl Z ej dkrddl m Z nddl m Z ejejejejejgZej dkreejdZndZeeZiZdd Zdd ZGd d ejejejZGd deZ Gdde!Z"Gdde Z#Gdde Z$Gdde Z%dZ&dZ'dZ(dZ)Gddej*Z*dZ+dZ,ej-j+ej-_.e+ej-_+ej/Z/ejZejZejZej0Z0ej1Z1ej2Z2ej3Z3ej4Z4ej5Z5ej6Z6ej7Z7ej8Z8ej9Z9eZ:eZ;eZeZ?e*Z@e*ZAej-j+ej-_Bej-j+ej-_Ce*jDe*_Ee*jFe*_GeZHeZIeZJdS) z A drop-in replacement for `argparse` that allows options to also be set via config files and/or environment variables. :see: `configargparse.ArgumentParser`, `configargparse.add_argument` N) OrderedDict)r)StringIO)r c6t|tjSN) isinstanceargparseBooleanOptionalActionactions 0/usr/lib/python3/dist-packages/configargparse.pyrs 68Ca0b0bcdS)NFr s rrrsrc |d}|tvr td|dt||dtj|ddt di|t|<dS) zCreates a global ArgumentParser instance with the given name, passing any args other than "name" to the ArgumentParser constructor. This instance can then be retrieved using get_argument_parser(..) Ndefaultz=kwargs besides 'name' can only be passed in the first time. 'z!' ArgumentParser already exists: formatter_classconflict_handlerresolver)_parsers ValueError setdefaultr ArgumentDefaultsHelpFormatterArgumentParsernamekwargss rinit_argument_parserr &s  | xj DD(4.."## # ')OPPP ()444#--f--HTNNNrc v|d}t|dks |tvr t|fi|t|S)a Returns the global ArgumentParser instance with the given name. The 1st time this function is called, a new ArgumentParser instance will be created for the given name, and any args other than "name" will be passed on to the ArgumentParser constructor. Nrr)lenrr rs rget_argument_parserr#9sG  | 6{{Q$h..T,,V,,, D>rceZdZdZdS) ArgumentDefaultsRawHelpFormatterzCHelpFormatter that adds default values AND doesn't do line-wrappingN__name__ __module__ __qualname____doc__rrrr%r%HsNMDrr%c$eZdZdZdZdZdZdS)ConfigFileParserzRThis abstract class can be extended to add support for new config file formatsc td)z3Returns a string describing the config file syntax.z*get_syntax_description(..) not implementedNotImplementedErrorselfs rget_syntax_descriptionz'ConfigFileParser.get_syntax_descriptionTs!"NOOOrc td)aHParses the keys and values from a config file. NOTE: For keys that were specified to configargparse as action="store_true" or "store_false", the config file value must be one of: "yes", "no", "true", "false". Otherwise an error will be raised. Args: stream (IO): A config file input stream (such as an open file object). Returns: OrderedDict: Items where the keys are strings and the values are either strings or lists (eg. to support config file formats like YAML which allow lists). zparse(..) not implementedr.)r1streams rparsezConfigFileParser.parseXs""=>>>rc td)aDoes the inverse of config parsing by taking parsed values and converting them back to a string representing config file contents. Args: items: an OrderedDict of items to be converted to the config file format. Keys should be strings, and values should be either strings or lists. Returns: Contents of config file as a string zserialize(..) not implementedr.)r1itemss r serializezConfigFileParser.serializeis""ABBBrNr'r(r)r*r2r5r8rrrr,r,PsSPPP???" C C C C Crr,ceZdZdZdS)ConfigFileParserExceptionz'Raised when config file parsing failed.Nr&rrrr;r;xs1111rr;c$eZdZdZdZdZdZdS)DefaultConfigFileParsera Based on a simplified subset of INI and YAML formats. Here is the supported syntax .. code:: # this is a comment ; this is also a comment (.ini style) --- # lines that start with --- are ignored (yaml style) ------------------- [section] # .ini-style section names are treated as comments # how to specify a key-value pair (all of these are equivalent): name value # key is case sensitive: "Name" isn't "name" name = value # (.ini style) (white space is ignored, so name = value same as name=value) name: value # (yaml style) --name value # (argparse style) # how to set a flag arg (eg. arg which has action="store_true") --name name name = True # "True" and "true" are the same # how to specify a list arg (eg. arg which has action="append") fruit = [apple, orange, lemon] indexes = [1, 12, 35 , 40] c d}|S)NzrConfig file syntax allows: key=value, flag=true, stuff=[a,b,c] (for details, see syntax at https://goo.gl/R74nmi).rr1msgs rr2z.DefaultConfigFileParser.get_syntax_descriptionsE rc t}t|D]\}}|}|r|ddvs|dr#t$r1} d|dd dD}Yd} ~ nd} ~ wwxYw| r.| dd} |||<ntd |t|dd||S)Nr)#;[z---zn^(?P[^:=;#\s]+)\s*(?:(?P[:=\s])\s*([\'"]?)(?P.+?)?\3)?\s*(?:\s[;#]\s*(?P.*?)\s*)?$keyequalvaluecomment truerD]c6g|]}|Srstrip.0elems r z1DefaultConfigFileParser.parse.. Q Q Q$ Q Q Qr,zUnexpected line {} in {}: {}rr4)r enumeraterO startswithrematchgroupendswithjsonloads Exceptionsplitr;formatgetattr) r1r4r7iliner[rErFrGrHes rr5zDefaultConfigFileParser.parses  (( > >GAt::<kk%(( G,, G,,++i00=U%65C<<EE]"E##C((RU^^C-@-@RR $ 5 1 1$RRR Q Q%"+:K:KC:P:P Q Q QR:%mmooabb17799G"c /0N0U0UVWFFH55t1=1=>>> sD E!'E  EcRt}|D]q\}}t|tr.ddt t |zdz}|d||r| S)NrD, rLz{} = {} ) rr7r listjoinmapstrwriterbgetvalue)r1r7rrErGs rr8z!DefaultConfigFileParser.serializes JJ++-- 4 4JC%&& ;DIIc#uoo666s: GGK&&sE22 3 3 3 3zz||rNr9rrrr=r=|sL: """Hrr=c$eZdZdZdZdZdZdS)ConfigparserConfigFileParserz,parses INI files using pythons configparser.c d}|S)NaUses configparser module to parse an INI file which allows multi-line values. Allowed syntax is that for a ConfigParser with the following options: allow_no_value = False, inline_comment_prefixes = ("#",) strict = True empty_lines_in_values = False See https://docs.python.org/3/library/configparser.html for details. Note: INI file sections names are still treated as comments. rr?s rr2z3ConfigparserConfigFileParser.get_syntax_descriptions   rcJddl}ddlm}|dddddd} ||n$#t $r}td|zd}~wwxYwt}| D]}|| D]p\}} | d d  d d } d | vr8d | vr4| d d} d| vr|| ||<e| ||<k| ||<q|S)Nr) literal_eval)=:F)rBrCT) delimitersallow_no_valuecomment_prefixesinline_comment_prefixesstrictempty_lines_in_valuesCouldn't parse config file: %s rI rDrL{) configparserastrt ConfigParser read_stringreadr`r;rsectionsr7replacera) r1r4rrtconfigrfresultsectionkvmultiLine2SingleLineprelist_strings rr5z"ConfigparserConfigFileParser.parses$$$$$$**  &$-"' +   R   v{{}} - - - - R R R+,Lq,PQQ Q R(( 5 5Gg,,.. 5 5!'(yyc':':'B'B4'L'L$...3:N3N3N%9%?%?%D%DQ%GN.00$0L1E$F$Fq $8q 4F1II 5 s'A A0A++A0cddl}ddl}|dddd}d|i}|||}|||d|S)NrF)rBT)rxrzr{r|DEFAULT)rior read_dictrrmseekr)r1r7rrrr4s rr8z&ConfigparserConfigFileParser.serializes ** $*"' +   E" V A{{}}rNr9rrrrqrqsH66"!!!Frrqc,eZdZdZdZdZdZddZdS) YAMLConfigFileParserzdParses YAML config files. Depends on the PyYAML module. https://pypi.python.org/pypi/PyYAML c d}|S)NzThe config file uses YAML syntax and must represent a YAML 'mapping' (for details, see http://learn.getgrav.org/advanced/yaml).rr?s rr2z+YAMLConfigFileParser.get_syntax_descriptionsS rcL ddl}n#t$rtdwxYw|S)zjlazy-import PyYAML so that configargparse doesn't have to depend on it unless this parser is used.rNzJCould not import yaml. It can be installed by running 'pip install PyYAML')yaml ImportErrorr;)r1rs r _load_yamlzYAMLConfigFileParser._load_yaml!sT G KKKK G G G+-FGG G G s!c|} ||}n$#t$r}td|zd}~wwxYwt |t s7tdt |dddt|jdt}| D]5\}}t |tr|||< |#t|||<6|S)Nr}z_The config file doesn't appear to contain 'key: value' pairs (aka. a YAML mapping). yaml.load('rr4z') returned type 'z' instead of 'dict'.) r safe_loadr`r;r dictrctyper'rr7rirl)r1r4r parsed_objrfrrErGs rr5zYAMLConfigFileParser.parse,s#   R//JJ R R R+,Lq,PQQ Q R*d++ P++1111D4D4D4M4M4M-OPP P $**,, ) )JC%&& )#s !%jjs  s, A AA Fcv|}t|}|||S)N)default_flow_style)rrdump)r1r7rrs rr8zYAMLConfigFileParser.serializeFs7  U yy3EyFFFrNF)r'r(r)r*r2rr5r8rrrrrse   4GGGGGGrr command_lineenvironment_variables config_filedefaultsceZdZdZdZdddejfdZdddejdfdZdZ ddZ d Z d Z d Z d Zd ZdZejfdZdZdS)rzDrop-in replacement for `argparse.ArgumentParser` that adds support for environment variables and ``.ini`` or ``.yaml-style`` config files. cD|dd}|dd}|dd}|dg}|dd}|d t}|d g} |d d} |d d } |dg} |dd} |dt|_||_||_||_tjj |g|Ri||t|_ n||_ ||_ ||_ | r|j | d| | dd| r|j | dd| dddSdS)aR Supports args of the `argparse.ArgumentParser` constructor as \*\*kwargs, as well as the following additional args. Arguments: add_config_file_help: Whether to add a description of config file syntax to the help message. add_env_var_help: Whether to add something to the help message for args that can be set through environment variables. auto_env_var_prefix: If set to a string instead of None, all config- file-settable options will become also settable via environment variables whose names are this prefix followed by the config file key, all in upper case. (eg. setting this to ``foo_`` will allow an arg like ``--my-arg`` to also be set via the FOO_MY_ARG environment variable) default_config_files: When specified, this list of config files will be parsed in order, with the values from each config file taking precedence over previous ones. This allows an application to look for config files in multiple standard locations such as the install directory, home directory, and current directory. Also, shell \* syntax can be used to specify all conf files in a directory. For example:: ["/etc/conf/app_config.ini", "/etc/conf/conf-enabled/*.ini", "~/.my_app_config.ini", "./app_config.txt"] ignore_unknown_config_file_keys: If true, settings that are found in a config file but don't correspond to any defined configargparse args will be ignored. If false, they will be processed and appended to the commandline like other args, and can be retrieved using parse_known_args() instead of parse_args() config_file_open_func: function used to open a config file for reading or writing. Needs to return a file-like object. config_file_parser_class: configargparse.ConfigFileParser subclass which determines the config file format. configargparse comes with DefaultConfigFileParser and YAMLConfigFileParser. args_for_setting_config_path: A list of one or more command line args to be used for specifying the config file path (eg. ["-c", "--config-file"]). Default: [] config_arg_is_required: When args_for_setting_config_path is set, set this to True to always require users to provide a config path. config_arg_help_message: the help message to use for the args listed in args_for_setting_config_path. args_for_writing_out_config_file: A list of one or more command line args to use for specifying a config file output path. If provided, these args cause configargparse to write out a config file with settings based on the other provided commandline args, environment variants and defaults, and then to exit. (eg. ["-w", "--write-out-config-file"]). Default: [] write_out_config_file_arg_help_message: The help message to use for the args in args_for_writing_out_config_file. add_config_file_helpTadd_env_var_helpauto_env_var_prefixNdefault_config_filesignore_unknown_config_file_keysFconfig_file_parser_classargs_for_setting_config_pathconfig_arg_is_requiredconfig_arg_help_messagezconfig file path args_for_writing_out_config_file&write_out_config_file_arg_help_messagezftakes the current command line args and writes them out to a config file at the given path, then exitsconfig_file_open_funcr)destrequiredhelpis_config_file_arg"write_out_config_file_to_this_pathCONFIG_OUTPUT_PATH)rmetavarris_write_out_config_file_arg)popr=open_config_file_open_func_add_config_file_help_add_env_var_help_auto_env_var_prefixr r__init___config_file_parser_default_config_files _ignore_unknown_config_file_keys add_argument)r1argsrrrrrrrrrrrrs rrzArgumentParser.__init__]st &zz*@$GG!::&8$??$jj)>EE%zz*@"EE*0** -u+6+6'#)::.H.E$G$G '-zz *B(0(0$!',De!L!L"(**-F-?#A#A+1:: .,4,4(17 47%2&2&. '-jj1H$&O&O#%9"!1$7!(??????? $ +'>'@'@D $ $'?'?'A'AD $%9"0O- ' ) D ;-/6M#' ) ) ) ) , 3 D ?9,;-1  3 3 3 3 3 3 3 3rNc|||||d\}}|r+|dd|z|S)aSupports all the same args as the `argparse.ArgumentParser.parse_args()`, as well as the following additional args. Arguments: args: a list of args as in argparse, or a string (eg. "-x -y bla") config_file_contents: String. Used for testing. env_vars: Dictionary. Used for testing. Returns: argparse.Namespace: namespace F)r namespaceconfig_file_contentsenv_varsignore_help_argszunrecognized arguments: %srI)parse_known_argserrorrj)r1rrrrargvs r parse_argszArgumentParser.parse_argssc**!5" +$$ d  F JJ3chhtnnD E E E rFc tjddn9ttrnt jD]}|j |_|r dDt_ r"dt f}d|ij t<j ƉjD]} |}|r|js|js|js|jst|t"jsot|t"jsU|dj} j | zdd|_g} d} fd jD} | D]} | j}|}| jst| t"jryd } |d rb|d rM t9j|}n7#t<$r*d |dddD}YnwxYw| | ||z } | r| zn| z| r(tfd| Dj t@<tCdjD}|odvpdv}fdjD}g}|tE|}d|_#|g}n|s$}tK|D]} j&'|}n,#tP$r})|Yd}~nd}~wwxYwtU|dr|+n*#tU|dr|+wwxYwg}d} |,D]\}}||vr$||} t[| jj}n3d} j.p)t[/|gj}|s|| ||z }t`d|j#}|j vrtj |<| |fj ||<| r| jst| t"jrd } | r|z|zt}jD]} | j p| jtbtdfv}t[| jjs.|r,| j3%| j3thkst| tjri| jr| jd}n| j6}| t| j3f||<|r|j tn<t"j89\}fdjD}d|D}:|d |fS)aSupports all the same args as the `argparse.ArgumentParser.parse_args()`, as well as the following additional args. Arguments: args: a list of args as in argparse, or a string (eg. "-x -y bla") config_file_contents (str). Used for testing. env_vars (dict). Used for testing. ignore_help_args (bool): This flag determines behavior when user specifies ``--help`` or ``-h``. If False, it will have the default behavior - printing help and exiting. If True, it won't do either. Returns: tuple[argparse.Namespace, list[str]]: tuple namescpace, unknown_args NrUcg|]}|dv| S))-h--helpr)rQargs rrSz3ArgumentParser.parse_known_args..s#GGGC36F+F+FC+F+F+FrrJr-_Fcxg|]6}|js-|jr&|jvt|jj4|7Sr)is_positional_argenv_varalready_on_command_lineoption_strings prefix_chars)rQarrr1s rrSz3ArgumentParser.parse_known_args..sd'\'\'\Q&'\+,9'\9:h9N9N/a6FHYZZ:O()9N9N9NrTrDrLc6g|]}|SrrNrPs rrSz3ArgumentParser.parse_known_args..)rTrrVrWc<g|]}|j||jffSr)r)rQrrs rrSz3ArgumentParser.parse_known_args..4s<:::)a!)!456:::rc3NK|] }t|tj|V!dSr)r r _HelpActionrQrs r z2ArgumentParser.parse_known_args..8sQ M M 1h6J(K(K M  M M M M M MrrrcFi|]}|D]}||Sr)get_possible_config_keys)rQr config_keyr1s r z3ArgumentParser.parse_known_args..>sVEEEF";;FCCEE(EEEErz method argclose|)rrc^g|])}t|ddt|jd*S)rFN)rcr)rQrrs rrSz3ArgumentParser.parse_known_args..sOSSS! '+I5 Q QSWY==SSSrcg|]}||Srrrs rrSz3ArgumentParser.parse_known_args..sKKK1Q]Q]]]r) exit_after);sysrr rlrari_actionsrrr_source_to_settings_COMMAND_LINE_SOURCE_KEYrrrrrr _VersionActionrrOrruppernargs _AppendActionrYr]r^r_r` convert_item_to_command_line_arg_ENV_VAR_SOURCE_KEYanyrr_open_config_filesreversedrr5r;rhasattrrr7rr4get_command_line_key_for_unknown_config_file_setting_CONFIG_FILE_SOURCE_KEYOPTIONAL ZERO_OR_MORErSUPPRESS#ACTION_TYPES_THAT_DONT_NEED_A_VALUEr_DEFAULTS_SOURCE_KEYrrwrite_config_file)r1rrrrrra_v_pairconfig_file_keysstripped_config_file_key env_var_argsractions_with_env_var_valuesr rErGsupports_help_argskip_config_file_parsingknown_config_keysconfig_streamsr4 config_itemsrf config_argsdiscard_this_key source_keydefault_settingscares_about_default_value unknown_argsoutput_file_pathss``` ` rrzArgumentParser.parse_known_argss* <8ABB
  $ 0] U U#'#@#@#C#C #UQYU!:MU+U/0/MUq("9::Uq("677U0@/B/H/H)0+0+,!%!:!9":;B73;L;LUUWWI '\'\'\'\'\'\$-'\'\'\#2 $ $F.CSME| Rz&(2HII R##C((RU^^C-@-@RR $ 5 1 1$RRR Q Q%"+:K:KC:P:P Q Q QR DAAU$$ $LL  ',&DD$&D  ;f3T5F(H(H$$"F'+'L(// !VVWZ[[\ -//% ( %4#H#HU$,$,,K+B+B+BFKK!PJ!)AAA?J}}0MNMN'N,c|jS)ar If called after `parse_args()` or `parse_known_args()`, returns a dict that contains up to 4 keys corresponding to where a given option's value is coming from: - "command_line" - "environment_variables" - "config_file" - "defaults" Each such key, will be mapped to another dictionary containing the options set via that method. Here the key will be the option name, and the value will be a 2-tuple of the form (`argparse.Action` obj, `str` value). Returns: dict[str, dict[str, tuple[argparse.Action, str]]]: source to settings dict )rr0s rget_source_to_settings_dictz*ArgumentParser.get_source_to_settings_dicts ''rcX|D]g} ||d5} dddn #1swxYwY3#t$r(}td||d}~wwxYw|r||j|}|j|}|D]E}||d5}||dddn #1swxYwYFtdd |z|r| ddSdSdS)a4Write the given settings to output files. Args: parsed_namespace: namespace object created within parse_known_args() output_file_paths: any number of file paths to write the config to exit_after: whether to exit the program after writing the config files wNz Couldn't open {} for writing: {}zWrote config file to rhr) rIOErrorrrb get_items_for_config_file_outputrrr8rmprintrjexit) r1parsed_namespacerroutput_file_path output_filerfr file_contentss rrz ArgumentParser.write_config_files!2 * *  *001A3GG; * * * !C!J!J$a")")*** *  @@(*:<>|LLM$5 5 5 001A3GG5;%%m444555555555555555 )DII6G,H,HH I I I  !     s?6* 6. 6. 6 A(#A##A(<CC" %C" c`||j}|jddz|z}|S)aMCompute a commandline arg key to be used for a config file setting that doesn't correspond to any defined configargparse arg (and so doesn't have a user-specified commandline arg key). Args: key: The config file key that was being set. Returns: str: command line key r)rOr)r1rEkey_without_prefix_charscommand_line_keys rrzCArgumentParser.get_command_line_key_for_unknown_config_file_settings8$'99T->#?#? ,Q/14LLrct}|D]\}}|tkr|d\}}|jD]}||} | r{|jstt ||j|jrYt||j d} | At| tr!t| } | || d<|tkrY|D]B\} \}} ||} | r#t||j d} | | || d<C|t"r$|D] \} \}} | || <[|t$krW|D]B\} \}} ||} | r#t||j d} | | || d<C|S)aConverts the given settings back to a dictionary that can be passed to ConfigFormatParser.serialize(..). Args: source_to_settings: the dictionary described in parse_known_args() parsed_namespace: namespace object created within parse_known_args() Returns: OrderedDict: where keys are strings and values are either strings or lists rJNr)rr7rrrrrrrrcrr boolrllowerrrYrr) r1source_to_settingsrconfig_file_itemssourcesettingsrexisting_command_line_argsr rrGrEs rrz/ArgumentParser.get_items_for_config_file_outputsW(MM 2 8 8 : : K K FH11108 --"m K KF'+'D'DV'L'L$'K0HK/0J060E040ACCK!((8&+t L L ,)%66;(+E (8(8(:(:EJ-.>q.AB K...,4NN,<,<KK(C&%'+'D'DV'L'L$'K '(8&+t L L ,EJ-.>q.AB K ""#:;; K,4NN,<,<33(C&%-2%c**3///,4NN,<,<KK(C&%'+'D'DV'L'L$'K '(8&+t L L ,EJ-.>q.AB  rc g}|||}nt|s |jd}|?t|tr)|dvrHt|s||n||jdn|dvr3t|sn||jdn_t|tjrJ|D]$ t fd|jDrd}%||jdgt|zz }n| d|d |d nt|trg|duoj|j duoat|tjpt|tjo-|j d vp$t|j to |j dk}|t|tjr|D]}}|rRt|tr=|||D]$}|t!|%V||d t!|~n|r=|||D]$}|t!|%n|| |d |dn`t|t r||d |n0t#dt'|||S)aConverts a config file or env var key + value to a list of commandline args to append to the commandline. Args: action: The argparse Action object for this setting, or None if this config file setting doesn't correspond to any defined configargparse arg. key: string (config file key or env var name) value: parsed value of type string or list Returns: list[str]: args NrV)rKyes1r)falseno0rUc:g|]}|SrrY)rQsrs rrSzCArgumentParser.convert_item_to_command_line_arg..*s%MMM!CNN1--MMMrzUnexpected value for z: 'z5'. Expecting 'true', 'false', 'yes', 'no', '1' or '0')+*ruz can't be set to a list 'zS' unless its action type is changed to 'append' or nargs is set to '*', '+', or > 1z&Unexpected value type {} for value: {})ris_boolean_optional_actionrr rr)appendr _CountActionrintrrir _StoreActionrrlrrbr) r1r rErGrr&accepts_list_and_has_nargs list_elemsub_elemrs @rrz/ArgumentParser.convert_item_to_command_line_args >II#NN  .f55 =#)#8#<   *V5X"Y"Y {{}} 4441&99:KK!13333KK 5a 89999"6661&99:KK 5a 89999FH$9:: N""CMMMMv7LMMMNN" !.q12SZZ?? ADeeeMNNNN t $ $ %)/t);* TX@X*fh&;<<j 6S[Si@j@j* *bz&,/L/L/aQWQ]`aQa ' ~FH4J!K!K~!&TTI1TjD6Q6QT $4555(177H KKH 66667 0@0@0@#i...%QSSSS T, _ -///!&22IKKY11112 RURURUW\W\W\^____ s # # % KK$4$4$4ee< > > > >ELLU U$$%% % rcg}t|ddr|S|jD]1tfd|jDr|ddgz }2|S)aThis method decides which actions can be set in a config file and what their keys will be. It returns a list of 0 or more config keys that can be used to set the given action's value in a config file. Returns: list[str]: keys rNc3HK|]}d|zVdS)r$Nr6)rQcrs rrz:ArgumentParser.get_possible_config_keys..]s3BB13>>!A#&&BBBBBBrr$)rcrrr)r1r keysrs @rrz'ArgumentParser.get_possible_config_keysNs| 694 @ @ K( ' 'CBBBB0ABBBBB 'QRR#& rcg}ttjttjj|jD]/}|D]*}|||+0d|jD}|s|S|D]Q}tj |j d}| |d}tj|||_||} | si| \} } t#| |jd} | stj| } || } n#t&$r}t)|jdkr |j\}}nt-|}|D]'} |#t&$rY$wxYw|d| d |Yd}~nd}~wwxYw|| gz }S|S) aTries to parse config file path(s) from within command_line_args. Returns a list of opened config files, including files specified on the commandline as well as any default_config_files specified in the constructor that are present on disk. Args: command_line_args: List of all args Returns: list[IO]: open config files c4g|]}t|dd|SrFrcrs rrSz5ArgumentParser._open_config_files..vsA(Q(Q(Q3G(O(O(Q (Q(Q(QrF)radd_helpcdSrr)r1messages r error_methodz7ArgumentParser._open_config_files..error_methodsr)rNr$zUnable to open config file: z . Error: )rkglobospath expanduserrr;rrr rr _add_actiontypes MethodTyperrrcrr`r"rrlr)r1command_line_args config_filesfilesfuser_config_file_arg_actionsr arg_parserrM parsed_argrruser_config_filer4rferrnor@rs rrz!ArgumentParser._open_config_filesbs C(:D > @ @ < < FH\\#&&F4VAY?%qrr BSBSSF GGFOOO(0(8(8 < <$_fe<GGN11#c'5AABBBB!%--<5 01111#E400<388E?? :;;; <zz||rcT||dS)zBPrints the format_values() string (to sys.stdout or another file).N)rmra)r1files r print_valueszArgumentParser.print_valuess& 4%%''(((((rc $d}d}d}jrj}djdz}fdjD}djD}|r|s|rd_d}|d|d |ddd z }d d |D}|rd |z}|s|rG|dd t |t t d|gzzz }|djzz }j r_djD} | D]K\} } | j tkrd| z} | j sd| _ | | j vr| xj | z c_ d}d_ L|s|r.dg} |rdg| z} |rdg| z} |dd| zz }t jd}tj||}t"j|dkrd|ndzS)NrJFr$rcg|]>}|jD]4}|r|jdk"|j)|j0||f5?S)r)rrrrr)rQrrr1s rrSz.ArgumentParser.format_help..sq$2$2$2 $2$2$($A$A!$D$D$26!!Q%9!/"&)!H!!!!rc4g|]}t|dd|SrHrIrs rrSz.ArgumentParser.format_help..s@#J#J#J!(,@%!H!H#J1#J#J#JrTzArgs that start with 'z' (eg. z") can also be set in a config filez or c3>K|]}|j |jdVdS)rN)rrs rrz-ArgumentParser.format_help..sN0F0FA4D0F0@0C0F0F0F0F0F0Frzspecified via z (%s).rIcBg|]}t|dd|j|fS)rN)rcrrs rrSz.ArgumentParser.format_help..s>???!")!Y"="=? 1~???rz [env var: %s]rzconfig file valueszenvironment variableszT If an arg is specified in more than one place, then commandline values override %s.z which override z {} )rrrrrjr_filterrr2rrrmax_get_formatter_widthtextwrapfillr r format_helprb)r1r@added_config_file_helpadded_env_var_helprccconfig_settable_argsconfig_path_actionsconfig_arg_stringenv_var_actionsrrenv_var_help_string value_sources text_widths` rrqzArgumentParser.format_helps!&"  % O#'#= 4$Q''B$2$2$2$2dm$2$2$2 #J#J #J#J#J $ O)= O)< O-2*)-&,.BB0DQ0G0J0J0JLL$*KK0F0F00F0F0F%F%F!$M(8;L(L%'\+<\8fkk%8L2M2M27tFWEX8Y8Y2Z2Z3['\'\\\CsT5LLNNNN  ! 3??t}???O- 3 3 6X%%&87&B#v AF&af44FF11FF)-&-2D*  8!7 8'LM% G!5 6 F ! J!8 9M I 2"'' 668 8C,,..5r:: mC,,'33D99),%%%< =rr)r'r(r)r*rrOenvironrrrrrrrrrrarstdoutrdrqrrrrrXs/h3h3h3T!%$*.2:4!%Z" s's's's'j((($:   -!-!-!^JJJX(IIIV<#&*)))):=:=:=:=:=rrc6|dd}|ddp|dd}|dd}|j|i|}|j |_||_||_||_|jr|rtd|jr)t|tj std|jrBd}t|tj st|d z|rt|d z|S) aH This method supports the same args as ArgumentParser.add_argument(..) as well as the additional args below. Arguments: env_var: If set, the value of this environment variable will override any config file or default values for this arg (but can itself be overridden on the commandline). Also, if auto_env_var_prefix is set in the constructor, this env var name will be used instead of the automatic name. is_config_file_arg: If True, this arg is treated as a config file path This provides an alternative way to specify config files in place of the ArgumentParser(fromfile_prefix_chars=..) mechanism. Default: False is_write_out_config_file_arg: If True, this arg will be treated as a config file path, and, when it is specified, will cause configargparse to write all current commandline args to this file as config options and then exit. Default: False Returns: argparse.Action: the new argparse action rNris_config_filerz*env_var can't be set for a positional arg.z9arg with is_config_file_arg=True must have action='store'z+arg with is_write_out_config_file_arg=True zmust have action='store'z'can't also have is_config_file_arg=True) roriginal_add_argument_methodrrrrrrr r r>)r1rrrrrr error_prefixs rrr sm2jjD))Gd$$ '-zz$( ( $*::&$.$. /T . ? ? ?F#)#88FFN 2F*FF' GGGEFFF  +FH.Ts9'4 "r)rar;r)existing_args_listpotential_command_line_argsr arg_string option_string explicit_argrs @rrrEsI())  )*Q-<77C:rs  ######v!!!!!!(0'@  5  ;'=#v'..x/MNNN!b!b!5!5&+e,O&P&P# ....&          * ! (   %C%C%C%C%Cv%C%C%CP22222 222OOOOO.OOOdFFFFF#3FFFR7G7G7G7G7G+7G7G7Gv*-'!q =q =q =q =q =X,q =q =q =h666r,;C:T:a7*6' & &B4 ( F& .      "      $ *'"  %  %-%?%L"!)!;!H%0+<* 17r