index
int64 0
731k
| package
stringlengths 2
98
⌀ | name
stringlengths 1
76
| docstring
stringlengths 0
281k
⌀ | code
stringlengths 4
8.19k
| signature
stringlengths 2
42.8k
⌀ | embed_func_code
listlengths 768
768
|
|---|---|---|---|---|---|---|
721,919
|
apprise.asset
|
__init__
|
Asset Initialization
|
def __init__(self, plugin_paths=None, **kwargs):
"""
Asset Initialization
"""
# Assign default arguments if specified
for key, value in kwargs.items():
if not hasattr(AppriseAsset, key):
raise AttributeError(
'AppriseAsset init(): '
'An invalid key {} was specified.'.format(key))
setattr(self, key, value)
if plugin_paths:
# Load any decorated modules if defined
N_MGR.module_detection(plugin_paths)
|
(self, plugin_paths=None, **kwargs)
|
[
-0.00849927682429552,
-0.08776506781578064,
-0.010140768252313137,
0.021211715415120125,
0.006023361347615719,
-0.004067250527441502,
0.02914559096097946,
0.07645701617002487,
-0.0507403202354908,
0.0302034392952919,
0.03501848131418228,
0.08951599150896072,
-0.015065242536365986,
0.0014146462781354785,
-0.08222047239542007,
-0.03757191076874733,
0.02431230992078781,
0.07470609247684479,
-0.035729795694351196,
-0.08732733875513077,
-0.045122772455215454,
0.00815729983150959,
-0.025643741711974144,
0.02298087812960148,
0.028999680653214455,
0.0984165221452713,
0.051360439509153366,
0.025661980733275414,
0.0072088828310370445,
-0.04439321905374527,
-0.00705841276794672,
0.014326571486890316,
0.021120522171258926,
0.05168873816728592,
0.041256148368120193,
-0.04614414647221565,
0.002749498002231121,
0.04450265318155289,
-0.11315346509218216,
0.03029463440179825,
0.06368986517190933,
0.008056986145675182,
0.0632886067032814,
-0.022087177261710167,
0.0014454242773354053,
0.009821590036153793,
0.00631974171847105,
-0.0053439661860466,
-0.001301793847233057,
-0.012748915702104568,
0.01856709085404873,
0.02040920779109001,
0.06131881847977638,
0.015347943641245365,
-0.0419127456843853,
0.15626996755599976,
0.022597864270210266,
0.09878130257129669,
-0.03808259963989258,
0.04355423524975777,
-0.04096432775259018,
-0.0050430260598659515,
0.05318431928753853,
-0.025680219754576683,
-0.026464488357305527,
-0.02633681707084179,
-0.06321565806865692,
-0.014308332465589046,
0.022214848548173904,
0.0663527250289917,
0.0009005403844639659,
0.00994926132261753,
0.0341065414249897,
-0.01561240665614605,
0.08820279687643051,
-0.018785955384373665,
-0.0688696801662445,
0.018804194405674934,
0.006534047424793243,
0.040745463222265244,
0.021540014073252678,
-0.006265025120228529,
-0.06438294053077698,
-0.030477022752165794,
0.01561240665614605,
-0.0400523878633976,
-0.042678773403167725,
-0.05256420001387596,
0.05347613990306854,
-0.0019378716824576259,
-0.07171493023633957,
0.04300707206130028,
0.017946971580386162,
0.02786887437105179,
0.007272718474268913,
0.027960069477558136,
0.02487771213054657,
-0.02785063534975052,
0.02290792390704155,
0.006260465364903212,
-0.006274144630879164,
-0.07321051508188248,
0.0011171260848641396,
-0.02097461186349392,
0.022725535556674004,
-0.03598513826727867,
-0.018858911469578743,
0.0050931829027831554,
0.030568215996026993,
0.019697895273566246,
-0.010715290904045105,
-0.034817855805158615,
-0.02150353603065014,
0.033322274684906006,
-0.06963571161031723,
-0.05705094337463379,
0.0007745787152089179,
-0.01021372340619564,
0.09768696874380112,
0.002407520543783903,
-0.04727495089173317,
0.05814526975154877,
-0.019278403371572495,
0.05949494242668152,
0.0994378924369812,
-0.015393541194498539,
0.004354511853307486,
0.024731801822781563,
0.00029951517353765666,
-0.03403358533978462,
0.0844820886850357,
-0.003675116691738367,
-0.04519572854042053,
-0.06562317162752151,
-0.060188014060258865,
-0.02635505422949791,
0.05106861889362335,
0.01847589761018753,
-0.021302908658981323,
0.0253701601177454,
-0.01801992766559124,
0.015730958431959152,
-0.023673951625823975,
-0.004074090160429478,
-0.005726980976760387,
0.016022779047489166,
-0.0036386391147971153,
0.009502410888671875,
0.004169844090938568,
-0.01094327587634325,
0.02969275414943695,
-0.03667820990085602,
-0.001867196406237781,
0.05690503120422363,
0.01266684103757143,
-0.04691017419099808,
-0.020646313205361366,
0.023290937766432762,
0.015347943641245365,
0.006958099082112312,
0.001761183375492692,
0.02972923219203949,
-0.004014814272522926,
0.007541740778833628,
-0.031899649649858475,
-0.030841797590255737,
-0.02686574123799801,
-0.044539131224155426,
-0.01946079172194004,
0.02298087812960148,
-0.015849510207772255,
-0.0685778558254242,
-0.03177197650074959,
0.013387273997068405,
0.031425438821315765,
0.0420951321721077,
-0.010241081938147545,
-0.01627812162041664,
-0.0018934146501123905,
0.04038068652153015,
0.02923678420484066,
0.012539169751107693,
-0.05252772197127342,
0.03065940923988819,
0.019114254042506218,
0.015849510207772255,
0.03153487294912338,
-0.020172104239463806,
0.0199350006878376,
0.025661980733275414,
0.023236220702528954,
0.06518544256687164,
0.023673951625823975,
0.00973039586097002,
0.004536899738013744,
-0.013350795954465866,
0.002298087812960148,
-0.0410737618803978,
-0.0868896096944809,
0.08426322042942047,
-0.04045364260673523,
0.0023117668461054564,
-0.02639153227210045,
0.010159007273614407,
0.047092560678720474,
-0.0013815885176882148,
0.02633681707084179,
0.004607575014233589,
-0.02823365107178688,
0.021211715415120125,
-0.019205449149012566,
-0.025169532746076584,
-0.007322875317186117,
0.03609456866979599,
-0.016287241131067276,
-0.019205449149012566,
0.012785393744707108,
0.04038068652153015,
0.029929857701063156,
0.030039291828870773,
0.02051864191889763,
0.06230371445417404,
0.0027472181245684624,
0.012265588156878948,
-0.028142455965280533,
0.016469629481434822,
0.0004163574194535613,
0.013259601779282093,
-0.03117009624838829,
0.04917178303003311,
-0.052418287843465805,
0.023090310394763947,
-0.023619236424565315,
0.007122248411178589,
-0.031024185940623283,
-0.017928732559084892,
0.07160549610853195,
0.04833279922604561,
-0.07189732044935226,
-0.0380096435546875,
0.045086294412612915,
0.034909047186374664,
-0.029820425435900688,
-0.06128234416246414,
-0.03518262878060341,
-0.0359668992459774,
-0.049463603645563126,
-0.02978394739329815,
-0.02582613006234169,
-0.03365057334303856,
0.05008372291922569,
0.019734373316168785,
-0.005882010329514742,
0.014180661179125309,
-0.06689988821744919,
-0.03594866022467613,
0.04238695278763771,
-0.01851237379014492,
0.020263297483325005,
-0.01657906174659729,
-0.00476488471031189,
-0.05788992717862129,
0.02143058180809021,
0.04866109788417816,
0.018840672448277473,
0.01387972105294466,
0.04526868090033531,
-0.006698196288198233,
-0.04986485838890076,
-0.013396392576396465,
0.057306285947561264,
0.03399710729718208,
0.0015081200981512666,
0.0015012805815786123,
0.017819300293922424,
0.0013040736084803939,
0.008129941299557686,
-0.049500081688165665,
-0.01904129981994629,
0.059677328914403915,
0.0885675773024559,
0.011198618449270725,
0.019716134294867516,
0.03175373747944832,
0.007769725751131773,
-0.0841902643442154,
-0.014290093444287777,
0.023564519360661507,
-0.07492496073246002,
-0.021284671500325203,
0.016433151438832283,
0.04672778770327568,
-0.004304355010390282,
0.006898823194205761,
0.03704298660159111,
0.007915635593235493,
-0.03324931859970093,
0.048004500567913055,
-0.004974630661308765,
-0.052819542586803436,
0.010168126784265041,
-0.049463603645563126,
0.016205167397856712,
-0.011235096491873264,
-0.03259272128343582,
-0.016670256853103638,
-0.011435722932219505,
-0.0011513237841427326,
-0.01270331908017397,
0.039724089205265045,
0.0763840600848198,
0.04464856535196304,
0.01605013757944107,
0.009858067147433758,
-0.010742648504674435,
-0.01957022398710251,
0.03844737261533737,
-0.02000795491039753,
0.007309196051210165,
0.019643180072307587,
-0.006023361347615719,
0.01949726976454258,
-0.03124305047094822,
-0.006803069729357958,
0.025698458775877953,
0.01416242215782404,
0.03219147026538849,
0.0033262998331338167,
-0.0420951321721077,
-0.005161578301340342,
-0.0605892688035965,
0.03605809435248375,
0.00779708381742239,
0.008275851607322693,
-0.024075206369161606,
-0.020792223513126373,
-0.03220970556139946,
-0.08411730825901031,
-0.008681665174663067,
-0.010031335987150669,
0.03954170271754265,
-0.020281536504626274,
-0.0731375589966774,
0.0419127456843853,
-0.0410737618803978,
-0.0001147049042629078,
0.029638037085533142,
-0.055409450083971024,
0.0326656773686409,
-0.03210027515888214,
-0.010414350777864456,
-0.006420054938644171,
-0.022050699219107628,
0.03133424371480942,
0.03928636014461517,
-0.03445307910442352,
-0.0419127456843853,
-0.022306043654680252,
-0.01561240665614605,
-0.039760567247867584,
0.02046392485499382,
-0.0022627501748502254,
-0.0544610358774662,
0.020573357120156288,
-0.00670275604352355,
-0.024549415335059166,
0.04771267995238304,
0.0005739519838243723,
0.02828836627304554,
-0.07587337493896484,
-0.009160433895885944,
-0.008667985908687115,
-0.017253898084163666,
-0.004178963135927916,
0.04475799575448036,
-0.012028483673930168,
0.048004500567913055,
-0.009465932846069336,
-0.02152177505195141,
-0.022524908185005188,
-0.05996914952993393,
0.04771267995238304,
-0.006880584638565779,
-0.027960069477558136,
0.0013063534861430526,
-0.0066525996662676334,
-0.005498996004462242,
0.006027921102941036,
0.004158444702625275,
-0.004295235499739647,
0.05365852639079094,
-0.037316568195819855,
-0.016569942235946655,
-0.0050430260598659515,
0.015238511376082897,
-0.03753543645143509,
0.005416921339929104,
0.034343644976615906,
0.03304869309067726,
0.002767736790701747,
0.025661980733275414,
-0.11220505088567734,
0.04380957782268524,
0.018293509259819984,
0.0008070665644481778,
-0.000803076836746186,
0.045998234301805496,
-0.008882291615009308,
0.038775671273469925,
-0.03467194363474846,
-0.011235096491873264,
-0.007774285040795803,
-0.037316568195819855,
-0.06938036531209946,
-0.02971099317073822,
0.005179816856980324,
0.06503953039646149,
-0.03704298660159111,
-0.014782541431486607,
-0.04198570176959038,
0.032848063856363297,
0.008444560691714287,
-0.0033308593556284904,
-0.030075768008828163,
0.04282468557357788,
0.0019276123493909836,
0.01485549658536911,
-0.005508115515112877,
-0.0026879420038312674,
-0.0036773965694010258,
-0.05788992717862129,
0.08236638456583023,
-0.048478711396455765,
-0.054789330810308456,
0.00975775346159935,
-0.0008281551417894661,
0.022050699219107628,
-0.043225936591625214,
0.001292674452997744,
0.0012881146976724267,
-0.018858911469578743,
-0.005540033336728811,
0.00849927682429552,
0.005954965483397245,
-0.04687369614839554,
0.016168689355254173,
-0.03465370461344719,
0.08170978724956512,
0.01989852264523506,
-0.05117805302143097,
-0.03565683960914612,
0.03600337728857994,
-0.0007398109883069992,
-0.04490390792489052,
0.009858067147433758,
-0.03815555199980736,
-0.001714446465484798,
0.017117107287049294,
0.017646031454205513,
-0.019260164350271225,
-0.012840109877288342,
0.008841254748404026,
-0.001251637120731175,
-0.08820279687643051,
0.0034676503855735064,
0.05252772197127342,
0.03069588728249073,
-0.017217420041561127,
0.00021188346727285534,
0.0009746354771777987,
0.024604130536317825,
-0.01075176801532507,
0.033395227044820786,
-0.02538839913904667,
-0.002350524300709367,
-0.00450498191639781,
0.03469018265604973,
0.012931304052472115,
-0.05522706359624863,
-0.043627191334962845,
-0.01337815448641777,
0.021612968295812607,
0.02577141299843788,
0.02101108804345131,
-0.0075554195791482925,
-0.00038472452433779836,
0.0219777449965477,
-0.07616519927978516,
0.029054395854473114,
-0.003964657429605722,
-0.024129921570420265,
0.00488799624145031,
-0.005330286920070648,
0.04822336882352829,
-0.004892555996775627,
0.020354492589831352,
0.07733248174190521,
0.04541459307074547,
0.05814526975154877,
-0.0062194280326366425,
-0.005138779524713755,
-0.012785393744707108,
-0.002877169521525502,
-0.03687883913516998,
-0.0021669964771717787,
0.0004306064802221954,
-0.02493242919445038,
-0.011937289498746395,
-0.01098887249827385,
0.006023361347615719,
0.00828041136264801,
-0.010058693587779999,
0.0024303190875798464,
0.004719287622720003,
0.04731142893433571,
-0.000049266112910117954,
-0.046435967087745667,
0.053330227732658386,
-0.04194922372698784,
0.024093445390462875,
0.03518262878060341,
-0.023181505501270294,
0.06376282125711441,
-0.0643099844455719,
-0.008512956090271473,
-0.002466796664521098,
0.03155311197042465,
-0.0032419452909380198,
-0.006214868277311325,
0.02143058180809021,
-0.00825305376201868,
-0.024275831878185272,
-0.09155873954296112,
0.011070947162806988,
0.0017315453151240945,
0.06288735568523407,
-0.005289249587804079,
0.03520086780190468,
0.03862976282835007,
-0.0018181796185672283,
0.008198337629437447,
0.02288968488574028,
0.05179816856980324,
-0.019314881414175034,
0.07368472218513489,
-0.05413273721933365,
-0.05996914952993393,
0.0024485578760504723,
0.019369596615433693,
-0.009041881188750267,
0.039176926016807556,
-0.014417765662074089,
-0.03219147026538849,
-0.010897678323090076,
0.045487549155950546,
-0.009821590036153793,
0.01989852264523506,
-0.09724923968315125,
-0.020846940577030182,
0.036258719861507416,
0.03273863345384598,
0.020372731611132622,
-0.06401816010475159,
-0.004644052591174841,
-0.07412245124578476,
-0.03673292696475983,
0.027923591434955597,
0.0061419131234288216,
-0.019588463008403778,
0.016916479915380478,
0.011846095323562622,
-0.05599309131503105,
-0.049536559730768204,
-0.009794231504201889,
-0.014764302410185337,
0.06186598539352417,
0.022524908185005188,
0.026446249336004257,
0.005594749469310045,
-0.039760567247867584,
0.013943556696176529,
-0.016588181257247925,
-0.02195950597524643,
-0.03565683960914612,
-0.044174354523420334,
-0.022707296535372734,
0.02290792390704155,
0.08046954870223999,
0.01891362853348255,
0.016424031928181648,
0.008225695230066776,
-0.015065242536365986,
0.006529487669467926,
-0.0019264724105596542,
-0.017819300293922424,
-0.009894545190036297,
0.006287823896855116,
-0.05052145570516586,
0.036404628306627274,
-0.03899453952908516,
-0.021831834688782692,
-0.028142455965280533,
-0.05602956935763359,
0.011545155197381973,
-0.013788526877760887,
0.014463362284004688,
-0.05223590135574341,
0.011107424274086952,
-0.017974330112338066,
0.021649446338415146,
-0.019168971106410027,
-0.021156998351216316,
0.022287804633378983,
0.04297059401869774,
0.006383577361702919,
0.0007312615634873509,
-0.01638755574822426,
0.00031718399259261787,
0.08192865550518036,
0.027449382469058037,
-0.043189458549022675,
0.015585048124194145,
0.025424877181649208,
-0.005754339043051004,
-0.015730958431959152,
-0.006689077243208885,
-0.002612706972286105,
-0.02431230992078781,
0.02050040289759636,
0.013961795717477798,
0.05405978113412857,
-0.011645468883216381,
0.01094327587634325,
-0.034909047186374664,
0.01659730076789856,
-0.010888558812439442,
0.035857465118169785,
-0.0037412322126328945,
0.04588880017399788,
0.0058500925078988075,
0.02868962101638317,
-0.029619798064231873,
-0.002988882130011916,
0.023072073236107826,
-0.014536317437887192,
0.010423470288515091,
-0.04180331155657768,
0.03793668746948242,
0.03220970556139946,
-0.022634340450167656,
0.009894545190036297,
-0.014016511850059032,
-0.05851004645228386,
0.028033023700118065,
-0.028507232666015625,
0.0790834054350853,
0.0004383009800221771,
-0.007692210841923952,
0.0544610358774662,
-0.011153021827340126,
-0.05252772197127342,
0.02721227891743183,
0.0008937008096836507,
0.043152984231710434,
0.04519572854042053,
-0.0895889475941658,
0.02241547591984272,
-0.08915121853351593,
-0.03459898754954338,
0.06139177456498146,
-0.03521910682320595,
-0.01146308146417141,
0.018220553174614906,
0.011645468883216381,
-0.004452545195817947,
0.021685924381017685,
-0.04041716456413269,
-0.023710429668426514,
0.01510171964764595,
0.018895389512181282,
-0.045524027198553085,
0.002033625263720751,
-0.015949824824929237,
0.003392415354028344,
-0.04147501289844513,
0.050995662808418274,
-0.024129921570420265,
0.01288570649921894,
0.05497172102332115,
-0.01997147686779499,
0.004060411360114813,
-0.02190478891134262,
0.05865595489740372,
0.04348128288984299,
0.030130485072731972,
-0.038666240870952606,
-0.028634903952479362,
-0.027431143447756767,
-0.03514615446329117,
0.015284107998013496,
0.07288221269845963,
-0.012393259443342686,
-0.07408597320318222,
0.019150732085108757,
-0.07696770131587982,
-0.008348806761205196,
-0.026117950677871704,
0.012758035212755203,
0.0133599154651165,
-0.03516439348459244,
0.006000562570989132,
0.030039291828870773,
0.049463603645563126,
-0.0439554899930954,
0.035784509032964706,
0.017463643103837967,
0.010833842679858208,
-0.007245360407978296,
-0.013214005157351494,
-0.04052659496665001,
0.0119646480306983,
-0.02298087812960148,
0.013496706262230873,
-0.010459947399795055,
0.01657906174659729,
-0.026646874845027924,
-0.032884541898965836,
0.018603568896651268,
0.07674884051084518,
0.013560541905462742,
-0.018658284097909927,
-0.03217323124408722,
-0.07587337493896484,
0.000667995773255825,
0.025680219754576683,
-0.04176683351397514,
0.014408646151423454,
0.013168408535420895,
0.009657440707087517,
0.022214848548173904,
-0.019624941051006317,
-0.014153302647173405,
-0.048442233353853226,
0.018047284334897995,
0.03014872409403324,
0.03518262878060341,
-0.005567391403019428,
-0.0073821512050926685,
0.012247349135577679,
0.04297059401869774,
-0.005635786801576614,
0.038228508085012436,
0.014034750871360302,
0.041183192282915115,
0.026117950677871704,
-0.04483095183968544,
-0.03983352333307266,
0.03790020942687988,
0.002637785393744707,
-0.037863731384277344,
-0.02091989479959011,
-0.09250715374946594,
0.010104291141033173,
-0.04008886590600014,
0.10571204125881195,
0.04300707206130028,
0.02088341675698757,
-0.03127953037619591
] |
721,920
|
apprise.asset
|
ascii
|
Returns an ascii representation based on passed in notify type
|
def ascii(self, notify_type):
"""
Returns an ascii representation based on passed in notify type
"""
# look our response up
return self.ascii_notify_map.get(notify_type, self.default_html_color)
|
(self, notify_type)
|
[
-0.010234707966446877,
-0.0612025260925293,
0.012291936203837395,
-0.047521959990262985,
0.05441367253661156,
-0.03740725666284561,
-0.019097931683063507,
0.03212704136967659,
0.07070006430149078,
-0.04515615105628967,
0.028766902163624763,
0.012643379159271717,
0.017555009573698044,
-0.019749386236071587,
-0.01950937695801258,
0.00008390971197513863,
-0.01978367380797863,
-0.045636169612407684,
0.022080911323428154,
-0.06216256693005562,
0.016072092577815056,
0.0015193484723567963,
0.05427652597427368,
-0.014632032252848148,
-0.009377529844641685,
0.04165886342525482,
-0.012900532223284245,
-0.05441367253661156,
0.0012193360598757863,
-0.02316095679998398,
-0.020177975296974182,
-0.10814160853624344,
-0.01884077675640583,
0.05605945736169815,
-0.005113068036735058,
0.02910977229475975,
-0.05451653525233269,
0.007264585699886084,
-0.020675139501690865,
0.03860730677843094,
-0.0487905852496624,
-0.00518164224922657,
-0.04330464452505112,
-0.06291688233613968,
-0.025458194315433502,
0.007843180559575558,
0.0038337295409291983,
0.09929552674293518,
0.03655007854104042,
-0.07577455788850784,
0.026212509721517563,
0.0009011086076498032,
-0.028886906802654266,
-0.0076117427088320255,
-0.025561055168509483,
-0.002440815092995763,
0.003700867062434554,
0.05653947591781616,
-0.005040207877755165,
0.013029108755290508,
-0.03130415081977844,
0.020983723923563957,
-0.014837754890322685,
-0.008297485299408436,
-0.004585903603583574,
0.0036108633503317833,
0.05904243513941765,
-0.027463991194963455,
-0.01064615324139595,
-0.009437532164156437,
0.045087575912475586,
0.0031372723169624805,
-0.08633498847484589,
-0.039807356894016266,
0.03445856645703316,
0.0067674219608306885,
-0.013783426024019718,
-0.011254750192165375,
0.020520847290754318,
0.037818703800439835,
0.05235644802451134,
0.029246920719742775,
0.04189887270331383,
0.024155283346772194,
0.019543664529919624,
-0.07214011996984482,
0.020280836150050163,
-0.009043230675160885,
-0.014400593936443329,
0.039807356894016266,
0.016449250280857086,
-0.06877998262643814,
-0.041315991431474686,
0.02045227214694023,
-0.03836729750037193,
-0.028304025530815125,
0.032178472727537155,
-0.010509004816412926,
0.06956858187913895,
-0.015180626884102821,
-0.02326381765305996,
0.046596210449934006,
-0.018875064328312874,
-0.054585110396146774,
-0.009814690798521042,
-0.06610558182001114,
-0.005858813412487507,
0.042550329118967056,
-0.009146091528236866,
0.011023311875760555,
0.0017315000295639038,
-0.04608190059661865,
-0.009068945422768593,
-0.07289443910121918,
0.08078047633171082,
0.03438999131321907,
-0.028098301962018013,
-0.023212386295199394,
0.004504471551626921,
-0.02016083151102066,
-0.0358300507068634,
-0.025458194315433502,
-0.011477616615593433,
0.005344506353139877,
-0.032555628567934036,
0.07467737048864365,
-0.023400966078042984,
-0.01930365338921547,
0.06264258176088333,
0.01836075820028782,
-0.006673132535070181,
0.018240753561258316,
-0.02646966464817524,
0.02082943171262741,
0.04738481342792511,
0.007213154807686806,
-0.08379774540662766,
0.027944009751081467,
0.06397978216409683,
0.06583128869533539,
-0.013149114325642586,
-0.0009948625229299068,
0.010843304917216301,
-0.006338832899928093,
0.001991868019104004,
-0.052699316293001175,
0.07193439453840256,
-0.0190122127532959,
-0.032744210213422775,
0.007406020071357489,
0.029264064505696297,
0.04097311943769455,
-0.06312260776758194,
0.017846450209617615,
0.0022136627230793238,
0.03214418515563011,
-0.0017732874257490039,
-0.015060621313750744,
0.005215929355472326,
0.022869516164064407,
-0.0022779512219130993,
-0.021138016134500504,
0.039053041487932205,
-0.02948693186044693,
-0.0016961414366960526,
0.04059595987200737,
0.063636913895607,
-0.01902935653924942,
0.07982043921947479,
-0.004564473871141672,
-0.07200296968221664,
-0.025938212871551514,
-0.060242485255002975,
0.02053799107670784,
0.03144129738211632,
0.06812852621078491,
-0.00654884148389101,
0.053830794990062714,
0.011263322085142136,
-0.006167397368699312,
0.005383079405874014,
-0.028235450387001038,
-0.09696400165557861,
0.04615047574043274,
0.032915644347667694,
-0.019423658028244972,
0.08400346338748932,
0.024841025471687317,
-0.005395936779677868,
0.0014754179865121841,
0.006073107942938805,
0.021155158057808876,
-0.04549901932477951,
0.025646772235631943,
0.03473286330699921,
-0.019715098664164543,
0.003840158460661769,
-0.07090578228235245,
-0.047624822705984116,
-0.05725950747728348,
-0.013114826753735542,
-0.003435141872614622,
-0.07018575072288513,
0.0711800828576088,
0.005507369991391897,
-0.018395045772194862,
0.07646030187606812,
0.01884077675640583,
-0.014794896356761456,
-0.028012584894895554,
-0.05341934785246849,
-0.01140047051012516,
-0.021498030051589012,
0.0069517153315246105,
0.01191477756947279,
-0.028304025530815125,
-0.03627578169107437,
0.057328078895807266,
-0.06771708279848099,
-0.001657568383961916,
-0.031509872525930405,
-0.0032101324759423733,
0.029041199013590813,
0.012549089267849922,
0.012686237692832947,
0.020760856568813324,
-0.011151888407766819,
0.012917676009237766,
-0.02561248652637005,
0.0058030965737998486,
0.028132589533925056,
0.03108128346502781,
0.026058217510581017,
0.04909916967153549,
0.003906589932739735,
-0.016363533213734627,
-0.011546190828084946,
0.008370345458388329,
-0.006175969261676073,
0.08187766373157501,
0.030206961557269096,
0.05585373193025589,
0.05890528857707977,
0.03336137533187866,
0.03041268326342106,
-0.060345347970724106,
0.026726817712187767,
0.03502430394291878,
-0.03610434755682945,
-0.00012750526366289705,
-0.028098301962018013,
-0.062299713492393494,
-0.024943886324763298,
-0.0840720385313034,
-0.004628762602806091,
0.030824128538370132,
-0.02100086584687233,
-0.00027804719866253436,
0.027549708262085915,
-0.024189569056034088,
-0.02950407564640045,
0.06932857632637024,
0.017014987766742706,
0.05852812901139259,
0.046596210449934006,
-0.035932913422584534,
-0.01706641912460327,
0.0590081512928009,
0.005344506353139877,
0.020846575498580933,
0.051293544471263885,
0.03967021033167839,
-0.02862975373864174,
-0.00654884148389101,
-0.015557784587144852,
0.000437696638982743,
0.029058342799544334,
0.00009094125562114641,
-0.020177975296974182,
-0.025509623810648918,
-0.028904050588607788,
0.022492356598377228,
0.019389372318983078,
0.03703010082244873,
-0.005074494984000921,
0.0010768302017822862,
0.04416182264685631,
0.02382955513894558,
0.003115842817351222,
-0.027532564476132393,
0.05811668559908867,
0.06312260776758194,
-0.03713295981287956,
-0.03699581325054169,
-0.012283364310860634,
0.008053189143538475,
0.026332516223192215,
0.018120747059583664,
0.010474718175828457,
0.011726198717951775,
0.0029765514191240072,
-0.048001982271671295,
0.0297783724963665,
-0.055339425802230835,
-0.060139626264572144,
0.017657872289419174,
0.005923101678490639,
-0.01135761197656393,
0.02712111920118332,
-0.0009862907463684678,
0.0019211507169529796,
0.018823634833097458,
-0.002625108230859041,
0.016037805005908012,
0.022063767537474632,
0.06757993251085281,
0.005944530945271254,
0.04052738845348358,
0.032555628567934036,
0.08942083269357681,
-0.0023636689875274897,
-0.0288354754447937,
-0.016234956681728363,
0.02573249116539955,
0.06154539808630943,
-0.032075610011816025,
-0.015197769738733768,
-0.010397572070360184,
0.07865467667579651,
-0.016372105106711388,
-0.004005165304988623,
-0.04405895993113518,
-0.004159457515925169,
-0.06319118291139603,
0.0053787934593856335,
-0.010860447771847248,
0.022955233231186867,
-0.01740928925573826,
-0.036961525678634644,
-0.05300790071487427,
-0.024909598752856255,
0.014786324463784695,
-0.022389495745301247,
0.03699581325054169,
0.020280836150050163,
-0.01789788156747818,
-0.010569008067250252,
0.0184636190533638,
-0.009523250162601471,
-0.00014652390382252634,
-0.04947632923722267,
-0.017460720613598824,
0.04251604154706001,
0.03651579096913338,
0.02477245032787323,
-0.01932079717516899,
0.005361649673432112,
-0.04354465380311012,
0.027721144258975983,
0.08331772685050964,
0.01932079717516899,
0.019852247089147568,
-0.003923733253031969,
-0.005785953253507614,
-0.07508881390094757,
0.00518164224922657,
0.04323606938123703,
0.0765288695693016,
0.07803750783205032,
0.0048602004535496235,
-0.0009386101737618446,
0.06113395094871521,
-0.07913469523191452,
-0.0425846129655838,
-0.01997225359082222,
-0.017220711335539818,
-0.015180626884102821,
0.0009520035819150507,
-0.030858416110277176,
-0.05791096016764641,
-0.001046293182298541,
0.011991923674941063,
-0.04248175397515297,
0.041693150997161865,
-0.007393162231892347,
-0.022869516164064407,
0.016277814283967018,
0.04831056669354439,
-0.045636169612407684,
0.0039601633325219154,
-0.027241123840212822,
-0.054310813546180725,
0.02478959411382675,
-0.0021611605770885944,
-0.009763260371983051,
-0.03799013793468475,
0.008421775884926319,
0.03672151640057564,
-0.01781216450035572,
0.005871670786291361,
0.002552248304709792,
0.03286421298980713,
-0.04700765386223793,
-0.052322160452604294,
-0.010123275220394135,
0.024703877046704292,
0.013783426024019718,
0.01713499240577221,
-0.007273157127201557,
-0.03176702558994293,
0.005665948148816824,
0.04608190059661865,
-0.05763666331768036,
-0.06504268199205399,
-0.013869144022464752,
0.004744481761008501,
-0.03627578169107437,
-0.015549213625490665,
-0.02703540213406086,
0.009711829014122486,
-0.05530513823032379,
-0.015180626884102821,
0.052905041724443436,
0.014966332353651524,
0.055339425802230835,
-0.0065016970038414,
0.01866934262216091,
0.016817836090922356,
0.01921793632209301,
0.033601388335227966,
0.01751215197145939,
-0.021446598693728447,
-0.04707622900605202,
-0.07481451332569122,
0.07296301424503326,
0.0042858910746872425,
0.0015150625258684158,
-0.057328078895807266,
-0.024155283346772194,
-0.001183977467007935,
-0.00870464462786913,
0.034715719521045685,
-0.004365180153399706,
0.02326381765305996,
0.0237266942858696,
-0.009214665740728378,
-0.07248298823833466,
-0.04673335701227188,
0.00701600406318903,
-0.04995634779334068,
-0.02552676759660244,
0.01195763610303402,
0.0229038018733263,
-0.028304025530815125,
0.06353405117988586,
-0.023143813014030457,
0.001174334203824401,
0.027258267626166344,
-0.03382425382733345,
-0.01770930178463459,
-0.04231031611561775,
0.013723423704504967,
-0.07995758205652237,
-0.03397854417562485,
-0.008083190768957138,
-0.006831710692495108,
-0.014854898676276207,
0.006064536049962044,
-0.027738288044929504,
0.009660398587584496,
-0.014812040142714977,
-0.007127436809241772,
-0.020572276785969734,
0.01666354574263096,
-0.01332054939121008,
0.04001307860016823,
-0.022200915962457657,
0.023229530081152916,
-0.059762466698884964,
-0.015043478459119797,
-0.031012708321213722,
0.003484429558739066,
0.002663681283593178,
-0.06415122002363205,
-0.01191477756947279,
-0.04937346652150154,
0.0655227079987526,
0.0025051033589988947,
-0.02552676759660244,
0.023332390934228897,
-0.022749509662389755,
0.03346423804759979,
-0.02929835207760334,
0.011177604086697102,
0.08002615720033646,
0.0074145919643342495,
0.009368957951664925,
0.0011046885047107935,
-0.009446104057133198,
-0.023315247148275375,
0.04985348507761955,
-0.06826567649841309,
0.02316095679998398,
0.002148302970454097,
0.05575087293982506,
-0.07011718302965164,
0.03775012865662575,
0.03946448490023613,
0.03994450718164444,
0.031012708321213722,
0.01408343855291605,
0.03751011937856674,
0.06723706424236298,
-0.06799137592315674,
-0.018035029992461205,
-0.04543044790625572,
0.01957795023918152,
0.0025008174125105143,
0.005541657097637653,
0.003872302593663335,
0.011854775249958038,
0.00558451609686017,
-0.017486436292529106,
-0.009866121225059032,
0.006368834059685469,
0.02739541605114937,
-0.015137767419219017,
0.003773727221414447,
-0.0495791882276535,
0.030841272324323654,
-0.007954614236950874,
0.028972623869776726,
0.04543044790625572,
-0.040355950593948364,
-0.0055202278308570385,
0.026898253709077835,
-0.044881854206323624,
0.031801313161849976,
-0.023400966078042984,
-0.015609215945005417,
0.008233197033405304,
-0.06809423863887787,
-0.04453898221254349,
-0.07666601985692978,
-0.013766282238066196,
-0.013706279918551445,
0.03984164446592331,
-0.017460720613598824,
-0.02487531304359436,
-0.016886411234736443,
-0.05379650741815567,
-0.043681804090738297,
0.007290300913155079,
-0.003015124471858144,
-0.03956734761595726,
0.03426998481154442,
0.011931921355426311,
0.01650068163871765,
0.06391120702028275,
0.029246920719742775,
-0.0190122127532959,
-0.0015825653681531549,
-0.03891589120030403,
0.019440801814198494,
-0.06391120702028275,
0.07426591962575912,
-0.0032444195821881294,
0.035007160156965256,
-0.0326070599257946,
-0.05050494149327278,
0.028235450387001038,
0.026726817712187767,
0.004954490344971418,
-0.013466269709169865,
-0.02617822401225567,
0.030258391052484512,
0.050367794930934906,
0.007590313442051411,
0.027155406773090363,
0.0501277819275856,
-0.07090578228235245,
0.001599708921276033,
0.02298952080309391,
-0.04052738845348358,
0.011151888407766819,
-0.0022393781691789627,
0.013663421384990215,
0.002119373297318816,
0.007238870020955801,
0.025509623810648918,
-0.04656192287802696,
-0.057019494473934174,
0.022646648809313774,
-0.02148088626563549,
0.04316749423742294,
-0.004465898498892784,
0.06380834430456161,
0.006698847748339176,
-0.0644255131483078,
-0.00022822371101938188,
0.022938089445233345,
0.02014368772506714,
-0.013294834643602371,
-0.0327613539993763,
0.08057475090026855,
-0.056196603924036026,
0.04028737545013428,
-0.006411693058907986,
-0.042996060103178024,
-0.00017237318388652056,
-0.019560806453227997,
-0.0020979437977075577,
0.01562635973095894,
0.04529329761862755,
0.0444704070687294,
-0.02712111920118332,
0.007050291169434786,
0.007727461867034435,
-0.046870507299900055,
0.0054645114578306675,
0.006574557162821293,
0.03823015093803406,
-0.0276182834059,
0.006368834059685469,
0.012266220524907112,
-0.017092134803533554,
0.01403200812637806,
-0.0016950699500739574,
-0.0003793013747781515,
-0.06401406973600388,
0.029641224071383476,
0.03805871307849884,
-0.029229776933789253,
-0.03661865368485451,
-0.0215666051954031,
-0.018309326842427254,
0.007020289544016123,
0.01224907673895359,
-0.021069440990686417,
0.023606687784194946,
0.02252664417028427,
-0.003280849661678076,
0.0055202278308570385,
-0.04114455357193947,
0.041693150997161865,
0.12446227669715881,
-0.016166381537914276,
-0.029452644288539886,
-0.008516065776348114,
-0.03651579096913338,
-0.006415979005396366,
-0.004521615337580442,
-0.030772699043154716,
0.06421979516744614,
-0.036687228828668594,
0.10100988298654556,
0.005601659882813692,
0.02628108486533165,
-0.02005797065794468,
-0.00036805091076530516,
-0.06757993251085281,
0.048001982271671295,
-0.010706156492233276,
-0.026023931801319122,
0.028406886383891106,
-0.016072092577815056,
-0.005271646194159985,
-0.008730360306799412,
-0.025972500443458557,
-0.07018575072288513,
0.06425408273935318,
0.0406988225877285,
0.04453898221254349,
-0.04378466308116913,
0.018206465989351273,
0.04323606938123703,
-0.0015032762894406915,
0.0066131302155554295,
0.07968328893184662,
-0.00843891967087984,
0.08647213876247406,
-0.02967550978064537,
-0.03426998481154442,
0.032452769577503204,
0.04577331617474556,
-0.005991675890982151,
0.02902405522763729,
-0.02382955513894558,
-0.05736236646771431,
-0.057876672595739365,
-0.07152295112609863,
-0.03346423804759979,
-0.050436366349458694,
0.012454799376428127,
0.014546314254403114,
-0.02034941129386425,
-0.03685866296291351,
-0.06737420707941055,
0.020743712782859802,
-0.0012214790331199765,
0.050710663199424744,
-0.050916388630867004,
0.004228031728416681,
-0.010166133753955364,
0.034167125821113586,
-0.009446104057133198,
-0.007367447018623352,
-0.03487000986933708,
0.015540641732513905,
0.015232057310640812,
-0.010851876810193062,
0.06329403817653656,
0.010843304917216301,
0.02713826298713684,
-0.06133967265486717,
-0.0073717329651117325,
-0.055442288517951965,
0.0029272637329995632,
0.004997348878532648,
0.05739665403962135,
-0.01277195569127798,
-0.0006166325765661895,
-0.004963061772286892,
0.022355208173394203,
-0.009086089208722115,
0.06315689533948898,
-0.02033226750791073,
-0.008456063456833363,
-0.041761722415685654,
0.02177232690155506,
-0.002659395569935441,
-0.007808893918991089,
-0.05112211033701897,
0.015034906566143036,
-0.021720895543694496,
-0.0072431559674441814,
0.006167397368699312,
-0.017186423763632774,
0.009866121225059032,
-0.011469044722616673,
0.004348036367446184,
-0.019989395514130592,
0.008173194713890553,
-0.012574804946780205,
0.007050291169434786,
-0.03070412389934063,
0.024241000413894653,
0.04577331617474556,
0.0023443824611604214,
0.059591032564640045,
0.02826973795890808,
0.024463865906000137,
-0.04303034767508507,
0.00558451609686017,
0.08832364529371262,
0.0069517153315246105,
-0.032092753797769547,
0.027463991194963455,
0.0029444072861224413,
0.11115887016057968,
0.00922323763370514,
0.008237482979893684,
-0.03214418515563011,
0.026898253709077835,
-0.03454428166151047,
0.01712642051279545,
-0.03356710076332092,
0.022115198895335197
] |
721,921
|
apprise.asset
|
color
|
Returns an HTML mapped color based on passed in notify type
if color_type is:
None then a standard hex string is returned as
a string format ('#000000').
int then the integer representation is returned
tuple then the the red, green, blue is returned in a tuple
|
def color(self, notify_type, color_type=None):
"""
Returns an HTML mapped color based on passed in notify type
if color_type is:
None then a standard hex string is returned as
a string format ('#000000').
int then the integer representation is returned
tuple then the the red, green, blue is returned in a tuple
"""
# Attempt to get the type, otherwise return a default grey
# if we couldn't look up the entry
color = self.html_notify_map.get(notify_type, self.default_html_color)
if color_type is None:
# This is the default return type
return color
elif color_type is int:
# Convert the color to integer
return AppriseAsset.hex_to_int(color)
# The only other type is tuple
elif color_type is tuple:
return AppriseAsset.hex_to_rgb(color)
# Unsupported type
raise ValueError(
'AppriseAsset html_color(): An invalid color_type was specified.')
|
(self, notify_type, color_type=None)
|
[
0.0010517829796299338,
-0.07658623158931732,
-0.003011612920090556,
-0.000790548394434154,
0.026520445942878723,
-0.05552319064736366,
0.007337383925914764,
0.0033150557428598404,
0.02075275033712387,
-0.018361711874604225,
0.016527365893125534,
0.025224540382623672,
0.05059509724378586,
-0.009066780097782612,
-0.0003333878412377089,
0.00253705563955009,
0.00854659266769886,
-0.025133278220891953,
0.04212607443332672,
-0.041213467717170715,
0.01593416929244995,
-0.04541147127747536,
0.03234289586544037,
-0.010275987908244133,
-0.004056551493704319,
0.04150550067424774,
0.013908175751566887,
-0.008619600906968117,
0.00447178864851594,
0.0013620703248307109,
0.0019484222866594791,
-0.044243331998586655,
-0.030043119564652443,
0.03789156675338745,
0.012949935160577297,
-0.005918275564908981,
-0.03811059147119522,
0.04475439339876175,
-0.01860811747610569,
0.04552098363637924,
-0.0199496541172266,
0.005950217135250568,
-0.0063517652451992035,
-0.03953426331281662,
-0.03566479682922363,
-0.024074651300907135,
0.003613935550674796,
0.06468579173088074,
0.007195929531008005,
-0.12893353402614594,
0.03247066214680672,
0.018151812255382538,
-0.04114045575261116,
0.014665641821920872,
0.008304750546813011,
0.01726658083498478,
-0.017951037734746933,
0.10119019448757172,
-0.017202697694301605,
0.04895239695906639,
-0.0031667565926909447,
0.01588854007422924,
0.027287038043141365,
-0.0056581818498671055,
-0.004996539559215307,
0.024202415719628334,
0.050266556441783905,
-0.014528750441968441,
-0.0019484222866594791,
0.021209055557847023,
0.016846779733896255,
0.04267364367842674,
-0.07180415093898773,
-0.01389904972165823,
0.05482960864901543,
0.005822451785206795,
0.023216797038912773,
-0.003874029265716672,
0.04289266839623451,
0.027871107682585716,
0.07833843678236008,
0.04493691399693489,
0.01887277327477932,
-0.014017689041793346,
0.03719798102974892,
-0.04048337787389755,
-0.02254146710038185,
-0.021446334198117256,
-0.032014358788728714,
0.030280398204922676,
-0.020223436877131462,
-0.029605066403746605,
-0.0665840208530426,
-0.01510369498282671,
0.007410393096506596,
-0.01788715459406376,
0.012566639110445976,
-0.003048117272555828,
0.05190925672650337,
0.012484503909945488,
0.008323002606630325,
-0.044644881039857864,
-0.043038684874773026,
-0.09724771976470947,
-0.01485729031264782,
-0.08111277222633362,
-0.02962332032620907,
0.06822671741247177,
0.007629419211298227,
0.02712276764214039,
-0.015413982793688774,
-0.04855085164308548,
-0.004736445844173431,
-0.03051767684519291,
0.02328980714082718,
0.046616118401288986,
0.018270451575517654,
-0.010422006249427795,
0.010659283958375454,
-0.005950217135250568,
-0.021628856658935547,
0.0006513753905892372,
0.0008224897319450974,
0.07333733886480331,
-0.009381630457937717,
0.06986942142248154,
-0.045228950679302216,
-0.0024184163194149733,
0.018498603254556656,
0.02400164119899273,
-0.015605630353093147,
0.015724269673228264,
-0.012703530490398407,
-0.039643775671720505,
0.013871671631932259,
-0.0009525366476736963,
-0.06822671741247177,
0.049061913043260574,
0.015715142711997032,
0.06461278349161148,
-0.03336501866579056,
-0.00237050442956388,
-0.0061874957755208015,
-0.01847122609615326,
-0.005617114249616861,
-0.049901511520147324,
0.04395129531621933,
-0.007948832586407661,
-0.018626369535923004,
0.05377097800374031,
0.014693020842969418,
0.040848422795534134,
-0.020424211397767067,
0.01650911383330822,
-0.011508011259138584,
0.005420903209596872,
0.01918306201696396,
-0.018982287496328354,
0.010367249138653278,
0.005521290469914675,
-0.024822991341352463,
-0.0003177023318130523,
0.07965259999036789,
-0.000649093824904412,
0.014912046492099762,
0.03997231647372246,
0.059100620448589325,
-0.0018948063952848315,
0.06194796413183212,
-0.0455939956009388,
-0.06289707869291306,
-0.025096774101257324,
-0.03931523859500885,
0.04931744188070297,
0.005293137859553099,
0.051653724163770676,
-0.020862264558672905,
-0.007738932501524687,
0.01909179985523224,
0.012238099239766598,
0.02471347711980343,
-0.009883565828204155,
-0.07377538830041885,
0.05150770768523216,
0.015560000203549862,
-0.014191084541380405,
0.03314599394798279,
-0.028035378083586693,
0.00643846346065402,
-0.0033994722180068493,
0.02829090878367424,
0.010659283958375454,
-0.0490984171628952,
0.015039811842143536,
0.023928632959723473,
0.0010700351558625698,
-0.03110174834728241,
-0.07315481454133987,
-0.05190925672650337,
-0.028710709884762764,
0.016445230692625046,
-0.039789795875549316,
-0.10447558760643005,
0.048879388719797134,
0.019621115177869797,
-0.05070460960268974,
0.06815370917320251,
-0.01641785353422165,
-0.006205747835338116,
-0.0026625394821166992,
-0.03453316166996956,
-0.0028861290775239468,
0.000686168612446636,
0.03876767307519913,
0.03493471071124077,
-0.067095085978508,
-0.05041257292032242,
0.04479089751839638,
-0.05942916125059128,
0.019201314076781273,
-0.029148763045668602,
-0.048842884600162506,
0.07534507662057877,
0.017385220155119896,
0.03007962368428707,
0.013095952570438385,
-0.031393781304359436,
-0.006958650890737772,
-0.015569126233458519,
0.010586275719106197,
0.010568023659288883,
-0.0065707918256521225,
0.016454357653856277,
0.053077396005392075,
-0.02035120315849781,
-0.03931523859500885,
0.013022944331169128,
0.03135727718472481,
-0.034204620867967606,
0.05559619888663292,
0.011307237669825554,
0.07257074117660522,
0.05833403021097183,
0.03217862918972969,
0.05351544916629791,
-0.06380968540906906,
0.018462099134922028,
-0.023326311260461807,
-0.07527206838130951,
-0.03641313686966896,
-0.06713158637285233,
-0.028181396424770355,
-0.004763823933899403,
-0.024932503700256348,
-0.014574381522834301,
0.02949555404484272,
0.005466533824801445,
0.03708846867084503,
-0.007985337637364864,
-0.038804177194833755,
0.015541748143732548,
-0.022158170118927956,
0.09899993240833282,
0.03582906723022461,
0.04351324215531349,
-0.03986280411481857,
-0.000054863543482497334,
0.06797119230031967,
-0.0042504807934165,
0.013105079531669617,
0.09710170328617096,
0.025151530280709267,
0.022468456998467445,
0.010896562598645687,
-0.007807378191500902,
-0.0354275181889534,
-0.0008886539726518095,
-0.0007608885644003749,
0.015039811842143536,
-0.017659002915024757,
-0.02788935974240303,
0.011453255079686642,
-0.00011650036321952939,
0.0413229800760746,
0.0019164809491485357,
-0.023216797038912773,
0.04756523296236992,
0.03310948982834816,
-0.01717531867325306,
-0.0006764721474610269,
0.03814709559082985,
0.03515373542904854,
-0.049025408923625946,
-0.04296567663550377,
-0.029951859265565872,
0.03405860438942909,
0.0602322593331337,
0.04008182883262634,
0.0043622758239507675,
-0.013972058892250061,
0.01468389481306076,
-0.04876987636089325,
0.07016145437955856,
-0.04387828707695007,
-0.04734620451927185,
0.014172832481563091,
0.011325489729642868,
-0.034387145191431046,
0.0049737244844436646,
0.01641785353422165,
-0.0006217155605554581,
0.00901658646762371,
-0.0036983517929911613,
0.002079610014334321,
-0.02507852204144001,
-0.000023670820155530237,
-0.015496117062866688,
0.0030503987800329924,
0.0193655826151371,
0.06220349669456482,
-0.0042367917485535145,
-0.045667003840208054,
-0.011033454909920692,
0.01516757719218731,
0.10476762056350708,
-0.010978697799146175,
-0.032288141548633575,
0.01450137235224247,
0.04070240631699562,
0.04176103323698044,
-0.057275403290987015,
-0.0011875337222591043,
-0.0026579764671623707,
0.01178179495036602,
0.014300597831606865,
-0.03851214051246643,
-0.004647466354072094,
-0.060889337211847305,
-0.022924762219190598,
-0.05070460960268974,
-0.025991132482886314,
-0.002975108567625284,
-0.027688587084412575,
0.007957958616316319,
0.007401266600936651,
-0.006894768215715885,
0.025060269981622696,
-0.00622399989515543,
0.007095542270690203,
0.003910533618181944,
-0.019967906177043915,
0.011270733550190926,
-0.006251378450542688,
0.04051988199353218,
0.01973062753677368,
0.00007168979209382087,
-0.004460381343960762,
-0.09593355655670166,
0.052456822246313095,
0.06001323089003563,
0.010595401749014854,
0.009536773897707462,
0.02350883185863495,
-0.013378862291574478,
-0.025680843740701675,
0.011161220259964466,
-0.030827965587377548,
0.06556189805269241,
0.055267658084630966,
-0.007693301886320114,
0.007957958616316319,
0.09133400768041611,
-0.050850626081228256,
-0.051945760846138,
0.016572996973991394,
-0.04095793515443802,
0.02186613529920578,
0.03256192430853844,
-0.04628757759928703,
-0.05953867360949516,
-0.08045569807291031,
0.030189137905836105,
-0.01224722620099783,
0.03818359971046448,
-0.0025553079321980476,
-0.027469560503959656,
0.015286216512322426,
0.0028838475700467825,
-0.07443246990442276,
0.021044785156846046,
-0.024257173761725426,
-0.05252983048558235,
0.028747214004397392,
-0.03858514875173569,
0.01209208182990551,
-0.022377196699380875,
0.029605066403746605,
0.03502596914768219,
-0.009518521837890148,
-0.013387988321483135,
-0.017321337014436722,
-0.015788152813911438,
-0.019164809957146645,
-0.05581522732973099,
-0.019967906177043915,
-0.006046040914952755,
0.001213771291077137,
0.010604527778923512,
0.011416750960052013,
-0.06096234545111656,
0.0020636392291635275,
0.01837996393442154,
-0.04271014779806137,
-0.04095793515443802,
0.008199800737202168,
-0.01632659323513508,
0.0014065600698813796,
-0.03770904242992401,
-0.014108950272202492,
0.01587941311299801,
-0.024731729179620743,
-0.017914533615112305,
0.022870006039738655,
-0.006433900445699692,
0.012995566241443157,
-0.022285934537649155,
0.07348335534334183,
0.07005193829536438,
-0.028710709884762764,
0.050449080765247345,
0.06315261125564575,
0.01545961294323206,
-0.05753093212842941,
-0.06789818406105042,
0.04895239695906639,
0.03749001771211624,
0.03097398206591606,
-0.024749983102083206,
0.028856726363301277,
-0.031138252466917038,
0.005370709579437971,
0.047893770039081573,
-0.0026191906072199345,
0.005010228604078293,
-0.006347202230244875,
-0.045667003840208054,
-0.08038268238306046,
-0.02788935974240303,
0.007013407535851002,
-0.05234730616211891,
-0.0389866977930069,
0.03478869050741196,
0.004594990983605385,
-0.04490040987730026,
0.01896403543651104,
-0.01400856301188469,
-0.04380527883768082,
0.025461817160248756,
-0.0009508255170658231,
0.012000820599496365,
0.004378246143460274,
-0.016308339312672615,
-0.05742141976952553,
-0.04409731179475784,
-0.025772105902433395,
-0.0325801745057106,
-0.008811249397695065,
-0.059465665370225906,
-0.018726756796240807,
-0.019347330555319786,
-0.021300315856933594,
-0.033182498067617416,
0.007830193266272545,
0.02971458062529564,
-0.022103413939476013,
0.03351103886961937,
-0.015724269673228264,
0.001034101122058928,
-0.05837053433060646,
-0.02560783550143242,
-0.0008162155281752348,
0.026575202122330666,
0.023490579798817635,
-0.03851214051246643,
-0.020369455218315125,
-0.002427542582154274,
0.036960702389478683,
-0.027414804324507713,
-0.028491683304309845,
0.023819120600819588,
-0.0654158815741539,
-0.0314120352268219,
-0.019657619297504425,
0.003723448608070612,
0.03832961991429329,
0.03252542018890381,
0.05873557925224304,
-0.004006357863545418,
-0.00877018179744482,
-0.0008504384313710034,
0.05055859312415123,
-0.09315922856330872,
0.06946787238121033,
-0.014455742202699184,
0.05877208337187767,
-0.08469020575284958,
0.05322341248393059,
0.015678638592362404,
0.03079145960509777,
0.004759260918945074,
-0.016655132174491882,
0.04216258227825165,
0.08169684559106827,
-0.056873854249715805,
0.008642416447401047,
-0.07614817470312119,
0.04971899092197418,
-0.012676152400672436,
-0.02838216908276081,
-0.04187054559588432,
-0.013305853120982647,
0.02115429937839508,
-0.0008207786013372242,
0.016527365893125534,
0.0008264824282377958,
0.030134381726384163,
0.021409830078482628,
0.002671665744856,
-0.05632628872990608,
-0.0337483175098896,
-0.020022662356495857,
0.040410369634628296,
-0.022012151777744293,
-0.05639929696917534,
0.007136609870940447,
-0.02641093172132969,
-0.049682486802339554,
0.02850993536412716,
-0.013753032311797142,
-0.007401266600936651,
-0.02084401249885559,
-0.045046426355838776,
-0.012037325650453568,
-0.019347330555319786,
-0.012922557070851326,
-0.05384398624300957,
0.019310826435685158,
-0.001373477978631854,
-0.046214569360017776,
-0.05234730616211891,
-0.002480017486959696,
0.0044535365886986256,
0.03422287479043007,
-0.013698275201022625,
-0.013168961741030216,
0.037599530071020126,
-0.024877747520804405,
-0.029787588864564896,
0.0590641163289547,
0.02953205816447735,
-0.006803507450968027,
-0.0037667977157980204,
-0.05391699820756912,
0.024311929941177368,
-0.06647451221942902,
0.01803317293524742,
-0.017960164695978165,
-0.02004091441631317,
-0.04632408171892166,
-0.04336722567677498,
0.029203519225120544,
0.000743777141906321,
0.007132046855986118,
0.001448768307454884,
0.018261324614286423,
0.024841243401169777,
-0.0014362198999151587,
-0.00016840505122672766,
0.017595119774341583,
0.011654029600322247,
-0.04807629436254501,
0.003433695062994957,
0.027597324922680855,
-0.07724330574274063,
-0.004918967839330435,
-0.01148975919932127,
0.007510779891163111,
0.030718451365828514,
-0.0008013856131583452,
0.03133902698755264,
0.001879976480267942,
-0.04603204503655434,
0.0018503166502341628,
-0.0016255865339189768,
-0.018060551956295967,
-0.0037782052531838417,
0.08206188678741455,
-0.018553361296653748,
-0.059684690088033676,
0.0035888387355953455,
0.006990592461079359,
-0.021209055557847023,
-0.010339871048927307,
-0.0436592623591423,
0.030645443126559258,
-0.04833182319998741,
0.05877208337187767,
-0.03807408735156059,
0.016399601474404335,
0.0006884501199238002,
0.021318567916750908,
0.026392679661512375,
0.0036435953807085752,
0.10462160408496857,
0.051288679242134094,
-0.007624856196343899,
-0.0199496541172266,
0.053442440927028656,
-0.0467621348798275,
0.05844354256987572,
-0.011818299070000648,
0.05019354820251465,
0.019037043675780296,
-0.00948201771825552,
0.01892753131687641,
-0.021610604599118233,
-0.01686503179371357,
-0.0004928093985654414,
0.024622216820716858,
-0.04836832731962204,
0.041651517152786255,
0.035500526428222656,
-0.017330463975667953,
-0.050668105483055115,
-0.018215695396065712,
0.01579727791249752,
0.034551411867141724,
-0.005635366775095463,
-0.004188879858702421,
0.02476823516190052,
0.05501212924718857,
0.011745289899408817,
0.006228562910109758,
0.026301419362425804,
0.042856164276599884,
0.08651542663574219,
-0.00263287965208292,
-0.03289046138525009,
-0.004597272723913193,
-0.010586275719106197,
-0.037106722593307495,
-0.005954780150204897,
0.00983793567866087,
0.024165911599993706,
-0.08629640191793442,
0.10053311288356781,
-0.0010517829796299338,
-0.019292574375867844,
-0.062276504933834076,
0.011471507139503956,
-0.08082073926925659,
0.0860043615102768,
-0.008998334407806396,
-0.022212926298379898,
0.009500269778072834,
-0.030353408306837082,
0.0398993082344532,
0.040811918675899506,
-0.043221209198236465,
-0.02940429374575615,
-0.008564844727516174,
0.02557133138179779,
0.0963716134428978,
-0.03513548523187637,
0.0467621348798275,
0.020424211397767067,
-0.0069860294461250305,
0.025808610022068024,
0.037417009472846985,
-0.013470123521983624,
0.07811941206455231,
-0.012813043780624866,
-0.05683735013008118,
0.07717029750347137,
0.04354974627494812,
0.03029865026473999,
-0.0031074369326233864,
-0.0481858067214489,
-0.03475218638777733,
0.012730908580124378,
-0.03646789491176605,
-0.0349712148308754,
-0.026830732822418213,
-0.0018879618728533387,
0.002603219822049141,
-0.022030403837561607,
-0.06421123445034027,
0.006219436880201101,
-0.004656592383980751,
0.02360009402036667,
0.019402088597416878,
-0.04019134119153023,
-0.007907764986157417,
0.042746651917696,
0.021519342437386513,
-0.018891027197241783,
0.027907613664865494,
0.0015172141138464212,
0.04479089751839638,
0.011453255079686642,
-0.0030138944275677204,
0.03444189950823784,
0.010129970498383045,
0.027524316683411598,
-0.04895239695906639,
-0.006009536795318127,
-0.053296420723199844,
-0.005402651149779558,
-0.02776159532368183,
0.036960702389478683,
-0.01439185906201601,
-0.02878371812403202,
0.005411777179688215,
-0.0439147911965847,
-0.01722094975411892,
0.05037606880068779,
0.019511600956320763,
0.002040824154391885,
-0.027962369844317436,
0.007524469401687384,
-0.006689431145787239,
-0.0032374837901443243,
0.003600246272981167,
0.04373227059841156,
0.0009696480701677501,
0.0003037280112039298,
-0.009920069947838783,
0.010878310538828373,
-0.01524058636277914,
-0.05402651056647301,
0.011444129049777985,
-0.011727037839591503,
-0.061108361929655075,
-0.01958460919559002,
-0.005110615864396095,
0.0011122433934360743,
0.019402088597416878,
0.011006075888872147,
-0.011818299070000648,
0.028455179184675217,
0.03391258791089058,
0.0398993082344532,
-0.050449080765247345,
-0.0028838475700467825,
0.08162383735179901,
-0.00954589992761612,
-0.012037325650453568,
0.00863329041749239,
0.021263811737298965,
0.07972560822963715,
0.09096895903348923,
0.03376656770706177,
-0.06614597141742706,
-0.003901407588273287,
0.03876767307519913,
0.03749001771211624,
-0.07505304366350174,
-0.003789612790569663
] |
721,922
|
apprise.asset
|
details
|
Returns the details associated with the AppriseAsset object
|
def details(self):
"""
Returns the details associated with the AppriseAsset object
"""
return {
'app_id': self.app_id,
'app_desc': self.app_desc,
'default_extension': self.default_extension,
'theme': self.theme,
'image_path_mask': self.image_path_mask,
'image_url_mask': self.image_url_mask,
'image_url_logo': self.image_url_logo,
}
|
(self)
|
[
0.03521301969885826,
-0.06738849729299545,
-0.03729429841041565,
0.0009463030146434903,
0.034688010811805725,
-0.05996338278055191,
0.0161533635109663,
-0.0223128292709589,
0.022500332444906235,
0.03933807834982872,
-0.001396895619109273,
0.01844089664518833,
-0.0020883120596408844,
-0.02630663849413395,
-0.02330659329891205,
-0.02355034649372101,
-0.003377393586561084,
-0.02570662833750248,
-0.0004913158481940627,
-0.008761066943407059,
0.01447521336376667,
-0.011897050775587559,
-0.04008809104561806,
-0.01845964789390564,
0.008962632156908512,
0.09007632732391357,
0.06138840690255165,
-0.008067306131124496,
0.03478176146745682,
0.019725291058421135,
-0.02836916781961918,
-0.0345192588865757,
0.05287577956914902,
0.05606332793831825,
-0.020100295543670654,
0.020306549966335297,
-0.007561048958450556,
-0.004291469696909189,
-0.11902675777673721,
0.030206695199012756,
-0.008601689711213112,
-0.01617211289703846,
0.0013886922970414162,
-0.019256534054875374,
0.0033211426343768835,
-0.020587803795933723,
0.027319153770804405,
-0.06978853046894073,
0.051225755363702774,
-0.058575864881277084,
0.04582567512989044,
0.02244408056139946,
-0.02557537704706192,
0.02366284839808941,
-0.026587892323732376,
0.017353380098938942,
-0.026137884706258774,
0.07230106741189957,
-0.0417381152510643,
0.04158811271190643,
-0.030112944543361664,
-0.03534427285194397,
0.028387919068336487,
-0.08130119740962982,
0.0005253007402643561,
0.004521160386502743,
-0.04110060632228851,
0.027806660160422325,
0.014343961142003536,
0.022387830540537834,
0.03933807834982872,
-0.03003794327378273,
-0.008770441636443138,
0.025069119408726692,
-0.012403307482600212,
-0.08250121772289276,
-0.019631540402770042,
-0.015168973244726658,
0.0045305355452001095,
-0.042638130486011505,
0.027469154447317123,
-0.004903197288513184,
-0.031425464898347855,
-0.0031195771880447865,
0.019575288519263268,
-0.03016919456422329,
0.0024633174762129784,
-0.04038809612393379,
0.0029695751145482063,
0.03114420920610428,
0.016565868631005287,
0.07350108027458191,
-0.033112987875938416,
0.05441330373287201,
0.0016019766917452216,
-0.008268872275948524,
-0.03967558592557907,
-0.015853358432650566,
0.0194252859801054,
0.007223544176667929,
-0.04076310247182846,
-0.029100429266691208,
-0.04488816112279892,
-0.006150090601295233,
0.02221907675266266,
-0.010725158266723156,
-0.00009983057680074126,
-0.0060375891625881195,
0.051825765520334244,
0.023456595838069916,
-0.008043868467211723,
-0.023831602185964584,
-0.052163269370794296,
-0.00942201353609562,
0.002770353341475129,
-0.018422147259116173,
0.009956397116184235,
-0.007171980571001768,
0.019612789154052734,
-0.012422057799994946,
-0.018028391525149345,
0.016012735664844513,
-0.0074485475197434425,
-0.0002733438741415739,
0.03982558846473694,
0.02148781716823578,
-0.018159642815589905,
0.017212754115462303,
-0.0320817232131958,
-0.04920072481036186,
0.025294123217463493,
-0.0472881980240345,
-0.0448506623506546,
-0.05141325667500496,
-0.022612834349274635,
-0.04308813437819481,
0.1174517348408699,
0.007045416161417961,
-0.010500154457986355,
0.0883513018488884,
-0.05812585726380348,
0.08625127375125885,
-0.05088825151324272,
0.041813116520643234,
-0.025275371968746185,
-0.057263344526290894,
0.01811276748776436,
-0.010031398385763168,
0.0007312608067877591,
-0.037838056683540344,
0.05490081012248993,
0.009618891403079033,
0.002151594264432788,
0.03765055537223816,
-0.005053199362009764,
-0.04837571457028389,
-0.0030469198245555162,
0.020231548696756363,
-0.0224253311753273,
0.017044002190232277,
0.011259540915489197,
-0.00958139169961214,
0.015440852381289005,
-0.023456595838069916,
-0.021637819707393646,
-0.023437846451997757,
0.009872020222246647,
0.0011607592459768057,
0.0222003273665905,
-0.006562596652656794,
-0.021787820383906364,
-0.06311342865228653,
-0.07072604447603226,
-0.010022022761404514,
-0.02218157798051834,
0.07297607511281967,
0.0032437979243695736,
-0.024581613019108772,
0.02435660921037197,
0.01145641878247261,
0.0024703489616513252,
-0.0023426127154380083,
-0.06918852031230927,
0.1056765615940094,
0.030844204127788544,
-0.04511316493153572,
0.03041294775903225,
-0.009815770201385021,
0.060750894248485565,
0.005184451583772898,
0.025425374507904053,
0.034088004380464554,
-0.03615053370594978,
-0.037331800907850266,
-0.004162561614066362,
-0.06933852285146713,
0.04413815215229988,
-0.05535081773996353,
-0.052425771951675415,
0.009220448322594166,
-0.03256922960281372,
-0.05298827961087227,
-0.03076920285820961,
0.03682554140686989,
0.051825765520334244,
0.006886038929224014,
0.04245062544941902,
-0.03918807953596115,
-0.004092247691005468,
0.06795100122690201,
0.002172688255086541,
0.03774430602788925,
0.006009463686496019,
0.004441471770405769,
0.042300622910261154,
-0.047588203102350235,
-0.03358174487948418,
0.02581913024187088,
0.01085641048848629,
0.04076310247182846,
-0.05055074393749237,
-0.06720098853111267,
-0.003639897331595421,
-0.034669261425733566,
-0.05377579480409622,
0.021544067189097404,
0.008662628009915352,
0.002697695977985859,
-0.027900410816073418,
0.02495661750435829,
-0.06776349991559982,
-0.008662628009915352,
-0.05396329611539841,
0.03742555156350136,
-0.027469154447317123,
0.04136310890316963,
0.0011220868909731507,
-0.010415778495371342,
0.004746163729578257,
-0.05021324008703232,
0.06131340563297272,
0.03960058465600014,
0.005681333597749472,
0.03281298279762268,
-0.0359630286693573,
-0.10957661271095276,
-0.011568920686841011,
0.013518949039280415,
-0.030131693929433823,
-0.10657656937837601,
0.06911352276802063,
-0.004103966988623142,
0.02088780887424946,
0.03676929324865341,
0.023250343278050423,
-0.048675715923309326,
0.002061358420178294,
-0.0018105736235156655,
0.03870056942105293,
-0.039525583386421204,
0.02990669012069702,
-0.06315093487501144,
0.031181709840893745,
0.02895042672753334,
-0.014765842817723751,
0.0011941582197323442,
0.00018706329865381122,
0.018037766218185425,
-0.0757136195898056,
-0.0012211117427796125,
0.16500243544578552,
0.032869234681129456,
-0.048075709491968155,
-0.02595038339495659,
0.004359439481049776,
0.006679785903543234,
0.005264140199869871,
0.003637553658336401,
-0.05058824643492699,
-0.009562641382217407,
0.00642665708437562,
0.0033445805311203003,
0.04222562164068222,
0.006075089797377586,
0.05497581139206886,
-0.09135134518146515,
0.017325256019830704,
0.05051324516534805,
-0.02013779617846012,
0.013359571807086468,
0.02870667353272438,
0.060600895434617996,
-0.07151355594396591,
-0.04031309485435486,
0.00936107523739338,
0.020550303161144257,
-0.005943837575614452,
0.053738292306661606,
0.0006621191278100014,
0.020587803795933723,
0.00479538319632411,
0.03232547640800476,
0.043238136917352676,
-0.005011011380702257,
-0.06341343373060226,
0.0732760801911354,
0.009609516710042953,
-0.025519127026200294,
-0.013575199991464615,
0.038625568151474,
0.033112987875938416,
0.011015787720680237,
0.06723849475383759,
0.09052633494138718,
-0.08160120248794556,
-0.028800424188375473,
-0.006843850947916508,
0.030975457280874252,
-0.00005830164081999101,
0.05178826302289963,
0.002479724120348692,
0.02028779871761799,
0.006089152302592993,
-0.03088170476257801,
0.13620200753211975,
-0.052163269370794296,
-0.006004775874316692,
-0.0007570424349978566,
-0.012412683106958866,
0.048075709491968155,
-0.052200768142938614,
0.016847124323248863,
0.016218990087509155,
0.07338858395814896,
0.007617299910634756,
0.0699385330080986,
-0.02426285855472088,
-0.05332578718662262,
-0.030712952837347984,
-0.02701914869248867,
0.046875692903995514,
-0.05310078337788582,
-0.04473815858364105,
0.02728165313601494,
-0.0550508126616478,
-0.0023027684073895216,
0.05658833310008049,
-0.05178826302289963,
-0.024150356650352478,
-0.06041339039802551,
-0.04597567766904831,
-0.04016309231519699,
0.035400521010160446,
0.03195047006011009,
0.0439506471157074,
-0.03345049172639847,
-0.055425819009542465,
-0.046875692903995514,
-0.017297130078077316,
0.04076310247182846,
0.030844204127788544,
-0.017550257965922356,
-0.01303144171833992,
0.020475301891565323,
0.001972294645383954,
0.0011994317173957825,
0.0058500864543020725,
0.03798805922269821,
0.04098810255527496,
-0.07515110820531845,
-0.03948808088898659,
0.0049360101111233234,
-0.007228231523185968,
-0.045188166201114655,
0.046763189136981964,
-0.02668164297938347,
-0.0008865364943630993,
-0.008156370371580124,
-0.06067589297890663,
0.017644010484218597,
-0.035306770354509354,
0.07143855094909668,
-0.03478176146745682,
0.0034031751565635204,
0.001950028701685369,
-0.018028391525149345,
-0.0446256585419178,
-0.0018386989831924438,
-0.03766930475831032,
0.006721974350512028,
0.000281986576737836,
-0.01440958771854639,
-0.06536346673965454,
0.028856676071882248,
-0.0008900521788746119,
-0.04563817381858826,
-0.036000531166791916,
0.05190076678991318,
-0.003391456324607134,
-0.00461959931999445,
0.007204793859273195,
-0.06806350499391556,
0.012628311291337013,
-0.025875382125377655,
-0.010818909853696823,
-0.06840100884437561,
0.030319197103381157,
0.014578339643776417,
0.04691319167613983,
-0.06791350245475769,
-0.025012869387865067,
-0.04852571710944176,
-0.005686021409928799,
-0.06862600892782211,
0.01845964789390564,
0.03181922063231468,
0.02328784391283989,
-0.008629814721643925,
-0.019631540402770042,
0.030131693929433823,
0.06757599860429764,
0.04053809866309166,
-0.021919073536992073,
0.022294078022241592,
-0.022012824192643166,
-0.003796930890530348,
0.019931543618440628,
0.025425374507904053,
0.011953301727771759,
-0.005236014723777771,
0.02088780887424946,
0.0641634464263916,
-0.015956485643982887,
-0.04057559743523598,
0.01545022800564766,
0.007865740917623043,
0.02460036240518093,
-0.04800070822238922,
-0.02124406397342682,
0.027094149962067604,
0.008962632156908512,
-0.02872542291879654,
-0.012112678959965706,
0.013453323394060135,
-0.008282934315502644,
0.010359527543187141,
-0.07485110312700272,
-0.002510193269699812,
0.03630053624510765,
-0.049538228660821915,
-0.025031618773937225,
0.028800424188375473,
0.0075704241171479225,
-0.0832512304186821,
-0.0013453323626890779,
-0.024825366213917732,
-0.008221996016800404,
-0.03956308215856552,
-0.024450359866023064,
-0.03581302985548973,
-0.02315659075975418,
-0.01441896241158247,
-0.012328307144343853,
-0.061725910753011703,
0.06030089035630226,
0.004209436941891909,
0.008597001433372498,
0.010106398724019527,
-0.03896307572722435,
0.038175564259290695,
0.03982558846473694,
0.0053438288159668446,
0.0168752484023571,
0.008868880569934845,
0.03990058973431587,
0.03401300311088562,
0.024562861770391464,
0.04957573115825653,
-0.0412881076335907,
-0.04147561267018318,
0.0015445540193468332,
-0.0070688542909920216,
-0.04248812794685364,
0.0009058727300725877,
0.012815813533961773,
-0.0031453589908778667,
-0.0340692512691021,
-0.023944102227687836,
-0.020231548696756363,
0.025125371292233467,
-0.008906381204724312,
-0.03125670924782753,
-0.08092619478702545,
0.0555008202791214,
-0.017306504771113396,
0.03748180344700813,
0.06378844380378723,
0.032381728291511536,
0.011081413365900517,
0.01665024645626545,
-0.008751691319048405,
-0.07822615653276443,
0.030244195833802223,
-0.03948808088898659,
-0.02581913024187088,
-0.007621987257152796,
-0.059288375079631805,
-0.0003981504123657942,
0.023137841373682022,
0.036000531166791916,
-0.009136072359979153,
-0.018647149205207825,
0.049275726079940796,
-0.005086012650281191,
0.008817317895591259,
0.008868880569934845,
-0.031537964940071106,
0.015337726101279259,
0.00826418399810791,
0.01652836799621582,
0.0011859550140798092,
-0.02499411813914776,
0.03260673210024834,
-0.03376924619078636,
0.006295405328273773,
-0.005334453657269478,
-0.034575510770082474,
-0.019762791693210602,
-0.04563817381858826,
0.042750630527734756,
-0.02268783375620842,
-0.037350550293922424,
-0.00633759330958128,
0.005990713369101286,
0.014503339305520058,
0.031856719404459,
-0.024412859231233597,
-0.00491257244721055,
-0.029625436291098595,
0.009497014805674553,
0.029625436291098595,
-0.017700260505080223,
-0.013509574346244335,
-0.03305673599243164,
0.038081809878349304,
-0.030375447124242783,
-0.007162605412304401,
-0.02111281082034111,
0.04998823627829552,
-0.04815071076154709,
0.01308769267052412,
0.0075751119293272495,
0.04038809612393379,
-0.050963252782821655,
-0.011353292502462864,
0.010481404140591621,
0.017156502231955528,
-0.05741334706544876,
-0.0029883254319429398,
-0.014822093769907951,
0.03390049934387207,
-0.029269181191921234,
-0.05643833056092262,
0.0030867643654346466,
-0.05227576941251755,
0.039750587195158005,
-0.01906903088092804,
0.07717613875865936,
-0.02510662004351616,
-0.0048750718124210835,
0.02499411813914776,
-0.013575199991464615,
0.026494139805436134,
0.029962942004203796,
0.019987795501947403,
-0.012168928980827332,
0.03225047513842583,
0.07578861713409424,
0.038438066840171814,
-0.01955653913319111,
0.03727554902434349,
-0.0009498186991550028,
0.04496316239237785,
-0.016959624364972115,
-0.05336328595876694,
-0.016800247132778168,
0.006989165674895048,
0.0275254063308239,
0.056625835597515106,
0.0055969576351344585,
-0.021506566554307938,
-0.0016898686299100518,
0.0036609915550798178,
0.004661787301301956,
0.013565825298428535,
-0.00615477841347456,
-0.012178304605185986,
-0.038925573229789734,
-0.027319153770804405,
-0.0041203731670975685,
0.028631672263145447,
-0.02748790569603443,
-0.03076920285820961,
0.0023273781407624483,
-0.02992544136941433,
0.0044695972464978695,
-0.043838147073984146,
0.010472029447555542,
-0.015037721954286098,
0.01145641878247261,
-0.0011308760149404407,
-0.0412881076335907,
-0.02160031907260418,
-0.010687657631933689,
0.030187945812940598,
0.03343174234032631,
-0.004861009307205677,
0.027562906965613365,
0.025762880221009254,
0.041550613939762115,
-0.012262680567800999,
0.02133781462907791,
-0.023944102227687836,
0.03144421428442001,
-0.04012559354305267,
0.0033891124185174704,
0.016612745821475983,
0.029531685635447502,
-0.03815681114792824,
-0.032269224524497986,
0.07031353563070297,
0.00825949665158987,
0.06806350499391556,
0.010078273713588715,
-0.0011297041783109307,
0.031537964940071106,
0.04305063560605049,
0.008817317895591259,
-0.018384646624326706,
0.0417381152510643,
0.08085118979215622,
-0.007593861781060696,
-0.03911307826638222,
0.030581701546907425,
-0.009042320773005486,
0.07597611844539642,
-0.0357380285859108,
-0.0277504101395607,
-0.01798151433467865,
-0.03967558592557907,
-0.031556714326143265,
-0.007036041468381882,
-0.031781718134880066,
0.02051280252635479,
0.00008371705189347267,
0.047588203102350235,
0.002037920756265521,
0.011831424199044704,
-0.08805129677057266,
-0.012056428007781506,
-0.056138329207897186,
-0.00488444697111845,
-0.02523787133395672,
-0.07852616161108017,
0.0697135254740715,
-0.015740856528282166,
-0.027900410816073418,
0.006271967664361,
-0.004921947605907917,
0.023700349032878876,
-0.0007371202227659523,
0.04511316493153572,
0.027694158256053925,
0.00491725979372859,
0.01831902004778385,
0.026400389149785042,
-0.02823791652917862,
0.028537921607494354,
0.061838410794734955,
0.0053391410037875175,
0.04991323500871658,
-0.03076920285820961,
0.030825454741716385,
0.02040030062198639,
0.032512977719306946,
0.02073780633509159,
-0.0357380285859108,
0.01453146431595087,
-0.014962720684707165,
0.04098810255527496,
-0.05516331270337105,
-0.09622641652822495,
0.01771901175379753,
0.03298173472285271,
0.05227576941251755,
-0.043500643223524094,
0.01955653913319111,
0.04136310890316963,
0.011868924833834171,
0.0032437979243695736,
0.01381895411759615,
-0.007607924751937389,
0.001239862060174346,
-0.01654711924493313,
-0.01255331002175808,
-0.00322739128023386,
0.013734577223658562,
-0.03948808088898659,
0.010181399993598461,
-0.011306417174637318,
0.014268960803747177,
0.06423844397068024,
0.014193959534168243,
-0.03241922706365585,
0.03676929324865341,
0.021037809550762177,
-0.02255658246576786,
0.030337946489453316,
0.017522133886814117,
0.013612700626254082,
-0.0060938396491110325,
0.025387873873114586,
0.017437757924199104,
0.002183235250413418,
0.03725679963827133,
0.07650113105773926,
0.012009551748633385,
-0.0014097864041104913,
0.04016309231519699,
0.0417381152510643,
-0.00953920278698206,
-0.04511316493153572,
-0.056138329207897186,
-0.01749400794506073,
-0.004760226234793663,
0.021375315263867378,
0.043238136917352676,
-0.024431610479950905,
-0.004861009307205677,
0.0032039533834904432,
0.04245062544941902,
0.050625745207071304,
-0.029287932440638542,
0.03676929324865341,
-0.010097024030983448,
0.014025206677615643,
0.023944102227687836,
-0.04380064457654953,
0.018422147259116173,
0.009993897750973701,
0.041925616562366486,
0.04451315477490425,
0.011972051113843918,
0.014972095377743244,
0.0008777473121881485,
-0.02025029808282852,
0.009872020222246647,
0.014747092500329018,
0.058800868690013885,
0.025781629607081413,
0.017053376883268356,
-0.03960058465600014,
-0.02244408056139946,
0.002112921793013811,
0.03281298279762268,
0.023981602862477303,
-0.00325551675632596,
-0.02088780887424946
] |
721,923
|
apprise.asset
|
hex_to_int
|
Takes a hex string (such as #00ff00) and returns its integer
equivalent
eg: #00000f becomes : 15
|
@staticmethod
def hex_to_int(value):
"""
Takes a hex string (such as #00ff00) and returns its integer
equivalent
eg: #00000f becomes : 15
"""
return int(value.lstrip('#'), 16)
|
(value)
|
[
-0.01111648790538311,
-0.05335913971066475,
0.0026545803993940353,
0.002103368518874049,
0.0004041834909003228,
-0.009714242070913315,
0.05583152174949646,
0.0907769650220871,
-0.0040014744736254215,
-0.0408865325152874,
0.039742596447467804,
0.010507618077099323,
0.05236280709505081,
-0.0002398578217253089,
0.01893031783401966,
-0.0018070058431476355,
-0.0050093382596969604,
0.05203069746494293,
0.042214978486299515,
-0.018266096711158752,
-0.010406139306724072,
-0.05203069746494293,
-0.021273544058203697,
0.018607432022690773,
-0.006250141654163599,
0.041624557226896286,
0.05524110421538353,
0.0050093382596969604,
0.017694126814603806,
-0.06620076298713684,
0.004907859954982996,
-0.011005784384906292,
0.023948881775140762,
0.03878316655755043,
-0.03811894357204437,
-0.031015461310744286,
-0.03904147446155548,
0.016513288021087646,
-0.03730711713433266,
0.034484174102544785,
0.01315527968108654,
-0.02631055936217308,
-0.010406139306724072,
-0.0016824642661958933,
-0.015719912946224213,
-0.003614011686295271,
-0.06546273827552795,
-0.02774970605969429,
-0.06280584633350372,
-0.010507618077099323,
0.018007786944508553,
-0.015849066898226738,
0.0068959123454988,
0.04490876570343971,
0.04011160880327225,
0.0021575673017650843,
0.004075276665389538,
0.022786494344472885,
-0.022768042981624603,
0.028229421004652977,
-0.028284773230552673,
0.019834397360682487,
0.017445044592022896,
-0.03418896719813347,
0.00019243401766289026,
-0.009336004965007305,
-0.004727966617792845,
-0.00025571382138878107,
-0.00802139937877655,
0.030572647228837013,
0.022048469632864,
0.022694241255521774,
-0.014732806012034416,
-0.040775831788778305,
0.06059177592396736,
0.017278987914323807,
0.03400446102023125,
0.05701236054301262,
0.04029611498117447,
0.019908199086785316,
0.06549963355064392,
0.039336685091257095,
0.033635448664426804,
0.05369125306606293,
0.010959657840430737,
-0.020517069846391678,
0.020037353038787842,
-0.003392604412510991,
-0.03385685384273529,
0.07955899834632874,
0.02579394169151783,
-0.03201179578900337,
-0.09240061789751053,
-0.020904531702399254,
-0.026937879621982574,
-0.044244542717933655,
0.061145294457674026,
-0.008330446667969227,
0.04479806125164032,
-0.04863578826189041,
-0.036772049963474274,
0.09498369693756104,
-0.08236348628997803,
-0.04048062115907669,
-0.0059733823873102665,
-0.08243729174137115,
0.002103368518874049,
-0.017094483599066734,
0.004515784792602062,
-0.028653785586357117,
-0.00006565819785464555,
-0.06645906716585159,
-0.051218871027231216,
-0.021365797147154808,
-0.004866346251219511,
-0.03096011094748974,
0.06966947019100189,
-0.014234639704227448,
0.03214094787836075,
-0.042805396020412445,
0.02885674126446247,
0.03350629284977913,
-0.01514794398099184,
0.037897538393735886,
0.06557343900203705,
0.072252556681633,
-0.01621807925403118,
0.018967218697071075,
0.04490876570343971,
-0.0024377857334911823,
0.049521416425704956,
0.024557750672101974,
-0.005904192570596933,
0.0008960073464550078,
-0.0009542420739308,
-0.024151837453246117,
-0.031513627618551254,
0.09070315957069397,
0.004977049771696329,
0.01544315367937088,
0.026421261951327324,
0.01315527968108654,
0.017832506448030472,
-0.027805056422948837,
-0.01731589064002037,
0.024244090542197227,
-0.006019508931785822,
0.025830842554569244,
-0.06597935408353806,
0.03479783609509468,
0.016254980117082596,
0.03317418321967125,
0.01791553385555744,
0.07992801070213318,
0.008759423159062862,
-0.04147695377469063,
0.01157775241881609,
-0.0525842159986496,
0.08014941215515137,
-0.03989019989967346,
0.017970886081457138,
0.043838631361722946,
0.06808272004127502,
-0.05549941211938858,
-0.03234390541911125,
0.02690097689628601,
-0.009907972998917103,
0.006697568576782942,
0.008681008592247963,
-0.051108166575431824,
-0.02232522889971733,
-0.03645838797092438,
-0.008602593094110489,
0.03308193013072014,
0.04206737130880356,
-0.003616318106651306,
-0.014797382988035679,
-0.004566524177789688,
0.06291655451059341,
0.06811962276697159,
-0.013487390242516994,
0.0038284999318420887,
0.005378350615501404,
-0.0107382507994771,
0.09579552710056305,
0.010996558703482151,
0.021402698010206223,
0.019133273512125015,
0.04251018539071083,
-0.07882097363471985,
0.048156071454286575,
0.01985284872353077,
-0.015996672213077545,
0.05660644546151161,
0.0067206318490207195,
-0.008348897099494934,
-0.023469164967536926,
0.00928526557981968,
-0.007394078653305769,
-0.0342627689242363,
-0.013478164561092854,
0.009538961574435234,
-0.011310218833386898,
0.026033800095319748,
-0.012454156763851643,
-0.03298967704176903,
0.014815833419561386,
-0.020904531702399254,
-0.04406003654003143,
-0.0347793847322464,
-0.007998336106538773,
-0.03306347876787186,
0.0012765510473400354,
0.06937426328659058,
0.014326892793178558,
-0.039594992995262146,
-0.006831335369497538,
0.004880184307694435,
0.05369125306606293,
0.02544338069856167,
0.04608960449695587,
0.021679457277059555,
0.02645816281437874,
-0.046384815126657486,
0.06350697576999664,
-0.011005784384906292,
-0.07601647824048996,
-0.0142069635912776,
-0.0149818891659379,
-0.038045141845941544,
0.06693878769874573,
-0.013256757520139217,
-0.04590509831905365,
0.07166213542222977,
0.059521641582250595,
0.008519565686583519,
0.026919428259134293,
-0.039336685091257095,
-0.02645816281437874,
-0.0381927452981472,
-0.026181403547525406,
0.045351579785346985,
0.06616386026144028,
0.037897538393735886,
0.029244204983115196,
0.0015210214769467711,
-0.022159172222018242,
0.043580323457717896,
-0.08288010209798813,
-0.03413361310958862,
-0.0653151348233223,
-0.013884077779948711,
0.010922756046056747,
-0.0019142499659210443,
-0.0376761294901371,
0.034391921013593674,
-0.038487955927848816,
0.06118219718337059,
-0.021089037880301476,
0.016697794198989868,
-0.017509620636701584,
-0.05461378023028374,
0.04453975334763527,
-0.032528411597013474,
-0.007869182154536247,
-0.07402381300926208,
-0.011448598466813564,
0.07365480065345764,
0.00695587694644928,
0.00975114293396473,
0.11262247711420059,
-0.05597912520170212,
-0.0181646179407835,
-0.022509735077619553,
-0.01051684282720089,
-0.03629233315587044,
-0.0009179174667224288,
0.006180951837450266,
0.08826767653226852,
0.005890354514122009,
-0.005378350615501404,
-0.01081205252557993,
-0.02935490757226944,
-0.03503769263625145,
0.0034871636889874935,
0.041440051048994064,
0.04804536700248718,
0.01476970687508583,
-0.023450715467333794,
-0.011051910929381847,
0.01706680655479431,
-0.020221859216690063,
-0.030185185372829437,
-0.008219743147492409,
0.01765722595155239,
0.05339604243636131,
-0.0446135550737381,
0.023893529549241066,
0.008856289088726044,
-0.02308170311152935,
-0.034668680280447006,
-0.0017689514206722379,
-0.08966992795467377,
-0.022878747433423996,
-0.03298967704176903,
-0.011614654213190079,
-0.007804604712873697,
0.006024121772497892,
0.026845626533031464,
0.011005784384906292,
-0.048488181084394455,
0.018100040033459663,
0.0037777607794851065,
-0.007804604712873697,
0.02595999650657177,
-0.037030357867479324,
-0.012232748791575432,
0.007850730791687965,
0.0035724977497011423,
0.03878316655755043,
0.03929978236556053,
0.056126732379198074,
0.010304661467671394,
0.0519568957388401,
0.01653173938393593,
0.01926242932677269,
-0.019133273512125015,
0.011734582483768463,
0.018699685111641884,
-0.006526900455355644,
-0.06597935408353806,
-0.009815719909965992,
0.023948881775140762,
-0.024539301171898842,
0.04642171412706375,
-0.05996445566415787,
0.027639001607894897,
0.033045027405023575,
-0.08273249864578247,
-0.02001890353858471,
0.03629233315587044,
-0.01209437008947134,
0.04210427403450012,
0.024742256850004196,
0.06974327564239502,
0.013985556550323963,
-0.060370370745658875,
0.03036969155073166,
0.00958508811891079,
-0.012574085034430027,
-0.00574736250564456,
-0.09431947767734528,
-0.0037662291433662176,
-0.0025254262145608664,
0.02680872566998005,
-0.003533290233463049,
0.014539074152708054,
-0.08472516387701035,
0.04830367490649223,
0.024539301171898842,
0.016411811113357544,
-0.03911527618765831,
0.015885967761278152,
-0.029926875606179237,
-0.06051797419786453,
0.012592535465955734,
-0.07121932506561279,
-0.016697794198989868,
0.036329235881567,
0.015369351953268051,
0.004529622849076986,
0.05398645997047424,
-0.022601988166570663,
-0.07442972809076309,
0.0152678731828928,
-0.01926242932677269,
0.016670119017362595,
0.050776056945323944,
-0.039668794721364975,
-0.002324775792658329,
-0.016771597787737846,
0.0051846192218363285,
-0.03955809026956558,
0.01571068726480007,
-0.010009451769292355,
-0.04605270177125931,
0.02501901611685753,
-0.0334324911236763,
-0.023026350885629654,
0.04775015637278557,
-0.08192067593336105,
0.007643161807209253,
0.015129493549466133,
-0.038561757653951645,
0.02834012545645237,
-0.01594131998717785,
0.025646336376667023,
-0.01822919398546219,
0.041698358952999115,
-0.0006238609785214067,
0.0022152254823595285,
-0.007417141925543547,
0.06280584633350372,
0.04199356958270073,
0.028063366189599037,
0.04634791240096092,
-0.0029682405292987823,
-0.044318344444036484,
-0.007979885675013065,
-0.06228923425078392,
0.023653671145439148,
0.004557298496365547,
-0.003348784288391471,
-0.03548050671815872,
0.008897802792489529,
-0.044244542717933655,
0.007961435243487358,
-0.006536125671118498,
0.021605655550956726,
-0.01680849865078926,
-0.00325653119944036,
-0.0381927452981472,
-0.04723354056477547,
0.044502850621938705,
-0.028026465326547623,
0.04203047230839729,
0.06306415796279907,
0.052658017724752426,
-0.042436383664608,
0.01557230856269598,
-0.024373244494199753,
-0.04608960449695587,
0.014797382988035679,
-0.06682807952165604,
-0.009179174900054932,
0.010858179070055485,
0.046200308948755264,
0.009686565957963467,
0.009529735893011093,
0.058377705514431,
0.060628678649663925,
0.029004346579313278,
0.02341381460428238,
0.015415477566421032,
0.03308193013072014,
-0.07335959374904633,
-0.06882074475288391,
0.0562005341053009,
0.025221973657608032,
-0.05874671787023544,
-0.031163066625595093,
-0.03579416871070862,
-0.010830502957105637,
-0.0099633252248168,
-0.0014841202646493912,
-0.05022253841161728,
-0.02223297581076622,
0.03531445190310478,
0.008035236969590187,
0.016338007524609566,
-0.01090430561453104,
0.060886986553668976,
-0.06225233152508736,
-0.09631214290857315,
-0.029170401394367218,
-0.006688343361020088,
0.03012983314692974,
-0.020000452175736427,
-0.001624806085601449,
-0.016568640246987343,
0.01157775241881609,
-0.0011076127411797643,
0.004829444922506809,
0.01690075173974037,
0.03496389091014862,
0.026495063677430153,
0.017352791503071785,
0.041181743144989014,
-0.026771822944283485,
-0.013515066355466843,
-0.00651306239888072,
-0.02631055936217308,
-0.002279802458360791,
-0.014954213052988052,
0.0006682577659375966,
-0.004068357869982719,
-0.004529622849076986,
-0.0318826399743557,
-0.02909659966826439,
0.005558243952691555,
-0.004917085636407137,
-0.04572059214115143,
-0.03507459536194801,
-0.03786063566803932,
0.06280584633350372,
-0.034502625465393066,
0.012371128425002098,
0.03859866037964821,
-0.03603402525186539,
-0.02527732402086258,
-0.004552686121314764,
-0.01043381541967392,
-0.03199334442615509,
0.00483867060393095,
-0.0012834699591621757,
0.009206850081682205,
-0.0181646179407835,
-0.012269650585949421,
-0.004209043458104134,
-0.027860408648848534,
-0.053580548614263535,
-0.012878520414233208,
0.059005025774240494,
-0.020480168983340263,
0.02553563378751278,
-0.002677643671631813,
0.0014310748083516955,
-0.02402268350124359,
-0.018201518803834915,
-0.007223410531878471,
-0.01557230856269598,
0.008943929336965084,
0.02885674126446247,
-0.017601873725652695,
-0.044244542717933655,
0.030056031420826912,
-0.039336685091257095,
-0.0054429275915026665,
-0.008122877217829227,
0.03269446641206741,
-0.04029611498117447,
0.01497266348451376,
0.016660893335938454,
-0.013349010609090328,
-0.032786719501018524,
-0.055610112845897675,
0.018100040033459663,
-0.02715928666293621,
0.00483867060393095,
-0.010258534923195839,
-0.014492947608232498,
0.0015959771117195487,
-0.008122877217829227,
-0.01875503733754158,
-0.03258376196026802,
-0.0057012359611690044,
-0.046532418578863144,
0.0669756829738617,
-0.05055464804172516,
-0.038155846297740936,
-0.056901656091213226,
-0.013016900047659874,
0.01044304110109806,
-0.02511126920580864,
0.032712917774915695,
-0.016227304935455322,
-0.024834509938955307,
-0.013201406225562096,
-0.045609887689352036,
0.022417481988668442,
-0.03402290865778923,
-0.02774970605969429,
-0.0594109371304512,
-0.004132934845983982,
-0.11122022569179535,
-0.012020567432045937,
-0.010415364988148212,
-0.0663483664393425,
-0.02595999650657177,
-0.05970614776015282,
0.0062870425172150135,
-0.007430979982018471,
0.03393065556883812,
0.018865739926695824,
-0.045609887689352036,
0.04166145995259285,
-0.029926875606179237,
-0.07520465552806854,
0.09985465556383133,
-0.020978335291147232,
-0.0241702888160944,
-0.005544405896216631,
-0.03334023803472519,
-0.042547088116407394,
0.04575749486684799,
-0.019963551312685013,
0.04369102418422699,
0.010756701231002808,
0.011605428531765938,
-0.00869945902377367,
0.011596203781664371,
-0.03496389091014862,
-0.018948769196867943,
-0.01833989843726158,
-0.025941547006368637,
-0.02053551934659481,
0.00831199623644352,
0.013053800910711288,
0.023948881775140762,
0.009557412005960941,
0.01369957160204649,
-0.0009594312869012356,
0.04321131110191345,
0.002391659189015627,
0.07516775280237198,
-0.00405221339315176,
0.008113652467727661,
-0.020424816757440567,
-0.02230677753686905,
-0.04402313753962517,
0.03444727510213852,
-0.02690097689628601,
0.035259101539850235,
-0.03489008918404579,
0.03359854593873024,
0.03289742395281792,
0.018542855978012085,
-0.05291632562875748,
-0.03555430844426155,
0.03573881462216377,
-0.03459487855434418,
0.03682740032672882,
-0.05896812304854393,
0.001794320996850729,
0.03298967704176903,
0.05472448468208313,
-0.021273544058203697,
-0.006614540703594685,
-0.029133500531315804,
-0.008837838657200336,
0.021513402462005615,
0.00545215280726552,
0.029908426105976105,
0.005322998855262995,
-0.022251425310969353,
-0.035498958081007004,
0.021402698010206223,
0.013478164561092854,
0.007892245426774025,
0.05479828640818596,
0.0299637783318758,
0.053765054792165756,
-0.05937403813004494,
0.00810442678630352,
0.0551672987639904,
-0.0392259806394577,
0.0059733823873102665,
-0.10147830843925476,
0.02164255641400814,
-0.049263108521699905,
0.013847176916897297,
0.02586774341762066,
-0.03444727510213852,
0.03607092797756195,
-0.030830955132842064,
-0.0012154333526268601,
0.02749139629304409,
-0.0008890883764252067,
0.01610737480223179,
0.016264205798506737,
-0.025055916979908943,
0.06184641644358635,
0.00223944173194468,
0.030148284509778023,
-0.019446933642029762,
-0.029151951894164085,
0.03629233315587044,
0.012158947065472603,
-0.0033764601685106754,
-0.08716064691543579,
0.03081250563263893,
0.00030270518618635833,
0.005765812937170267,
0.0036993457470089197,
-0.004151385277509689,
-0.02239903062582016,
-0.020904531702399254,
0.032786719501018524,
0.06561034172773361,
0.02859843336045742,
0.003058187197893858,
0.018441377207636833,
-0.015849066898226738,
-0.01082127820700407,
0.04081273078918457,
-0.007407916709780693,
-0.022675789892673492,
-0.02105213701725006,
0.03413361310958862,
0.013967106118798256,
-0.023487616330385208,
-0.026365909725427628,
-0.054945893585681915,
-0.0030973947141319513,
-0.021144390106201172,
-0.009142273105680943,
-0.0015048772329464555,
0.0069789402186870575,
0.035093046724796295,
0.009557412005960941,
-0.006051797419786453,
-0.08273249864578247,
0.027971113100647926,
0.05616363137960434,
0.017500396817922592,
-0.08863668888807297,
-0.0035494344774633646,
-0.009386743418872356,
-0.010839728638529778,
-0.010498392395675182,
-0.010895080864429474,
-0.010092479176819324,
-0.05472448468208313,
0.00966811552643776,
0.026956329122185707,
0.09764058887958527,
-0.08848908543586731,
0.01721441186964512,
-0.02400423400104046,
0.04852508381009102,
0.054355472326278687,
-0.06048107519745827,
0.03977949917316437,
0.059447839856147766,
-0.043986234813928604,
-0.03834035247564316,
0.03555430844426155,
0.0152678731828928,
0.013505840674042702,
0.00215180148370564,
0.04867268726229668,
-0.04922620579600334,
-0.036882754415273666,
0.03730711713433266,
0.019705243408679962,
0.00657763984054327,
0.029760820791125298,
0.012979998253285885,
-0.011227191425859928,
-0.030591098591685295,
0.06265824288129807,
-0.035185299813747406,
-0.05236280709505081,
0.026919428259134293,
0.004036069381982088,
0.04210427403450012,
0.07926378399133682,
0.03470558300614357,
-0.018967218697071075,
-0.0015636885073035955,
-0.003528677625581622,
0.051550980657339096,
-0.012158947065472603,
0.03701190650463104,
0.06815652549266815,
-0.05029634013772011,
-0.04361722245812416,
0.025000566616654396,
0.007818442769348621,
-0.01822919398546219,
-0.009898748248815536,
0.024317894130945206,
-0.016845399513840675,
-0.01141169760376215,
0.0392259806394577,
0.028801389038562775,
0.028155619278550148,
0.018727360293269157
] |
721,924
|
apprise.asset
|
hex_to_rgb
|
Takes a hex string (such as #00ff00) and returns a tuple in the form
of (red, green, blue)
eg: #00ff00 becomes : (0, 65535, 0)
|
@staticmethod
def hex_to_rgb(value):
"""
Takes a hex string (such as #00ff00) and returns a tuple in the form
of (red, green, blue)
eg: #00ff00 becomes : (0, 65535, 0)
"""
value = value.lstrip('#')
lv = len(value)
return tuple(int(value[i:i + lv // 3], 16)
for i in range(0, lv, lv // 3))
|
(value)
|
[
-0.02049495466053486,
-0.033373672515153885,
-0.07076596468687057,
-0.014285232871770859,
0.0003217287012375891,
0.007453580852597952,
0.03873182833194733,
0.06318799406290054,
0.04657770320773125,
-0.031153863295912743,
0.06360899657011032,
0.018925780430436134,
0.05105559527873993,
0.020839408040046692,
0.01716524362564087,
-0.023078352212905884,
0.013491077348589897,
0.039344191551208496,
0.0144670270383358,
-0.008831392973661423,
-0.01456270832568407,
-0.012773466296494007,
-0.014074733480811119,
0.03984173387289047,
-0.005908326245844364,
0.02420739270746708,
0.05564830079674721,
-0.005415567196905613,
-0.010917247273027897,
0.0028632658068090677,
0.009151925332844257,
-0.019385050982236862,
0.005841349251568317,
0.02751797065138817,
-0.025164207443594933,
-0.013959916308522224,
-0.010324022732675076,
0.02564261481165886,
-0.029450735077261925,
-0.010257045738399029,
-0.005970519036054611,
-0.07566484808921814,
-0.011032065376639366,
-0.010993792675435543,
-0.01590224914252758,
-0.02604447677731514,
-0.035268161445856094,
-0.02110731601715088,
-0.07945383340120316,
-0.08121436834335327,
0.03909542039036751,
0.022638218477368355,
-0.02043754607439041,
0.039191100746393204,
0.04232944920659065,
-0.00007120041846064851,
-0.05641375109553337,
0.0949159488081932,
0.02332712523639202,
0.03968864306807518,
-0.004308055154979229,
0.015777861699461937,
0.04615670442581177,
0.0038750965613871813,
0.014457459561526775,
-0.02315489761531353,
0.013404963538050652,
-0.017241787165403366,
-0.0032125029247254133,
0.03279958292841911,
-0.03325885534286499,
0.06437444686889648,
-0.01426609605550766,
-0.056528568267822266,
0.02933591604232788,
0.03802378848195076,
0.031747087836265564,
0.037545379251241684,
0.05312231183052063,
0.002746056066825986,
0.046386342495679855,
0.061465729027986526,
0.046615976840257645,
0.012773466296494007,
-0.0031670541502535343,
-0.060049645602703094,
-0.033813804388046265,
-0.013050942681729794,
-0.03404344245791435,
0.05388776212930679,
-0.012983965687453747,
-0.05687302350997925,
-0.0765451192855835,
0.03984173387289047,
-0.04240599647164345,
-0.04382207989692688,
0.04523816332221031,
0.008113782852888107,
0.015653476119041443,
-0.05752365663647652,
-0.03804292529821396,
0.023193171247839928,
-0.10785207152366638,
-0.03354589641094208,
-0.005439487285912037,
-0.044319622218608856,
-0.02395862154662609,
-0.01362503133714199,
0.046194978058338165,
-0.024303074926137924,
-0.01965295895934105,
-0.02152831479907036,
0.018102919682860374,
0.010400568135082722,
-0.00888401735574007,
-0.03389035165309906,
0.04875924065709114,
-0.018351692706346512,
0.013261442072689533,
-0.05078768730163574,
0.010362295433878899,
0.002834561513736844,
0.0013933603186160326,
0.08496508002281189,
0.022159811109304428,
0.12561054527759552,
-0.009434185922145844,
-0.0005875435890629888,
0.0011272464180365205,
0.012151537463068962,
0.027326608076691628,
0.06292008608579636,
-0.008439099416136742,
-0.04026273265480995,
0.015155933797359467,
-0.033392809331417084,
-0.020954225212335587,
0.07183759659528732,
0.04715179279446602,
-0.009046676568686962,
0.006841219961643219,
0.002683863276615739,
0.0455443449318409,
-0.012553399428725243,
0.017193946987390518,
0.011213859543204308,
0.029699506238102913,
0.01457227673381567,
-0.008702223189175129,
0.06801033765077591,
0.0059035420417785645,
0.03387121483683586,
0.04512334614992142,
0.05557175725698471,
-0.005018489435315132,
-0.016906902194023132,
0.013950347900390625,
-0.06954123824834824,
0.07130178064107895,
-0.0412960909307003,
0.011653994210064411,
0.02231290191411972,
0.035057663917541504,
-0.04657770320773125,
0.012228082865476608,
0.05874837934970856,
-0.010496249422430992,
0.005970519036054611,
-0.006688129622489214,
-0.06571398675441742,
-0.01924152858555317,
-0.004212373401969671,
-0.02150917798280716,
0.03446444123983383,
-0.007463148795068264,
-0.025087662041187286,
-0.05595448240637779,
0.0018454549135640264,
0.05101732164621353,
0.014352209866046906,
-0.021853631362318993,
-0.01692603901028633,
-0.01773933134973049,
-0.021126452833414078,
0.05825083330273628,
0.022714763879776,
0.03477061912417412,
0.0070899915881454945,
0.011826220899820328,
-0.061695363372564316,
0.04045409336686134,
-0.024915436282753944,
-0.008668734692037106,
0.03373726084828377,
0.03098163567483425,
-0.009017971344292164,
-0.017844580113887787,
0.031268682330846786,
-0.03287612646818161,
-0.004927591886371374,
-0.009371993131935596,
-0.04033927619457245,
-0.04852960631251335,
0.018925780430436134,
0.020093092694878578,
-0.045352984219789505,
0.002834561513736844,
-0.03823428601026535,
-0.014323505572974682,
-0.02252340130507946,
0.01065890770405531,
0.01282130740582943,
0.007066071033477783,
0.07723402231931686,
0.013768552802503109,
-0.04198499768972397,
0.0019064518855884671,
0.031096454709768295,
0.016600722447037697,
-0.007410524412989616,
0.027192654088139534,
-0.054461851716041565,
0.05599275231361389,
0.002856089733541012,
0.051170412451028824,
0.005501680541783571,
-0.05932246521115303,
-0.003774631069973111,
-0.01944245956838131,
-0.009692525491118431,
0.10211119055747986,
-0.020533228293061256,
0.008458235301077366,
0.05557175725698471,
0.0023178819101303816,
0.00950116291642189,
0.06119782105088234,
-0.009257175028324127,
0.00018986777286045253,
-0.018246442079544067,
-0.028972327709197998,
0.07589448243379593,
0.0640299916267395,
0.016476336866617203,
0.053849492222070694,
-0.02338453382253647,
0.003157486207783222,
0.027824150398373604,
-0.07153141498565674,
-0.010237909853458405,
-0.10892370343208313,
0.05090250447392464,
0.025164207443594933,
0.0068842764012515545,
-0.06265217810869217,
0.00949637871235609,
-0.04171708971261978,
0.0495629645884037,
0.017873285338282585,
-0.006702481769025326,
0.0165720172226429,
-0.015768295153975487,
0.04255908727645874,
0.02001654915511608,
0.03909542039036751,
-0.053007494658231735,
-0.0008270460530184209,
0.09346158802509308,
-0.00950594712048769,
0.03662683814764023,
0.14421100914478302,
-0.005420351400971413,
-0.01571088470518589,
-0.012486422434449196,
-0.008276441134512424,
-0.02813033014535904,
-0.011500904336571693,
-0.004226725548505783,
0.06720661371946335,
0.025987068191170692,
-0.00959684420377016,
-0.003726790426298976,
-0.035268161445856094,
0.005310317501425743,
0.03660770133137703,
0.03561261668801308,
0.05067286640405655,
0.007807602174580097,
0.006535039283335209,
-0.010524953715503216,
0.023001808673143387,
-0.04458753019571304,
-0.05656684190034866,
-0.0070373667404055595,
0.024456165730953217,
0.07099559903144836,
-0.004762541502714157,
0.030101368203759193,
0.022159811109304428,
-0.014333073049783707,
-0.010113523341715336,
-0.02317403443157673,
-0.03281871974468231,
-0.01373028103262186,
-0.012122833169996738,
-0.00764015968888998,
-0.008381690829992294,
0.004183669108897448,
-0.010668476112186909,
-0.0062001547776162624,
-0.05124695599079132,
-0.01944245956838131,
0.020552365109324455,
-0.010611066594719887,
0.03683733940124512,
-0.02998654916882515,
-0.002314293757081032,
0.0030020037665963173,
0.009333720430731773,
-0.007377035915851593,
-0.0047218771651387215,
0.0023214698303490877,
0.0005782744265161455,
0.05235686153173447,
0.012256787158548832,
0.02376725897192955,
-0.05867183208465576,
0.006621152628213167,
0.02437962032854557,
0.02503025345504284,
-0.08626634627580643,
0.020418411120772362,
-0.005970519036054611,
0.031306952238082886,
0.04707524925470352,
-0.04634806886315346,
0.010180500335991383,
0.02005482092499733,
-0.03878923878073692,
-0.040607184171676636,
-0.007817170582711697,
-0.01651460863649845,
0.014342641457915306,
-0.00163973995950073,
0.058174289762973785,
0.00908494833856821,
-0.05147659033536911,
0.013701575808227062,
0.0009035912225954235,
-0.022580809891223907,
0.03182363137602806,
-0.09223686903715134,
-0.028264284133911133,
0.03777501732110977,
0.034005168825387955,
0.010084819048643112,
-0.02520248107612133,
-0.07214377075433731,
0.07512903213500977,
0.020303592085838318,
0.013787689618766308,
-0.014706230722367764,
0.04879751428961754,
-0.004662076011300087,
-0.0537729449570179,
0.01591181568801403,
-0.10211119055747986,
0.0064776306971907616,
-0.026714246720075607,
0.008309929631650448,
0.02024618349969387,
0.08955778926610947,
-0.009692525491118431,
-0.04405171424150467,
0.02541297860443592,
-0.020590636879205704,
0.006783810909837484,
0.04045409336686134,
-0.08955778926610947,
-0.0279389675706625,
-0.04979259893298149,
-0.0013299714773893356,
0.02191103994846344,
-0.0258339773863554,
0.029718641191720963,
-0.04098990932106972,
-0.010371863842010498,
-0.004865399096161127,
-0.05017532408237457,
0.05128522962331772,
-0.08580707758665085,
0.0033081842120736837,
0.023614168167114258,
-0.04937160015106201,
0.02751797065138817,
-0.006314972415566444,
0.017605377361178398,
0.005917894653975964,
0.035249028354883194,
-0.03903800994157791,
-0.042023271322250366,
-0.012094128876924515,
-0.031115589663386345,
-0.004489849787205458,
-0.010036978870630264,
0.06938815116882324,
0.004217157606035471,
0.02149004116654396,
0.00598487164825201,
-0.08871579170227051,
0.002133695175871253,
0.008549133315682411,
0.010716316290199757,
-0.049677781760692596,
0.011175586842000484,
-0.024322211742401123,
0.021968448534607887,
-0.0076880003325641155,
-0.00012722636165563017,
0.05442357808351517,
-0.001098542008548975,
-0.08343417942523956,
-0.03165140748023987,
0.002569045638665557,
-0.024685800075531006,
0.051170412451028824,
0.04833824187517166,
0.05725574865937233,
-0.008132918737828732,
-0.017500126734375954,
0.0008467803709208965,
-0.005224204156547785,
0.01837082765996456,
-0.0764302983880043,
-0.01332841906696558,
-0.008348202332854271,
0.007621023338288069,
0.06456580758094788,
0.02828342095017433,
0.015634341165423393,
0.02376725897192955,
0.03260821849107742,
0.005128522869199514,
-0.0031622701790183783,
0.05205067992210388,
-0.055916208773851395,
-0.06751279532909393,
0.03528729826211929,
0.030063094571232796,
-0.05071114003658295,
-0.022044993937015533,
-0.011194723658263683,
0.01590224914252758,
0.0015942913014441729,
0.0496012382209301,
-0.03995655104517937,
-0.03203413262963295,
0.013204032555222511,
-0.01075458899140358,
0.018256010487675667,
0.03488543629646301,
0.03241685777902603,
-0.05564830079674721,
-0.04026273265480995,
-0.047036975622177124,
-0.030101368203759193,
0.08404654264450073,
-0.044931985437870026,
-0.017490560188889503,
-0.05645202472805977,
-0.0009604020160622895,
-0.032723039388656616,
0.02979518659412861,
-0.009544219821691513,
0.014534004032611847,
0.005358158145099878,
0.014055597595870495,
0.008802688680589199,
-0.01984432153403759,
-0.05457666888833046,
-0.012534263543784618,
-0.015098524279892445,
-0.013854666613042355,
-0.01396948378533125,
-0.011577448807656765,
0.024073440581560135,
0.007228729780763388,
-0.02462839148938656,
-0.028245149180293083,
0.00039677880704402924,
-0.04604188725352287,
-0.07168450206518173,
-0.01800723932683468,
-0.031115589663386345,
0.01458184514194727,
-0.032971810549497604,
0.029431598260998726,
0.04049236699938774,
-0.036033615469932556,
0.0207054540514946,
0.021183861419558525,
-0.037066973745822906,
0.02769019640982151,
-0.015031547285616398,
0.03612929582595825,
0.00625756336376071,
0.023901212960481644,
-0.020150503143668175,
-0.015069819986820221,
-0.03578484430909157,
-0.0848885327577591,
-0.0006452514207921922,
0.06724488735198975,
-0.05193586274981499,
0.02669510990381241,
-0.04098990932106972,
-0.011328677646815777,
-0.04363071918487549,
-0.04098990932106972,
-0.01712696999311447,
-0.014113006182014942,
0.057600200176239014,
0.031938452273607254,
0.013404963538050652,
-0.01982518471777439,
0.009482026100158691,
-0.002459011971950531,
-0.022638218477368355,
-0.020820271223783493,
-0.017002584412693977,
-0.022848717868328094,
0.005760020110756159,
0.00022948585683479905,
-0.03886578232049942,
-0.025374706834554672,
-0.03216808661818504,
0.023040080443024635,
-0.024475300684571266,
-0.008223815821111202,
-0.0034253939520567656,
0.011644425801932812,
-0.01714610680937767,
0.011204292066395283,
0.0023238619323819876,
-0.07199068367481232,
0.006224074866622686,
-0.02332712523639202,
0.0392676442861557,
-0.046424612402915955,
-0.06284353882074356,
-0.02191103994846344,
-0.00804202165454626,
-0.011701835319399834,
-0.030101368203759193,
-0.022217219695448875,
-0.009156709536910057,
-0.05924592167139053,
0.0013514996971935034,
-0.017892422154545784,
-0.003729182528331876,
-0.003626324934884906,
-0.0474579744040966,
-0.07107213884592056,
0.02147090621292591,
-0.08871579170227051,
0.008802688680589199,
-0.015031547285616398,
-0.0331057645380497,
-0.047840699553489685,
-0.05090250447392464,
0.014897593297064304,
-0.01939461939036846,
0.040798548609018326,
0.018523918464779854,
-0.005305533297359943,
0.013309282250702381,
-0.03589966148138046,
-0.1137460470199585,
0.051361773163080215,
-0.03178536146879196,
-0.013184896670281887,
0.03699043020606041,
-0.02376725897192955,
-0.05706438422203064,
0.02707783505320549,
0.010639771819114685,
0.01076415739953518,
0.02250426448881626,
0.022025857120752335,
0.003832039888948202,
0.05457666888833046,
0.01250555831938982,
0.027211789041757584,
-0.04397517070174217,
-0.018447373062372208,
-0.03142176941037178,
-0.027345743030309677,
0.03972691670060158,
-0.02378639578819275,
0.03371812403202057,
0.0065924483351409435,
-0.009534651413559914,
0.049486417323350906,
0.00120080157648772,
0.04068373143672943,
-0.026771655306220055,
0.06881406158208847,
-0.06647943705320358,
-0.005946598947048187,
-0.024111712351441383,
0.006219290662556887,
-0.008836177177727222,
0.026771655306220055,
0.01608404330909252,
0.03390948846936226,
0.029259370639920235,
-0.020992498844861984,
0.0007732252706773579,
-0.032321177423000336,
0.05890147015452385,
-0.030063094571232796,
0.027843287214636803,
-0.0351533442735672,
0.031115589663386345,
0.018897075206041336,
-0.017088698223233223,
-0.0054059987887740135,
-0.006338892504572868,
-0.015222910791635513,
-0.042023271322250366,
0.016839925199747086,
-0.016906902194023132,
0.0455060712993145,
-0.026943881064653397,
-0.047228336334228516,
-0.016839925199747086,
0.06276699900627136,
0.01733746938407421,
0.000286595692159608,
0.04527643695473671,
0.02317403443157673,
0.03369898721575737,
-0.030426684767007828,
-0.006420221645385027,
0.06475716829299927,
0.005831781309098005,
-0.0024410716723650694,
-0.07493767142295837,
0.017882853746414185,
-0.02912541665136814,
0.03038841113448143,
0.03410084918141365,
0.013778121210634708,
0.022886989638209343,
-0.04734315723180771,
0.03434962034225464,
-0.008711791597306728,
-0.048644423484802246,
-0.027785878628492355,
0.00479842210188508,
-0.05492112413048744,
0.06119782105088234,
0.05637548118829727,
0.02503025345504284,
-0.05515075847506523,
0.013892939314246178,
0.02933591604232788,
0.05335194617509842,
-0.03758365288376808,
-0.0558396652340889,
-0.01230462733656168,
0.004633371718227863,
0.009816911071538925,
0.009386344812810421,
0.025125935673713684,
-0.016600722447037697,
-0.0055208164267241955,
0.012897852808237076,
0.03019704855978489,
0.002191103994846344,
0.03909542039036751,
0.04523816332221031,
-0.023690713569521904,
-0.01311791967600584,
0.0642213523387909,
0.008152054622769356,
-0.02849392034113407,
0.006487198639661074,
0.06096818670630455,
-0.0028513057623058558,
-0.0454678013920784,
0.024073440581560135,
-0.018686577677726746,
-0.0046812123619019985,
-0.07528212666511536,
0.021815359592437744,
-0.013443236239254475,
-0.020839408040046692,
0.04592707008123398,
0.008290792815387249,
0.008290792815387249,
-0.08795034140348434,
-0.014017324894666672,
0.05339021980762482,
0.03410084918141365,
-0.05825083330273628,
0.013768552802503109,
-0.01301266998052597,
-0.019748641178011894,
0.009534651413559914,
-0.005592577625066042,
-0.013758985325694084,
-0.04676906764507294,
-0.0013562837848439813,
-0.011692266911268234,
0.022638218477368355,
-0.08014273643493652,
-0.01417041476815939,
-0.008419962599873543,
0.027747604995965958,
0.03226376697421074,
-0.024111712351441383,
0.05063459649682045,
0.025125935673713684,
-0.05205067992210388,
-0.035057663917541504,
0.027805013582110405,
0.012658649124205112,
0.008812257088720798,
-0.018112488090991974,
0.021853631362318993,
-0.03953555226325989,
-0.041028182953596115,
0.07252649962902069,
0.017672354355454445,
0.015203773975372314,
0.0258339773863554,
0.030866818502545357,
0.013634598813951015,
-0.03471321240067482,
0.07620066404342651,
-0.020514091476798058,
-0.010524953715503216,
0.032971810549497604,
-0.042865265160799026,
0.012189810164272785,
0.0722968652844429,
0.0035306436475366354,
-0.029259370639920235,
-0.03168967738747597,
0.0433628112077713,
0.03961209952831268,
0.0053438059985637665,
0.054232217371463776,
0.06575225293636322,
-0.061925001442432404,
-0.021796222776174545,
-0.003626324934884906,
-0.02353762462735176,
-0.020992498844861984,
0.00186100322753191,
0.05327540263533592,
-0.0371626541018486,
0.005597361829131842,
0.005587793421000242,
0.007989396341145039,
0.005980087444186211,
0.018495215103030205
] |
721,925
|
apprise.asset
|
image_path
|
Apply our mask to our image file path
|
def image_path(self, notify_type, image_size, must_exist=True,
extension=None):
"""
Apply our mask to our image file path
"""
if not self.image_path_mask:
# No image to return
return None
if extension is None:
extension = self.default_extension
re_map = {
'{THEME}': self.theme if self.theme else '',
'{TYPE}': notify_type,
'{XY}': image_size,
'{EXTENSION}': extension,
}
# Iterate over above list and store content accordingly
re_table = re.compile(
r'(' + '|'.join(re_map.keys()) + r')',
re.IGNORECASE,
)
# Acquire our path
path = re_table.sub(lambda x: re_map[x.group()], self.image_path_mask)
if must_exist and not isfile(path):
return None
# Return what we parsed
return path
|
(self, notify_type, image_size, must_exist=True, extension=None)
|
[
0.07583477348089218,
-0.052959296852350235,
-0.040418241173028946,
0.020944666117429733,
0.02778524160385132,
-0.05560726299881935,
0.030010268092155457,
-0.014214422553777695,
0.043948862701654434,
-0.023555854335427284,
0.09142833948135376,
0.040087245404720306,
0.03685084357857704,
-0.041668668389320374,
-0.04023435339331627,
0.022213483229279518,
0.04700137674808502,
-0.0043902890756726265,
0.0015676319599151611,
0.024383343756198883,
0.03720022737979889,
-0.026258984580636024,
0.04939189925789833,
0.03063548170030117,
0.05472460761666298,
0.05748290196061134,
0.028373679146170616,
-0.02399718202650547,
0.05012744665145874,
-0.06833220273256302,
0.00012182477075839415,
-0.016393477097153664,
-0.0028295526280999184,
0.054687827825546265,
-0.03218012675642967,
0.05064232647418976,
0.011897453106939793,
0.06914130598306656,
-0.019473575055599213,
-0.03072742559015751,
-0.00010918257612502202,
-0.01212731096893549,
0.06127096340060234,
-0.014508640393614769,
-0.018416227772831917,
0.02491661347448826,
-0.04045501723885536,
-0.008288681507110596,
0.005916546564549208,
-0.061896178871393204,
0.014913191087543964,
0.009598872624337673,
-0.03720022737979889,
-0.009405791759490967,
-0.009433374740183353,
0.017414046451449394,
0.013423711061477661,
0.049208011478185654,
0.040087245404720306,
0.008233515545725822,
0.007566927466541529,
-0.026019932702183723,
0.0009228801354765892,
0.003197325626388192,
-0.0048867822624742985,
0.011897453106939793,
-0.023794906213879585,
-0.03368799760937691,
-0.038211602717638016,
0.043286871165037155,
-0.015667125582695007,
-0.0032341028563678265,
-0.009249487891793251,
-0.016154425218701363,
0.017368074506521225,
-0.0604618638753891,
0.022397369146347046,
-0.021165329962968826,
0.06847931444644928,
0.005291332490742207,
0.013920203782618046,
0.05674735829234123,
0.03473614901304245,
-0.0493183434009552,
0.08885393291711807,
-0.005351095460355282,
0.05137787386775017,
-0.009065601974725723,
0.00027324375696480274,
0.03309956192970276,
-0.016779638826847076,
-0.011410154402256012,
-0.023813294246792793,
-0.03096647746860981,
0.01773584820330143,
0.009208113886415958,
0.03275017440319061,
-0.02966088429093361,
0.04424307867884636,
-0.02162504568696022,
-0.07105372101068497,
-0.04431663453578949,
0.0022790427319705486,
-0.02105499804019928,
0.046817488968372345,
-0.04085956886410713,
-0.004307540133595467,
-0.0017170397331938148,
-0.024456897750496864,
0.0038248382043093443,
-0.011042380705475807,
-0.0235926304012537,
-0.0188483614474535,
-0.029348276555538177,
0.057703565806150436,
0.03278695419430733,
-0.0455302856862545,
-0.04652327299118042,
0.014977551065385342,
-0.005171806551516056,
-0.033632829785346985,
0.015234991908073425,
-0.08436710387468338,
0.03407415747642517,
0.023942016065120697,
0.03293406218290329,
0.007599107455462217,
0.007819770835340023,
0.03023093193769455,
-0.049686118960380554,
-0.07818851619958878,
0.03341216593980789,
-0.04416952282190323,
0.02105499804019928,
-0.04637616127729416,
-0.007718633394688368,
-0.02866789698600769,
-0.020668836310505867,
-0.012173282913863659,
0.07020784914493561,
-0.017680682241916656,
0.02350068837404251,
-0.01923452317714691,
-0.009015033021569252,
0.04589805752038956,
-0.029789604246616364,
0.10613925755023956,
-0.009074795991182327,
0.04350753501057625,
0.004029411822557449,
-0.014370725490152836,
0.014977551065385342,
-0.04251454770565033,
0.00844038836658001,
0.027343913912773132,
-0.045272842049598694,
0.016843998804688454,
0.008265695534646511,
-0.004210999701172113,
-0.008362236432731152,
-0.006390054244548082,
-0.004316734150052071,
-0.03521425649523735,
-0.04711170867085457,
0.0011780225904658437,
0.02947699837386608,
0.03172041103243828,
0.0535845123231411,
0.037641555070877075,
0.018167981877923012,
-0.00994825642555952,
-0.04420630261301994,
-0.016945136711001396,
-0.03219851851463318,
0.008849535137414932,
0.10974343121051788,
-0.0034961411729454994,
0.007134794257581234,
0.0010872286511585116,
0.013285796158015728,
0.011869870126247406,
0.030010268092155457,
-0.03195946291089058,
0.09245810657739639,
0.0018296701600775123,
0.04641294106841087,
0.02276514284312725,
0.006523371674120426,
0.03646468371152878,
0.006550954654812813,
-0.041080232709646225,
0.05465105175971985,
-0.002749102422967553,
0.029697660356760025,
0.007304889149963856,
-0.0008027792791835964,
0.028465621173381805,
-0.011897453106939793,
-0.0848819836974144,
-0.0068037984892725945,
0.019381631165742874,
-0.0514514297246933,
-0.011364182457327843,
0.020356230437755585,
-0.0062659308314323425,
-0.025688936933875084,
0.054025840014219284,
0.05086299031972885,
-0.08348444849252701,
0.08561752736568451,
-0.04678071290254593,
-0.018940303474664688,
-0.05045844241976738,
0.0029283915646374226,
0.02226864919066429,
-0.046081945300102234,
-0.07061239331960678,
0.11709889024496078,
-0.036078520119190216,
0.030929699540138245,
-0.030175765976309776,
0.0039098854176700115,
0.008794369176030159,
0.017551962286233902,
0.04939189925789833,
0.017101438716053963,
0.03352249786257744,
0.00452360650524497,
0.03620724007487297,
0.01327660121023655,
-0.02114694193005562,
-0.03749444708228111,
0.0336696095764637,
0.041153788566589355,
0.054687827825546265,
0.03252951428294182,
0.04063890501856804,
-0.006229153368622065,
0.05652669444680214,
0.02368457429111004,
0.005006308667361736,
-0.003571994137018919,
0.02793235145509243,
-0.008523136377334595,
0.016136035323143005,
-0.08547042310237885,
0.024199455976486206,
0.018940303474664688,
-0.035269420593976974,
-0.051414649933576584,
0.011566457338631153,
0.024456897750496864,
0.009883896447718143,
-0.01311110332608223,
-0.03175719082355499,
0.053363848477602005,
-0.030083822086453438,
-0.03795416280627251,
0.020779168233275414,
-0.007810576818883419,
0.0023905239067971706,
-0.046891044825315475,
0.029863158240914345,
-0.05200308561325073,
-0.06862641870975494,
-0.04225710406899452,
-0.03644629567861557,
0.06270527839660645,
-0.07701164484024048,
0.04483151435852051,
-0.00883114617317915,
0.07020784914493561,
-0.014637361280620098,
0.008821952156722546,
0.013322573155164719,
0.018866749480366707,
-0.029771216213703156,
-0.011851481162011623,
0.017009496688842773,
-0.013662762939929962,
-0.01641186513006687,
0.031996242702007294,
0.015565987676382065,
0.003925975877791643,
-0.027822019532322884,
0.0013986863195896149,
0.03205140680074692,
0.024033958092331886,
-0.015611959621310234,
-0.01081252284348011,
-0.003077799454331398,
0.06557390838861465,
-0.04306620731949806,
-0.03765994310379028,
-0.03376155346632004,
-0.023206470534205437,
-0.0008918492821976542,
-0.015161437913775444,
0.03446032106876373,
-0.036740511655807495,
-0.008091003634035587,
0.030341263860464096,
0.007268111687153578,
-0.02153310365974903,
0.004061591811478138,
0.034533873200416565,
-0.003259387332946062,
-0.041815776377916336,
0.026332538574934006,
0.045419953763484955,
0.037237007170915604,
-0.02850239910185337,
0.02008040063083172,
-0.000017445867342757992,
0.09407630562782288,
0.052297305315732956,
0.05170886963605881,
0.026773866266012192,
0.0008384072571061552,
0.07855629175901413,
0.019308077171444893,
0.03504875674843788,
-0.06296271830797195,
0.024530451744794846,
0.023059360682964325,
-0.02458561770617962,
0.007194557227194309,
0.02662675827741623,
0.031738799065351486,
0.06844253838062286,
0.01645783707499504,
0.04210999608039856,
0.005498204845935106,
0.0038639139384031296,
0.029863158240914345,
0.00851394236087799,
0.02909083664417267,
-0.032805342227220535,
0.0012170984409749508,
0.00407308479771018,
-0.007360055111348629,
-0.05314318463206291,
-0.06358793377876282,
0.016485419124364853,
0.0531064048409462,
-0.013249018229544163,
0.06469125300645828,
-0.019344855099916458,
0.026498036459088326,
-0.00962645560503006,
0.0011975604575127363,
-0.005985504016280174,
-0.06380859762430191,
-0.04277198761701584,
0.021275661885738373,
0.008803564123809338,
-0.051892753690481186,
-0.019363243132829666,
0.042955875396728516,
0.07333391159772873,
0.0839257761836052,
0.027417469769716263,
0.005847589112818241,
-0.01003100536763668,
0.05398906022310257,
0.0004226515011396259,
0.009893090464174747,
0.04269843176007271,
0.0784827321767807,
-0.03015737794339657,
-0.006504983175545931,
0.01335935015231371,
-0.04983322694897652,
-0.07686453312635422,
0.06770698726177216,
-0.023077748715877533,
-0.036501459777355194,
0.0037053117994219065,
-0.03227207064628601,
0.05888044089078903,
-0.014490252360701561,
0.060572195798158646,
-0.031242307275533676,
0.035508472472429276,
-0.01680722087621689,
-0.0006459011347033083,
0.026847422122955322,
0.028300125151872635,
-0.05373162031173706,
-0.021827321499586105,
0.008716217242181301,
-0.00982873048633337,
0.037476059049367905,
-0.03990335762500763,
0.05424650013446808,
-0.05799778550863266,
-0.03401899337768555,
0.07462111860513687,
-0.03578430414199829,
0.01097802072763443,
0.0010171219473704696,
-0.0010073529556393623,
-0.05207664147019386,
0.03670373558998108,
0.026663534343242645,
-0.021091775968670845,
-0.032805342227220535,
0.06708177924156189,
-0.025836044922471046,
-0.03784383088350296,
-0.00855991430580616,
-0.07833562791347504,
-0.01048152707517147,
-0.01998845674097538,
0.012016979046165943,
0.009598872624337673,
-0.03422126919031143,
-0.050421662628650665,
-0.02458561770617962,
0.04652327299118042,
-0.02883339487016201,
-0.016586557030677795,
-0.012485889717936516,
0.013552431017160416,
-0.023647796362638474,
0.02916439063847065,
-0.006449817214161158,
-0.002857135608792305,
-0.049612563103437424,
0.06152840703725815,
-0.03850582242012024,
0.06675077974796295,
-0.05211341753602028,
-0.003450169460847974,
0.019933290779590607,
-0.023647796362638474,
0.030911311507225037,
-0.04806791618466377,
-0.023978792130947113,
-0.028079461306333542,
-0.03574752435088158,
0.014977551065385342,
-0.02114694193005562,
0.015198214910924435,
0.005406261421740055,
-0.0028594343457370996,
-0.05678413435816765,
0.022507701069116592,
-0.0545407198369503,
-0.04325009137392044,
-0.024512063711881638,
0.06608878821134567,
0.03883681818842888,
0.03105842135846615,
-0.015308546833693981,
-0.010187309235334396,
-0.03111358731985092,
-0.022912250831723213,
-0.02186409942805767,
-0.05439361184835434,
-0.025284387171268463,
0.031977854669094086,
-0.01958390697836876,
-0.08091003447771072,
-0.0007510611903853714,
-0.03352249786257744,
0.028575953096151352,
-0.012219254858791828,
-0.009608066640794277,
-0.03368799760937691,
0.021018220111727715,
-0.09150189906358719,
-0.04711170867085457,
0.011998591013252735,
0.0535845123231411,
0.0222870372235775,
0.04998033493757248,
0.10047555714845657,
0.034864868968725204,
-0.06101352348923683,
0.04269843176007271,
-0.020282674580812454,
-0.02120210789144039,
-0.025174055248498917,
-0.005659105256199837,
-0.051414649933576584,
-0.017469212412834167,
-0.014232810586690903,
-0.03784383088350296,
0.0022526090033352375,
-0.014407503418624401,
0.05159853771328926,
-0.04906090348958969,
0.019381631165742874,
0.03286050632596016,
0.01892191544175148,
-0.03440515324473381,
0.017864568158984184,
0.029771216213703156,
-0.02966088429093361,
-0.021661823615431786,
-0.08576463907957077,
-0.014306365512311459,
0.029293110594153404,
0.01089527178555727,
-0.016779638826847076,
-0.026681924238801003,
-0.007006073836237192,
-0.022397369146347046,
-0.031187141314148903,
-0.014766082167625427,
0.06741277128458023,
-0.0001238360273418948,
0.008035837672650814,
-0.024787893518805504,
-0.03105842135846615,
0.012918022461235523,
0.020356230437755585,
0.02497177943587303,
-0.03455226495862007,
-0.022397369146347046,
-0.003857018193230033,
-0.009272473864257336,
-0.002962870290502906,
0.013101909309625626,
0.007815173827111721,
0.007166974246501923,
-0.02022750861942768,
0.011079158633947372,
0.03286050632596016,
0.021275661885738373,
0.005190195050090551,
0.017414046451449394,
-0.02375812828540802,
0.06112385541200638,
0.012237642891705036,
-0.015474044717848301,
-0.038873594254255295,
-0.06233750656247139,
-0.017919734120368958,
-0.03267662227153778,
-0.01880238950252533,
-0.05159853771328926,
-0.030764203518629074,
-0.003978842869400978,
0.020043622702360153,
0.05053199455142021,
-0.03539814054965973,
0.07127438485622406,
-0.07715875655412674,
-0.00020155678794253618,
0.007143988274037838,
0.0116767892614007,
0.015234991908073425,
0.028281735256314278,
0.027178416028618813,
0.012816885486245155,
-0.07145827263593674,
-0.019970068708062172,
-0.03236401453614235,
-0.0860588550567627,
-0.02662675827741623,
-0.043544311076402664,
0.009810341522097588,
-0.11754021793603897,
-0.009148350916802883,
-0.05126754194498062,
0.014940774068236351,
-0.014058118686079979,
-0.010720579884946346,
-0.003218012861907482,
0.05332706868648529,
0.022912250831723213,
-0.052628301084041595,
-0.00876218918710947,
0.012559444643557072,
0.054687827825546265,
-0.00904721301048994,
0.04832535982131958,
0.04762658849358559,
0.006095835939049721,
-0.05487171560525894,
0.09848958253860474,
0.013681151904165745,
-0.058108117431402206,
-0.03457065299153328,
-0.016917552798986435,
0.0014205228071659803,
-0.06101352348923683,
0.03931492194533348,
0.029293110594153404,
0.03512231260538101,
0.025523439049720764,
0.018581725656986237,
-0.025596993044018745,
-0.02072400227189064,
0.042477767914533615,
-0.01721177063882351,
-0.013405322097241879,
-0.011750344187021255,
0.0032938660588115454,
-0.008789772167801857,
-0.040786013007164,
0.05284896492958069,
-0.047810476273298264,
-0.04758981242775917,
0.0018227744149044156,
0.03072742559015751,
-0.020245898514986038,
-0.0095437066629529,
-0.013350156135857105,
0.04056534916162491,
0.059284988790750504,
0.021680211648344994,
0.02385007217526436,
0.044684406369924545,
-0.04045501723885536,
0.053694844245910645,
-0.014333948493003845,
0.00899664405733347,
-0.06623589992523193,
0.04372819885611534,
0.03898392617702484,
-0.0307090375572443,
0.0246591717004776,
-0.033632829785346985,
0.00009747418516781181,
0.01590617746114731,
-0.013396128080785275,
-0.05093654617667198,
0.012173282913863659,
0.011980202049016953,
0.019050635397434235,
-0.0222870372235775,
0.015657931566238403,
-0.01711982861161232,
0.002004362177103758,
-0.0036018758546561003,
-0.042146772146224976,
-0.006210764870047569,
0.03839549049735069,
-0.05277540907263756,
-0.03341216593980789,
-0.017248548567295074,
-0.020209120586514473,
0.0621168427169323,
-0.0030617094598710537,
-0.055827926844358444,
-0.02114694193005562,
0.004263867158442736,
-0.015400489792227745,
-0.005728062707930803,
0.007796785328537226,
-0.0023583436850458384,
-0.0014216720592230558,
0.07921828329563141,
0.029955102130770683,
-0.025431495159864426,
-0.02293064072728157,
-0.04416952282190323,
-0.06822187453508377,
0.026479648426175117,
-0.017597932368516922,
0.015713097527623177,
-0.005158015061169863,
-0.03322828188538551,
0.042882319539785385,
-0.04111700877547264,
0.0025169458240270615,
-0.014812053181231022,
-0.019124191254377365,
-0.02646126039326191,
-0.027730075642466545,
-0.0013044445076957345,
0.05531304329633713,
0.0020664238836616278,
-0.009038018994033337,
0.01048152707517147,
0.045272842049598694,
0.0343867652118206,
0.04229388386011124,
-0.043213315308094025,
0.00011090651241829619,
0.05086299031972885,
0.06252139061689377,
0.0060912384651601315,
0.05064232647418976,
-0.019933290779590607,
-0.013607596978545189,
0.04641294106841087,
-0.06697144359350204,
-0.00008447283471468836,
0.0028387471102178097,
-0.004923559725284576,
0.006675078067928553,
-0.0039052884094417095,
-0.05259152501821518,
0.02695775404572487,
0.003974245861172676,
-0.007272709161043167,
-0.002921495819464326,
-0.023059360682964325,
-0.03480970486998558,
-0.029771216213703156,
-0.005406261421740055,
-0.057225462049245834,
-0.0481414720416069,
0.022820308804512024,
-0.02383168414235115,
0.041337672621011734,
-0.030010268092155457,
0.007999060675501823,
0.023647796362638474,
-0.03545330837368965,
-0.04225710406899452,
0.021349215880036354,
-0.035582028329372406,
-0.02105499804019928,
0.022728364914655685,
-0.011685983277857304,
0.01702788472175598,
-0.02587282285094261,
0.04258809983730316,
-0.036979563534259796,
-0.015915371477603912,
0.020576894283294678,
0.013589208014309406,
-0.04152156040072441,
-0.027619743719697,
0.015391295775771141,
-0.037384115159511566,
0.008196738548576832,
-0.01581423357129097,
0.03898392617702484,
0.023702962324023247,
-0.029844770208001137,
0.00802664365619421,
0.005833797622472048,
-0.06263172626495361,
0.01130901649594307,
0.029127612709999084,
0.002654860494658351,
-0.05766678974032402,
0.01081252284348011,
0.045419953763484955,
-0.049281567335128784,
0.04711170867085457,
0.008164558559656143,
-0.02276514284312725,
0.052959296852350235,
0.006702661048620939,
-0.01747840642929077,
0.010187309235334396,
0.016889970749616623,
0.006261333357542753,
-0.07292936742305756,
0.029348276555538177,
0.0004697724070865661,
0.04729559272527695,
0.0535845123231411,
0.0020894098561257124,
-0.028723062947392464,
0.012421529740095139,
0.013681151904165745,
0.013570819981396198,
0.02745424583554268,
-0.06208006292581558,
0.004739673342555761
] |
721,926
|
apprise.asset
|
image_raw
|
Returns the raw image if it can (otherwise the function returns None)
|
def image_raw(self, notify_type, image_size, extension=None):
"""
Returns the raw image if it can (otherwise the function returns None)
"""
path = self.image_path(
notify_type=notify_type,
image_size=image_size,
extension=extension,
)
if path:
try:
with open(path, 'rb') as fd:
return fd.read()
except (OSError, IOError):
# We can't access the file
return None
return None
|
(self, notify_type, image_size, extension=None)
|
[
0.05203745514154434,
-0.09306629002094269,
-0.02781124971807003,
0.03650226444005966,
0.018423141911625862,
-0.0666673332452774,
-0.0012753612827509642,
0.019265083596110344,
0.08618590235710144,
-0.055477648973464966,
0.06061983481049538,
0.04175308719277382,
0.012185527943074703,
-0.006527314893901348,
-0.03766106814146042,
0.030925530940294266,
-0.03114280477166176,
-0.022433683276176453,
0.01081850379705429,
0.02886141464114189,
0.012846407480537891,
0.018558939918875694,
0.036393627524375916,
0.013534446246922016,
0.033967386931180954,
0.06246667355298996,
0.03536156937479973,
-0.0504441037774086,
0.01666683331131935,
-0.047619521617889404,
0.01758120022714138,
-0.003333819331601262,
0.0558759868144989,
0.08691015839576721,
-0.03382253646850586,
0.07325801998376846,
0.0019181342795491219,
0.03416655585169792,
-0.07459788024425507,
-0.006604266352951527,
-0.05457233637571335,
-0.05478961020708084,
0.05341353267431259,
-0.02567470818758011,
-0.014964842237532139,
0.006635952275246382,
-0.015399392694234848,
-0.04428796470165253,
-0.007450735196471214,
-0.015435605309903622,
0.04885074868798256,
0.08647560328245163,
-0.03871123120188713,
0.02538500726222992,
-0.03550641983747482,
0.012656291015446186,
-0.0449397936463356,
0.0292778592556715,
0.0132809579372406,
0.02563849650323391,
-0.015879210084676743,
-0.021981026977300644,
-0.013452967628836632,
-0.06424108892679214,
0.010239102877676487,
-0.015625720843672752,
0.00037711989716626704,
-0.0029920630622655153,
-0.022958766669034958,
-0.0016510665882378817,
-0.005843802820891142,
0.04273082688450813,
-0.022488001734018326,
-0.01461176946759224,
-0.00585738243535161,
-0.06033013388514519,
0.008686488494277,
-0.02017039805650711,
0.050842441618442535,
0.0368281789124012,
0.04312916472554207,
0.039145782589912415,
0.04751088470220566,
0.0004560519882943481,
0.047873008996248245,
-0.03472784906625748,
0.05583977326750755,
-0.001780073856934905,
-0.03791455551981926,
0.01570720039308071,
0.018432196229696274,
0.03619445860385895,
-0.03257320076227188,
-0.027449123561382294,
0.023157935589551926,
-0.003978855442255735,
0.025819558650255203,
0.010456377640366554,
0.034546785056591034,
-0.029042476788163185,
-0.10255398601293564,
-0.020441992208361626,
-0.019228871911764145,
-0.039978671818971634,
0.05457233637571335,
0.007532213348895311,
0.028245801106095314,
0.015317915007472038,
-0.004420196171849966,
0.007450735196471214,
-0.005988652817904949,
-0.0464245080947876,
-0.06981782615184784,
-0.005540522281080484,
0.04682284593582153,
-0.018233025446534157,
-0.01950046606361866,
0.013009363785386086,
-0.0035443047527223825,
-0.020260930061340332,
-0.06757264584302902,
-0.006310039199888706,
-0.05627432465553284,
-0.009578223340213299,
0.02313982881605625,
0.043237801641225815,
0.004221027251332998,
-0.0334785170853138,
0.017146648839116096,
-0.032048121094703674,
-0.047076333314180374,
-0.0007072766311466694,
-0.0252220518887043,
0.04747467115521431,
-0.05373944714665413,
-0.006595213431864977,
0.006998077966272831,
-0.003514881944283843,
0.027919886633753777,
0.05609326437115669,
0.003890587482601404,
-0.01214931532740593,
0.029802940785884857,
0.009075773879885674,
0.036466050893068314,
-0.02263285219669342,
0.10508885979652405,
-0.03097984939813614,
0.003983382135629654,
-0.029549453407526016,
0.029712408781051636,
-0.004218763671815395,
-0.0077313827350735664,
0.021365413442254066,
0.03183084353804588,
-0.008455634117126465,
0.01334432978183031,
-0.00933378841727972,
-0.0462796576321125,
0.008844918571412563,
-0.032591309398412704,
0.03416655585169792,
0.010655547492206097,
-0.08089886605739594,
-0.03172220662236214,
-0.004694053903222084,
-0.0070026046596467495,
0.02630842849612236,
0.03820425644516945,
-0.0021455944515764713,
-0.034003596752882004,
-0.031885161995887756,
-0.041897937655448914,
-0.03729894012212753,
0.04943015053868294,
0.10291610658168793,
-0.023990824818611145,
0.009759286418557167,
-0.04222385212779045,
-0.007029763888567686,
-0.01273776963353157,
-0.0204238872975111,
-0.00818403996527195,
0.03892850875854492,
0.0077540152706205845,
0.02426241897046566,
0.04584510624408722,
-0.0197539534419775,
0.06482049077749252,
-0.03929063305258751,
0.019065914675593376,
0.048379987478256226,
-0.043780989944934845,
0.03152303770184517,
0.042079001665115356,
-0.04479494318366051,
0.026960253715515137,
0.01033868733793497,
-0.0368281789124012,
0.011452223174273968,
-0.010537856258451939,
-0.04751088470220566,
0.010311528109014034,
0.008333416655659676,
-0.07025237381458282,
0.0024307684507220984,
0.024244312196969986,
0.035343464463949203,
-0.07988491654396057,
0.048452410846948624,
-0.03784212842583656,
-0.0033971911761909723,
-0.06080089509487152,
0.02877088263630867,
0.008677436038851738,
0.00239002937451005,
-0.035470206290483475,
0.07814671099185944,
-0.05203745514154434,
0.026543809100985527,
-0.02141973190009594,
-0.006857754196971655,
-0.022306939586997032,
0.0019588733557611704,
0.04019594565033913,
0.03324313461780548,
-0.0029128482565283775,
-0.011950146406888962,
0.012303219176828861,
-0.003365505253896117,
-0.0015673250891268253,
-0.016377132385969162,
0.04142717272043228,
0.05095107853412628,
0.0381680428981781,
0.025457432493567467,
0.006305512972176075,
-0.021202456206083298,
0.019355615600943565,
0.03423897922039032,
-0.025692814961075783,
-0.019808273762464523,
-0.010927141644060612,
0.010148570872843266,
-0.014901470392942429,
-0.11573535948991776,
0.00028432521503418684,
0.0558035634458065,
-0.026417065411806107,
-0.04631587117910385,
0.03469163551926613,
-0.0204963106662035,
0.012538600713014603,
-0.0030328023713082075,
-0.006472995970398188,
0.04874211177229881,
-0.02458833158016205,
-0.09755665063858032,
0.02163700759410858,
0.014675142243504524,
0.02618168480694294,
-0.03069014847278595,
-0.009107460267841816,
-0.017988592386245728,
-0.056057050824165344,
-0.0599680058658123,
-0.059895582497119904,
0.06217697262763977,
-0.010438271798193455,
0.03250077739357948,
0.060076646506786346,
0.08002977073192596,
-0.007097662892192602,
0.004866063594818115,
0.032754264771938324,
-0.03210243955254555,
0.02672487311065197,
0.008998822420835495,
0.045989956706762314,
-0.027449123561382294,
-0.0313962921500206,
0.058555718511343,
0.036810070276260376,
0.016558194532990456,
-0.027612080797553062,
-0.013290011323988438,
0.015236436389386654,
-0.006559000816196203,
-0.024081354960799217,
-0.02985725924372673,
0.021528368815779686,
0.06818825751543045,
-0.047909222543239594,
-0.06550852954387665,
-0.012022571638226509,
-0.0628650113940239,
-0.07945036888122559,
-0.02739480510354042,
0.034854594618082047,
-0.012113102711737156,
-0.021184349432587624,
0.007106715813279152,
0.006676691584289074,
0.012104049324989319,
-0.00048349431017413735,
0.017173808068037033,
0.007527686655521393,
-0.05406535789370537,
-0.04001488536596298,
-0.0025009303353726864,
0.04823513701558113,
-0.0065725804306566715,
0.07474273443222046,
0.04001488536596298,
0.06101817265152931,
0.01513685192912817,
0.0710490494966507,
0.004429249092936516,
0.05880920588970184,
0.05174775421619415,
-0.0014349229168146849,
0.050045765936374664,
-0.008998822420835495,
0.0504441037774086,
0.008021082729101181,
-0.024316737428307533,
-0.023447636514902115,
0.030255597084760666,
-0.0038996406365185976,
0.07713276147842407,
0.013941837474703789,
0.012185527943074703,
0.030889317393302917,
-0.011597073636949062,
-0.018070070073008537,
0.0061425562016665936,
0.013860358856618404,
-0.04504843056201935,
-0.030581511557102203,
-0.04780058562755585,
-0.015471817925572395,
-0.006147082895040512,
0.01679357700049877,
0.03581422567367554,
0.021202456206083298,
0.01991691067814827,
0.06380654126405716,
-0.08031947165727615,
0.03286290168762207,
-0.06999889016151428,
-0.03766106814146042,
0.0015254543395712972,
-0.07662578672170639,
-0.0409201979637146,
-0.03896471858024597,
0.002661623526364565,
-0.014421653933823109,
0.04388962686061859,
0.020948968827724457,
0.05156669020652771,
0.044070690870285034,
0.05182018131017685,
-0.01219458132982254,
-0.0010343213798478246,
0.00994034856557846,
0.007984870113432407,
-0.002808737102895975,
0.06753643602132797,
0.01644955761730671,
0.03315260261297226,
-0.06101817265152931,
-0.007151981350034475,
-0.07959521561861038,
-0.008537111803889275,
0.03773349151015282,
-0.03222918137907982,
-0.04030458629131317,
-0.013887518085539341,
-0.0033270292915403843,
0.049466364085674286,
-0.02458833158016205,
0.04671420902013779,
-0.05069759115576744,
0.008713648654520512,
-0.0049294354394078255,
-0.004875116515904665,
-0.0184140894562006,
0.05569492280483246,
-0.07669821381568909,
-0.04986470192670822,
-0.03040044754743576,
-0.04309295117855072,
-0.006341725587844849,
0.01269250363111496,
0.0005239505553618073,
-0.04671420902013779,
-0.004354560747742653,
0.06076468527317047,
-0.05026303976774216,
-0.019609102979302406,
-0.025403114035725594,
0.0076815905049443245,
-0.06862281262874603,
0.005884541664272547,
0.011624232865869999,
-0.010202890262007713,
-0.02109381929039955,
-0.007749489042907953,
-0.00880870595574379,
-0.0761912390589714,
0.01472040731459856,
0.01518211793154478,
-0.06891251355409622,
0.0011961462441831827,
0.04751088470220566,
0.04034079611301422,
0.006844174582511187,
-0.04798164963722229,
-0.0020064024720340967,
0.031088486313819885,
-0.03425708785653114,
0.0395803339779377,
-0.0053911455906927586,
-0.0022712068166583776,
-0.002248574048280716,
0.019826378673315048,
0.0191202349960804,
-0.013317170552909374,
-0.02688782848417759,
0.0613078735768795,
-0.0116061270236969,
0.0408477745950222,
-0.04986470192670822,
0.02221640758216381,
0.029332177713513374,
-0.024117568507790565,
0.0017099120886996388,
-0.01269250363111496,
-0.02151026390492916,
0.05645538866519928,
-0.012013518251478672,
0.036556582897901535,
-0.0073828366585075855,
-0.013869412243366241,
0.012601972557604313,
-0.003942642826586962,
-0.05402914807200432,
0.016042165458202362,
-0.03155925124883652,
-0.04577268287539482,
-0.015164011158049107,
0.006029392126947641,
0.0408477745950222,
0.0018547623185440898,
-0.03590475767850876,
-0.01687505468726158,
-0.036230672150850296,
0.002421715296804905,
-0.035433992743492126,
-0.06304607540369034,
-0.061452724039554596,
0.02071358636021614,
-0.034546785056591034,
-0.0956011712551117,
0.05124077945947647,
-0.03599528968334198,
0.00931568257510662,
0.000980002572759986,
-0.03853016719222069,
-0.006445836275815964,
0.09907757490873337,
-0.04302052780985832,
-0.048995599150657654,
0.007079556584358215,
0.06112680956721306,
-0.006518261507153511,
0.005486203357577324,
0.07300452888011932,
0.020804118365049362,
-0.06894872337579727,
0.011560861021280289,
-0.0056220004335045815,
-0.04396205395460129,
-0.03871123120188713,
-0.02033335529267788,
-0.0518563911318779,
0.003729894058778882,
0.010610281489789486,
0.03784212842583656,
0.007735908962786198,
-0.025167731568217278,
0.08683773130178452,
-0.034854594618082047,
0.03331555798649788,
0.010909034870564938,
0.023031191900372505,
-0.02288634143769741,
-0.0049294354394078255,
0.043491289019584656,
-0.003105227369815111,
-0.006540894508361816,
-0.07061450183391571,
0.010809450410306454,
0.016015006229281425,
0.0049294354394078255,
-0.002018850529566407,
-0.013996155932545662,
-0.00040031858952715993,
0.0382404699921608,
0.004639734979718924,
0.0015809048200026155,
0.08213009685277939,
0.03458299860358238,
0.010456377640366554,
-0.019065914675593376,
-0.034347616136074066,
0.023773549124598503,
0.03212054446339607,
0.023501954972743988,
-0.011497489176690578,
0.03961654752492905,
0.01724623329937458,
-0.01820586621761322,
0.0224698968231678,
-0.0028879521414637566,
0.023701123893260956,
0.0006563527276739478,
-0.0027295220643281937,
-0.0031889688689261675,
0.029929684475064278,
0.035307250916957855,
0.0038340052124112844,
0.0327361598610878,
-0.06851417571306229,
-0.029513239860534668,
-0.0059524402022361755,
-0.048379987478256226,
-0.021564582362771034,
-0.07713276147842407,
-0.01924697868525982,
-0.018740002065896988,
-0.03065393678843975,
0.01010330580174923,
0.015372233465313911,
-0.009125566110014915,
0.0016193806659430265,
0.02759397402405739,
-0.03532535582780838,
0.05891784280538559,
-0.0694194883108139,
-0.007292305119335651,
-0.029676197096705437,
0.014810939319431782,
0.020351462066173553,
0.03657469153404236,
0.025710921734571457,
-0.008795126341283321,
-0.05808495357632637,
-0.02397271804511547,
-0.03519861400127411,
-0.00586643535643816,
0.002421715296804905,
-0.022162089124321938,
0.01736392453312874,
-0.08922775834798813,
0.042079001665115356,
-0.00634625181555748,
0.057433128356933594,
-0.01879432052373886,
-0.024479692801833153,
-0.027249954640865326,
0.08263707160949707,
0.022542322054505348,
-0.02317604050040245,
0.012393750250339508,
0.019681528210639954,
0.058483291417360306,
0.038566380739212036,
0.015498978085815907,
0.0077042230404913425,
0.02922353893518448,
-0.0816955491900444,
0.05431884527206421,
-0.0009420925052836537,
-0.07123011350631714,
-0.043455079197883606,
-0.029205434024333954,
-0.014557451009750366,
-0.02960377186536789,
0.041861724108457565,
0.06166999787092209,
-0.04258597642183304,
0.02429863065481186,
-0.011660445481538773,
0.02563849650323391,
0.021202456206083298,
0.0060112858191132545,
-0.006391517817974091,
-0.01665777899324894,
-0.03235592693090439,
0.025747133418917656,
-0.004558256361633539,
-0.03257320076227188,
0.032301608473062515,
-0.0069528124295175076,
-0.022143982350826263,
0.004725739825516939,
0.03657469153404236,
0.026797298341989517,
0.012601972557604313,
-0.02851739525794983,
0.03469163551926613,
0.025276370346546173,
0.01707422360777855,
0.04859726130962372,
0.02551175095140934,
-0.0669570341706276,
0.03297153860330582,
0.0009918847354128957,
0.042658399790525436,
-0.01582489162683487,
0.04751088470220566,
-0.03671954199671745,
0.013860358856618404,
-0.004105599597096443,
-0.025294477120041847,
0.00102583400439471,
0.018721895292401314,
-0.021184349432587624,
-0.01269250363111496,
0.021474050357937813,
-0.021437838673591614,
0.05102350190281868,
0.007138401735574007,
0.016105538234114647,
-0.049792274832725525,
0.030672041699290276,
0.024570224806666374,
-0.042948100715875626,
0.02835443802177906,
0.04714876040816307,
-0.04475872963666916,
-0.0204963106662035,
-0.01557140238583088,
0.014992001466453075,
0.031016061082482338,
-0.04113747179508209,
-0.026833510026335716,
-0.007387363351881504,
-0.022143982350826263,
-0.018015751615166664,
0.0013885254738852382,
0.04671420902013779,
0.018477460369467735,
0.0018909748177975416,
0.04751088470220566,
0.047040119767189026,
-0.005771377589553595,
-0.04081156104803085,
-0.025040987879037857,
-0.03726273030042648,
0.018558939918875694,
-0.0003267618012614548,
0.07347529381513596,
-0.00897618941962719,
-0.028426863253116608,
-0.039145782589912415,
-0.01424059085547924,
-0.01561666838824749,
-0.06061983481049538,
0.0007276462274603546,
0.07101283967494965,
-0.0037208409048616886,
-0.01665777899324894,
0.02205345220863819,
0.00160014268476516,
0.023501954972743988,
-0.03197569400072098,
0.04254976287484169,
0.051458053290843964,
0.08249222487211227,
-0.02429863065481186,
-0.007333044428378344,
0.01940993405878544,
0.04588131979107857,
-0.002231599297374487,
0.028752775862812996,
-0.016223229467868805,
-0.034094128757715225,
-0.027086999267339706,
-0.05189260467886925,
0.007658957503736019,
0.02509530819952488,
0.01769889146089554,
-0.006903020199388266,
0.0012504651676863432,
-0.04414311796426773,
0.009324735030531883,
-0.0004908500122837722,
0.023194147273898125,
0.026616234332323074,
-0.07162845134735107,
-0.013996155932545662,
-0.028553606942296028,
0.020731693133711815,
-0.03298964723944664,
-0.026942148804664612,
0.027612080797553062,
0.008863025344908237,
0.026525704190135002,
-0.012411856092512608,
0.02710510417819023,
0.011334532871842384,
-0.04425175487995148,
-0.028173375874757767,
0.061452724039554596,
-0.08502709865570068,
0.025022882968187332,
-0.0077042230404913425,
0.010429218411445618,
-0.060149069875478745,
-0.017264340072870255,
0.016630619764328003,
-0.01016667764633894,
0.012448068708181381,
0.050625164061784744,
0.003935853019356728,
-0.05323246866464615,
-0.015815837308764458,
0.0435999296605587,
0.02893383987247944,
-0.025240156799554825,
-0.023809760808944702,
-0.02438916265964508,
0.006210454739630222,
-0.011144416406750679,
0.00860501080751419,
0.007165561430156231,
-0.027575867250561714,
-0.014512185007333755,
0.034673530608415604,
0.013462021015584469,
-0.03545210137963295,
0.016295654699206352,
0.06579823046922684,
-0.0738012045621872,
0.0532686822116375,
0.0016397502040490508,
-0.02429863065481186,
0.06945569813251495,
0.03186705708503723,
-0.020061761140823364,
0.00795318465679884,
0.06974539905786514,
0.02755776233971119,
-0.03503565490245819,
-0.04671420902013779,
0.0026910461019724607,
0.027992311865091324,
0.025457432493567467,
-0.007609165273606777,
-0.01021194364875555,
0.0036868916358798742,
0.015924476087093353,
-0.0765533596277237,
0.029947791248559952,
-0.04522949457168579,
0.01741824299097061
] |
721,927
|
apprise.asset
|
image_url
|
Apply our mask to our image URL
if logo is set to True, then the logo_url is used instead
|
def image_url(self, notify_type, image_size, logo=False, extension=None):
"""
Apply our mask to our image URL
if logo is set to True, then the logo_url is used instead
"""
url_mask = self.image_url_logo if logo else self.image_url_mask
if not url_mask:
# No image to return
return None
if extension is None:
extension = self.default_extension
re_map = {
'{THEME}': self.theme if self.theme else '',
'{TYPE}': notify_type,
'{XY}': image_size,
'{EXTENSION}': extension,
}
# Iterate over above list and store content accordingly
re_table = re.compile(
r'(' + '|'.join(re_map.keys()) + r')',
re.IGNORECASE,
)
return re_table.sub(lambda x: re_map[x.group()], url_mask)
|
(self, notify_type, image_size, logo=False, extension=None)
|
[
0.045994359999895096,
-0.10179499536752701,
-0.043030522763729095,
0.010071557015180588,
0.0012086326023563743,
-0.042884159833192825,
-0.0014967834576964378,
-0.030827565118670464,
0.06513123214244843,
0.009696504101157188,
0.04932410269975662,
0.043323248624801636,
0.017417116090655327,
-0.028906559571623802,
-0.027058735489845276,
0.002764875767752528,
0.008946397341787815,
0.010565530508756638,
0.045408912003040314,
-0.01948448456823826,
0.029400531202554703,
0.011288193985819817,
0.023546038195490837,
0.0005494304350577295,
0.057264260947704315,
0.05755698308348656,
0.02960178069770336,
-0.0133464140817523,
0.0269489623606205,
-0.034724462777376175,
0.00724036106839776,
-0.034523215144872665,
0.03256561607122421,
0.06333829462528229,
0.013337266631424427,
-0.0031993889715522528,
0.021222537383437157,
0.055581092834472656,
-0.05876447260379791,
-0.02318013273179531,
-0.011361375451087952,
-0.04039600118994713,
0.0815969929099083,
-0.042591437697410583,
-0.00007203770655905828,
0.04800684377551079,
-0.036901600658893585,
0.015066171996295452,
-0.008598786778748035,
-0.1102108284831047,
0.022704456001520157,
-0.009998376481235027,
-0.021021289750933647,
0.0006620608037337661,
-0.014718561433255672,
0.05927674099802971,
0.003219971200451255,
0.09535505622625351,
0.043433018028736115,
0.03293152153491974,
-0.005863640457391739,
-0.0415303111076355,
-0.030681202188134193,
-0.028138156980276108,
0.008461572229862213,
0.013108575716614723,
-0.03529161587357521,
0.003153650788590312,
-0.0435062013566494,
0.027259983122348785,
-0.003062174189835787,
-0.012257845140993595,
-0.03973736986517906,
-0.022905703634023666,
-0.018725229427218437,
-0.04829956591129303,
0.04171326383948326,
-0.01620962657034397,
0.04625049605965614,
0.0006094618584029377,
0.025393864139914513,
0.03183380514383316,
0.062350351363420486,
-0.06421647220849991,
0.0647653266787529,
-0.05184885486960411,
0.03307788446545601,
-0.00627985829487443,
0.015980936586856842,
0.05181226134300232,
-0.02561340667307377,
0.0011234452249482274,
-0.04314029589295387,
-0.06447260081768036,
-0.004550953395664692,
0.0365905798971653,
0.028284519910812378,
-0.021039584651589394,
0.0489216074347496,
-0.032254599034786224,
-0.05067795515060425,
-0.034431736916303635,
-0.04522595927119255,
-0.03681012615561485,
0.047823891043663025,
-0.07640113681554794,
-0.010327691212296486,
-0.009595880284905434,
-0.05675199255347252,
0.012687783688306808,
-0.019246645271778107,
-0.03701137378811836,
-0.007501068990677595,
-0.035072073340415955,
0.08086518198251724,
0.009888604283332825,
-0.05108045041561127,
-0.045701634138822556,
0.027497822418808937,
0.0021931480150669813,
-0.04445755481719971,
0.04142053797841072,
-0.08723194897174835,
0.033827994018793106,
0.031413014978170395,
0.040761906653642654,
0.01748115010559559,
-0.0016294242814183235,
0.04383551701903343,
-0.0608135461807251,
-0.06933914870023727,
0.04617731273174286,
-0.06677781045436859,
0.024003421887755394,
-0.02071026898920536,
-0.04687253385782242,
-0.05265384539961815,
-0.010666154325008392,
-0.0064262207597494125,
0.07387638092041016,
-0.044567327946424484,
0.02480841428041458,
-0.008507310412824154,
0.028394291177392006,
0.03194357827305794,
-0.042884159833192825,
0.10457587987184525,
-0.009193383157253265,
0.02111276611685753,
-0.03708455339074135,
0.011215013451874256,
0.05053159222006798,
-0.01562417857348919,
0.022173892706632614,
-0.014306916855275631,
-0.019301531836390495,
0.004761349409818649,
0.009669060818850994,
-0.000432797969551757,
0.021185945719480515,
0.034285373985767365,
0.009916047565639019,
-0.03282175213098526,
-0.0296566653996706,
-0.016374284401535988,
-0.02041754499077797,
0.09023237228393555,
0.006874455604702234,
0.053751565515995026,
0.010565530508756638,
-0.00956843700259924,
-0.043433018028736115,
-0.03084586001932621,
-0.018167223781347275,
0.018917329609394073,
0.1378733068704605,
-0.017014620825648308,
-0.012266992591321468,
-0.0174262635409832,
0.04013986885547638,
0.00377569068223238,
0.027168506756424904,
-0.03369992598891258,
0.061911262571811676,
0.012596307322382927,
0.035126958042383194,
0.01366658229380846,
0.017096949741244316,
-0.014526460319757462,
0.020399248227477074,
-0.02585124596953392,
0.00853932648897171,
-0.007702317554503679,
-0.01562417857348919,
0.009897751733660698,
-0.007459904532879591,
-0.008671967312693596,
-0.03490741550922394,
-0.05459314584732056,
0.0005122681614011526,
-0.0036910749040544033,
-0.05411747097969055,
-0.03479764237999916,
0.027790546417236328,
0.01899051107466221,
-0.022997179999947548,
0.05956946685910225,
0.02495477721095085,
-0.05503223463892937,
0.056678809225559235,
-0.03545627370476723,
0.0158254262059927,
-0.07113208621740341,
0.00869941059499979,
0.019301531836390495,
-0.05408087745308876,
-0.07270548492670059,
0.1200902909040451,
-0.05426383018493652,
0.02268616110086441,
-0.03020552545785904,
-0.03252902626991272,
0.006357613485306501,
0.01792023703455925,
0.03721262142062187,
0.033645037561655045,
0.05664221942424774,
0.00015536704449914396,
0.028266223147511482,
0.015605882741510868,
-0.04083508998155594,
-0.016968881711363792,
0.04127417504787445,
0.07340070605278015,
0.08906147629022598,
-0.002803753362968564,
0.02729657292366028,
-0.01418799813836813,
0.057374030351638794,
0.05122681334614754,
0.009925195015966892,
-0.002790031721815467,
0.04636026546359062,
0.018203813582658768,
0.02886996790766716,
-0.059825599193573,
-0.02283252216875553,
0.047970250248909,
-0.042737796902656555,
-0.0583253875374794,
0.012166367843747139,
0.0005531467031687498,
0.005772164091467857,
-0.009335172362625599,
-0.03327913209795952,
0.022411730140447617,
-0.013931863941252232,
-0.007999615743756294,
0.010684449225664139,
-0.043469611555337906,
0.021167650818824768,
-0.0761084109544754,
0.016511499881744385,
-0.03199846297502518,
-0.05967923626303673,
-0.02945541776716709,
-0.02877849154174328,
0.06483850628137589,
-0.06988801062107086,
0.05986218899488449,
0.05265384539961815,
0.04932410269975662,
0.003617893671616912,
0.0200150478631258,
0.017151834443211555,
0.03099222294986248,
-0.008205438032746315,
-0.019758913666009903,
-0.003094190964475274,
-0.050202276557683945,
0.013218346983194351,
0.022411730140447617,
0.034632984548807144,
-0.002675686264410615,
0.01977720856666565,
-0.020435839891433716,
0.06538736820220947,
0.03198016807436943,
0.0008410116424784064,
-0.020582200959324837,
0.009605027735233307,
0.07160776853561401,
-0.015898607671260834,
-0.01388612575829029,
-0.07383979111909866,
0.0030804695561528206,
0.027991794049739838,
0.01366658229380846,
0.026802601292729378,
-0.005461144261062145,
-0.014855775982141495,
0.005397110711783171,
0.027003848925232887,
-0.02530238777399063,
-0.0010005236836150289,
0.022320253774523735,
0.003354898886755109,
-0.032400958240032196,
0.031211765483021736,
0.048372749239206314,
0.05967923626303673,
-0.0001204201762448065,
-0.019155168905854225,
-0.02230195887386799,
0.050897497683763504,
0.020838335156440735,
0.04409164935350418,
0.02457057498395443,
0.027845432981848717,
0.07523023337125778,
0.03227289393544197,
0.01530401036143303,
-0.055288366973400116,
0.02649158053100109,
0.05477609857916832,
-0.04306711256504059,
0.022027529776096344,
0.010730188339948654,
0.010272805579006672,
0.05481269210577011,
0.0331144742667675,
0.03256561607122421,
-0.011233308352530003,
0.024680346250534058,
0.014197145588696003,
0.01684996299445629,
0.008658246137201786,
-0.049946144223213196,
0.02378387749195099,
-0.028595538809895515,
-0.037651706486940384,
-0.025082843378186226,
-0.06732667237520218,
0.004697315860539675,
0.021332308650016785,
-0.008223732933402061,
0.051775671541690826,
-0.029492007568478584,
0.004370287526398897,
-0.05228793993592262,
-0.0014453280018642545,
-0.00846614595502615,
-0.011654100380837917,
-0.032254599034786224,
0.058105841279029846,
0.004697315860539675,
-0.06860733777284622,
-0.057264260947704315,
0.048665471374988556,
0.060337867587804794,
0.05623972415924072,
0.008406685665249825,
-0.015697360038757324,
0.00944036990404129,
0.05195862427353859,
0.01497469563037157,
0.01702376827597618,
0.04046918451786041,
0.07947473973035812,
-0.056569039821624756,
-0.017901942133903503,
0.021478671580553055,
-0.021515261381864548,
-0.06750962138175964,
0.05927674099802971,
-0.04306711256504059,
-0.01789279468357563,
0.004651577677577734,
-0.03454151004552841,
0.05097068101167679,
-0.01549611147493124,
0.06337488442659378,
0.015249124728143215,
0.029400531202554703,
0.0173073448240757,
-0.02744293585419655,
0.037798069417476654,
0.0553615503013134,
-0.04423801228404045,
-0.018652047961950302,
0.017179278656840324,
-0.021478671580553055,
0.02530238777399063,
0.0005831624148413539,
0.019539371132850647,
-0.07830384373664856,
-0.04032282158732414,
0.0716443583369255,
-0.03441344201564789,
-0.012806703336536884,
0.008182568475604057,
0.01440754160284996,
-0.05349542945623398,
0.010428315959870815,
0.01846909523010254,
-0.01517594326287508,
-0.0311385840177536,
0.04899478703737259,
-0.013657434843480587,
-0.021332308650016785,
-0.04716525971889496,
-0.06271625310182571,
-0.045006413012742996,
-0.04537232220172882,
0.02689407765865326,
0.015267419628798962,
0.0019393007969483733,
-0.02625374123454094,
-0.05012909695506096,
0.045408912003040314,
0.010400872677564621,
-0.015615030191838741,
0.007363854441791773,
0.004203342832624912,
-0.04453073814511299,
0.001059983391314745,
0.01565162092447281,
-0.0326387993991375,
-0.04511618614196777,
0.032400958240032196,
-0.01818551868200302,
0.03580388426780701,
-0.04094485938549042,
-0.009769685566425323,
0.03962760046124458,
-0.005877362098544836,
0.0390421487390995,
-0.031120289117097855,
-0.03371822088956833,
-0.033041294664144516,
-0.03369992598891258,
-0.040213048458099365,
-0.01722501590847969,
0.023143542930483818,
-0.01917346380650997,
-0.003844297956675291,
-0.053751565515995026,
-0.0028472046833485365,
-0.05920356139540672,
-0.022905703634023666,
-0.037944432348012924,
0.08291425555944443,
-0.006234120111912489,
0.019795503467321396,
0.0014464714331552386,
-0.02846747264266014,
-0.00789899192750454,
-0.024241259321570396,
-0.027790546417236328,
-0.012486536055803299,
0.007103146519511938,
0.0006146074156276882,
-0.029254170134663582,
-0.04870206490159035,
-0.01199256256222725,
-0.01754518412053585,
0.041603490710258484,
-0.028540654107928276,
-0.011013764888048172,
-0.03327913209795952,
0.010208772495388985,
-0.07793793827295303,
-0.01902710273861885,
0.0049305809661746025,
0.019594255834817886,
0.03494400531053543,
0.04127417504787445,
0.07727930694818497,
0.03029700182378292,
-0.06337488442659378,
0.01786535046994686,
-0.029766438528895378,
0.00012049164070049301,
-0.039225101470947266,
-0.028504062443971634,
-0.059496283531188965,
-0.006782978773117065,
-0.02466205134987831,
-0.01846909523010254,
0.05115363374352455,
-0.014938104897737503,
0.033937763422727585,
-0.05675199255347252,
0.03776147961616516,
0.009897751733660698,
0.008722280152142048,
-0.013062837533652782,
0.022503206506371498,
0.028193043544888496,
-0.05913037806749344,
-0.012788408435881138,
-0.0820360854268074,
-0.03000427596271038,
0.009513551369309425,
0.03984714299440384,
-0.018652047961950302,
-0.019118579104542732,
0.030223820358514786,
-0.022923998534679413,
-0.020874926820397377,
-0.021661624312400818,
0.036645468324422836,
0.03170573711395264,
0.022320253774523735,
-0.018350176513195038,
-0.05448337644338608,
-0.013264086097478867,
-0.0029729846864938736,
0.03069949708878994,
-0.047933660447597504,
0.005241600796580315,
0.033041294664144516,
-0.008950971066951752,
-0.010766778141260147,
0.03168744221329689,
0.015377191826701164,
0.009326023980975151,
-0.0041027190163731575,
-0.0043382709845900536,
0.03375481069087982,
-0.016109002754092216,
-0.014096521772444248,
-0.006096905563026667,
-0.035767294466495514,
0.0504218190908432,
0.03534650057554245,
-0.03035188652575016,
-0.04335983842611313,
-0.05294657126069069,
0.03874942660331726,
-0.050092507153749466,
-0.039078742265701294,
-0.057813119143247604,
-0.029180988669395447,
-0.02393024042248726,
0.024991367012262344,
0.04237189143896103,
0.01235846895724535,
0.053897924721241,
-0.06663145124912262,
-0.014645379967987537,
0.023052066564559937,
0.04661640152335167,
-0.0005877361982129514,
0.005323929712176323,
0.01774643175303936,
-0.019063692539930344,
-0.03198016807436943,
-0.025338977575302124,
-0.03139472007751465,
-0.06187467277050018,
-0.03157767280936241,
-0.051043860614299774,
0.00830606184899807,
-0.11723621934652328,
0.019045397639274597,
-0.03397435322403908,
0.021661624312400818,
-0.03746875375509262,
-0.004797940142452717,
0.0005991707439534366,
0.0070665557868778706,
0.013007951900362968,
-0.004059267695993185,
0.003784838132560253,
0.021332308650016785,
0.05814243480563164,
-0.0410180427134037,
0.06052082031965256,
0.02328990399837494,
-0.001750630559399724,
-0.031156878918409348,
0.09213508665561676,
-0.0017746431985870004,
-0.02930905483663082,
-0.02910780720412731,
0.003201675834134221,
0.020746858790516853,
-0.021862871944904327,
0.03139472007751465,
0.00665948586538434,
0.04284757003188133,
0.014178849756717682,
0.01623707078397274,
-0.03970078006386757,
-0.015413782559335232,
0.04013986885547638,
-0.01166324783116579,
-0.006124348379671574,
-0.0008478723466396332,
0.04310370609164238,
0.019685732200741768,
-0.049799781292676926,
0.009595880284905434,
-0.03404753655195236,
-0.03150448948144913,
-0.002744293538853526,
0.022905703634023666,
-0.009659913368523121,
-0.03049824945628643,
-0.00724036106839776,
0.05225135013461113,
0.04057895392179489,
0.018231257796287537,
0.003844297956675291,
0.007720612455159426,
-0.07647431641817093,
0.07032709568738937,
-0.019045397639274597,
-0.003082756418734789,
-0.0336267426609993,
0.05012909695506096,
0.005451996810734272,
-0.02012481912970543,
0.006316449027508497,
-0.0350903682410717,
0.003402923932299018,
0.029235875234007835,
-0.029235875234007835,
-0.03130324184894562,
0.017554331570863724,
-0.0006117487791925669,
0.03697478398680687,
-0.0009216252365149558,
0.007985894568264484,
0.022411730140447617,
0.0185331292450428,
0.020399248227477074,
-0.061618540436029434,
-0.0004905425012111664,
0.07182730734348297,
-0.024058306589722633,
-0.017499445006251335,
-0.013264086097478867,
-0.014169702306389809,
0.08540241420269012,
-0.011827905662357807,
-0.04987296089529991,
-0.03959100693464279,
-0.01963084749877453,
-0.014252031221985817,
0.017142686992883682,
0.06729007512331009,
0.029199283570051193,
-0.009733094833791256,
0.08115790784358978,
0.003540138714015484,
-0.011407113634049892,
-0.0038786015938967466,
-0.029985981062054634,
-0.05730085074901581,
0.012331025674939156,
-0.0016271374188363552,
0.009358040988445282,
-0.01908198744058609,
-0.02936394140124321,
0.0647653266787529,
-0.053166113793849945,
-0.012074891477823257,
-0.008141404017806053,
-0.020893221721053123,
-0.002246890449896455,
-0.04434778541326523,
0.014334360137581825,
0.09579414129257202,
-0.009138497523963451,
-0.006142643745988607,
0.007985894568264484,
0.018917329609394073,
0.03130324184894562,
0.05419065058231354,
-0.04969000816345215,
0.005694409366697073,
0.0632651150226593,
0.006481106858700514,
0.01618218421936035,
0.020783450454473495,
-0.0026413826271891594,
-0.05334906652569771,
0.05323929712176323,
-0.0252109095454216,
-0.023106951266527176,
-0.00500376196578145,
-0.015239977277815342,
0.033992648124694824,
0.02852235734462738,
-0.07043686509132385,
-0.008973839692771435,
0.0032268317881971598,
0.0017746431985870004,
-0.018652047961950302,
-0.013200052082538605,
-0.03351697325706482,
-0.007025391794741154,
0.001566534279845655,
-0.04720184952020645,
-0.01643831841647625,
-0.0008701697806827724,
-0.0333523154258728,
0.017490297555923462,
-0.02120424248278141,
0.0034143587108701468,
0.007793793920427561,
0.0056852614507079124,
-0.028485767543315887,
0.020088229328393936,
-0.050641365349292755,
-0.02570488303899765,
-0.009133923798799515,
0.012468240223824978,
0.029894504696130753,
-0.011160126887261868,
0.04043259099125862,
-0.03529161587357521,
0.008854920975863934,
0.007057408336549997,
0.008123109117150307,
-0.01748115010559559,
-0.0028746474999934435,
0.000631759234238416,
-0.01530401036143303,
0.03494400531053543,
-0.010455758310854435,
0.012770112603902817,
0.0065405662171542645,
-0.028485767543315887,
-0.003551573259755969,
-0.02480841428041458,
-0.05364179238677025,
0.004187334794551134,
0.028504062443971634,
-0.02308865636587143,
-0.05539814010262489,
0.010675301775336266,
0.03227289393544197,
-0.02253979817032814,
0.02960178069770336,
0.00101081479806453,
-0.015441224910318851,
0.04987296089529991,
0.006430794484913349,
0.010794221423566341,
-0.015285715460777283,
0.012248696759343147,
0.04939728602766991,
-0.07171753793954849,
0.043176885694265366,
0.004093571100383997,
0.04032282158732414,
0.03737727925181389,
0.01937471330165863,
0.00739129725843668,
0.016895700246095657,
0.0038099943194538355,
-0.0046355691738426685,
0.03970078006386757,
-0.03801761195063591,
0.01577053964138031
] |
721,928
|
apprise.apprise_attachment
|
AppriseAttachment
|
Our Apprise Attachment File Manager
|
class AppriseAttachment:
"""
Our Apprise Attachment File Manager
"""
def __init__(self, paths=None, asset=None, cache=True, location=None,
**kwargs):
"""
Loads all of the paths/urls specified (if any).
The path can either be a single string identifying one explicit
location, otherwise you can pass in a series of locations to scan
via a list.
By default we cache our responses so that subsiquent calls does not
cause the content to be retrieved again. For local file references
this makes no difference at all. But for remote content, this does
mean more then one call can be made to retrieve the (same) data. This
method can be somewhat inefficient if disabled. Only disable caching
if you understand the consequences.
You can alternatively set the cache value to an int identifying the
number of seconds the previously retrieved can exist for before it
should be considered expired.
It's also worth nothing that the cache value is only set to elements
that are not already of subclass AttachBase()
Optionally set your current ContentLocation in the location argument.
This is used to further handle attachments. The rules are as follows:
- INACCESSIBLE: You simply have disabled use of the object; no
attachments will be retrieved/handled.
- HOSTED: You are hosting an attachment service for others.
In these circumstances all attachments that are LOCAL
based (such as file://) will not be allowed.
- LOCAL: The least restrictive mode as local files can be
referenced in addition to hosted.
In all both HOSTED and LOCAL modes, INACCESSIBLE attachment types will
continue to be inaccessible. However if you set this field (location)
to None (it's default value) the attachment location category will not
be tested in any way (all attachment types will be allowed).
The location field is also a global option that can be set when
initializing the Apprise object.
"""
# Initialize our attachment listings
self.attachments = list()
# Set our cache flag
self.cache = cache
# Prepare our Asset Object
self.asset = \
asset if isinstance(asset, AppriseAsset) else AppriseAsset()
if location is not None and location not in CONTENT_LOCATIONS:
msg = "An invalid Attachment location ({}) was specified." \
.format(location)
logger.warning(msg)
raise TypeError(msg)
# Store our location
self.location = location
# Now parse any paths specified
if paths is not None:
# Store our path(s)
if not self.add(paths):
# Parse Source domain based on from_addr
raise TypeError("One or more attachments could not be added.")
def add(self, attachments, asset=None, cache=None):
"""
Adds one or more attachments into our list.
By default we cache our responses so that subsiquent calls does not
cause the content to be retrieved again. For local file references
this makes no difference at all. But for remote content, this does
mean more then one call can be made to retrieve the (same) data. This
method can be somewhat inefficient if disabled. Only disable caching
if you understand the consequences.
You can alternatively set the cache value to an int identifying the
number of seconds the previously retrieved can exist for before it
should be considered expired.
It's also worth nothing that the cache value is only set to elements
that are not already of subclass AttachBase()
"""
# Initialize our return status
return_status = True
# Initialize our default cache value
cache = cache if cache is not None else self.cache
if asset is None:
# prepare default asset
asset = self.asset
if isinstance(attachments, AttachBase):
# Go ahead and just add our attachments into our list
self.attachments.append(attachments)
return True
elif isinstance(attachments, str):
# Save our path
attachments = (attachments, )
elif not isinstance(attachments, (tuple, set, list)):
logger.error(
'An invalid attachment url (type={}) was '
'specified.'.format(type(attachments)))
return False
# Iterate over our attachments
for _attachment in attachments:
if self.location == ContentLocation.INACCESSIBLE:
logger.warning(
"Attachments are disabled; ignoring {}"
.format(_attachment))
return_status = False
continue
if isinstance(_attachment, str):
logger.debug("Loading attachment: {}".format(_attachment))
# Instantiate ourselves an object, this function throws or
# returns None if it fails
instance = AppriseAttachment.instantiate(
_attachment, asset=asset, cache=cache)
if not isinstance(instance, AttachBase):
return_status = False
continue
elif isinstance(_attachment, AppriseAttachment):
# We were provided a list of Apprise Attachments
# append our content together
instance = _attachment.attachments
elif not isinstance(_attachment, AttachBase):
logger.warning(
"An invalid attachment (type={}) was specified.".format(
type(_attachment)))
return_status = False
continue
else:
# our entry is of type AttachBase, so just go ahead and point
# our instance to it for some post processing below
instance = _attachment
# Apply some simple logic if our location flag is set
if self.location and ((
self.location == ContentLocation.HOSTED
and instance.location != ContentLocation.HOSTED)
or instance.location == ContentLocation.INACCESSIBLE):
logger.warning(
"Attachment was disallowed due to accessibility "
"restrictions ({}->{}): {}".format(
self.location, instance.location,
instance.url(privacy=True)))
return_status = False
continue
# Add our initialized plugin to our server listings
if isinstance(instance, list):
self.attachments.extend(instance)
else:
self.attachments.append(instance)
# Return our status
return return_status
@staticmethod
def instantiate(url, asset=None, cache=None, suppress_exceptions=True):
"""
Returns the instance of a instantiated attachment plugin based on
the provided Attachment URL. If the url fails to be parsed, then None
is returned.
A specified cache value will over-ride anything set
"""
# Attempt to acquire the schema at the very least to allow our
# attachment based urls.
schema = GET_SCHEMA_RE.match(url)
if schema is None:
# Plan B is to assume we're dealing with a file
schema = 'file'
url = '{}://{}'.format(schema, URLBase.quote(url))
else:
# Ensure our schema is always in lower case
schema = schema.group('schema').lower()
# Some basic validation
if schema not in A_MGR:
logger.warning('Unsupported schema {}.'.format(schem
|
(paths=None, asset=None, cache=True, location=None, **kwargs)
|
[
0.04721708223223686,
-0.04027339071035385,
-0.11832045018672943,
0.07181757688522339,
0.03219887614250183,
-0.02952059544622898,
0.022457871586084366,
0.02702086791396141,
-0.039678219705820084,
0.012498638592660427,
0.00019715115195140243,
0.027695396915078163,
-0.03981709107756615,
0.00824315007776022,
-0.06665940582752228,
-0.006864331662654877,
-0.024481460452079773,
0.006799854803830385,
0.006199721712619066,
-0.03424230217933655,
-0.0025642048567533493,
0.0033875280059874058,
0.00992947444319725,
0.03828947991132736,
0.00961700826883316,
0.05642242729663849,
0.04186052083969116,
-0.009121030569076538,
0.04209858924150467,
0.02809217944741249,
0.034996189177036285,
-0.02346966601908207,
0.017656806856393814,
-0.009269824251532555,
0.028389764949679375,
0.042495373636484146,
-0.006308836862444878,
0.040174197405576706,
-0.04134470596909523,
0.0290047787129879,
0.013579870574176311,
0.01306405384093523,
0.06971462815999985,
-0.016228390857577324,
0.024501299485564232,
0.06610391288995743,
-0.02166430838406086,
0.02378709241747856,
0.022477710619568825,
-0.039301276206970215,
0.03152434527873993,
0.02012677676975727,
0.03640476614236832,
0.01127853337675333,
-0.041106633841991425,
0.08114195615053177,
-0.028707191348075867,
0.12712901830673218,
-0.052533961832523346,
-0.004195971880108118,
-0.0067155384458601475,
-0.043566685169935226,
0.08229262381792068,
-0.04519348964095116,
-0.00984019786119461,
0.030730780214071274,
-0.04721708223223686,
-0.008937519043684006,
-0.008858161978423595,
0.06162027269601822,
-0.004667150322347879,
-0.019154660403728485,
-0.03366696834564209,
0.0024910480715334415,
0.0830068364739418,
0.009334300644695759,
0.026762958616018295,
0.026663763448596,
0.0030750620644539595,
0.030333997681736946,
0.06308836489915848,
-0.012498638592660427,
-0.01869836077094078,
0.0033850481268018484,
0.06884171068668365,
-0.007399987895041704,
0.002049627946689725,
-0.038587067276239395,
0.025374220684170723,
0.06769104301929474,
-0.011863787658512592,
0.04257472977042198,
0.021942054852843285,
-0.0403924286365509,
0.03981709107756615,
-0.030889494344592094,
-0.0508674755692482,
-0.02057315595448017,
-0.004954817704856396,
-0.020553316920995712,
-0.05852537229657173,
0.016208551824092865,
-0.032139357179403305,
-0.03370664641261101,
-0.0010049749398604035,
-0.06697683036327362,
-0.010971027426421642,
-0.07582507282495499,
0.0009665366378612816,
0.04086856544017792,
-0.0426144078373909,
-0.055589184165000916,
-0.03378600254654884,
0.043963465839624405,
-0.020672352984547615,
-0.027635879814624786,
-0.02862783521413803,
0.0017681606113910675,
0.03543264791369438,
-0.030730780214071274,
0.03453988954424858,
0.030393514782190323,
-0.04277312010526657,
0.02577100321650505,
0.0586840845644474,
-0.01735922135412693,
-0.0108222346752882,
-0.017974233254790306,
0.033051956444978714,
-0.07074626535177231,
-0.03477795794606209,
0.006606423296034336,
-0.03283372521400452,
-0.008679610677063465,
-0.01502812560647726,
-0.03561120107769966,
-0.011219016276299953,
0.008882961235940456,
-0.07046851515769958,
0.026941509917378426,
-0.04693933203816414,
0.03079029731452465,
0.041265346109867096,
0.012687110342085361,
-0.019372889772057533,
-0.006556825712323189,
0.00030037653050385416,
-0.034123267978429794,
-0.04836774989962578,
-0.009388858452439308,
-0.024283070117235184,
-0.05439883843064308,
-0.04011467844247818,
0.033210668712854385,
0.037178490310907364,
-0.014274239540100098,
-0.07745188474655151,
0.04277312010526657,
-0.004101736005395651,
-0.009522772394120693,
-0.019690316170454025,
0.013450915925204754,
-0.019491925835609436,
0.007548781111836433,
0.004711788613349199,
-0.040194034576416016,
-0.012677190825343132,
-0.00026054331101477146,
-0.007037924136966467,
0.052573639899492264,
-0.03453988954424858,
0.03670235350728035,
-0.030314158648252487,
-0.016327587887644768,
-0.005222645588219166,
0.07003206014633179,
0.018976109102368355,
0.00550535274669528,
0.031940966844558716,
0.02360854111611843,
-0.020136695355176926,
0.015514183789491653,
0.001754521275870502,
0.03951950743794441,
0.029679307714104652,
0.03215919807553291,
0.023747414350509644,
0.011050383560359478,
0.03291308134794235,
0.036424603313207626,
-0.03380584344267845,
0.026088429614901543,
-0.0011624478502199054,
-0.01941256783902645,
-0.045947376638650894,
0.03521442040801048,
-0.009111111052334309,
-0.05919990316033363,
-0.050232626497745514,
0.07792802155017853,
-0.06368353962898254,
-0.06685779988765717,
0.015385229140520096,
-0.03269485384225845,
0.010951188392937183,
0.024739369750022888,
-0.0022678582463413477,
-0.05142297223210335,
-0.05404173582792282,
0.05658113956451416,
-0.06296933442354202,
0.01720050722360611,
-0.014532147906720638,
-0.04725676029920578,
0.01843053288757801,
-0.07947546988725662,
-0.015633217990398407,
0.027159741148352623,
0.010276658460497856,
0.03438117727637291,
-0.025751164183020592,
0.01900586672127247,
-0.06562777608633041,
-0.020206132903695107,
-0.040749531239271164,
0.026524890214204788,
0.052533961832523346,
0.02184285968542099,
0.001159967971034348,
0.023906126618385315,
-0.011595959775149822,
-0.00024767889408394694,
0.009031754918396473,
0.028786547482013702,
0.06304869055747986,
0.022438032552599907,
0.0016429262468591332,
0.05245460569858551,
0.003149458672851324,
-0.021525433287024498,
0.06769104301929474,
0.012210971675813198,
0.011853868141770363,
-0.00010392283729743212,
-0.04245569556951523,
-0.07034948468208313,
-0.02866751328110695,
-0.027100224047899246,
-0.05102618783712387,
-0.07046851515769958,
0.047336116433143616,
0.03799189627170563,
-0.024441782385110855,
-0.005862456746399403,
0.0005018675001338124,
-0.024620335549116135,
-0.0021971813403069973,
-0.03674203157424927,
0.018976109102368355,
-0.03650396317243576,
0.0298975370824337,
-0.05872376263141632,
0.03977741301059723,
0.04471735283732414,
-0.030393514782190323,
0.0003140158951282501,
0.002099225763231516,
-0.023707736283540726,
-0.01989862695336342,
0.035373132675886154,
0.11863787472248077,
0.03612701967358589,
0.027516845613718033,
-0.008416742086410522,
-0.02348950505256653,
0.04237633943557739,
-0.008520897477865219,
-0.017428657039999962,
-0.038249801844358444,
0.029441239312291145,
-0.0057483818382024765,
0.01558362040668726,
0.028151696547865868,
-0.019224097952246666,
0.07090497761964798,
-0.0827687680721283,
-0.05320849269628525,
0.05352591723203659,
-0.07122240215539932,
-0.0033478497061878443,
0.004208371043205261,
0.03515490144491196,
0.040749531239271164,
-0.07209532707929611,
-0.03977741301059723,
0.010142744518816471,
-0.058287303894758224,
0.015484425239264965,
0.06173930689692497,
0.006943688262254,
-0.010346096009016037,
0.024263231083750725,
0.0631280466914177,
0.0015276113990694284,
-0.05336720496416092,
-0.023529183119535446,
-0.023687897250056267,
0.0073156715370714664,
0.03584926947951317,
0.03380584344267845,
0.06193770095705986,
-0.006467549595981836,
-0.034103430807590485,
0.04067017510533333,
0.016476379707455635,
0.04102727770805359,
0.01021714136004448,
0.01504796463996172,
-0.02021605335175991,
0.034262143075466156,
0.00454067625105381,
0.0709446519613266,
-0.019908545538783073,
0.01959112100303173,
0.07927708327770233,
-0.013173168525099754,
0.059358615428209305,
0.0644771084189415,
-0.003099860856309533,
0.016367265954613686,
-0.01557370088994503,
0.033210668712854385,
-0.032139357179403305,
0.033924877643585205,
-0.01744849607348442,
0.02204125002026558,
-0.021604789420962334,
-0.10181430727243423,
0.0515420064330101,
-0.01279622595757246,
0.030552228912711143,
-0.010256819427013397,
-0.05281170830130577,
0.01270694937556982,
0.012141535058617592,
-0.01994822546839714,
0.09070441126823425,
0.014839653857052326,
0.016496218740940094,
-0.07661864161491394,
-0.009537652134895325,
-0.03699994087219238,
-0.03888465464115143,
-0.03307179734110832,
0.016853323206305504,
-0.08340361714363098,
-0.024997277185320854,
-0.07086529582738876,
0.009612048976123333,
0.021922215819358826,
0.013688985258340836,
-0.008183632977306843,
-0.07257146388292313,
-0.005797979887574911,
-0.04761386290192604,
-0.016367265954613686,
0.02150559425354004,
-0.033032115548849106,
0.03489699214696884,
-0.06348515301942825,
0.004602673463523388,
0.03273453190922737,
-0.028369925916194916,
-0.03944015130400658,
0.044161856174468994,
-0.05646210536360741,
0.008297707885503769,
0.01945224590599537,
-0.01442303229123354,
0.0450744554400444,
-0.0221999641507864,
0.05368462949991226,
-0.02723909728229046,
0.008902800269424915,
0.009512852877378464,
-0.05531143769621849,
0.012875582091510296,
-0.00005304636943037622,
0.005287122447043657,
0.04033290967345238,
0.06792911142110825,
-0.03350825607776642,
-0.004158773459494114,
0.005525191780179739,
-0.04027339071035385,
-0.05769212916493416,
-0.009805480018258095,
0.029679307714104652,
0.029064295813441277,
-0.04102727770805359,
0.026643924415111542,
0.00027573262923397124,
-0.00478618498891592,
0.04281279817223549,
0.010802394710481167,
0.0032511339522898197,
0.059160225093364716,
0.032536137849092484,
0.016297828406095505,
0.03914256393909454,
0.007677735295146704,
-0.02396564371883869,
-0.020493799820542336,
-0.03561120107769966,
-0.011744752526283264,
0.005599588621407747,
0.01189354620873928,
-0.026048751547932625,
-0.001789239700883627,
0.02146591618657112,
0.013173168525099754,
0.039479829370975494,
-0.005168088246136904,
-0.03507554531097412,
-0.05753341689705849,
-0.04697901010513306,
-0.023231597617268562,
-0.018995948135852814,
-0.062017057090997696,
-0.002782435156404972,
0.0029188289772719145,
0.06487388908863068,
-0.021942054852843285,
-0.06999237835407257,
0.04721708223223686,
0.026921670883893967,
-0.005083771888166666,
-0.051264259964227676,
-0.024421943351626396,
-0.025632129982113838,
-0.022695941850543022,
-0.014819814823567867,
-0.003548720618709922,
-0.008034839294850826,
0.036642834544181824,
-0.03656347841024399,
-0.07197628915309906,
0.034857314079999924,
0.0426144078373909,
0.017756003886461258,
-0.02757636271417141,
0.005683904979377985,
0.0562240369617939,
0.0070825619623064995,
-0.10387757420539856,
-0.013718743808567524,
0.07225403934717178,
0.004756426438689232,
-0.0108222346752882,
0.002327375579625368,
-0.004870501346886158,
0.0008816004265099764,
0.006011249963194132,
-0.09006955474615097,
-0.04547123983502388,
0.06717522442340851,
0.0186289232224226,
0.013748503290116787,
-0.022438032552599907,
0.008828403428196907,
0.05856505036354065,
-0.015543942339718342,
0.00984019786119461,
-0.04598705470561981,
0.043566685169935226,
-0.006001330446451902,
0.08943470567464828,
0.02471953071653843,
-0.0093144616112113,
-0.05241492763161659,
-0.0003310651518404484,
-0.07614250481128693,
-0.006016209721565247,
0.0027427568566054106,
-0.0032660134602338076,
-0.04225730150938034,
0.0356905572116375,
-0.01968039572238922,
0.002648521214723587,
0.02043428272008896,
0.0022232201881706715,
0.009418617002665997,
-0.021703986451029778,
0.06340579688549042,
0.01780560053884983,
0.02146591618657112,
0.005212726071476936,
0.046820297837257385,
0.036583319306373596,
-0.06039024889469147,
0.018013911321759224,
-0.0776502713561058,
-0.0034495252184569836,
-0.011853868141770363,
-0.019739914685487747,
0.011476924642920494,
-0.023549022153019905,
0.025850359350442886,
0.013054134324193,
-0.007132160011678934,
-0.02039460465312004,
0.0052474443800747395,
0.007479344494640827,
-0.014799975790083408,
-0.025890037417411804,
0.025671808049082756,
-0.007548781111836433,
0.007300792261958122,
0.003573519643396139,
-0.026901831850409508,
0.05102618783712387,
-0.0045704348012804985,
0.020097017288208008,
-0.040570978075265884,
-0.019065383821725845,
0.004364604130387306,
-0.012468880042433739,
0.00910119153559208,
-0.02559245191514492,
0.02491792105138302,
0.023568861186504364,
0.005386318080127239,
0.008029880002140999,
-0.06162027269601822,
0.058446016162633896,
0.08451460301876068,
-0.06816717982292175,
-0.05983475595712662,
-0.060072824358940125,
0.0019107542466372252,
0.0014854533364996314,
0.028707191348075867,
-0.022279320284724236,
-0.06634198129177094,
-0.00577318063005805,
-0.07554733008146286,
-0.008987116627395153,
-0.010613923892378807,
0.050073910504579544,
-0.04749482870101929,
0.036801546812057495,
0.015722494572401047,
0.01566297747194767,
-0.01127853337675333,
0.008372103795409203,
0.00581781892105937,
-0.00015189318219199777,
-0.07709477841854095,
0.017279865220189095,
-0.021366721019148827,
0.032873403280973434,
-0.004533236380666494,
-0.08253069221973419,
0.033944714814424515,
-0.02202141098678112,
-0.020870743319392204,
0.04805032163858414,
0.01083215419203043,
-0.03186161071062088,
-0.010544486343860626,
-0.029123812913894653,
0.016833484172821045,
-0.06777039915323257,
-0.012687110342085361,
0.04053130000829697,
0.0005480553954839706,
-0.033567775040864944,
0.006541946437209845,
0.019065383821725845,
-0.016069678589701653,
0.04320957884192467,
-0.06951624155044556,
0.00007431916310451925,
-0.043050866574048996,
-0.03237742558121681,
-0.03648412227630615,
0.02325143665075302,
0.06249319389462471,
-0.024977438151836395,
-0.003340410068631172,
-0.010851993225514889,
0.023033205419778824,
0.009220225736498833,
0.003662795526906848,
-0.009026794694364071,
0.060787029564380646,
0.06729426234960556,
-0.0204144436866045,
-0.010861912742257118,
-0.01664501242339611,
0.010098107159137726,
-0.023410148918628693,
-0.048407427966594696,
0.012478799559175968,
-0.010098107159137726,
-0.023033205419778824,
-0.06328675895929337,
-0.008248109370470047,
0.008600253611803055,
-0.008297707885503769,
0.0034569648560136557,
-0.0002386892883805558,
0.009180547669529915,
0.055390793830156326,
-0.009721163660287857,
-0.01869836077094078,
-0.05420044809579849,
0.052216537296772,
0.02146591618657112,
0.026822475716471672,
-0.007196636870503426,
0.004349724855273962,
0.021366721019148827,
0.009031754918396473,
-0.021168330684304237,
-0.005341680254787207,
-0.0056739854626357555,
0.00595669262111187,
0.007122240494936705,
0.04067017510533333,
0.04757418483495712,
0.007325591053813696,
0.02831040881574154,
0.0666990876197815,
0.02093026041984558,
-0.00693376874551177,
0.02110881172120571,
-0.025155991315841675,
0.028607996180653572,
0.006725457962602377,
0.04451896250247955,
-0.04654255136847496,
-0.056501783430576324,
-0.0073950281366705894,
-0.03132595494389534,
0.01698227785527706,
0.01668469049036503,
-0.041781164705753326,
0.0027700357604771852,
0.006031089462339878,
0.006388193462044001,
0.005475594196468592,
-0.0027551562525331974,
-0.023033205419778824,
-0.04273344203829765,
0.11443198472261429,
0.029580112546682358,
0.019551442936062813,
0.006026129703968763,
0.019462166354060173,
-0.0381506085395813,
-0.035016030073165894,
0.01778576150536537,
-0.04531252756714821,
0.0443999283015728,
-0.04225730150938034,
0.03694042190909386,
-0.012072098441421986,
-0.0006801094859838486,
0.06388193368911743,
-0.04257472977042198,
0.012945018708705902,
0.019799431785941124,
0.025374220684170723,
0.0037099134642630816,
-0.03311147540807724,
-0.014899170957505703,
-0.0018859553383663297,
0.01961096003651619,
0.04313022270798683,
-0.0010117945494130254,
0.02485840395092964,
-0.02773507498204708,
0.06590551882982254,
-0.006839532870799303,
0.020672352984547615,
0.06622295081615448,
-0.018837234005331993,
-0.019839109852910042,
-0.009646766819059849,
-0.005133369471877813,
-0.0327940471470356,
0.022993527352809906,
0.0015958084259182215,
-0.004798584617674351,
-0.03477795794606209,
0.0033974475227296352,
0.010990866459906101,
-0.028072340413928032,
-0.009701324626803398,
0.044161856174468994,
0.02043428272008896,
-0.013282284140586853,
0.03283372521400452,
-0.013113651424646378,
-0.04031306877732277,
-0.06808782368898392,
0.04781225323677063,
0.01989862695336342,
0.016069678589701653,
0.016119277104735374,
0.04971680790185928,
0.07895965874195099,
-0.02291417121887207,
0.025017116218805313,
-0.015166998840868473,
0.04547123983502388,
-0.0012504839105531573,
0.016585495322942734,
0.02378709241747856,
-0.0027749955188483,
-0.014125445857644081,
0.0680481418967247,
-0.0243227481842041,
0.02005733922123909,
-0.01916457898914814,
-0.002529486548155546,
0.016496218740940094,
0.026941509917378426,
-0.007365269586443901,
-0.010931349359452724,
0.017508015036582947,
-0.026247141882777214,
0.037714146077632904,
0.0055946288630366325,
-0.06955591589212418,
0.017676645889878273,
-0.005252404138445854,
-0.04455864056944847,
0.016813645139336586,
0.00567894522100687,
-0.014194882474839687,
-0.06110445782542229,
0.008034839294850826,
-0.02436242625117302,
-0.026901831850409508,
0.036424603313207626,
0.012776386924088001,
-0.033051956444978714,
0.022993527352809906,
0.005629347171634436,
-0.04479670897126198,
-0.018668601289391518,
0.04638383910059929,
0.005406157113611698,
-0.014274239540100098,
-0.01843053288757801,
0.015543942339718342,
0.005386318080127239,
-0.038388676941394806,
-0.005435916129499674,
-0.08356232941150665,
-0.021208008751273155,
0.04424121230840683,
0.002732837339863181,
0.059517327696084976,
-0.014393273741006851,
0.04654255136847496
] |
721,929
|
apprise.apprise_attachment
|
__bool__
|
Allows the Apprise object to be wrapped in an 'if statement'.
True is returned if at least one service has been loaded.
|
def __bool__(self):
"""
Allows the Apprise object to be wrapped in an 'if statement'.
True is returned if at least one service has been loaded.
"""
return True if self.attachments else False
|
(self)
|
[
0.029736408963799477,
-0.05154545605182648,
-0.0220732931047678,
0.01483297161757946,
0.034070033580064774,
-0.03304828330874443,
0.013229883275926113,
0.0012485592160373926,
-0.010085363872349262,
0.011582753621041775,
0.014084276743233204,
0.01368790864944458,
-0.016356786713004112,
-0.01847955770790577,
-0.051298826932907104,
-0.042349718511104584,
-0.03836842253804207,
0.005839821882545948,
0.033541541546583176,
-0.06236189976334572,
-0.022267073392868042,
0.04199739173054695,
0.0403766855597496,
0.009178121574223042,
0.024222489446401596,
0.06768203526735306,
0.03399956598877907,
-0.004888538736850023,
0.0060247937217354774,
0.07109960913658142,
-0.0229012630879879,
-0.01587233692407608,
0.06444063037633896,
0.006073238793760538,
0.03590213134884834,
0.06965506821870804,
0.012903980910778046,
0.06708308309316635,
-0.05189778283238411,
0.019765550270676613,
-0.013467703945934772,
-0.007081774994730949,
0.03717051073908806,
0.022372771054506302,
-0.04220878705382347,
-0.009618530049920082,
-0.0204525887966156,
0.05897955968976021,
0.06926751136779785,
-0.015044367872178555,
0.059261418879032135,
0.011811766773462296,
0.005575576797127724,
0.02311265841126442,
-0.06581470370292664,
0.056971292942762375,
0.027129188179969788,
0.10774163156747818,
-0.05813397467136383,
0.02159765176475048,
-0.013864072039723396,
-0.012560461647808552,
0.07342497259378433,
-0.06947890669107437,
0.045732058584690094,
0.044745542109012604,
-0.0441465862095356,
0.00735042430460453,
0.01155632920563221,
0.08498129993677139,
-0.05094650015234947,
0.010913331992924213,
-0.0501713827252388,
0.032449327409267426,
0.03301304951310158,
-0.04601392149925232,
-0.008301707915961742,
0.015290996991097927,
0.001195710152387619,
-0.014066659845411777,
0.03917877376079559,
-0.00003998087049694732,
-0.024451501667499542,
0.021773815155029297,
0.02436341904103756,
0.016022074967622757,
0.03787516430020332,
0.008543932810425758,
0.021844280883669853,
0.044217053800821304,
-0.008187200874090195,
0.06521575152873993,
0.012164093554019928,
-0.021157242357730865,
0.04615485295653343,
0.024292955175042152,
-0.008187200874090195,
-0.02478621155023575,
-0.046507179737091064,
-0.04175076261162758,
-0.04456938058137894,
0.03738190606236458,
0.03086385503411293,
-0.039214007556438446,
0.05693606287240982,
-0.01978316716849804,
-0.03678295016288757,
-0.02742866612970829,
0.04146889969706535,
0.011846999637782574,
0.02586081065237522,
-0.08772945404052734,
-0.03278403729200363,
0.06623749434947968,
-0.030564377084374428,
-0.07180426269769669,
0.0014665615744888783,
-0.022725099697709084,
-0.040165290236473083,
0.0005846428102813661,
0.01973031833767891,
0.02415202371776104,
-0.0014555513625964522,
-0.0321674644947052,
0.07483427971601486,
0.014084276743233204,
-0.008451446890830994,
0.042561113834381104,
0.058063507080078125,
-0.06644889712333679,
0.007905339822173119,
0.005408221390098333,
-0.00273273722268641,
-0.040940411388874054,
-0.022866029292345047,
-0.037240974605083466,
0.05143975839018822,
0.013185841962695122,
-0.030317747965455055,
0.06542714685201645,
-0.06264375895261765,
0.03132187947630882,
-0.0016504323575645685,
0.03086385503411293,
0.009609721601009369,
0.015757830813527107,
-0.033594388514757156,
-0.0015216127503663301,
-0.023605916649103165,
0.002128276042640209,
0.04689474031329155,
-0.04664811119437218,
-0.05066463723778725,
0.009424750693142414,
-0.07173380255699158,
0.01899043098092079,
-0.01803033985197544,
-0.03155089169740677,
0.014119508676230907,
-0.05623140558600426,
0.0009353183559142053,
0.024063941091299057,
-0.05380035191774368,
0.009063615463674068,
-0.017510658130049706,
-0.03028251603245735,
-0.023553067818284035,
0.00894910842180252,
0.03621922805905342,
0.07659591734409332,
-0.008451446890830994,
0.0242577213793993,
-0.03808655962347984,
0.00849548727273941,
0.0034307853784412146,
0.07793475687503815,
0.024116791784763336,
0.008565953001379967,
-0.024891911074519157,
0.04108134284615517,
0.00829289946705103,
-0.00330526870675385,
-0.05936712026596069,
0.014119508676230907,
0.06715355068445206,
0.03465137258172035,
0.02795715630054474,
-0.02846803143620491,
0.04220878705382347,
0.047916486859321594,
-0.009090039879083633,
-0.0014456422068178654,
0.025385169312357903,
0.010420074686408043,
-0.04330100119113922,
-0.024134406819939613,
-0.008905068039894104,
-0.046507179737091064,
-0.04386472702026367,
-0.005051489919424057,
-0.03981296345591545,
-0.06680122017860413,
-0.027710527181625366,
0.015229339711368084,
-0.004668334033340216,
0.053483255207538605,
-0.00011237308353884146,
0.023095041513442993,
-0.027287734672427177,
0.00447455421090126,
-0.08307873457670212,
-0.059719447046518326,
-0.04932579770684242,
0.026635929942131042,
0.053377557545900345,
-0.02473336271941662,
0.06838669627904892,
0.011468247510492802,
-0.05799304321408272,
0.04076424613595009,
-0.004417301155626774,
0.01069312822073698,
0.011256851255893707,
0.005936712026596069,
-0.05668943375349045,
0.07405915856361389,
-0.018602872267365456,
0.004765224177390337,
-0.012789473868906498,
-0.014991519041359425,
0.005742931738495827,
0.029859723523259163,
-0.026829710230231285,
0.026530232280492783,
0.03805132955312729,
-0.031040018424391747,
0.005901479162275791,
0.04566159471869469,
-0.02721726894378662,
-0.011441823095083237,
0.09555111080408096,
0.008486679755151272,
-0.0006958460435271263,
-0.0016823619371280074,
-0.012507612816989422,
-0.07828708738088608,
-0.01194388885051012,
-0.0014060053508728743,
-0.043124839663505554,
-0.02675924450159073,
0.016656264662742615,
-0.02915506809949875,
-0.005003044847398996,
-0.03417573124170303,
-0.014418987557291985,
-0.0463310144841671,
0.0024883102159947157,
0.007407677359879017,
0.028873207047581673,
0.002230671001598239,
0.0506998710334301,
0.0065973252058029175,
0.060247935354709625,
0.06042410060763359,
-0.06828099489212036,
0.004901750944554806,
0.026882559061050415,
0.005051489919424057,
-0.003939457703381777,
0.010640278458595276,
0.08251500874757767,
-0.0226370170712471,
0.02492714300751686,
-0.041363202035427094,
-0.0017153926892206073,
-0.0201883427798748,
0.018620487302541733,
-0.004756416194140911,
-0.03554980456829071,
0.01847955770790577,
0.06116398796439171,
0.03595498204231262,
0.014929861761629581,
0.024592433124780655,
-0.020382123067975044,
-0.09118225425481796,
0.0033360973466187716,
0.06437016278505325,
-0.04284297674894333,
-0.04164506494998932,
0.005875054746866226,
0.055456288158893585,
0.07476381212472916,
-0.034898001700639725,
-0.017299260944128036,
-0.00677789282053709,
-0.010102979838848114,
-0.04185646027326584,
0.01951892301440239,
-0.04386472702026367,
0.05066463723778725,
0.007649902254343033,
-0.020646369084715843,
-0.01683242805302143,
-0.0226370170712471,
0.003840365447103977,
0.005615213420242071,
0.01584591157734394,
0.021509571000933647,
0.013784797862172127,
0.0057561444118618965,
-0.004131035413593054,
-0.021456720307469368,
-0.021844280883669853,
0.012551653198897839,
-0.002428855048492551,
0.0049678124487400055,
-0.02441626973450184,
-0.015440735965967178,
0.06257329881191254,
-0.03327729552984238,
0.04231448471546173,
-0.027146803215146065,
0.03419334813952446,
0.028344716876745224,
-0.05062940716743469,
0.05235580727458,
0.0022769139613956213,
-0.02774576097726822,
0.018655721098184586,
-0.03738190606236458,
-0.024187255650758743,
0.041187040507793427,
0.014471836388111115,
-0.0375933013856411,
-0.0316389761865139,
0.014656808227300644,
-0.06616703420877457,
-0.0005469328025355935,
-0.007033329922705889,
0.015969226136803627,
-0.027728144079446793,
-0.028926055878400803,
0.03748760372400284,
0.011846999637782574,
0.02321835607290268,
0.006046813912689686,
-0.0020589116029441357,
0.08970247954130173,
-0.07765289396047592,
-0.039108309894800186,
0.010649086907505989,
0.015704981982707977,
0.037769466638565063,
0.03320683166384697,
-0.05461070314049721,
-0.020752066746354103,
0.030317747965455055,
0.05714745819568634,
0.007381252944469452,
0.0752570703625679,
0.0010101879015564919,
-0.07434102147817612,
0.04471031203866005,
-0.05626663938164711,
-0.009504023939371109,
0.00489294296130538,
-0.0012034173123538494,
0.013071335852146149,
-0.06838669627904892,
-0.009926816448569298,
-0.0011494671925902367,
-0.04936102777719498,
-0.0348803848028183,
0.060705963522195816,
-0.0032326013315469027,
0.012578077614307404,
-0.0019554155878722668,
0.014912244863808155,
0.044005654752254486,
-0.038896914571523666,
0.0763140544295311,
-0.03586690127849579,
-0.005443453788757324,
0.009671378880739212,
-0.013370813801884651,
-0.044745542109012604,
-0.0017814539605751634,
-0.019131362438201904,
-0.019554154947400093,
0.04844497889280319,
-0.023288821801543236,
-0.11154676228761673,
-0.01587233692407608,
-0.06556807458400726,
-0.06010700389742851,
-0.001459955470636487,
-0.010402457788586617,
0.02468051388859749,
-0.002004961483180523,
0.048691608011722565,
0.008526315912604332,
0.035831667482852936,
0.011344932951033115,
-0.028767509385943413,
0.01235787384212017,
0.00805507879704237,
-0.04446368291974068,
0.006064430344849825,
-0.01778371073305607,
0.014013811014592648,
-0.03317159786820412,
-0.07190996408462524,
-0.03639538958668709,
-0.04865637421607971,
0.035162247717380524,
0.03678295016288757,
0.010790017433464527,
0.013027295470237732,
0.03179752081632614,
0.01624228060245514,
0.05700652673840523,
0.016867659986019135,
0.009803501889109612,
-0.03678295016288757,
0.0007519981591030955,
0.003206176683306694,
-0.004483362659811974,
0.028873207047581673,
-0.014991519041359425,
-0.029472162947058678,
0.011230426840484142,
-0.023764463141560555,
-0.04717659950256348,
0.011582753621041775,
-0.0013751767110079527,
-0.02473336271941662,
-0.0708177462220192,
-0.04132797196507454,
-0.00029314716812223196,
-0.020117878913879395,
-0.013723141513764858,
-0.04865637421607971,
-0.021844280883669853,
0.005258481949567795,
-0.0534127913415432,
-0.06574423611164093,
0.019219443202018738,
0.05757024884223938,
-0.03829795867204666,
-0.06563854217529297,
0.00037792586954310536,
0.026776861399412155,
0.010886907577514648,
-0.037135276943445206,
-0.006064430344849825,
0.00983873475342989,
-0.006275826599448919,
-0.003100478556007147,
-0.005795781034976244,
-0.03086385503411293,
-0.016999782994389534,
-0.11725446581840515,
-0.021826663985848427,
0.05003045126795769,
0.025103306397795677,
-0.011327316984534264,
0.02138625644147396,
-0.03967203199863434,
0.02681209333240986,
0.05112266540527344,
-0.06384167075157166,
0.06296085566282272,
-0.03368247300386429,
0.04700043797492981,
0.022267073392868042,
0.035620272159576416,
0.07821661978960037,
-0.012190517969429493,
-0.01012059673666954,
-0.06690692156553268,
-0.014322097413241863,
-0.04752892628312111,
0.002142589306458831,
-0.0068835909478366375,
-0.046824272722005844,
-0.01563451625406742,
-0.014066659845411777,
0.04086994379758835,
-0.014286864548921585,
0.029331231489777565,
-0.014013811014592648,
0.008310515433549881,
0.004597868770360947,
0.037910398095846176,
-0.007821662351489067,
0.014929861761629581,
0.033541541546583176,
0.05334232375025749,
0.012489995919167995,
-0.009045998565852642,
-0.029525011777877808,
-0.017026208341121674,
0.011159961111843586,
0.006108471192419529,
-0.06303132325410843,
-0.04936102777719498,
-0.010208678431808949,
-0.027076339349150658,
0.02540278434753418,
0.014234015718102455,
0.0038491736631840467,
-0.006487222854048014,
0.03227316215634346,
0.04273727908730507,
-0.005575576797127724,
-0.0005012403707951307,
-0.008284091018140316,
0.0018001713324338198,
-0.0223375391215086,
0.048585910350084305,
-0.006183340679854155,
0.04168029874563217,
-0.025103306397795677,
-0.021932363510131836,
-0.00879936944693327,
-0.005813397467136383,
-0.0022064484655857086,
-0.0023605916649103165,
-0.011362549848854542,
0.03590213134884834,
-0.017581123858690262,
-0.02337690442800522,
-0.024275338277220726,
0.005602001212537289,
0.03826272487640381,
-0.0605650320649147,
-0.033752936869859695,
-0.05210918188095093,
-0.0028846783097833395,
0.05520965903997421,
-0.014216398820281029,
0.01899043098092079,
-0.03199130296707153,
0.0015403301222249866,
-0.004437119700014591,
0.001570057705976069,
-0.03038821369409561,
0.0659908652305603,
-0.024504350498318672,
-0.008816986344754696,
0.02087538130581379,
0.014251631684601307,
-0.045097868889570236,
0.06377121061086655,
0.012622118927538395,
0.020593520253896713,
-0.025015225633978844,
-0.0019741328433156013,
-0.0036818182561546564,
0.006967268884181976,
-0.034422360360622406,
-0.036712486296892166,
0.030053501948714256,
-0.055350590497255325,
-0.0506998710334301,
0.04122227057814598,
-0.017184754833579063,
0.02468051388859749,
-0.002941931365057826,
0.015255764126777649,
-0.05136929452419281,
-0.05549152195453644,
0.017968682572245598,
0.03956633433699608,
0.03384101763367653,
0.01951892301440239,
0.00918692909181118,
-0.0540117472410202,
-0.026318835094571114,
-0.012472379952669144,
-0.1013997420668602,
-0.00627142284065485,
-0.06616703420877457,
-0.023130275309085846,
-0.05954328179359436,
-0.008526315912604332,
0.04657764360308647,
0.0025807961355894804,
-0.02087538130581379,
-0.01478012278676033,
0.05143975839018822,
0.018550023436546326,
-0.03331252932548523,
0.017563506960868835,
0.030670074746012688,
0.08878643065690994,
-0.042138323187828064,
0.014251631684601307,
0.0066105374135077,
-0.00036223631468601525,
0.009283819235861301,
-0.011644410900771618,
-0.04425228387117386,
0.007332807872444391,
-0.015995651483535767,
-0.08033058047294617,
0.02024119347333908,
-0.040306221693754196,
-0.0463310144841671,
0.015343845821917057,
-0.007980208843946457,
0.017052631825208664,
0.04995998367667198,
0.042913440614938736,
0.0014830769505351782,
-0.01259569451212883,
0.034633755683898926,
0.015379078686237335,
0.045414965599775314,
0.02239038795232773,
0.05309569463133812,
-0.008772945031523705,
0.000043490377720445395,
-0.03301304951310158,
-0.04587299004197121,
0.01936037465929985,
-0.03752283751964569,
0.007271150592714548,
-0.014744889922440052,
0.06873901933431625,
0.0007613568450324237,
0.07821661978960037,
-0.018849501386284828,
0.02316550724208355,
-0.007764408830553293,
0.009556872770190239,
0.012243366800248623,
0.01837385818362236,
-0.01909612864255905,
0.006993693299591541,
-0.040059592574834824,
-0.01663864776492119,
0.0011582754086703062,
0.0066105374135077,
-0.012393105775117874,
-0.020857764407992363,
-0.022777948528528214,
0.048903003334999084,
-0.03606067970395088,
-0.06465202569961548,
0.028855590149760246,
0.0007883319049142301,
0.011380165815353394,
-0.027499131858348846,
0.04227925464510918,
0.060142237693071365,
0.040411919355392456,
-0.03377055376768112,
-0.023095041513442993,
-0.061128754168748856,
-0.018955199047923088,
-0.011926272884011269,
-0.01930752582848072,
0.08533363044261932,
-0.022496085613965988,
0.00047343954793177545,
-0.020470205694437027,
-0.026671161875128746,
0.027816224843263626,
0.0018332019681110978,
0.08350152522325516,
0.007165452465415001,
0.01093094889074564,
0.025702262297272682,
-0.01464799977838993,
-0.04707090184092522,
-0.04795172065496445,
0.030828623101115227,
-0.01874380186200142,
-0.029754023998975754,
0.005535939708352089,
-0.02305980958044529,
0.05048847571015358,
-0.017933450639247894,
0.001115886028856039,
0.031568508595228195,
-0.029965421184897423,
-0.025385169312357903,
-0.03132187947630882,
-0.0626789927482605,
-0.06408829987049103,
0.024028709158301353,
0.07899174094200134,
0.07990778982639313,
-0.005958732217550278,
-0.04636624827980995,
0.03211461752653122,
-0.035532187670469284,
0.020117878913879395,
0.054681167006492615,
0.007240322418510914,
-0.03533840924501419,
0.027041105553507805,
-0.06986646354198456,
0.0032348032109439373,
-0.019078513607382774,
-0.009045998565852642,
0.038227491080760956,
0.012842323631048203,
0.009389517828822136,
0.08674293756484985,
0.04929056391119957,
-0.038016095757484436,
0.019272293895483017,
-0.049114398658275604,
-0.008715691976249218,
0.01821531169116497,
0.058063507080078125,
-0.007777621038258076,
-0.0163479782640934,
-0.0045626359060406685,
0.012401914224028587,
-0.04925533011555672,
0.038121793419122696,
-0.00609085476025939,
-0.007447314448654652,
-0.015749022364616394,
0.0012760848039761186,
0.023975860327482224,
0.009424750693142414,
-0.03584928438067436,
-0.05482209846377373,
0.07596172392368317,
0.001382883870974183,
-0.023341670632362366,
0.03230839595198631,
0.018884733319282532,
-0.02774576097726822,
-0.01360863447189331,
0.08709526062011719,
-0.039531100541353226,
0.04837451130151749,
-0.011926272884011269,
-0.023464985191822052,
-0.00597194442525506,
0.015061983838677406,
0.002979366108775139,
-0.011300892569124699,
0.035725969821214676,
0.009856350719928741,
0.01551120076328516,
0.02478621155023575,
-0.020945847034454346,
0.03836842253804207,
0.03563788905739784,
-0.06468725949525833,
0.00937190093100071,
0.021104393526911736,
-0.013370813801884651,
-0.024134406819939613,
-0.0145951509475708,
-0.029313616454601288,
0.05845106765627861,
0.0011780938366428018,
0.04883253946900368,
-0.010455307550728321,
0.04330100119113922
] |
721,930
|
apprise.apprise_attachment
|
__getitem__
|
Returns the indexed entry of a loaded apprise attachments
|
def __getitem__(self, index):
"""
Returns the indexed entry of a loaded apprise attachments
"""
return self.attachments[index]
|
(self, index)
|
[
0.03136337548494339,
-0.03860371559858322,
-0.12476721405982971,
0.04268713295459747,
0.029373139142990112,
-0.026833873242139816,
0.012378925457596779,
-0.00034502072958275676,
0.06358461081981659,
0.0042635658755898476,
-0.02007393352687359,
-0.0044136918149888515,
-0.018890084698796272,
0.0018947990611195564,
-0.03321635350584984,
0.006077940575778484,
-0.02673092857003212,
0.0477999784052372,
0.03510364517569542,
0.03798605874180794,
-0.016076304018497467,
0.009153369814157486,
0.038981176912784576,
0.017877809703350067,
-0.018529783934354782,
0.04028512164950371,
0.046770546585321426,
-0.02412303350865841,
0.09608036279678345,
-0.025907384231686592,
-0.019370486959815025,
-0.08461935073137283,
0.03860371559858322,
0.04378519207239151,
-0.02060580626130104,
0.04104004055261612,
-0.023248016834259033,
-0.008291220292448997,
0.01659959740936756,
0.0559668093919754,
-0.00005877684088773094,
-0.0012910799123346806,
0.0608394593000412,
-0.06509444862604141,
0.00846279226243496,
0.04793723672628403,
-0.009693821892142296,
0.012541919015347958,
0.03554973378777504,
-0.0033992717508226633,
0.010122752748429775,
0.02146366611123085,
0.022218583151698112,
-0.02118915133178234,
-0.0692121759057045,
0.07816823571920395,
-0.03421147167682648,
0.07576622813940048,
-0.02052002027630806,
0.037951741367578506,
0.027434375137090683,
-0.06873176991939545,
0.07967807352542877,
-0.0315864197909832,
0.04436853900551796,
0.00976245105266571,
0.02709123119711876,
0.016393711790442467,
-0.028652535751461983,
-0.005812004208564758,
0.022784771397709846,
0.01255049742758274,
-0.031106017529964447,
-0.01249044667929411,
-0.03167220577597618,
-0.006060783751308918,
0.0009806416928768158,
0.04484894126653671,
0.022390155121684074,
0.04440285265445709,
0.05576092377305031,
0.019730789586901665,
-0.025135308504104614,
0.051300048828125,
0.019233230501413345,
-0.011855630204081535,
0.03959883376955986,
-0.027828991413116455,
-0.05335891619324684,
0.036922309547662735,
0.013751502148807049,
0.06787391006946564,
-0.006901486776769161,
-0.0075234356336295605,
0.002299065701663494,
-0.04841763898730278,
-0.007973812520503998,
-0.026851030066609383,
-0.017337357625365257,
-0.019319016486406326,
-0.018838614225387573,
0.0038046108093112707,
0.019868046045303345,
-0.013236785307526588,
-0.02695397287607193,
-0.026627985760569572,
0.010423003695905209,
-0.04783429577946663,
0.003247001441195607,
0.058609019964933395,
0.013579930178821087,
-0.020725905895233154,
-0.0763152614235878,
0.034674715250730515,
-0.006747072096914053,
-0.02523825317621231,
0.010337217710912228,
-0.011435278691351414,
0.024723535403609276,
-0.0027966247871518135,
0.048760782927274704,
-0.013245364651083946,
-0.06790822744369507,
0.01943911612033844,
0.01655670441687107,
0.005361627321690321,
-0.016839798539876938,
-0.014309111051261425,
0.053976576775312424,
-0.06399638205766678,
-0.007000140845775604,
-0.03028247132897377,
-0.0620061494410038,
-0.01952490210533142,
0.020176876336336136,
-0.020142560824751854,
0.07219752669334412,
-0.04079984128475189,
-0.06204046308994293,
0.040525324642658234,
-0.055589351803064346,
0.02592454105615616,
0.044883254915475845,
0.04436853900551796,
-0.0025435560382902622,
-0.024603435769677162,
-0.005674746353179216,
-0.0020717328879982233,
-0.010680361650884151,
-0.01979941688477993,
-0.014686569571495056,
0.014437790028750896,
-0.018015068024396896,
-0.0041070063598454,
0.008286931551992893,
-0.013494144193828106,
-0.04608425870537758,
-0.014291954226791859,
-0.02015971951186657,
-0.04117729887366295,
-0.006245223339647055,
-0.003500070422887802,
-0.026936816051602364,
-0.003686655079945922,
-0.028223605826497078,
0.006039337255060673,
0.0035365293733775616,
0.003763862419873476,
-0.04364793747663498,
0.05727075785398483,
-0.025976011529564857,
0.008218302391469479,
-0.08262911438941956,
-0.03050551563501358,
0.010483053512871265,
0.06355029344558716,
-0.017200101166963577,
0.0584031343460083,
0.0641336441040039,
-0.010362952947616577,
-0.05191770941019058,
0.02074306458234787,
-0.012430396862328053,
0.010097016580402851,
0.01718294247984886,
0.05655015632510185,
0.010294324718415737,
0.04550091549754143,
0.054251089692115784,
0.020846007391810417,
0.03376538306474686,
0.0018454721430316567,
-0.016591019928455353,
-0.025667183101177216,
-0.0381576307117939,
0.018289582803845406,
-0.021635238081216812,
-0.0004881761851720512,
-0.06169731914997101,
0.04086846858263016,
-0.023556845262646675,
-0.0765211433172226,
-0.010285746306180954,
0.01818663999438286,
-0.03385116904973984,
0.029355982318520546,
0.04598131775856018,
-0.017517508938908577,
-0.08269774168729782,
0.02304212935268879,
-0.05706487223505974,
0.005743375048041344,
0.004495188593864441,
-0.04179495573043823,
0.05274125561118126,
-0.06506013125181198,
-0.043167535215616226,
-0.011984309181571007,
0.03337077051401138,
0.03347371146082878,
-0.00784942228347063,
0.01545864436775446,
-0.021069051697850227,
-0.018426841124892235,
-0.0039461576379835606,
-0.00021017578546889126,
0.007330416701734066,
-0.010088438168168068,
-0.02650788612663746,
0.01213014591485262,
0.005430256016552448,
0.0003015915281139314,
0.036613479256629944,
0.017217257991433144,
0.07576622813940048,
0.058746278285980225,
-0.027108388021588326,
0.024826480075716972,
0.013579930178821087,
0.032238394021987915,
0.07446227967739105,
0.05624132603406906,
0.017071422189474106,
0.034811973571777344,
-0.01417185366153717,
-0.02232152782380581,
0.02659367211163044,
0.0047311000525951385,
-0.03935863450169563,
-0.03760859742760658,
0.0630698949098587,
0.00942788552492857,
-0.0013243219582363963,
0.029373139142990112,
0.02118915133178234,
-0.03366244211792946,
-0.04217241704463959,
-0.03524090349674225,
0.004029799252748489,
-0.02379704639315605,
-0.003047548932954669,
-0.04007923603057861,
0.047902923077344894,
0.02595885470509529,
-0.05661878362298012,
0.03623602166771889,
0.0157932098954916,
0.04697643592953682,
0.020451391115784645,
0.06282969564199448,
0.06934943050146103,
0.05620701238512993,
0.03506933152675629,
-0.022475941106677055,
0.008677258156239986,
0.0008857408538460732,
0.00354939722456038,
0.04508914053440094,
-0.04217241704463959,
0.034709032624959946,
-0.007454806473106146,
0.00942788552492857,
-0.0358242504298687,
0.031037388369441032,
0.02961334027349949,
-0.0772760659456253,
0.030762873589992523,
0.032547224313020706,
-0.04680486395955086,
-0.006245223339647055,
0.030076585710048676,
0.023522531613707542,
0.02812066301703453,
-0.07604074478149414,
-0.04079984128475189,
-0.027297116816043854,
-0.0632757842540741,
0.016505233943462372,
0.0525696836411953,
0.04968727380037308,
0.0014948217431083322,
-0.006343877408653498,
0.0014454947086051106,
0.0058334507048130035,
-0.043133221566677094,
0.048040181398391724,
-0.0035086488351225853,
0.04471168294548988,
-0.0004940739599987864,
-0.01610204018652439,
0.025684339925646782,
0.0029596183449029922,
-0.008947484195232391,
0.08063887804746628,
-0.03000795654952526,
-0.006755650509148836,
-0.034314416348934174,
0.0595698244869709,
-0.0038989754393696785,
0.07432502508163452,
-0.022167112678289413,
0.050956904888153076,
-0.0190273430198431,
-0.0033585233613848686,
0.10109026730060577,
-0.035652678459882736,
0.002198267262428999,
0.01620498299598694,
-0.020314132794737816,
0.03321635350584984,
0.025409825146198273,
-0.009831080213189125,
-0.004748257342725992,
-0.00652402825653553,
-0.04073121026158333,
0.03891254588961601,
-0.01646234095096588,
-0.024809321388602257,
0.01188136637210846,
-0.030985916033387184,
-0.006043626461178064,
-0.08695273101329803,
-0.002050286391749978,
0.03980472311377525,
0.035755619406700134,
-0.023368116468191147,
0.06042768433690071,
-0.01566453091800213,
-0.01386302337050438,
-0.09546270221471786,
-0.0043214717879891396,
-0.03802037239074707,
-0.010362952947616577,
0.0119499946013093,
-0.020640119910240173,
-0.03585856407880783,
-0.0027258512564003468,
-0.06389343738555908,
0.0006391059723682702,
0.06001591309905052,
0.02609611302614212,
-0.023333802819252014,
-0.06509444862604141,
-0.038363516330718994,
-0.034400202333927155,
0.00032384227961301804,
-0.03832920268177986,
-0.006408216897398233,
0.029956484213471413,
-0.03740271180868149,
-0.03283889591693878,
0.024723535403609276,
-0.06711899489164352,
0.026078956201672554,
0.040834154933691025,
-0.0821487084031105,
-0.03568699210882187,
0.05232948437333107,
-0.04289301857352257,
0.0014519286341965199,
-0.026216212660074234,
0.022064168006181717,
-0.02132640965282917,
0.04766272380948067,
-0.018152326345443726,
-0.02393430471420288,
-0.026936816051602364,
-0.016754012554883957,
0.0031183224637061357,
0.031740833073854446,
-0.004242119379341602,
-0.03263301029801369,
-0.06245223432779312,
-0.006635549943894148,
-0.04889804124832153,
-0.0644424706697464,
0.024140190333127975,
-0.032324180006980896,
-0.004795439541339874,
-0.0596727691590786,
0.039941977709531784,
0.020176876336336136,
-0.04138318449258804,
0.041142985224723816,
0.013176735490560532,
0.007995259016752243,
0.017963595688343048,
0.03136337548494339,
-0.019010186195373535,
-0.009522249922156334,
0.031123174354434013,
0.023007815703749657,
-0.022784771397709846,
-0.06011885404586792,
0.005957840476185083,
-0.0003082935872953385,
0.025993170216679573,
-0.01971363089978695,
-0.03541247546672821,
0.054010890424251556,
-0.006588367745280266,
0.032375652343034744,
0.006875751074403524,
-0.010294324718415737,
-0.043304793536663055,
-0.061800260096788406,
-0.009256313554942608,
-0.018924400210380554,
-0.028446650132536888,
0.020262662321329117,
-0.06602093577384949,
-0.029579026624560356,
0.0011355926981195807,
-0.018838614225387573,
0.0381576307117939,
-0.00414989935234189,
-0.02218426950275898,
-0.0654032751917839,
-0.039941977709531784,
0.034400202333927155,
0.056858986616134644,
0.03290752321481705,
0.01985088922083378,
-0.04007923603057861,
0.015630215406417847,
-0.056001126766204834,
-0.07082495093345642,
0.009479356929659843,
0.04773135110735893,
-0.039667464792728424,
-0.03716251254081726,
-0.0029960772953927517,
0.07370736449956894,
-0.014257639646530151,
0.0001528063730802387,
-0.032958995550870895,
-0.027159860357642174,
-0.020451391115784645,
0.02307644486427307,
-0.00825690571218729,
-0.04972158744931221,
0.008801647461950779,
-0.03500070422887802,
-0.09999220818281174,
0.04941275715827942,
0.019816575571894646,
-0.030299628153443336,
0.0321182906627655,
-0.03904980421066284,
0.013099527917802334,
0.05215791240334511,
-0.007459096144884825,
-0.0255985539406538,
-0.10678645968437195,
0.016771171241998672,
0.024775007739663124,
0.0439910814166069,
0.035721305757761,
0.020760221406817436,
-0.01134091429412365,
-0.006669864524155855,
-0.10232558846473694,
-0.004876936320215464,
0.03493207320570946,
-0.02290487289428711,
-0.03671642392873764,
-0.016908427700400352,
0.022012697532773018,
0.015329965390264988,
-0.021926911547780037,
0.04924118518829346,
0.020777378231287003,
-0.008428478613495827,
0.0608394593000412,
0.09017828106880188,
0.012112988159060478,
0.011864208616316319,
0.04683917760848999,
0.021583767607808113,
-0.012893641367554665,
0.028378020972013474,
-0.0477999784052372,
0.02115483768284321,
-0.05322165787220001,
-0.023676946759223938,
-0.035892877727746964,
-0.00655834237113595,
0.015518694184720516,
0.019782260060310364,
-0.0763152614235878,
0.001736094942316413,
0.019696474075317383,
-0.018890084698796272,
-0.003913987893611193,
0.01332257129251957,
0.03970177844166756,
-0.03410852700471878,
0.010791883803904057,
0.02911578118801117,
0.04505482688546181,
0.06766802817583084,
-0.04062826558947563,
-0.004602421075105667,
-0.025804439559578896,
0.007459096144884825,
-0.012327454052865505,
-0.03496639057993889,
-0.009556564502418041,
-0.03414284437894821,
0.08063887804746628,
-0.025993170216679573,
0.010414425283670425,
0.03891254588961601,
-0.01925038732588291,
-0.00023041594249662012,
0.05812861770391464,
-0.03843214362859726,
-0.03513796254992485,
-0.015046871267259121,
0.04608425870537758,
-0.00768213951960206,
-0.02537550963461399,
0.018615569919347763,
-0.08660958707332611,
0.040696896612644196,
-0.031792305409908295,
-0.06008454039692879,
-0.032512906938791275,
0.0595698244869709,
-0.014909612946212292,
-0.0071416874416172504,
-0.006828568410128355,
0.01466941274702549,
-0.043853823095560074,
0.026301998645067215,
0.019113129004836082,
-0.04941275715827942,
-0.07556033879518509,
0.009908287785947323,
-0.009505093097686768,
0.04680486395955086,
-0.025255410000681877,
-0.007935208268463612,
0.033267825841903687,
-0.03218692168593407,
0.013742922805249691,
0.0012438975973054767,
0.004295735619962215,
-0.022664671763777733,
-0.03846646100282669,
-0.03421147167682648,
-0.01500397827476263,
-0.030574142932891846,
0.029956484213471413,
0.02115483768284321,
0.021926911547780037,
0.01358850859105587,
-0.028909895569086075,
0.003279171185567975,
-0.04512345418334007,
0.04498619958758354,
-0.030025113373994827,
0.07954081147909164,
-0.020365605130791664,
-0.009685243479907513,
-0.02218426950275898,
0.030213842168450356,
0.012370347045361996,
0.0007238197140395641,
-0.007982390932738781,
-0.00942788552492857,
-0.026627985760569572,
-0.02528972364962101,
0.01219877414405346,
0.07459954172372818,
0.038981176912784576,
0.03316488116979599,
-0.0058677648194134235,
-0.040388066321611404,
-0.030659930780529976,
0.024037247523665428,
-0.008325534872710705,
-0.0016717554535716772,
0.005464570596814156,
0.018152326345443726,
-0.013399778865277767,
-0.01257623266428709,
-0.02606179751455784,
0.03266732394695282,
-0.0021189150866121054,
-0.019507745280861855,
-0.008694414980709553,
-0.01835821196436882,
0.011486750096082687,
0.005644721444696188,
-0.03136337548494339,
-0.01224166713654995,
0.05668741464614868,
0.03558404743671417,
0.06622681766748428,
-0.019953832030296326,
0.028824109584093094,
-0.030316784977912903,
0.02614758349955082,
0.0007629595929756761,
-0.06471698731184006,
0.040250808000564575,
-0.009891130030155182,
0.022733299061655998,
0.01424048189073801,
0.042138103395700455,
-0.005631853360682726,
0.07315833121538162,
0.013537037186324596,
0.002940316451713443,
0.006862882990390062,
0.012404660694301128,
-0.0631728395819664,
-0.045603856444358826,
0.07171712815761566,
0.0027580210007727146,
-0.033902641385793686,
-0.055726610124111176,
-0.009865394793450832,
0.02659367211163044,
0.019627844914793968,
-0.019061656668782234,
-0.052535369992256165,
0.003873239504173398,
0.004387955646961927,
-0.018701355904340744,
0.004291446413844824,
-0.04117729887366295,
0.01030290313065052,
-0.04289301857352257,
0.07391324639320374,
0.06080514192581177,
0.02426029182970524,
-0.06447678804397583,
-0.0035987242590636015,
-0.044883254915475845,
-0.03139768913388252,
-0.0452607125043869,
-0.07686428725719452,
0.08647232502698898,
-0.05507463589310646,
-0.020314132794737816,
-0.00158918637316674,
0.009608035907149315,
0.03668211027979851,
0.001180630293674767,
0.05322165787220001,
0.003926855977624655,
0.008582892827689648,
0.03050551563501358,
-0.018872927874326706,
0.015647374093532562,
0.007918051443994045,
0.061354175209999084,
0.025478452444076538,
0.00947077851742506,
0.005914947483688593,
-0.01606772467494011,
0.09745293855667114,
0.008608628995716572,
0.03446882963180542,
0.02462059259414673,
-0.007888026535511017,
0.010637468658387661,
-0.00739046698436141,
-0.004876936320215464,
-0.05576092377305031,
-0.004988458007574081,
0.025632867589592934,
-0.005876343697309494,
-0.0166939627379179,
0.027485845610499382,
0.0027408639434725046,
-0.026130426675081253,
0.008261195383965969,
0.02204701118171215,
0.027245646342635155,
0.03000795654952526,
-0.0382605716586113,
-0.019456272944808006,
-0.04917255789041519,
-0.03788311406970024,
0.03464040160179138,
-0.05407951772212982,
-0.00648113526403904,
0.005606117658317089,
0.05263831093907356,
0.05222653970122337,
0.003920421935617924,
0.032650165259838104,
0.0440940223634243,
-0.010285746306180954,
0.04323616251349449,
-0.02745153196156025,
0.03400558605790138,
-0.02578728273510933,
-0.006892907898873091,
0.03266732394695282,
0.04004492238163948,
0.021892596036195755,
-0.010989191010594368,
-0.0003123148053418845,
-0.0012996584409847856,
-0.04955001547932625,
0.053255971521139145,
0.029819225892424583,
-0.0963548794388771,
-0.014840984717011452,
0.003502215025946498,
0.0012857182882726192,
-0.031483475118875504,
0.01974794641137123,
-0.025255410000681877,
-0.0004589552991092205,
0.008153962902724743,
0.000570477161090821,
0.028738321736454964,
-0.04913824424147606,
0.013348307460546494,
-0.026627985760569572,
-0.03383401408791542,
0.02137788012623787,
0.018152326345443726,
-0.03132906183600426,
0.023471059277653694,
0.05696192756295204,
0.05781979113817215,
-0.04001060873270035,
0.0380546860396862,
-0.0037767302710562944,
-0.016548126935958862,
0.04755977913737297,
-0.017268728464841843,
0.005005615297704935,
-0.0005198097787797451,
-0.01858125627040863,
-0.03256437927484512,
-0.06279537826776505,
0.06241792067885399,
-0.043304793536663055,
0.03613308072090149,
-0.0008669751696288586,
0.026988288387656212
] |
721,931
|
apprise.apprise_attachment
|
__init__
|
Loads all of the paths/urls specified (if any).
The path can either be a single string identifying one explicit
location, otherwise you can pass in a series of locations to scan
via a list.
By default we cache our responses so that subsiquent calls does not
cause the content to be retrieved again. For local file references
this makes no difference at all. But for remote content, this does
mean more then one call can be made to retrieve the (same) data. This
method can be somewhat inefficient if disabled. Only disable caching
if you understand the consequences.
You can alternatively set the cache value to an int identifying the
number of seconds the previously retrieved can exist for before it
should be considered expired.
It's also worth nothing that the cache value is only set to elements
that are not already of subclass AttachBase()
Optionally set your current ContentLocation in the location argument.
This is used to further handle attachments. The rules are as follows:
- INACCESSIBLE: You simply have disabled use of the object; no
attachments will be retrieved/handled.
- HOSTED: You are hosting an attachment service for others.
In these circumstances all attachments that are LOCAL
based (such as file://) will not be allowed.
- LOCAL: The least restrictive mode as local files can be
referenced in addition to hosted.
In all both HOSTED and LOCAL modes, INACCESSIBLE attachment types will
continue to be inaccessible. However if you set this field (location)
to None (it's default value) the attachment location category will not
be tested in any way (all attachment types will be allowed).
The location field is also a global option that can be set when
initializing the Apprise object.
|
def __init__(self, paths=None, asset=None, cache=True, location=None,
**kwargs):
"""
Loads all of the paths/urls specified (if any).
The path can either be a single string identifying one explicit
location, otherwise you can pass in a series of locations to scan
via a list.
By default we cache our responses so that subsiquent calls does not
cause the content to be retrieved again. For local file references
this makes no difference at all. But for remote content, this does
mean more then one call can be made to retrieve the (same) data. This
method can be somewhat inefficient if disabled. Only disable caching
if you understand the consequences.
You can alternatively set the cache value to an int identifying the
number of seconds the previously retrieved can exist for before it
should be considered expired.
It's also worth nothing that the cache value is only set to elements
that are not already of subclass AttachBase()
Optionally set your current ContentLocation in the location argument.
This is used to further handle attachments. The rules are as follows:
- INACCESSIBLE: You simply have disabled use of the object; no
attachments will be retrieved/handled.
- HOSTED: You are hosting an attachment service for others.
In these circumstances all attachments that are LOCAL
based (such as file://) will not be allowed.
- LOCAL: The least restrictive mode as local files can be
referenced in addition to hosted.
In all both HOSTED and LOCAL modes, INACCESSIBLE attachment types will
continue to be inaccessible. However if you set this field (location)
to None (it's default value) the attachment location category will not
be tested in any way (all attachment types will be allowed).
The location field is also a global option that can be set when
initializing the Apprise object.
"""
# Initialize our attachment listings
self.attachments = list()
# Set our cache flag
self.cache = cache
# Prepare our Asset Object
self.asset = \
asset if isinstance(asset, AppriseAsset) else AppriseAsset()
if location is not None and location not in CONTENT_LOCATIONS:
msg = "An invalid Attachment location ({}) was specified." \
.format(location)
logger.warning(msg)
raise TypeError(msg)
# Store our location
self.location = location
# Now parse any paths specified
if paths is not None:
# Store our path(s)
if not self.add(paths):
# Parse Source domain based on from_addr
raise TypeError("One or more attachments could not be added.")
|
(self, paths=None, asset=None, cache=True, location=None, **kwargs)
|
[
0.018730275332927704,
-0.05671843886375427,
-0.09399055689573288,
0.05374119430780411,
0.021519089117646217,
-0.026022646576166153,
0.025645779445767403,
0.0246093962341547,
-0.042774371802806854,
0.026625633239746094,
0.006411444861441851,
0.05611545220017433,
-0.03702715411782265,
-0.001844291458837688,
-0.06369047611951828,
-0.006510372273623943,
-0.017222808673977852,
0.012785202823579311,
-0.004020696971565485,
-0.036348793655633926,
0.007066250778734684,
-0.0035731676034629345,
-0.0039311908185482025,
0.037064842879772186,
0.007330057676881552,
0.0621076337993145,
0.01599799282848835,
-0.011334266513586044,
0.0482766255736351,
0.02278159372508526,
0.043038178235292435,
-0.0020692339166998863,
0.013303395360708237,
-0.0012978347949683666,
0.029734782874584198,
0.029546350240707397,
0.010005811229348183,
0.03320195898413658,
-0.05509791523218155,
0.030337771400809288,
0.0025414947886019945,
0.005605892278254032,
0.050877004861831665,
-0.02372375875711441,
0.03135531023144722,
0.051291558891534805,
-0.00771163497120142,
0.007607996929436922,
0.020934946835041046,
-0.043754223734140396,
0.017891747877001762,
0.05306283384561539,
0.04073929041624069,
-0.0066564083099365234,
-0.04537475109100342,
0.09534727782011032,
-0.027548957616090775,
0.13928993046283722,
-0.06120315566658974,
0.0005467511364258826,
-0.0167046170681715,
-0.03135531023144722,
0.09964355826377869,
-0.036179203540086746,
-0.014066549949347973,
0.036084987223148346,
-0.042359817773103714,
0.003229276742786169,
-0.010335569269955158,
0.05453261360526085,
0.008503055199980736,
-0.01708148419857025,
-0.06255987286567688,
0.004343389067798853,
0.08155395835638046,
0.008022550493478775,
0.009204969741404057,
0.02400640957057476,
0.011513277888298035,
0.02327151969075203,
0.049934837967157364,
-0.026003804057836533,
-0.03900570422410965,
-0.017326446250081062,
0.04948259890079498,
-0.017759844660758972,
-0.0019361526938155293,
-0.04160608351230621,
0.05622851476073265,
0.05630388855934143,
-0.02447749301791191,
0.059507254511117935,
0.001269569736905396,
-0.03712137043476105,
0.029734782874584198,
-0.0017170989885926247,
-0.04145533964037895,
-0.01698726788163185,
0.013341081328690052,
-0.005426880903542042,
-0.043829597532749176,
-0.01503698155283928,
-0.035350099205970764,
-0.0339745357632637,
-0.0025603382382541895,
-0.061353899538517,
-0.005280844867229462,
-0.060185614973306656,
0.0028406328056007624,
0.027398210018873215,
-0.03474711254239082,
-0.027756232768297195,
-0.03881727159023285,
0.050650887191295624,
-0.03391800448298454,
-0.02361069992184639,
-0.01662924326956272,
-0.0037780888378620148,
0.035350099205970764,
-0.028434593230485916,
0.019295575097203255,
0.03874189779162407,
-0.03661260008811951,
0.042962804436683655,
0.058150533586740494,
0.00822982657700777,
-0.012822889722883701,
-0.02464708313345909,
0.01579071581363678,
-0.051555365324020386,
-0.0013932291185483336,
-0.018881022930145264,
-0.03399337828159332,
-0.003448330331593752,
-0.005841434001922607,
-0.02351648360490799,
-0.00003638015186879784,
0.0021363631822168827,
-0.03778088837862015,
0.04111615940928459,
-0.05619082599878311,
0.020068151876330376,
0.0458269938826561,
0.01677056960761547,
-0.015300788916647434,
-0.001558108371682465,
0.018230928108096123,
-0.051593054085969925,
-0.051140811294317245,
-0.0013272775104269385,
-0.0005853211041539907,
-0.03267434239387512,
-0.03738517686724663,
0.030337771400809288,
0.025438502430915833,
-0.025363130494952202,
-0.06904198229312897,
0.05389194190502167,
0.004842737223953009,
-0.007019142620265484,
-0.017627941444516182,
0.01641254499554634,
-0.005087700672447681,
0.0063219391740858555,
-0.006124083884060383,
-0.03305121138691902,
-0.00831462163478136,
-0.0019196647917851806,
-0.009346294216811657,
0.04925648123025894,
-0.041945263743400574,
0.026569103822112083,
-0.02434558980166912,
-0.027888135984539986,
0.0008467723964713514,
0.03972175344824791,
0.006957901641726494,
0.0003497794095892459,
0.022310510277748108,
0.04089003801345825,
-0.014971029944717884,
-0.0010440385667607188,
0.006505661644041538,
0.04955797269940376,
0.028981050476431847,
0.03323964402079582,
0.018758540973067284,
-0.00565300090238452,
0.03781857341527939,
0.03904339298605919,
-0.01642196625471115,
0.04805050417780876,
-0.012587347999215126,
-0.022009016945958138,
-0.04198295250535011,
0.019615912809967995,
0.003792221425101161,
-0.0763155072927475,
-0.0609770342707634,
0.06320054829120636,
-0.07458192110061646,
-0.05464567244052887,
-0.0015168885001912713,
-0.022009016945958138,
0.042020637542009354,
0.0320902019739151,
0.01208799984306097,
-0.04518631845712662,
-0.04130459204316139,
0.07412968575954437,
-0.048653494566679,
0.035293567925691605,
-0.013868695124983788,
-0.07009720802307129,
0.008738596923649311,
-0.04217138513922691,
-0.04831431433558464,
0.030224710702896118,
0.026587946340441704,
0.028849147260189056,
-0.008192140609025955,
0.019041189923882484,
-0.05570090189576149,
-0.014509368687868118,
-0.05408037453889847,
0.029810156673192978,
0.04168145731091499,
0.00606284337118268,
-0.019973935559391975,
0.02285696566104889,
-0.026738693937659264,
-0.0014697802253067493,
0.02364838682115078,
0.01542326994240284,
0.04955797269940376,
0.02389334887266159,
0.014123080298304558,
0.051329247653484344,
0.0005008205189369619,
-0.028189629316329956,
0.0673837661743164,
0.026964813470840454,
0.0021469625644385815,
-0.02498626336455345,
-0.029094111174345016,
-0.06406734138727188,
-0.03953331708908081,
-0.03759245574474335,
-0.03870421275496483,
-0.08087559789419174,
0.028999892994761467,
0.04122921824455261,
-0.021707523614168167,
-0.013143226504325867,
0.02419484220445156,
-0.029452133923768997,
0.01550806500017643,
-0.0313364677131176,
0.013284551911056042,
-0.04111615940928459,
0.025042792782187462,
-0.07379050552845001,
0.03685756400227547,
0.044168777763843536,
-0.044206466525793076,
0.005389194004237652,
-0.0020079929381608963,
-0.02317730337381363,
-0.04929416626691818,
0.026644475758075714,
0.09738235920667648,
0.043415047228336334,
0.036424167454242706,
-0.00806023646146059,
-0.005535230040550232,
0.05717068165540695,
-0.02445865049958229,
-0.01686478592455387,
-0.05362813174724579,
0.026493730023503304,
0.006538637448102236,
0.03252359852194786,
0.043829597532749176,
-0.013727369718253613,
0.07171773910522461,
-0.09821146726608276,
-0.05351507291197777,
0.058753520250320435,
-0.0802726075053215,
-0.018457047641277313,
0.03261781483888626,
0.059055015444755554,
0.018730275332927704,
-0.08313679695129395,
-0.03092191368341446,
0.007984863594174385,
-0.035482000559568405,
0.02274390682578087,
0.043452732264995575,
0.013906382024288177,
-0.025325443595647812,
-0.00044841249473392963,
0.06621548533439636,
0.009986967779695988,
-0.028905676677823067,
-0.02383681945502758,
-0.03371072933077812,
0.018692588433623314,
0.035387784242630005,
0.03248590975999832,
0.07224535197019577,
-0.0014226718340069056,
-0.00008140909631038085,
0.028547653928399086,
-0.0037568900734186172,
0.05521097406744957,
0.008239248767495155,
0.02436443231999874,
-0.026437200605869293,
0.019041189923882484,
0.004044251050800085,
0.06783600896596909,
-0.03235400840640068,
-0.0020645230542868376,
0.06448189169168472,
0.0015357318334281445,
0.050839319825172424,
0.05351507291197777,
-0.02276274934411049,
0.03384263068437576,
-0.009346294216811657,
0.04137996584177017,
-0.036725662648677826,
0.035086292773485184,
-0.010203666053712368,
0.0469575934112072,
-0.028509967029094696,
-0.08539799600839615,
0.052799027413129807,
-0.01660097949206829,
0.036819878965616226,
-0.026663320139050484,
-0.06233375519514084,
0.017024952918291092,
-0.0063407826237380505,
-0.007994284853339195,
0.10356297343969345,
0.006924925837665796,
0.0003170980198774487,
-0.07397893816232681,
-0.02291349694132805,
-0.042661312967538834,
-0.02419484220445156,
-0.02400640957057476,
0.0247036125510931,
-0.05313820764422417,
-0.042096011340618134,
-0.05513560026884079,
0.02274390682578087,
0.01171113271266222,
0.027605487033724785,
-0.0018537131836637855,
-0.06048710644245148,
-0.018127288669347763,
-0.025777682662010193,
-0.017505459487438202,
0.020539235323667526,
0.006953191012144089,
0.002621578983962536,
-0.06715764850378036,
-0.0018336920766159892,
0.027548957616090775,
-0.026022646576166153,
-0.019521696493029594,
0.05570090189576149,
-0.059884119778871536,
0.0012307054130360484,
-0.00424210587516427,
-0.034916702657938004,
0.0460154265165329,
-0.058301281183958054,
0.06666772067546844,
-0.007184021640568972,
-0.006585745606571436,
0.01695900224149227,
-0.05547478049993515,
0.014810862019658089,
-0.0007507891277782619,
0.008404127322137356,
0.04699527844786644,
0.08268455415964127,
-0.044168777763843536,
0.007542045321315527,
0.013821586966514587,
-0.03742286562919617,
-0.06335129588842392,
0.02344110980629921,
0.04492251202464104,
0.028265003114938736,
-0.043113552033901215,
0.026776380836963654,
-0.02276274934411049,
-0.019842032343149185,
0.027021342888474464,
0.01647849753499031,
-0.0035166374873369932,
0.05728374049067497,
-0.0165161844342947,
0.03252359852194786,
0.012238746508955956,
0.010891447775065899,
-0.028208473697304726,
0.003945323638617992,
-0.04013630375266075,
-0.011061037890613079,
0.010731279850006104,
0.007410141639411449,
-0.027737390249967575,
0.0031232829205691814,
0.019333261996507645,
0.030168181285262108,
0.03742286562919617,
-0.0005099477712064981,
-0.05004790052771568,
-0.017477193847298622,
-0.04492251202464104,
-0.01209742110222578,
-0.035312410444021225,
-0.03062042035162449,
-0.011513277888298035,
-0.007622129283845425,
0.06975802779197693,
-0.034558676183223724,
-0.060939349234104156,
0.04669378697872162,
0.04126690700650215,
0.0015239547938108444,
-0.04861580580472946,
-0.006251276470720768,
-0.028001196682453156,
-0.034860171377658844,
-0.043226610869169235,
-0.021142221987247467,
-0.008554873988032341,
-0.000838528445456177,
-0.050801634788513184,
-0.07216997444629669,
0.034916702657938004,
0.04691990464925766,
0.0059450725093483925,
-0.013322237879037857,
0.0020751224365085363,
0.04624154418706894,
-0.019578225910663605,
-0.08509650081396103,
0.00412197969853878,
0.06972034275531769,
0.028038883581757545,
-0.02523122727870941,
0.00828164629638195,
0.009115464054048061,
-0.018749119713902473,
0.021029163151979446,
-0.11705479770898819,
-0.043678853660821915,
0.07269758731126785,
0.003622631309553981,
0.011343687772750854,
-0.014622428454458714,
-0.01643138937652111,
0.036461856216192245,
-0.019248466938734055,
0.0010281394934281707,
-0.029565194621682167,
0.036556072533130646,
-0.004004208836704493,
0.06124084070324898,
0.014292670413851738,
-0.02487320266664028,
-0.04835199937224388,
-0.0015404426958411932,
-0.06327591836452484,
0.003238698234781623,
-0.003184523666277528,
-0.007339479401707649,
-0.036292266100645065,
0.02443980611860752,
-0.018230928108096123,
0.003533125389367342,
0.04107847064733505,
0.009605390019714832,
0.028566496446728706,
-0.04145533964037895,
0.042209070175886154,
0.013011323288083076,
0.042585939168930054,
0.021198753267526627,
0.06357741355895996,
0.028434593230485916,
-0.06425577402114868,
0.013510671444237232,
-0.09557339549064636,
0.003462462918832898,
-0.004444671794772148,
-0.03806353732943535,
0.020086996257305145,
-0.013322237879037857,
-0.0032245658803731203,
0.013124383054673672,
0.0015168885001912713,
-0.02404409646987915,
-0.004823893774300814,
0.0024237241595983505,
-0.009685474447906017,
-0.019370948895812035,
-0.000038643560401396826,
-0.026719849556684494,
0.005276133771985769,
-0.0050688572227954865,
-0.019031768664717674,
0.04910573363304138,
0.011098724789917469,
0.01703437604010105,
-0.018296878784894943,
-0.026380669325590134,
-0.013859273865818977,
0.01567765511572361,
0.010882026515901089,
-0.018965817987918854,
0.02293233945965767,
0.011343687772750854,
-0.0009115463471971452,
-0.006359625607728958,
-0.028830302879214287,
0.06923041492700577,
0.09444279968738556,
-0.06885354965925217,
-0.04571393132209778,
-0.04948259890079498,
0.007636261638253927,
0.0013696749228984118,
0.03953331708908081,
-0.01660097949206829,
-0.06659235060214996,
0.006180614233016968,
-0.10009580105543137,
-0.018843336030840874,
0.0037992876023054123,
0.06862743198871613,
-0.03291930630803108,
0.029810156673192978,
-0.020652296021580696,
0.029678253456950188,
-0.003078530076891184,
-0.006562191527336836,
-0.0018077825661748648,
-0.007763454224914312,
-0.08637785166501999,
0.003389444900676608,
-0.007254684343934059,
0.04096541181206703,
0.013020744547247887,
-0.06938116252422333,
0.03721558675169945,
-0.04518631845712662,
-0.003676805878058076,
0.05653000622987747,
0.011126989498734474,
-0.03150605782866478,
-0.03212788701057434,
-0.03156258910894394,
0.018409939482808113,
-0.06357741355895996,
0.013529514893889427,
0.03998555988073349,
0.006571613252162933,
-0.026832910254597664,
0.010599376633763313,
0.0340687520802021,
0.0027040187269449234,
0.0499725267291069,
-0.05396731197834015,
0.0005638279253616929,
-0.043226610869169235,
-0.028585340827703476,
-0.026851752772927284,
0.035613905638456345,
0.0473344586789608,
-0.020784199237823486,
0.0005785492830909789,
0.007829406298696995,
-0.00811205618083477,
-0.006651697680354118,
0.028020041063427925,
-0.018362831324338913,
0.0338803194463253,
0.059017326682806015,
-0.03079001046717167,
-0.014848548918962479,
-0.03062042035162449,
-0.0020939656533300877,
-0.02389334887266159,
-0.0615423358976841,
0.01221990305930376,
-0.027266306802630424,
-0.02464708313345909,
-0.07243378460407257,
0.004560087341815233,
0.01196551788598299,
0.012898263521492481,
0.012719251215457916,
-0.004505912773311138,
0.019559381529688835,
0.06647928804159164,
-0.008295778185129166,
-0.0022788660135120153,
-0.06489644944667816,
0.043226610869169235,
0.014358622021973133,
0.0118807228282094,
-0.021839426830410957,
-0.030092807486653328,
0.025137009099125862,
0.00862082652747631,
-0.02464708313345909,
0.009873908013105392,
-0.005539940670132637,
0.01652560569345951,
-0.0002842693938873708,
0.06372816115617752,
0.0749964788556099,
-0.0032080779783427715,
0.028076570481061935,
0.07552409172058105,
0.025268912315368652,
-0.0050688572227954865,
0.02364838682115078,
-0.005097122397273779,
0.034445617347955704,
0.0075137801468372345,
0.04974640533328056,
-0.04175683110952377,
-0.059959493577480316,
0.001886688987724483,
-0.042548250406980515,
0.010561689734458923,
0.007132202386856079,
-0.034219495952129364,
0.017910590395331383,
-0.0017712735570967197,
0.006472685839980841,
0.012945371679961681,
-0.005624735727906227,
-0.010929134674370289,
-0.051253873854875565,
0.12074809521436691,
0.017194543033838272,
0.004993483889847994,
0.00846065767109394,
0.0158566664904356,
-0.034879013895988464,
-0.013162069953978062,
0.003281095763668418,
-0.050424765795469284,
0.043226610869169235,
-0.051366932690143585,
0.026814065873622894,
-0.029226014390587807,
-0.005398615729063749,
0.07363975793123245,
-0.052120666950941086,
0.02323383279144764,
0.014603585004806519,
0.029489820823073387,
-0.000347424007486552,
-0.015517487190663815,
-0.01628064177930355,
-0.03795047849416733,
0.006373758427798748,
0.03229747712612152,
-0.005982758942991495,
0.0037521792110055685,
-0.012681565247476101,
0.05392962694168091,
-0.0237614456564188,
0.028189629316329956,
0.051743801683187485,
0.002149317879229784,
-0.019210780039429665,
0.005403326358646154,
0.019653599709272385,
-0.035877712070941925,
0.02449633553624153,
0.01693073660135269,
-0.0022659110836684704,
-0.013133805245161057,
0.0051300982013344765,
-0.02509932406246662,
-0.017326446250081062,
0.0014886235585436225,
0.042925119400024414,
0.03201482817530632,
-0.027021342888474464,
0.020388489589095116,
-0.042698998004198074,
-0.03712137043476105,
-0.03904339298605919,
0.050274018198251724,
-0.005389194004237652,
0.028114257380366325,
0.027115559205412865,
0.059281133115291595,
0.07103937864303589,
-0.029885530471801758,
0.03050735965371132,
-0.014744910411536694,
0.06278599798679352,
-0.0011453215265646577,
0.013086697086691856,
0.025626936927437782,
-0.01584724523127079,
-0.028585340827703476,
0.04605311155319214,
-0.03297583758831024,
0.018843336030840874,
-0.013407032936811447,
0.003610854269936681,
0.01605452224612236,
0.03763014078140259,
-0.008630247786641121,
-0.019370948895812035,
0.013228021562099457,
-0.0071793110109865665,
0.026154549792408943,
0.008719753473997116,
-0.06904198229312897,
0.012022048234939575,
-0.01655387133359909,
-0.03146836906671524,
0.02345995232462883,
-0.006689384113997221,
-0.018325144425034523,
-0.058263592422008514,
0.025645779445767403,
-0.042736686766147614,
-0.03442677482962608,
0.026211079210042953,
0.02396872267127037,
-0.026418356224894524,
0.042096011340618134,
-0.005794325843453407,
-0.018541842699050903,
-0.0007213464705273509,
0.03248590975999832,
0.013774478808045387,
-0.029772469773888588,
-0.02327151969075203,
0.009214391000568867,
0.00567655498161912,
-0.01620526798069477,
-0.029244856908917427,
-0.07891588658094406,
-0.03772435709834099,
0.03676334768533707,
0.025419659912586212,
0.06659235060214996,
0.006100529804825783,
0.028396906331181526
] |
721,932
|
apprise.apprise_attachment
|
__iter__
|
Returns an iterator to our attachment list
|
def __iter__(self):
"""
Returns an iterator to our attachment list
"""
return iter(self.attachments)
|
(self)
|
[
0.021047044545412064,
-0.03820795193314552,
-0.12359979748725891,
0.026669906452298164,
-0.03096873126924038,
-0.03237874433398247,
0.0027727417182177305,
0.03241313621401787,
0.09037848562002182,
0.05120759829878807,
0.008623441681265831,
-0.017427435144782066,
-0.030796777456998825,
0.0523424856364727,
-0.03593817353248596,
0.022594621405005455,
-0.040546514093875885,
0.021459732204675674,
-0.010403155349195004,
0.038964543491601944,
-0.04377922788262367,
0.03817356005311012,
0.03213801234960556,
0.02871614694595337,
-0.023299628868699074,
0.05082929879426956,
0.020634356886148453,
-0.020771920680999756,
0.06778386235237122,
0.03258508816361427,
-0.01833018660545349,
-0.057707417756319046,
0.05196418985724449,
-0.007828159257769585,
0.02092667669057846,
0.051345158368349075,
-0.06083696335554123,
0.04216286912560463,
-0.04628974199295044,
0.04996953532099724,
0.036832328885793686,
0.02763284370303154,
0.043469712138175964,
-0.006628787145018578,
0.008425695821642876,
0.029352372512221336,
0.006151617970317602,
0.006280582398176193,
0.03320411965250969,
-0.031089099124073982,
0.03521597012877464,
0.02918042056262493,
0.020101303234696388,
-0.018003476783633232,
-0.03552548587322235,
0.07228903472423553,
-0.014306487515568733,
0.03100312128663063,
-0.006474029738456011,
0.049488067626953125,
-0.019688615575432777,
-0.08129936456680298,
0.07916714996099472,
-0.082331083714962,
0.02171766199171543,
-0.02610246278345585,
-0.053580548614263535,
0.002564248861745,
-0.009457414038479328,
0.05677887424826622,
-0.03397790715098381,
0.011374689638614655,
-0.02830345928668976,
0.03177690878510475,
-0.043848007917404175,
0.0006292404141277075,
-0.014452647417783737,
0.04804366081953049,
0.029954208061099052,
-0.04319458827376366,
0.04897220805287361,
0.048800256103277206,
-0.04677120968699455,
0.04659925773739815,
0.05557520315051079,
-0.006676074583083391,
0.013962581753730774,
-0.03889576345682144,
-0.04319458827376366,
0.09801319986581802,
-0.03055604360997677,
0.05519690737128258,
0.019654225558042526,
-0.018553726375102997,
-0.008253742940723896,
0.008223650977015495,
-0.0747651532292366,
-0.01572510041296482,
-0.025122329592704773,
-0.018846046179533005,
-0.03968674689531326,
0.05688204616308212,
0.038689419627189636,
0.022319495677947998,
-0.0024266864638775587,
-0.036763545125722885,
-0.00876100454479456,
-0.1006956622004509,
0.038964543491601944,
0.03800160810351372,
-0.03506121039390564,
0.0026717192959040403,
-0.025569407269358635,
0.04364166408777237,
0.010600901208817959,
-0.06475748866796494,
0.0022590323351323605,
-0.023763902485370636,
0.06541091203689575,
-0.02011849917471409,
0.01937909983098507,
0.021184606477618217,
-0.04395117983222008,
0.0448797270655632,
0.011185540817677975,
0.006504121236503124,
0.014650393277406693,
-0.008292431943118572,
0.03772648423910141,
-0.0858389288187027,
-0.03261948004364967,
0.0009419799316674471,
-0.01754780113697052,
-0.015768088400363922,
0.04181896522641182,
-0.028097117319703102,
0.02873334288597107,
-0.039789918810129166,
-0.026996618136763573,
0.022611817345023155,
-0.029610302299261093,
0.02348877675831318,
0.04549875855445862,
0.04670242965221405,
-0.03538792207837105,
-0.021545708179473877,
-0.005420817527920008,
0.005145692732185125,
-0.017865914851427078,
-0.03807038813829422,
-0.046874381601810455,
-0.00039173036930151284,
0.02501915767788887,
0.0409591980278492,
-0.028200289234519005,
0.034218642860651016,
-0.056228622794151306,
0.02878492884337902,
-0.00511989975348115,
-0.021872418001294136,
-0.01984337344765663,
0.00013796539860777557,
-0.04398557171225548,
0.011641216464340687,
0.017728352919220924,
-0.013395137153565884,
0.00036486273165792227,
-0.03923967108130455,
-0.011641216464340687,
0.020273257046937943,
-0.006220398936420679,
-0.015768088400363922,
-0.02756406180560589,
-0.03248191624879837,
-0.01834738254547119,
0.08542624115943909,
0.012784703634679317,
0.07909837365150452,
0.012999645434319973,
0.04285068064928055,
-0.04340093210339546,
-0.002020447514951229,
-0.0017958339303731918,
0.0001871332060545683,
0.044226307421922684,
0.034167055040597916,
0.023987440392374992,
0.031948864459991455,
0.015518756583333015,
-0.018158234655857086,
-0.005566977895796299,
0.003836700925603509,
-0.025947704911231995,
-0.012844887562096119,
-0.055024951696395874,
0.006026952061802149,
-0.006228996440768242,
-0.006671775598078966,
-0.04893781617283821,
0.06874679774045944,
-0.06860923767089844,
-0.07758518308401108,
-0.016713829711079597,
-0.001272452063858509,
-0.018037866801023483,
0.04735584929585457,
-0.006203203462064266,
-0.04549875855445862,
-0.011624021455645561,
0.012131283059716225,
-0.045773882418870926,
-0.014091546647250652,
0.014538624323904514,
-0.037864044308662415,
0.061421602964401245,
-0.05523129552602768,
-0.006323570851236582,
-0.04230043292045593,
-0.0041978019289672375,
0.009913088753819466,
0.007836757227778435,
0.016670841723680496,
-0.04137188568711281,
-0.05560959130525589,
-0.02391865849494934,
0.012913668528199196,
0.00971534289419651,
-0.023368408903479576,
-0.049488067626953125,
0.006370857823640108,
0.006749154534190893,
0.013481113128364086,
0.02089228667318821,
0.02918042056262493,
0.0634506493806839,
0.03466571867465973,
-0.04343532398343086,
0.007355288602411747,
-0.034923650324344635,
0.021218998357653618,
0.03287740796804428,
0.011417677626013756,
0.023987440392374992,
0.011323103681206703,
-0.027753211557865143,
-0.01232902891933918,
0.024812813848257065,
0.022697793319821358,
-0.006370857823640108,
0.0014444050611928105,
0.053958844393491745,
-0.025139525532722473,
-0.03103751316666603,
-0.008855578489601612,
0.02907724864780903,
-0.049075379967689514,
-0.03096873126924038,
-0.05110442638397217,
0.04505167901515961,
-0.0071661402471363544,
0.05151711404323578,
-0.018880436196923256,
0.03913649916648865,
0.0711885318160057,
-0.00466852355748415,
0.035663045942783356,
-0.007157542742788792,
0.012647141702473164,
-0.006813636980950832,
0.05051978677511215,
0.09498682618141174,
0.007802366279065609,
0.04329776018857956,
0.0035830701235681772,
-0.022147543728351593,
0.005158589221537113,
-0.017711156979203224,
0.01862250827252865,
-0.08563258498907089,
0.010016260668635368,
0.007312300615012646,
-0.0011080220574513078,
-0.029954208061099052,
0.005511092953383923,
0.029352372512221336,
-0.05086369067430496,
0.006706166081130505,
0.06527335196733475,
-0.03800160810351372,
-0.0224226675927639,
0.04071846604347229,
0.020617162808775902,
0.03103751316666603,
-0.0711197480559349,
0.011280115693807602,
-0.055815935134887695,
-0.062212586402893066,
-0.008584752678871155,
0.06310674548149109,
0.02833785116672516,
0.028664560988545418,
0.006938302889466286,
0.019310319796204567,
0.039033327251672745,
-0.059117432683706284,
0.030418481677770615,
0.0010564361000433564,
0.04972879961133003,
-0.01548436563462019,
0.003991458564996719,
0.05127637833356857,
0.015114666894078255,
-0.053958844393491745,
0.051413942128419876,
0.020462404936552048,
-0.04219726100564003,
-0.0036131618544459343,
0.04931611567735672,
-0.032705456018447876,
0.09416145086288452,
-0.046117790043354034,
0.050175879150629044,
0.024778423830866814,
0.018897632136940956,
0.037210624665021896,
0.0033831747714430094,
0.03296338766813278,
0.07352709025144577,
0.0059022861532866955,
0.04044334217905998,
0.025620993226766586,
-0.030538849532604218,
-0.017676766961812973,
0.04034017026424408,
-0.04209408909082413,
0.026429172605276108,
0.011985122226178646,
-0.040133826434612274,
0.04625535011291504,
-0.07270172238349915,
-0.00950040202587843,
-0.041612621396780014,
0.02383268252015114,
0.024365736171603203,
-0.006439639255404472,
0.0168599896132946,
0.027821991592645645,
-0.010050651617348194,
0.021201802417635918,
-0.039824310690164566,
0.03141580894589424,
0.006938302889466286,
0.03624768927693367,
0.0073208981193602085,
-0.014332280494272709,
-0.031948864459991455,
-0.025999290868639946,
0.002701811259612441,
-0.004917855374515057,
0.06025232374668121,
0.044570211321115494,
0.0008194633992388844,
-0.03461413457989693,
-0.02952432632446289,
0.003645403077825904,
-0.014650393277406693,
-0.03700428083539009,
-0.013549895025789738,
0.03136422485113144,
-0.010807245038449764,
-0.02348877675831318,
0.03813917189836502,
-0.08301889896392822,
-0.03220679238438606,
0.005850700195878744,
-0.05426836013793945,
-0.04302263632416725,
0.07249537855386734,
0.001035479363054037,
0.08267499506473541,
-0.0021590846590697765,
0.017779937013983727,
0.012406406924128532,
0.022267911583185196,
-0.0059538716450333595,
-0.04976319149136543,
0.02011849917471409,
-0.016713829711079597,
-0.0016765415202826262,
0.024176588281989098,
-0.010385960340499878,
-0.05560959130525589,
-0.05272078141570091,
-0.029627498239278793,
-0.053546156734228134,
-0.09938882291316986,
0.03468291461467743,
-0.04601461812853813,
-0.013704651966691017,
-0.061834290623664856,
0.04027138650417328,
0.011641216464340687,
-0.03659159317612648,
0.057329121977090836,
0.021150216460227966,
0.00205698749050498,
0.013163000345230103,
0.029008466750383377,
0.008700820617377758,
0.011813169345259666,
0.03666037321090698,
-0.030435677617788315,
-0.01532101072371006,
-0.05701960623264313,
0.015123264864087105,
-0.0261196568608284,
0.014693382196128368,
-0.033410463482141495,
0.02503635361790657,
0.06981290876865387,
0.006714763585478067,
0.017470423132181168,
0.01140048261731863,
0.02238827757537365,
-0.04900659993290901,
-0.08411939442157745,
-0.0007560557569377124,
-0.020668748766183853,
-0.004103227984160185,
-0.016249556094408035,
-0.042747508734464645,
0.0005771172000095248,
-0.002092452719807625,
-0.02912883460521698,
0.07435246556997299,
-0.002761994721367955,
-0.05825766921043396,
-0.03174252063035965,
-0.028578585013747215,
0.023385604843497276,
0.030435677617788315,
0.010162420570850372,
0.01643870398402214,
-0.07345831394195557,
0.04071846604347229,
-0.039377231150865555,
-0.04704633355140686,
0.046874381601810455,
0.06867802143096924,
0.018089452758431435,
-0.03131263703107834,
-0.00876530259847641,
0.07531540095806122,
-0.04291946440935135,
-0.03286021575331688,
-0.001997878775000572,
0.06018354371190071,
-0.031966060400009155,
-0.00615591648966074,
-0.012157075107097626,
-0.002128992695361376,
0.0029575913213193417,
-0.011830365285277367,
-0.052032969892024994,
0.00033262153738178313,
0.012389211915433407,
-0.019516663625836372,
0.05337420478463173,
-0.01824421063065529,
0.019688615575432777,
0.11321383714675903,
-0.015243631787598133,
-0.018828850239515305,
-0.09443657845258713,
0.01712651737034321,
0.021201802417635918,
0.025982094928622246,
0.039789918810129166,
0.011838962323963642,
-0.03485487028956413,
-0.027374913915991783,
-0.09608732163906097,
0.008481580764055252,
-0.008872773498296738,
-0.013498309068381786,
-0.05891108885407448,
-0.00950899999588728,
-0.008180662989616394,
0.017006149515509605,
0.000495708198286593,
0.02763284370303154,
0.008279535919427872,
-0.03502682223916054,
0.025500627234578133,
0.07070706784725189,
0.018106648698449135,
0.012165673077106476,
0.027787601575255394,
0.006151617970317602,
-0.04628974199295044,
0.015742294490337372,
-0.017418837174773216,
0.03296338766813278,
-0.023781096562743187,
-0.012595555745065212,
0.010884623974561691,
0.0016991103766486049,
-0.03549109399318695,
-0.003868941916152835,
-0.03478608652949333,
0.03855185583233833,
-0.011185540817677975,
-0.06135282292962074,
-0.03430461883544922,
-0.008103284053504467,
-0.03277423605322838,
-0.042369212955236435,
0.009775526821613312,
-0.003782965475693345,
0.026446368545293808,
0.07909837365150452,
-0.02020447514951229,
-0.02801113948225975,
-0.01231183297932148,
0.0002667958033271134,
-0.01272452063858509,
-0.037107452750205994,
-0.008958750404417515,
0.010704073123633862,
0.012862082570791245,
0.03275704383850098,
-0.00019559651263989508,
0.021476926282048225,
-0.032653871923685074,
-0.021786442026495934,
0.02054838091135025,
-0.011615423485636711,
-0.03954918682575226,
-0.04546436667442322,
0.07586565613746643,
0.02501915767788887,
0.00024100283917505294,
-0.006886716932058334,
-0.06090574339032173,
-0.003432611236348748,
-0.0012412855867296457,
-0.051379550248384476,
-0.03910210728645325,
0.04642730578780174,
-0.010678280144929886,
-0.013876605778932571,
-0.01082444004714489,
-0.0597020722925663,
0.014254901558160782,
0.0031832794193178415,
0.022697793319821358,
-0.020101303234696388,
-0.049866363406181335,
-0.0023084688000380993,
-0.0017743398202583194,
0.028630170971155167,
0.01975739747285843,
-0.09202923625707626,
0.002213894622400403,
0.01908678002655506,
-0.002660972299054265,
0.035628657788038254,
0.051345158368349075,
-0.003950619604438543,
0.01474496815353632,
-0.013343551196157932,
0.001125217298977077,
-0.02832065522670746,
0.02354036271572113,
0.055506423115730286,
0.041165541857481,
-0.01042894832789898,
-0.024056222289800644,
0.003666897304356098,
-0.08845261484384537,
0.025552213191986084,
-0.0635538175702095,
0.07442124933004379,
-0.03607573360204697,
-0.03855185583233833,
-0.06692410260438919,
-0.022577425464987755,
0.023815486580133438,
-0.031261052936315536,
-0.006744855549186468,
0.0021150216925889254,
-0.01601742021739483,
-0.04188774526119232,
-0.03248191624879837,
0.01641291193664074,
-0.0004032834549434483,
0.03707306087017059,
-0.021459732204675674,
-0.07380221784114838,
-0.0017313516000285745,
0.0486626923084259,
0.024847205728292465,
0.0023063193075358868,
0.05891108885407448,
0.03399510309100151,
-0.0560566708445549,
-0.014934116043150425,
0.0019323215819895267,
0.03779526427388191,
0.047596585005521774,
-0.04601461812853813,
0.025844532996416092,
0.03208642452955246,
-0.013842214830219746,
-0.012973852455615997,
-0.02278376929461956,
-0.01906958594918251,
0.08054277300834656,
0.004423490259796381,
0.054715435951948166,
0.018123844638466835,
-0.004565351642668247,
-0.014048558659851551,
0.049144160002470016,
-0.04027138650417328,
-0.057741809636354446,
0.016172178089618683,
-0.05812010541558266,
0.03920527920126915,
0.005472403485327959,
0.03286021575331688,
-0.024348542094230652,
0.05299590900540352,
-0.002985533559694886,
0.0037722184788435698,
-0.006628787145018578,
0.01439246442168951,
-0.04749341309070587,
-0.047218289226293564,
0.007355288602411747,
0.008838383480906487,
-0.02238827757537365,
-0.05299590900540352,
-0.01900080405175686,
-0.030796777456998825,
0.022972917184233665,
-0.012956656515598297,
-0.0448797270655632,
0.007557333447039127,
-0.03401229903101921,
-0.021133020520210266,
0.05254882946610451,
-0.016980357468128204,
0.007828159257769585,
-0.052823953330516815,
0.0372794046998024,
0.034940846264362335,
0.043091416358947754,
-0.0054337140172719955,
0.013429527170956135,
0.0036948395427316427,
-0.019929349422454834,
0.030487263575196266,
-0.0522393137216568,
0.0522393137216568,
-0.0224570594727993,
-0.006886716932058334,
0.011142552830278873,
-0.003866792656481266,
0.00896734744310379,
-0.021012654528021812,
0.0749027207493782,
-0.024107808247208595,
-0.04549875855445862,
-0.020617162808775902,
0.010411752387881279,
-0.015776686370372772,
-0.03146739676594734,
0.05179223790764809,
0.015200642868876457,
-0.05192979797720909,
0.023695120587944984,
-0.042816292494535446,
0.08377549052238464,
0.003965665586292744,
0.01029138546437025,
0.017281273379921913,
-0.012750313617289066,
0.001692662131972611,
-0.048421960324048996,
0.011873353272676468,
-0.04408874362707138,
-0.001315440284088254,
-0.0027233052533119917,
0.0035314843989908695,
0.03275704383850098,
-0.005906584672629833,
-0.022714989259839058,
0.00877390056848526,
-0.012569762766361237,
0.043504104018211365,
0.024572080001235008,
0.03291179984807968,
0.004672822076827288,
0.012853485532104969,
-0.03552548587322235,
-0.03872381150722504,
0.056159842759370804,
0.004707212559878826,
0.011856158263981342,
0.004582546651363373,
0.08659552037715912,
-0.005605666898190975,
-0.052480049431324005,
0.03220679238438606,
-0.0013347850181162357,
0.05278956517577171,
0.022508645430207253,
0.029747866094112396,
0.017100723460316658,
0.024193784222006798,
-0.02168327011168003,
0.02309328503906727,
0.028870904818177223,
-0.00532194459810853,
-0.019258733838796616,
-0.03762331232428551,
0.05660691857337952,
-0.031226661056280136,
0.010927611961960793,
0.027099790051579475,
-0.04037455841898918,
-0.033066555857658386,
0.03318692371249199,
-0.023815486580133438,
-0.05344298481941223,
-0.007062968797981739,
0.01029138546437025,
-0.014332280494272709,
0.021442536264657974,
0.0022332393564283848,
-0.012604153715074062,
-0.019585443660616875,
0.03215520828962326,
-0.03475169837474823,
-0.06651141494512558,
0.05127637833356857,
0.020393623039126396,
-0.016232362017035484,
-0.025191111490130424,
0.03397790715098381,
-0.012939461506903172,
-0.01100499089807272,
0.02281815931200981,
0.00897594541311264,
0.010841635055840015,
0.019998131319880486,
-0.04694316163659096,
-0.03059043549001217,
-0.013300563208758831,
-0.03177690878510475,
-0.03141580894589424,
0.02532867342233658,
0.038689419627189636,
-0.03985869884490967,
0.06592677533626556,
0.039411623030900955,
0.024898791685700417
] |
721,933
|
apprise.apprise_attachment
|
__len__
|
Returns the number of attachment entries loaded
|
def __len__(self):
"""
Returns the number of attachment entries loaded
"""
return len(self.attachments)
|
(self)
|
[
-0.013318979181349277,
-0.013509606011211872,
-0.09494849294424057,
0.051485687494277954,
0.015175513923168182,
0.02290831319987774,
0.0019508119439706206,
-0.021648522466421127,
0.03326844051480293,
0.004421702120453119,
-0.007637485861778259,
-0.023604514077305794,
-0.020653950050473213,
-0.010418144054710865,
-0.011379563249647617,
0.00017236662097275257,
-0.022593365982174873,
0.004351253155618906,
0.03214125707745552,
0.009042318910360336,
-0.0271683968603611,
0.06706731766462326,
0.04492150992155075,
0.009183216840028763,
-0.02856079861521721,
0.013849417679011822,
0.034611113369464874,
-0.023438751697540283,
0.08500277251005173,
0.05393896624445915,
-0.0565248541533947,
-0.025842301547527313,
0.028162969276309013,
0.03437904641032219,
0.004050809890031815,
0.03653395175933838,
-0.0031142542138695717,
-0.01665908470749855,
-0.024980338290333748,
0.0532427653670311,
-0.013070336543023586,
-0.005275376606732607,
0.05039165914058685,
-0.024118375033140182,
0.04462314024567604,
0.00728524150326848,
0.00890142098069191,
-0.010136348195374012,
-0.01069165114313364,
-0.037893202155828476,
0.013882569968700409,
0.06995157897472382,
0.027135245501995087,
0.014628499746322632,
-0.03517470508813858,
0.07572009414434433,
-0.008627913892269135,
0.06600644439458847,
-0.05234764888882637,
0.029721133410930634,
-0.0034830747172236443,
-0.045286186039447784,
0.06398414820432663,
-0.08016251772642136,
0.031693700700998306,
0.0053043849766254425,
0.0018233823357149959,
0.04077745974063873,
0.014495889656245708,
0.040810611099004745,
0.009290961548686028,
0.032505933195352554,
-0.03126271814107895,
0.045153576880693436,
-0.02610751986503601,
-0.01379140093922615,
0.023853156715631485,
0.05125362053513527,
0.031660549342632294,
0.0034768586046993732,
0.07432769238948822,
0.0047117858193814754,
0.016377288848161697,
0.06212760880589485,
0.07147658616304398,
-0.013592486269772053,
0.019377581775188446,
-0.00666363351047039,
-0.04727533087134361,
0.06401729583740234,
-0.032124683260917664,
0.0901082381606102,
0.03437904641032219,
-0.04276660457253456,
-0.00988770555704832,
-0.04153996706008911,
-0.04402639716863632,
-0.02796405553817749,
-0.017952028661966324,
-0.06461404263973236,
-0.052447106689214706,
-0.005834823474287987,
0.06176293268799782,
0.0019300916464999318,
0.004649625159800053,
-0.05466831848025322,
0.008047746494412422,
-0.09402022510766983,
-0.002328956499695778,
0.05559658631682396,
0.04647967591881752,
-0.04263399541378021,
-0.012266390025615692,
0.052745480090379715,
0.03520785644650459,
-0.038788314908742905,
0.00820107664912939,
-0.021399877965450287,
0.03560568392276764,
-0.029754284769296646,
0.04830305650830269,
0.03792635351419449,
-0.04863458126783371,
-0.029721133410930634,
0.05549712851643562,
0.016468457877635956,
-0.016592780128121376,
-0.02965482696890831,
0.04876719042658806,
-0.06942114233970642,
0.03326844051480293,
-0.012208374217152596,
-0.024781424552202225,
-0.0009370734915137291,
0.03421328216791153,
-0.03050021454691887,
0.05748627334833145,
-0.016427017748355865,
-0.025361591950058937,
0.029290150851011276,
-0.05006013438105583,
0.04982806742191315,
0.04399324208498001,
0.021880587562918663,
-0.000329193047946319,
0.02556050568819046,
0.009920857846736908,
-0.0050764624029397964,
-0.027483345940709114,
-0.03633503615856171,
-0.013053759932518005,
-0.04631391167640686,
-0.006013017613440752,
-0.013236097991466522,
-0.013335555791854858,
0.008196932263672352,
-0.04379433020949364,
-0.03573829308152199,
-0.014785973355174065,
-0.091765858232975,
-0.019791986793279648,
0.01197630725800991,
-0.0475073978304863,
-0.031445056200027466,
-0.03411382809281349,
-0.004583320114761591,
0.01813436672091484,
-0.018847143277525902,
-0.05473462492227554,
0.08042773604393005,
0.003147406503558159,
0.016601067036390305,
-0.02236129902303219,
-0.029223846271634102,
0.016924303025007248,
0.09024085104465485,
-0.0020160807762295008,
0.023505056276917458,
0.025046642869710922,
0.005229792091995478,
-0.05592811107635498,
-0.014578770846128464,
0.02337244711816311,
0.0027744420804083347,
0.04475574940443039,
0.034909483045339584,
0.019211819395422935,
0.030649399384856224,
0.015979459509253502,
0.023505056276917458,
-0.008520168252289295,
-0.008114051073789597,
-0.031992074102163315,
0.010260669514536858,
-0.03481002524495125,
0.002940203994512558,
-0.003425057977437973,
-0.01379140093922615,
-0.040512241423130035,
0.014794261194765568,
-0.06149771437048912,
-0.07631684094667435,
-0.029853742569684982,
-0.041307900100946426,
0.007430283352732658,
0.03167712315917015,
-0.00020176346879452467,
0.0065890406258404255,
-0.056292787194252014,
-0.0031163261737674475,
-0.05990639701485634,
-0.03015211410820484,
0.01670881360769272,
0.0005920812836848199,
0.03171027824282646,
-0.09846264868974686,
-0.000027082020096713677,
-0.011296682991087437,
-0.008694218471646309,
-0.010277246125042439,
0.034445349127054214,
0.03238990157842636,
-0.05082263797521591,
-0.0344121977686882,
-0.040346477180719376,
0.0013406004291027784,
0.019079210236668587,
0.02184743620455265,
-0.013716808520257473,
-0.0041274745017290115,
-0.007857120595872402,
0.05427049100399017,
0.003377401502802968,
0.06928852945566177,
0.06613904982805252,
0.03117983788251877,
-0.020852863788604736,
0.017736537382006645,
-0.01476110890507698,
-0.022543637081980705,
0.011860273778438568,
-0.009962297976016998,
0.004521159455180168,
0.012871421873569489,
-0.030019504949450493,
-0.04449053108692169,
0.003824958810582757,
0.013352131471037865,
-0.015714241191744804,
-0.03732961043715477,
0.004769802559167147,
-0.027599379420280457,
-0.030400756746530533,
-0.02935645543038845,
0.020405305549502373,
-0.07068093121051788,
-0.034909483045339584,
-0.03606981784105301,
-0.003839462995529175,
-0.0191123615950346,
0.06514447927474976,
-0.045286186039447784,
0.003677845001220703,
0.06474664807319641,
-0.023057498037815094,
0.028411611914634705,
0.020272696390748024,
0.012266390025615692,
-0.037860047072172165,
0.03457796201109886,
0.021731402724981308,
-0.0024242696817964315,
0.026919754222035408,
-0.06229337304830551,
-0.03210810571908951,
-0.018714534118771553,
-0.002880115294829011,
0.021316997706890106,
-0.04216986149549484,
0.02383658103644848,
0.010932005941867828,
-0.01771996170282364,
-0.016418728977441788,
-0.008768811821937561,
-0.001576811308041215,
-0.01354275830090046,
-0.003166054841130972,
0.041573118418455124,
-0.09753438085317612,
-0.016468457877635956,
0.007405418902635574,
0.00917492900043726,
0.04193779453635216,
-0.03573829308152199,
-0.026936329901218414,
-0.06782982498407364,
-0.04445737600326538,
0.02463223785161972,
0.06395099312067032,
0.05340852588415146,
-0.04216986149549484,
-0.0020005404949188232,
-0.011387852020561695,
-0.013526181690394878,
-0.055364519357681274,
-0.00039938290137797594,
0.03610296919941902,
0.018150942400097847,
0.02678714506328106,
-0.0013654647627845407,
0.023306142538785934,
0.05828193202614784,
-0.012987455353140831,
0.06650372594594955,
0.08235057443380356,
0.04114213585853577,
-0.017952028661966324,
0.03928560018539429,
-0.050424810498952866,
0.0734657347202301,
-0.012357559986412525,
0.05586180463433266,
0.001875182962976396,
0.009489876218140125,
0.04077745974063873,
-0.0344121977686882,
0.07107876241207123,
0.042203012853860855,
0.021631944924592972,
0.0003219409554731101,
0.006087610498070717,
-0.03277115523815155,
0.008586473762989044,
-0.009738519787788391,
-0.0742613896727562,
0.003213711315765977,
0.019477039575576782,
-0.03868885710835457,
0.012249814346432686,
0.003006508806720376,
0.021565640345215797,
-0.0567900724709034,
-0.014777685515582561,
0.04631391167640686,
0.042335622012615204,
-0.021631944924592972,
0.07339943200349808,
-0.04197094589471817,
0.03636819124221802,
-0.0652770921587944,
-0.0010266886092722416,
0.0037814464885741472,
0.0029174117371439934,
0.01755419932305813,
0.016501611098647118,
-0.05085579305887222,
0.023505056276917458,
0.01200117077678442,
0.0236210897564888,
0.08599734306335449,
0.012357559986412525,
0.008375126868486404,
-0.051021553575992584,
-0.024748271331191063,
0.01733870804309845,
0.01440472062677145,
-0.01050102524459362,
-0.038788314908742905,
0.001569559215568006,
-0.018150942400097847,
-0.02476484701037407,
-0.006572464480996132,
-0.04412585496902466,
0.003093533916398883,
0.05092209577560425,
-0.024234408512711525,
-0.035075247287750244,
0.051883514970541,
-0.02269282191991806,
0.016087206080555916,
-0.053043849766254425,
0.01662593148648739,
-0.03567199036478996,
-0.0021507623605430126,
-0.03209152817726135,
0.007169208023697138,
-0.05685637891292572,
-0.025295285508036613,
-0.014636787585914135,
0.03892092406749725,
0.03079858608543873,
0.0004309812793508172,
-0.07419508695602417,
-0.0277154128998518,
-0.0832788422703743,
-0.028378460556268692,
0.010782820172607899,
-0.023720547556877136,
0.03520785644650459,
-0.04584977775812149,
0.06915592402219772,
-0.010832549072802067,
-0.0060337381437420845,
0.08453863859176636,
-0.022709399461746216,
0.028792865574359894,
0.007596045266836882,
0.008553320541977882,
-0.022576788440346718,
-0.016269544139504433,
0.04594923555850983,
0.00356388371437788,
-0.023853156715631485,
-0.029455913230776787,
-0.0030956058762967587,
-0.05032535269856453,
0.02902493253350258,
-0.04435792192816734,
0.03497578948736191,
0.052248191088438034,
0.006783811375498772,
0.06995157897472382,
0.027731988579034805,
0.05519875884056091,
-0.038954079151153564,
-0.035705141723155975,
-0.04077745974063873,
0.013617350719869137,
0.004815387073904276,
-0.007612621411681175,
-0.04057854413986206,
0.040048107504844666,
0.008449719287455082,
-0.024134952574968338,
0.01282169297337532,
0.004050809890031815,
-0.017139794304966927,
-0.05748627334833145,
-0.03792635351419449,
0.024035494774580002,
0.02421783283352852,
0.020869439467787743,
0.018482467159628868,
-0.018581923097372055,
0.04057854413986206,
-0.08182013779878616,
-0.02561023458838463,
-0.014678227715194225,
0.033848606050014496,
-0.02236129902303219,
-0.06802874058485031,
-0.020305849611759186,
0.05974063649773598,
-0.04876719042658806,
-0.04270029813051224,
-0.006095898803323507,
0.0003683025133796036,
-0.0014141573337838054,
-0.03689862787723541,
-0.056259635835886,
-0.053507983684539795,
0.05012643709778786,
-0.06136510521173477,
-0.035373616963624954,
0.01974225789308548,
-0.008093331009149551,
-0.006095898803323507,
0.028610527515411377,
-0.02391946129500866,
0.03011896088719368,
0.08228427171707153,
0.007753519341349602,
-0.021980045363307,
-0.07008418440818787,
0.044855207204818726,
0.00606274651363492,
0.04926447570323944,
0.05085579305887222,
0.00828810129314661,
-0.015250107273459435,
0.019460462033748627,
-0.04001495614647865,
0.006456431001424789,
0.009920857846736908,
-0.006676065735518932,
-0.04091006889939308,
-0.05858030170202255,
0.0035866759717464447,
0.03177658095955849,
-0.006522736046463251,
0.014131213538348675,
-0.02012351155281067,
-0.00856160931289196,
0.009075471200048923,
0.09050606936216354,
0.006787955295294523,
0.03580459952354431,
0.012606202624738216,
-0.0013582126703113317,
-0.02206292748451233,
-0.011653071269392967,
-0.02328956499695778,
0.024615662172436714,
-0.01690772734582424,
-0.04986121878027916,
-0.00759190134704113,
0.0264887735247612,
0.0034167699050158262,
0.027450192719697952,
-0.027864597737789154,
0.003170198993757367,
0.006058602128177881,
-0.019626224413514137,
0.042998671531677246,
0.022593365982174873,
0.029041508212685585,
-0.01067507453262806,
0.009141775779426098,
0.0157722570002079,
0.052281346172094345,
0.061564020812511444,
-0.009945722296833992,
-0.003037589369341731,
-0.04876719042658806,
-0.0344121977686882,
0.009034031070768833,
-0.030765432864427567,
-0.02793090231716633,
0.013111776672303677,
0.06136510521173477,
0.036036666482686996,
-0.00752974022179842,
0.036003515124320984,
-0.03132902458310127,
0.0008531564380973577,
0.05248025804758072,
-0.06103358045220375,
-0.05032535269856453,
-0.03325186297297478,
0.0567900724709034,
0.01670881360769272,
-0.03371599689126015,
0.024781424552202225,
-0.04210355505347252,
-0.02624012902379036,
0.010815972462296486,
-0.00025485912919975817,
-0.027980631217360497,
0.07598531246185303,
-0.016004323959350586,
-0.03147821128368378,
0.015274971723556519,
-0.005204927641898394,
-0.07638314366340637,
0.04558455944061279,
0.01709006540477276,
-0.010476160794496536,
-0.0871245265007019,
0.04465629160404205,
-0.015308124013245106,
0.028908899053931236,
-0.039583973586559296,
-0.021399877965450287,
0.039583973586559296,
-0.025825724005699158,
-0.012332695536315441,
0.019510190933942795,
0.040810611099004745,
-0.028693407773971558,
0.019344428554177284,
-0.06196184828877449,
0.02053791657090187,
-0.06676894426345825,
0.005780951119959354,
0.04744109511375427,
-0.009821400046348572,
-0.030947770923376083,
-0.006775523070245981,
0.006535168271511793,
-0.062492284923791885,
0.023902885615825653,
-0.03147821128368378,
0.05483407899737358,
0.000545460672583431,
-0.03487633168697357,
-0.026770567521452904,
-0.038489945232868195,
0.005374833941459656,
-0.016219815239310265,
0.030185265466570854,
-0.04021386802196503,
0.015250107273459435,
-0.033848606050014496,
-0.02294146455824375,
0.054137881845235825,
0.05804986506700516,
0.058447692543268204,
-0.011586765758693218,
-0.04246823117136955,
-0.0018140582833439112,
0.04889979958534241,
0.015507038682699203,
-0.03852309659123421,
0.0718081146478653,
0.023107226938009262,
-0.04425846412777901,
-0.015996037051081657,
0.05867975950241089,
0.02159879356622696,
0.013708519749343395,
-0.02872656099498272,
-0.029472488909959793,
0.025378167629241943,
-0.02217896096408367,
-0.03510839864611626,
-0.02290831319987774,
-0.016717100515961647,
0.03336789831519127,
0.06928852945566177,
0.08878214657306671,
-0.01197630725800991,
0.02602463960647583,
-0.0059052724391222,
0.04604869335889816,
-0.038788314908742905,
-0.015639647841453552,
-0.019046057015657425,
0.005540595855563879,
-0.00703245447948575,
-0.011686223559081554,
0.009009166620671749,
-0.032870613038539886,
0.05340852588415146,
0.006174635607749224,
0.026803720742464066,
-0.018084637820720673,
-0.03597036004066467,
-0.03636819124221802,
-0.004241436254233122,
0.015979459509253502,
0.019675953313708305,
-0.018880296498537064,
-0.08871584385633469,
-0.011818832717835903,
-0.0020305849611759186,
0.03141190484166145,
-0.01742159016430378,
-0.038324180990457535,
0.01636071316897869,
-0.029936622828245163,
0.0012328551383689046,
0.003717213636264205,
0.017952028661966324,
-0.0021797707304358482,
-0.034146979451179504,
0.017736537382006645,
0.04303182289004326,
0.021234115585684776,
-0.055662889033555984,
-0.034611113369464874,
-0.023471903055906296,
-0.06922222673892975,
0.001962207956239581,
-0.06630481034517288,
0.1127844899892807,
-0.045153576880693436,
-0.0011271818075329065,
-0.008449719287455082,
0.003891263622790575,
0.003924415912479162,
-0.011114344000816345,
0.09806481748819351,
0.02337244711816311,
0.0036591968964785337,
-0.018482467159628868,
0.01704033650457859,
-0.020769983530044556,
0.0026356163434684277,
0.06524393707513809,
0.03809211403131485,
-0.006112474948167801,
0.025709690526127815,
-0.07525596022605896,
0.032124683260917664,
0.030467061325907707,
0.021747978404164314,
-0.02004062943160534,
-0.013849417679011822,
0.032870613038539886,
-0.0007138127693906426,
-0.014545618556439877,
-0.052281346172094345,
0.009025742299854755,
0.032456204295158386,
-0.019858291372656822,
-0.020952321588993073,
0.0058969841338694096,
0.029207270592451096,
0.00004396578879095614,
-0.027997206896543503,
0.04170572757720947,
0.039418213069438934,
0.007794959470629692,
-0.02589203044772148,
-0.03888777270913124,
-0.033931490033864975,
-0.0685591772198677,
0.023737123236060143,
-0.04889979958534241,
0.021698249503970146,
-0.011793968267738819,
0.10562356561422348,
0.03320213407278061,
-0.0494302399456501,
-0.02383658103644848,
0.0277154128998518,
0.0355062261223793,
0.05881236866116524,
0.00016718654660508037,
0.028461340814828873,
0.007985586300492287,
0.02337244711816311,
0.0371306948363781,
0.02277570404112339,
0.004732505884021521,
0.0038601832929998636,
-0.004546023905277252,
0.005051597952842712,
-0.01470309216529131,
-0.013086912222206593,
0.027400463819503784,
-0.0628238096833229,
-0.039418213069438934,
0.011818832717835903,
-0.0020316208247095346,
0.0008453863556496799,
0.029472488909959793,
-0.012854845263063908,
-0.008843404240906239,
0.007053174544125795,
0.0567900724709034,
-0.01297087874263525,
0.0165264755487442,
0.016559626907110214,
0.027135245501995087,
-0.05141938105225563,
0.02214580774307251,
0.053209614008665085,
-0.028776289895176888,
-0.00442999042570591,
0.03928560018539429,
0.021499335765838623,
-0.00936555489897728,
-0.02973770909011364,
-0.012332695536315441,
0.02285858429968357,
0.002985788509249687,
-0.032224141061306,
-0.0275828018784523,
-0.004021801520138979,
-0.018482467159628868,
-0.052248191088438034,
-0.011130920611321926,
0.07107876241207123,
-0.018150942400097847,
0.08586473017930984,
0.025212405249476433,
0.03053336590528488
] |
721,934
|
apprise.apprise_attachment
|
add
|
Adds one or more attachments into our list.
By default we cache our responses so that subsiquent calls does not
cause the content to be retrieved again. For local file references
this makes no difference at all. But for remote content, this does
mean more then one call can be made to retrieve the (same) data. This
method can be somewhat inefficient if disabled. Only disable caching
if you understand the consequences.
You can alternatively set the cache value to an int identifying the
number of seconds the previously retrieved can exist for before it
should be considered expired.
It's also worth nothing that the cache value is only set to elements
that are not already of subclass AttachBase()
|
def add(self, attachments, asset=None, cache=None):
"""
Adds one or more attachments into our list.
By default we cache our responses so that subsiquent calls does not
cause the content to be retrieved again. For local file references
this makes no difference at all. But for remote content, this does
mean more then one call can be made to retrieve the (same) data. This
method can be somewhat inefficient if disabled. Only disable caching
if you understand the consequences.
You can alternatively set the cache value to an int identifying the
number of seconds the previously retrieved can exist for before it
should be considered expired.
It's also worth nothing that the cache value is only set to elements
that are not already of subclass AttachBase()
"""
# Initialize our return status
return_status = True
# Initialize our default cache value
cache = cache if cache is not None else self.cache
if asset is None:
# prepare default asset
asset = self.asset
if isinstance(attachments, AttachBase):
# Go ahead and just add our attachments into our list
self.attachments.append(attachments)
return True
elif isinstance(attachments, str):
# Save our path
attachments = (attachments, )
elif not isinstance(attachments, (tuple, set, list)):
logger.error(
'An invalid attachment url (type={}) was '
'specified.'.format(type(attachments)))
return False
# Iterate over our attachments
for _attachment in attachments:
if self.location == ContentLocation.INACCESSIBLE:
logger.warning(
"Attachments are disabled; ignoring {}"
.format(_attachment))
return_status = False
continue
if isinstance(_attachment, str):
logger.debug("Loading attachment: {}".format(_attachment))
# Instantiate ourselves an object, this function throws or
# returns None if it fails
instance = AppriseAttachment.instantiate(
_attachment, asset=asset, cache=cache)
if not isinstance(instance, AttachBase):
return_status = False
continue
elif isinstance(_attachment, AppriseAttachment):
# We were provided a list of Apprise Attachments
# append our content together
instance = _attachment.attachments
elif not isinstance(_attachment, AttachBase):
logger.warning(
"An invalid attachment (type={}) was specified.".format(
type(_attachment)))
return_status = False
continue
else:
# our entry is of type AttachBase, so just go ahead and point
# our instance to it for some post processing below
instance = _attachment
# Apply some simple logic if our location flag is set
if self.location and ((
self.location == ContentLocation.HOSTED
and instance.location != ContentLocation.HOSTED)
or instance.location == ContentLocation.INACCESSIBLE):
logger.warning(
"Attachment was disallowed due to accessibility "
"restrictions ({}->{}): {}".format(
self.location, instance.location,
instance.url(privacy=True)))
return_status = False
continue
# Add our initialized plugin to our server listings
if isinstance(instance, list):
self.attachments.extend(instance)
else:
self.attachments.append(instance)
# Return our status
return return_status
|
(self, attachments, asset=None, cache=None)
|
[
0.020544620230793953,
-0.03217034414410591,
-0.11917827278375626,
0.07618062198162079,
0.028723523020744324,
-0.02083672396838665,
0.004065108485519886,
0.018383054062724113,
-0.03417612239718437,
-0.005657073576003313,
-0.00010680038394639269,
0.03328033909201622,
-0.04288081079721451,
0.0016978522762656212,
-0.0460355319082737,
-0.015442544594407082,
-0.025705117732286453,
-0.002118968404829502,
-0.012794138863682747,
-0.048294465988874435,
-0.0034662962425500154,
0.03139140084385872,
0.010291784070432186,
0.04549026861786842,
0.024731440469622612,
0.04809973016381264,
0.0684690847992897,
-0.022569872438907623,
0.03109929896891117,
0.062899649143219,
0.03203402832150459,
-0.03546137735247612,
0.013894394971430302,
-0.01857778988778591,
0.02403039112687111,
0.06500279158353806,
-0.028859836980700493,
0.0377008393406868,
-0.045217640697956085,
0.03448770195245743,
0.024303020909428596,
0.002777418587356806,
0.05947229638695717,
-0.015354913659393787,
0.020057782530784607,
0.049540773034095764,
-0.023446183651685715,
0.045178692787885666,
0.030573511496186256,
-0.05409758910536766,
0.040037669241428375,
0.022608820348978043,
0.044243961572647095,
0.00698127644136548,
-0.04334817826747894,
0.06048492342233658,
-0.018168844282627106,
0.1145046204328537,
-0.051332343369722366,
0.019103577360510826,
0.018996471539139748,
-0.052734438329935074,
0.08132164925336838,
-0.04915130138397217,
-0.014069657772779465,
0.04081661254167557,
-0.053708117455244064,
-0.017506742849946022,
0.0003882543824147433,
0.05822598934173584,
-0.00019473575230222195,
-0.015851490199565887,
-0.035013485699892044,
-0.002840707777068019,
0.05401969701051712,
0.021440405398607254,
0.044088173657655716,
0.045256588608026505,
-0.01405992079526186,
0.03341665491461754,
0.07808903604745865,
-0.01295966375619173,
-0.010126259177923203,
0.020583568140864372,
0.047281838953495026,
0.008388242684304714,
-0.018246740102767944,
-0.043387122452259064,
0.0057739149779081345,
0.06134175881743431,
-0.005481811240315437,
0.02613353729248047,
0.038012418895959854,
-0.054603904485702515,
0.058148093521595,
-0.03497454151511192,
-0.04140082001686096,
-0.03133298084139824,
-0.002543735783547163,
-0.03127456083893776,
-0.060835447162389755,
0.025821959599852562,
0.004861091263592243,
-0.050358664244413376,
0.005798256956040859,
-0.08241216838359833,
0.0011732828570529819,
-0.07041644304990768,
0.006236412096768618,
0.04759341478347778,
-0.0248093344271183,
-0.06204281002283096,
-0.04245239123702049,
0.034682437777519226,
-0.011839933693408966,
-0.03152771666646004,
-0.017964372411370277,
-0.00784785021096468,
0.024750912562012672,
-0.01356334425508976,
0.03248192369937897,
0.0352276973426342,
-0.01674727350473404,
0.011284936219453812,
0.054681796580553055,
-0.019561205059289932,
-0.003242350183427334,
-0.009498235769569874,
0.002526696305721998,
-0.0712343379855156,
-0.039219778031110764,
-0.010272310115396976,
-0.030515091493725777,
0.014429918490350246,
-0.002294230507686734,
-0.03248192369937897,
0.0053601013496518135,
0.013894394971430302,
-0.050397612154483795,
0.016893325373530388,
-0.0539807491004467,
0.022647766396403313,
0.039180830121040344,
0.03639611229300499,
-0.00174897036049515,
-0.017477532848715782,
-0.019346997141838074,
-0.026659322902560234,
-0.04969656094908714,
-0.00258755125105381,
-0.008948107250034809,
-0.04498395696282387,
-0.06476911157369614,
0.029891936108469963,
0.012443614192306995,
-0.008548899553716183,
-0.054837584495544434,
0.05125444754958153,
-0.002062981715425849,
-0.017380164936184883,
-0.009829286485910416,
0.036980319768190384,
0.004491093102842569,
0.01968778297305107,
0.009585866704583168,
-0.039044518023729324,
-0.025724591687321663,
0.023095659911632538,
-0.022238822653889656,
0.07614167779684067,
-0.03448770195245743,
0.027418792247772217,
-0.01573464833199978,
-0.014498076401650906,
-0.016309117898344994,
0.044166065752506256,
0.014128078706562519,
0.0041137924417853355,
0.020018834620714188,
0.009172054007649422,
-0.03141087666153908,
0.0099217863753438,
0.011421251110732555,
0.03152771666646004,
0.021381985396146774,
0.021148301661014557,
0.031936660408973694,
0.006436016410589218,
0.03018403984606266,
0.03329981118440628,
-0.011985985562205315,
0.04693131521344185,
0.0018280817894265056,
-0.019590415060520172,
-0.06589857488870621,
0.025335120037198067,
-0.02695142664015293,
-0.05908282473683357,
-0.04155660793185234,
0.05008603259921074,
-0.07053329050540924,
-0.08615109324455261,
0.023426709696650505,
-0.02591932751238346,
0.031702980399131775,
0.011362831108272076,
-0.021440405398607254,
-0.035928744822740555,
-0.028762469068169594,
0.04381554201245308,
-0.06593752652406693,
0.02811984159052372,
-0.006937460973858833,
-0.03261823579668999,
-0.003454125253483653,
-0.06605436652898788,
-0.01775016263127327,
0.020194096490740776,
0.00995099637657404,
0.031001931056380272,
-0.02484828047454357,
0.012794138863682747,
-0.06605436652898788,
-0.017360690981149673,
-0.032890867441892624,
0.03018403984606266,
0.04872288182377815,
0.03606506064534187,
-0.004461882635951042,
0.025510381907224655,
-0.006163386162370443,
0.032832447439432144,
0.013923605903983116,
0.012969400733709335,
0.053513381630182266,
0.03614295274019241,
-0.013826237991452217,
0.05744704604148865,
0.009941259399056435,
-0.009663761593401432,
0.08101007342338562,
0.036844003945589066,
0.021635141223669052,
0.016221487894654274,
-0.033922966569662094,
-0.06780698895454407,
-0.03429296612739563,
-0.018129898235201836,
-0.05168286710977554,
-0.06371753662824631,
0.0456460602581501,
0.03756452351808548,
-0.01977541483938694,
-0.03951188176870346,
-0.0024451506324112415,
-0.0248093344271183,
0.008397978730499744,
-0.025179332122206688,
0.025666171684861183,
-0.04163450375199318,
0.04093345254659653,
-0.06266596168279648,
0.06511963158845901,
0.04058292880654335,
-0.07306484878063202,
0.0010181028628721833,
-0.0007905054371803999,
0.003514980198815465,
-0.009585866704583168,
0.04089450463652611,
0.08132164925336838,
0.011158358305692673,
0.06165333837270737,
-0.02714616246521473,
-0.004914643242955208,
0.03355297073721886,
0.00987310241907835,
-0.005218917969614267,
-0.06227649003267288,
0.029930884018540382,
-0.00006754896458005533,
0.025393541902303696,
0.03682452812790871,
-0.03248192369937897,
0.03873293846845627,
-0.07742693275213242,
-0.03335823491215706,
0.07150696218013763,
-0.0880984514951706,
-0.02186882495880127,
0.008660872466862202,
0.03883030638098717,
0.03863557055592537,
-0.07431115955114365,
-0.04397132992744446,
0.019483311101794243,
-0.054837584495544434,
0.014692812226712704,
0.05865440517663956,
0.03232613205909729,
-0.028548261150717735,
0.026211431249976158,
0.05799230560660362,
-0.0187530517578125,
-0.042179763317108154,
-0.026211431249976158,
-0.032910339534282684,
0.021128827705979347,
0.012755190953612328,
0.028548261150717735,
0.049579720944166183,
0.014167025685310364,
-0.023524077609181404,
0.035811904817819595,
0.027438266202807426,
0.04299765080213547,
0.012180720455944538,
-0.0017514046048745513,
-0.04299765080213547,
0.022199874743819237,
-0.007657983340322971,
0.05511021614074707,
-0.045334480702877045,
0.01748727075755596,
0.07649219781160355,
-0.03624032065272331,
0.06476911157369614,
0.049423933029174805,
0.006991013418883085,
0.02188829705119133,
-0.0067183831706643105,
0.01760411076247692,
-0.029444044455885887,
0.049501825124025345,
-0.03927819803357124,
0.01039888896048069,
-0.01767226867377758,
-0.09230474382638931,
0.04993024468421936,
0.00882152933627367,
0.004654184449464083,
-0.021459879353642464,
-0.039881881326436996,
0.01192756462842226,
0.02403039112687111,
-0.017185429111123085,
0.11185621470212936,
0.04085556045174599,
0.012346246279776096,
-0.06617120653390884,
-0.006898513995110989,
-0.040193457156419754,
-0.020447252318263054,
-0.02075883001089096,
0.033747702836990356,
-0.06328912079334259,
-0.03838241472840309,
-0.0690532922744751,
0.030690353363752365,
0.011090200394392014,
0.015549649484455585,
-0.012716243974864483,
-0.04817762225866318,
0.01867515780031681,
-0.049384985119104385,
-0.019327523186802864,
0.015578859485685825,
-0.03316349908709526,
0.0416734479367733,
-0.08412583917379379,
-0.006844961550086737,
0.04046608880162239,
-0.019395681098103523,
-0.02200513891875744,
0.04155660793185234,
-0.05312390998005867,
0.001627260586246848,
0.022238822653889656,
-0.021323563531041145,
0.05117655545473099,
-0.024711966514587402,
0.044127121567726135,
-0.04591868817806244,
0.00885073933750391,
0.029638780280947685,
-0.038908202201128006,
0.018022792413830757,
-0.01305703166872263,
0.00836390070617199,
0.03458506986498833,
0.051643919199705124,
-0.019609889015555382,
-0.014478602446615696,
0.009561524726450443,
-0.07174064964056015,
-0.06897540390491486,
-0.001752621727064252,
0.022511452436447144,
0.014001499861478806,
-0.028548261150717735,
0.060991235077381134,
0.019454101100564003,
0.018353844061493874,
0.03224823996424675,
0.0008501432603225112,
0.01991173066198826,
0.01650385372340679,
-0.005447732284665108,
0.010418361984193325,
0.012375456281006336,
-0.00029179934062995017,
-0.04050503671169281,
-0.013543871231377125,
-0.05324075371026993,
-0.029580360278487206,
0.02079777792096138,
0.007166275288909674,
-0.02077830396592617,
-0.013913868926465511,
0.02079777792096138,
0.0376034714281559,
0.03550032526254654,
-0.03651295229792595,
0.00680114608258009,
-0.053747065365314484,
-0.04755447059869766,
-0.002358736703172326,
-0.0056229946203529835,
-0.07174064964056015,
-0.027866685763001442,
-0.0014227880164980888,
0.057875461876392365,
0.0077017988078296185,
-0.05522705614566803,
0.035422433167696,
0.014459129422903061,
-0.017185429111123085,
-0.07259748876094818,
-0.031741928309202194,
-0.0029599834233522415,
-0.028626155108213425,
-0.018314896151423454,
-0.041283976286649704,
-0.023601971566677094,
0.033981386572122574,
-0.04471132531762123,
-0.06383437663316727,
0.010174943134188652,
0.055616527795791626,
0.005399048328399658,
-0.0014373932499438524,
0.00004602153421728872,
0.04794394224882126,
0.019512521103024483,
-0.0700659230351448,
-0.022394610568881035,
0.05721336230635643,
0.011849669739603996,
-0.010671518743038177,
0.00019823490583803505,
-0.005077734589576721,
-0.0016296947142109275,
-0.005063129588961601,
-0.06204281002283096,
-0.03419559821486473,
0.05098181962966919,
0.01993120275437832,
0.01669858954846859,
-0.004040766507387161,
0.018967261537909508,
0.04700920730829239,
-0.029444044455885887,
0.016026752069592476,
-0.04860604181885719,
0.040037669241428375,
-0.00826653279364109,
0.08319111168384552,
0.012842822819948196,
-0.015471754595637321,
-0.027886157855391502,
0.004347475711256266,
-0.07185748964548111,
-0.01307650562375784,
0.012794138863682747,
-0.0005136155523359776,
-0.04475027322769165,
0.04381554201245308,
-0.001870680251158774,
0.034877173602581024,
0.03847978264093399,
0.013339398428797722,
-0.016903063282370567,
-0.02282303012907505,
0.07259748876094818,
0.022550398483872414,
0.007020223420113325,
0.005939440336078405,
0.026815112680196762,
0.01767226867377758,
-0.05125444754958153,
0.02305671200156212,
-0.08139954507350922,
0.010174943134188652,
-0.0028261025436222553,
-0.020408306270837784,
0.012122300453484058,
-0.014673338271677494,
0.008690082468092442,
-0.0018743315013125539,
0.00005446515206131153,
-0.0282756295055151,
0.009420341812074184,
0.0007442556670866907,
-0.0077017988078296185,
0.0025047885719686747,
0.025646697729825974,
-0.0043766857124865055,
-0.013943078927695751,
-0.002560775028541684,
-0.040037669241428375,
0.05623968318104744,
0.000495359068736434,
0.020018834620714188,
-0.025588277727365494,
-0.019006209447979927,
0.008626793511211872,
-0.01990199275314808,
-0.01203466858714819,
-0.04054398089647293,
0.028626155108213425,
-0.0022382440511137247,
0.009415472857654095,
0.002193211345002055,
-0.0789848193526268,
0.04295870661735535,
0.08280164003372192,
-0.05109865963459015,
-0.057914409786462784,
-0.05939440056681633,
-0.020544620230793953,
0.008563504554331303,
0.011314147152006626,
-0.0187530517578125,
-0.06936487555503845,
-0.019093839451670647,
-0.05067024007439613,
-0.000348698697052896,
-0.003979911562055349,
0.05070918798446655,
-0.04704815521836281,
0.017195167019963264,
0.012764927931129932,
0.0034419542644172907,
-0.002177389105781913,
0.020252518355846405,
0.0007789430092088878,
0.0010607012081891298,
-0.07972481101751328,
0.009142843075096607,
-0.007424300070852041,
0.0434650182723999,
-0.004732078406959772,
-0.07754377275705338,
0.023621445521712303,
-0.046230267733335495,
-0.028723523020744324,
0.05125444754958153,
-0.0014714719727635384,
-0.008436925709247589,
-0.019171733409166336,
-0.029580360278487206,
-0.0072879851795732975,
-0.07933533936738968,
-0.015023862943053246,
0.02290092408657074,
-0.006679436191916466,
-0.03252086788415909,
-0.0032569554168730974,
0.014118341729044914,
-0.004247673321515322,
0.0017818320775404572,
-0.06578173488378525,
0.014624654315412045,
-0.05016392841935158,
0.003602611366659403,
-0.02397197112441063,
0.020349886268377304,
0.05102076381444931,
-0.015578859485685825,
-0.0030305751133710146,
-0.014829127117991447,
0.04373764991760254,
0.019395681098103523,
-0.0005616908892989159,
-0.00891402829438448,
0.046308159828186035,
0.06321122497320175,
-0.006786540616303682,
-0.034818749874830246,
-0.0011769341072067618,
0.03456559404730797,
-0.02911299467086792,
-0.04459448531270027,
-0.004890301264822483,
-0.00983902346342802,
-0.017896214500069618,
-0.08545004576444626,
-0.01518938783556223,
0.01138230413198471,
-0.006650225725024939,
0.014819390140473843,
-0.0022065993398427963,
0.016017014160752296,
0.04354291409254074,
-0.0004959676298312843,
-0.020057782530784607,
-0.058810196816921234,
0.04587974026799202,
0.030631933361291885,
0.03452664613723755,
-0.00015822279965505004,
0.010622834786772728,
0.03329981118440628,
0.0007351274252869189,
-0.022102506831288338,
-0.017321744933724403,
-0.012521508149802685,
-0.006406805943697691,
0.015432807616889477,
0.03018403984606266,
0.04253028705716133,
0.013154399581253529,
0.05117655545473099,
0.07213012129068375,
0.0299698319286108,
-0.006031939759850502,
0.039920829236507416,
-0.01579306833446026,
0.03550032526254654,
0.00014316120359580964,
0.04058292880654335,
-0.04451658949255943,
-0.07407747954130173,
-0.007950087077915668,
-0.006421411409974098,
0.03203402832150459,
0.016377275809645653,
-0.056590206921100616,
0.01980462484061718,
-0.0016662076814100146,
0.004724775906652212,
0.013271241448819637,
-0.0014373932499438524,
-0.004805104341357946,
-0.018392791971564293,
0.1047678291797638,
0.03923925384879112,
0.05195549502968788,
-0.014410445466637611,
-0.009172054007649422,
-0.035928744822740555,
-0.03869399428367615,
-0.001044270466081798,
-0.05444811284542084,
0.04132292419672012,
-0.04568500444293022,
0.02375776134431362,
-0.01509201992303133,
-0.0018974564736708999,
0.052539702504873276,
-0.056784942746162415,
0.012278088368475437,
0.011129147373139858,
0.052656546235084534,
0.02700984850525856,
-0.01657201163470745,
-0.03400086238980293,
0.01509201992303133,
0.008923765271902084,
0.03250139579176903,
-0.02173250913619995,
0.0018122595502063632,
-0.02919088862836361,
0.07053329050540924,
-0.014731759205460548,
0.02704879455268383,
0.05958913639187813,
-0.016026752069592476,
-0.039920829236507416,
-0.0038338599260896444,
-0.002543735783547163,
-0.055655475705862045,
0.00890429224818945,
0.015208861790597439,
0.022160928696393967,
-0.0018609435064718127,
-0.008256795816123486,
0.02708774246275425,
-0.04891761764883995,
-0.007409695070236921,
0.03546137735247612,
0.032812971621751785,
-0.007059170864522457,
0.03509138152003288,
-0.02089514583349228,
-0.039998721331357956,
-0.051488131284713745,
0.0517997071146965,
0.015549649484455585,
0.011284936219453812,
0.005632731597870588,
0.06348385661840439,
0.07547957450151443,
-0.009318104945123196,
0.0043109627440571785,
-0.014439655467867851,
0.08342479169368744,
-0.01573464833199978,
0.016932273283600807,
0.030670879408717155,
-0.020564094185829163,
-0.0009785471484065056,
0.07403852790594101,
-0.03941451385617256,
0.010369678027927876,
-0.04794394224882126,
0.01873357780277729,
0.014731759205460548,
0.02611406333744526,
-0.014994652010500431,
-0.01456623338162899,
0.01971699483692646,
-0.007429168559610844,
0.03670768812298775,
0.0032326134387403727,
-0.06554805487394333,
0.012141773477196693,
-0.005179970990866423,
-0.0460355319082737,
0.00275064236484468,
0.016834905371069908,
-0.01677648536860943,
-0.03657137230038643,
-0.0032934683840721846,
-0.030515091493725777,
-0.059783872216939926,
0.041011348366737366,
0.01295966375619173,
-0.03141087666153908,
0.008383373729884624,
0.010213890112936497,
-0.025237752124667168,
-0.01877252571284771,
0.05479864031076431,
0.03775925934314728,
0.0027384713757783175,
-0.009498235769569874,
0.016309117898344994,
0.030476143583655357,
-0.041283976286649704,
-0.012657823041081429,
-0.07209116965532303,
-0.00988770741969347,
0.05324075371026993,
-0.020096728578209877,
0.04969656094908714,
-0.004396159667521715,
0.06021229177713394
] |
721,935
|
apprise.apprise_attachment
|
clear
|
Empties our attachment list
|
def clear(self):
"""
Empties our attachment list
"""
self.attachments[:] = []
|
(self)
|
[
-0.005768052767962217,
0.035595182329416275,
-0.09371809661388397,
0.005036411806941032,
-0.050193969160318375,
-0.021336691454052925,
-0.05441366508603096,
0.017746545374393463,
0.0573062002658844,
0.047505613416433334,
-0.03692234307527542,
-0.03695637360215187,
-0.02965698018670082,
0.024841761216521263,
-0.053018443286418915,
0.019379977136850357,
0.0021736540365964174,
-0.016929831355810165,
0.04869665950536728,
-0.025845641270279884,
0.006495439913123846,
0.019124753773212433,
0.029810113832354546,
0.061662014573812485,
-0.02451847866177559,
0.015372966416180134,
0.01630878634750843,
-0.0280745942145586,
0.03780711814761162,
0.03214115649461746,
-0.005955216940492392,
-0.028023548424243927,
0.028551010414958,
0.015083713456988335,
0.000700269709341228,
0.0284148920327425,
-0.009009392000734806,
-0.004776934627443552,
-0.029810113832354546,
0.06955692917108536,
0.049921732395887375,
0.02613489329814911,
0.050364118069410324,
-0.03271966427564621,
0.049785614013671875,
0.05087456479668617,
0.0570339635014534,
0.03818144649267197,
0.034285034984350204,
-0.02445041947066784,
0.0015079459408298135,
0.08167154341936111,
0.0011091590858995914,
0.02472265623509884,
-0.041176069527864456,
0.0427754707634449,
0.019924454391002655,
0.017644455656409264,
0.006554992403835058,
0.020877288654446602,
0.024093106389045715,
-0.035935480147600174,
0.024263255298137665,
-0.10739807784557343,
0.05169128254055977,
0.0007550364243797958,
-0.013058939948678017,
0.043932486325502396,
0.03198802098631859,
0.012318790890276432,
-0.0422990545630455,
0.004679098725318909,
-0.03518682345747948,
0.01010685320943594,
0.018342068418860435,
-0.009545361623167992,
0.04594024270772934,
0.07541006058454514,
-0.0038708909414708614,
-0.055536650121212006,
0.06465663760900497,
0.04219696298241615,
-0.035663239657878876,
0.0841216892004013,
0.04903695732355118,
0.011816851794719696,
0.047029197216033936,
0.023786837235093117,
-0.01880146935582161,
0.03203906491398811,
0.027291906997561455,
0.049751583486795425,
0.006627305410802364,
-0.05781664699316025,
0.03739876300096512,
-0.016870278865098953,
-0.052882324904203415,
-0.03474443778395653,
-0.05148710310459137,
-0.03178384155035019,
-0.038589805364608765,
-0.0028202205430716276,
-0.0013367334613576531,
-0.0019046058878302574,
-0.020741168409585953,
-0.027053698897361755,
0.04553188756108284,
-0.10978017002344131,
0.029571905732154846,
0.10882733017206192,
-0.005308650434017181,
-0.022851018235087395,
-0.010983121581375599,
0.033774588257074356,
0.03212413936853409,
-0.009409242309629917,
-0.05931396037340164,
-0.01425849087536335,
0.05948410928249359,
-0.02552235685288906,
0.029639964923262596,
0.011119240894913673,
-0.061662014573812485,
-0.009111481718719006,
0.052405908703804016,
-0.0052533517591655254,
0.0033817123621702194,
0.003662458388134837,
0.022238481789827347,
-0.07704348862171173,
-0.05485605448484421,
-0.0037730552721768618,
-0.04097189009189606,
-0.003649697173386812,
0.0003666180418804288,
-0.025250118225812912,
0.01634281687438488,
-0.08915810286998749,
0.024892807006835938,
-0.010991628281772137,
-0.07690737396478653,
0.025028925389051437,
0.04478323087096214,
0.04069965332746506,
0.0562172457575798,
0.015100727789103985,
0.014181923121213913,
-0.044136662036180496,
-0.10338256508111954,
-0.013075954280793667,
-0.05216769874095917,
-0.010838494636118412,
-0.026475192978978157,
-0.07139454036951065,
0.002462907461449504,
0.04192472621798515,
-0.06839992105960846,
0.016997890546917915,
-0.035833388566970825,
-0.025981759652495384,
0.006572007201611996,
0.02528414875268936,
-0.005704246927052736,
-0.016904307529330254,
-0.0024863029830157757,
-0.0285169817507267,
0.052882324904203415,
-0.002237460110336542,
-0.061423808336257935,
0.030933097004890442,
-0.0435921885073185,
-0.0022693630307912827,
-0.030150411650538445,
-0.04032532498240471,
0.019192812964320183,
0.04947934299707413,
-0.018444156274199486,
0.006954842247068882,
0.008613795973360538,
0.00462380051612854,
-0.069659024477005,
-0.011944463476538658,
0.028568025678396225,
0.015798339620232582,
0.044000543653964996,
0.007197304628789425,
0.0017546621384099126,
0.02475668676197529,
-0.002362944884225726,
0.004415367729961872,
-0.023854896426200867,
0.03654801473021507,
-0.030507724732160568,
-0.006125365849584341,
0.008477676659822464,
0.003675219602882862,
0.012769686058163643,
-0.04947934299707413,
-0.04842441901564598,
-0.013841625303030014,
-0.04253726080060005,
-0.09058735519647598,
0.026288028806447983,
-0.06264887750148773,
0.008252228610217571,
0.0418226383626461,
-0.005857381038367748,
-0.03641189634799957,
-0.02404206059873104,
0.04607636108994484,
-0.012633566744625568,
0.02239161543548107,
0.04073368385434151,
-0.07779214531183243,
0.02838086150586605,
-0.09262914210557938,
-0.023956986144185066,
0.022221466526389122,
-0.015355952084064484,
0.041380248963832855,
-0.0564214251935482,
0.01657251827418804,
-0.07506976276636124,
-0.04042741283774376,
-0.03319608047604561,
0.06377186626195908,
0.013263118453323841,
-0.006053052376955748,
0.0010533289751037955,
-0.036173686385154724,
0.03236234933137894,
0.016521472483873367,
0.007256857119500637,
-0.008707378059625626,
0.03630980849266052,
0.02969100885093212,
-0.05829306319355965,
-0.023565644398331642,
-0.034080855548381805,
-0.02232355624437332,
0.012089090421795845,
-0.02380385249853134,
0.041550397872924805,
0.03916831314563751,
0.00801827386021614,
0.02599877491593361,
0.003996375948190689,
0.006508201360702515,
0.0005202838801778853,
-0.023412508890032768,
0.005427754484117031,
-0.041278161108493805,
-0.015857892110943794,
-0.009307153522968292,
0.05182740092277527,
-0.05985843762755394,
-0.01477744523435831,
-0.034387122839689255,
-0.014275505207479,
0.009715510532259941,
0.03471040725708008,
-0.034455183893442154,
0.050534266978502274,
0.04900292679667473,
0.044681139290332794,
0.029384741559624672,
0.0070016332902014256,
0.05332471430301666,
-0.015823861584067345,
0.02448444813489914,
0.07595453411340714,
-0.04634860157966614,
0.08037841320037842,
-0.03532294183969498,
-0.0034604063257575035,
0.05992649495601654,
-0.032974887639284134,
0.02324235998094082,
-0.033042944967746735,
0.05346083268523216,
0.04856053739786148,
-0.01167222484946251,
0.030745932832360268,
0.019754305481910706,
0.034080855548381805,
0.004389845300465822,
-0.01150207594037056,
0.009902674704790115,
-0.044000543653964996,
-0.003156264778226614,
0.019396992400288582,
0.04835636168718338,
0.02717280387878418,
-0.024297283962368965,
-0.008252228610217571,
-0.050057850778102875,
-0.03358742222189903,
0.02700265496969223,
0.043762337416410446,
0.04913904517889023,
-0.009715510532259941,
0.03016742691397667,
0.0035752570256590843,
0.007346185389906168,
-0.01907370798289776,
-0.006184917874634266,
-0.031358469277620316,
0.04842441901564598,
0.05339277163147926,
-0.012752671726047993,
0.02868713065981865,
0.03790920972824097,
-0.0695229023694992,
0.06084530055522919,
0.09800585359334946,
0.03923637047410011,
0.01752535253763199,
0.020094603300094604,
-0.020843258127570152,
0.06608588993549347,
-0.0022714899387210608,
0.004228204023092985,
-0.00747379707172513,
0.02872115932404995,
0.02028176747262478,
-0.038555774837732315,
-0.0009374149376526475,
0.07459334284067154,
-0.016827741637825966,
0.017193561419844627,
0.027972504496574402,
0.00152815121691674,
-0.013339685276150703,
-0.02249370515346527,
-0.055264413356781006,
-0.014624310657382011,
-0.005380963906645775,
-0.047573674470186234,
0.035391002893447876,
-0.0060147689655423164,
-0.03023548610508442,
-0.01990743912756443,
0.011204315349459648,
0.025879669934511185,
0.024909820407629013,
0.020468931645154953,
0.04917307570576668,
-0.019550126045942307,
0.00805655773729086,
-0.06332947313785553,
0.06506499648094177,
0.03360443934798241,
0.044613081961870193,
0.013714013621211052,
0.05927992984652519,
-0.035527121275663376,
-0.024790717288851738,
0.04478323087096214,
0.01890355907380581,
0.029537875205278397,
0.04811815172433853,
0.030507724732160568,
-0.0561491884291172,
-0.06574559211730957,
0.05325665324926376,
-0.008324542082846165,
-0.006818723399192095,
-0.034523241221904755,
-0.009017899632453918,
-0.02552235685288906,
-0.011119240894913673,
-0.03794323652982712,
-0.04822023957967758,
0.0014824236277490854,
0.01630878634750843,
-0.02091131918132305,
-0.053086504340171814,
0.05941604822874069,
0.02730892226099968,
0.05114680528640747,
-0.026390118524432182,
0.0050661880522966385,
0.012829238548874855,
-0.001322908909060061,
-0.03117130696773529,
0.00498536741361022,
-0.01749132201075554,
0.0053724562749266624,
0.00651670852676034,
0.06475872546434402,
0.04787994176149368,
-0.05138501152396202,
-0.04573606327176094,
-0.046825017780065536,
-0.013118491508066654,
-0.015526100993156433,
0.03314503654837608,
-0.011987000703811646,
-0.03120533563196659,
-0.035697270184755325,
0.05339277163147926,
-0.0010474800365045667,
-0.04114203900098801,
0.04267338290810585,
0.0017121247947216034,
0.036207716912031174,
-0.019822364673018456,
0.017159530892968178,
0.026815490797162056,
0.003069063415750861,
0.0872524306178093,
0.0007465289672836661,
0.025335194543004036,
-0.0289593692868948,
0.047301437705755234,
-0.038283538073301315,
0.004385591950267553,
-0.05968828871846199,
0.06203634291887283,
0.06904648244380951,
-0.02552235685288906,
0.07928945869207382,
-0.02751310169696808,
0.05209963768720627,
-0.016359832137823105,
-0.03770503029227257,
-0.018852515146136284,
-0.02397400140762329,
-0.011136255227029324,
-0.0008682918851263821,
-0.01752535253763199,
0.001180408988147974,
-0.022102361544966698,
-0.012480433098971844,
-0.006244470365345478,
0.0575103797018528,
-0.01128088217228651,
-0.021949227899312973,
-0.06982917338609695,
0.033111006021499634,
-0.010855508968234062,
-0.01556863822042942,
0.020622065290808678,
-0.06795752793550491,
0.03712652251124382,
-0.011655209586024284,
-0.05084053799510002,
0.04294561967253685,
0.014130878262221813,
0.028057578951120377,
-0.017831619828939438,
0.018069829791784286,
0.04791397228837013,
-0.052950385957956314,
-0.046825017780065536,
-0.01863132044672966,
0.052746206521987915,
0.02279997244477272,
-0.032974887639284134,
-0.04192472621798515,
-0.008362825959920883,
0.050227999687194824,
-0.03180085867643356,
-0.03384264558553696,
0.02404206059873104,
0.03610562905669212,
0.0019705386366695166,
0.029844144359230995,
-0.031086230650544167,
0.03746682032942772,
0.05101068690419197,
-0.04811815172433853,
-0.03251548483967781,
-0.055400531738996506,
0.0016398114385083318,
-0.006146634463220835,
0.05209963768720627,
0.03212413936853409,
0.009809092618525028,
-0.018035799264907837,
-0.01970325969159603,
-0.06550738215446472,
-0.012625059112906456,
0.01698938198387623,
-0.009324167855083942,
-0.01561968307942152,
-0.013467296957969666,
-0.029810113832354546,
0.0011729650432243943,
-0.020741168409585953,
-0.02559041790664196,
-0.04641666263341904,
-0.04532770812511444,
-0.010396107099950314,
0.056047096848487854,
-0.0013718267437070608,
-0.03362145274877548,
0.014352072030305862,
-0.014011774212121964,
-0.07629483193159103,
0.012922820635139942,
-0.030933097004890442,
-0.05158919095993042,
-0.026049818843603134,
-0.01900564879179001,
-0.017023412510752678,
0.03222623094916344,
-0.01155312079936266,
-0.04505546763539314,
-0.023633703589439392,
-0.0059254406951367855,
0.0042409650050103664,
-0.03515279293060303,
-0.0017365837702527642,
-0.00914551131427288,
0.010864016599953175,
-0.05941604822874069,
-0.019720274955034256,
0.03702443465590477,
-0.0014133005170151591,
0.0015472929226234555,
0.01829102262854576,
-0.04638263210654259,
0.004819471854716539,
-0.024875791743397713,
-0.022816987708210945,
-0.05131695419549942,
0.007907677441835403,
0.031018171459436417,
0.029605934396386147,
0.027632206678390503,
-0.012897297739982605,
0.009043421596288681,
-0.035901449620723724,
0.021608930081129074,
0.05727216973900795,
-0.058327093720436096,
-0.11917239427566528,
-0.013195059262216091,
0.03197100758552551,
-0.0213196761906147,
0.0013048305409029126,
0.029401756823062897,
-0.0562172457575798,
-0.05431157723069191,
0.02007758803665638,
-0.030286531895399094,
-0.023089226335287094,
0.03896413370966911,
0.016529981046915054,
-0.013271626085042953,
-0.033008914440870285,
-0.0057425303384661674,
-0.02969100885093212,
0.00806931871920824,
-0.024841761216521263,
0.0034348838962614536,
-0.06438440084457397,
0.04781188443303108,
-0.018954604864120483,
-0.00390492076985538,
0.013305655680596828,
-0.00936670508235693,
0.016606546938419342,
0.024739671498537064,
0.009443271905183792,
0.00457275565713644,
0.05386918783187866,
0.030813993886113167,
-0.006423126440495253,
-0.050364118069410324,
-0.017712516710162163,
0.0010868270182982087,
-0.003647570265457034,
0.01966923102736473,
0.021676989272236824,
0.01420744601637125,
-0.024739671498537064,
-0.009213571436703205,
-0.03743278980255127,
0.013441774994134903,
-0.05509426072239876,
0.001348431222140789,
-0.06629007309675217,
-0.0214217659085989,
-0.030541755259037018,
0.042435172945261,
-0.009375212714076042,
-0.04253726080060005,
0.000822032627183944,
0.009809092618525028,
0.04964949190616608,
0.026917580515146255,
0.00682723056524992,
-0.03110324591398239,
0.023021167144179344,
0.08949840068817139,
-0.02317430078983307,
-0.09119988977909088,
0.023701762780547142,
0.07513782382011414,
-0.0035646227188408375,
0.0026649595238268375,
0.06870618462562561,
0.01162117999047041,
-0.02669638581573963,
-0.033042944967746735,
-0.002569250762462616,
0.041856665164232254,
0.02727489359676838,
-0.031256381422281265,
-0.0029691008385270834,
0.024263255298137665,
0.030286531895399094,
0.011748791672289371,
-0.023497583344578743,
-0.020162662491202354,
0.00976655539125204,
0.014420132152736187,
0.06380589306354523,
-0.0007874710718169808,
-0.031290411949157715,
-0.04668889939785004,
0.035595182329416275,
-0.021404750645160675,
-0.022187435999512672,
-0.031902946531772614,
-0.006644320208579302,
-0.019584156572818756,
0.07786020636558533,
0.018103858456015587,
-0.08221602439880371,
-0.013892670162022114,
0.07180289924144745,
0.01551759336143732,
-0.023514598608016968,
-0.050125911831855774,
-0.03168175369501114,
0.010379091836512089,
-0.004683352541178465,
0.06305723637342453,
-0.05693187192082405,
-0.025199074298143387,
-0.03110324591398239,
-0.04015517607331276,
-0.000010551235391176306,
-0.03947458043694496,
-0.08316885679960251,
-0.02297012135386467,
-0.011774314567446709,
-0.038419656455516815,
0.023395493626594543,
0.012820730917155743,
0.003936823457479477,
-0.03384264558553696,
0.07398080825805664,
0.018137888982892036,
0.020707139745354652,
-0.02542026899755001,
-0.0015653712907806039,
-0.0285169817507267,
-0.00785237830132246,
0.030865037813782692,
0.004428129177540541,
0.06057306379079819,
-0.04621248319745064,
0.009809092618525028,
0.05434560775756836,
-0.012012522667646408,
0.04930919408798218,
-0.030116381123661995,
0.038079358637332916,
-0.012829238548874855,
-0.011510583572089672,
-0.01735520362854004,
0.02007758803665638,
0.022885046899318695,
0.012625059112906456,
0.024977881461381912,
0.058463212102651596,
-0.01873341016471386,
0.01973729021847248,
-0.034557271748781204,
0.004925814922899008,
0.03367249667644501,
0.03178384155035019,
0.0037815626710653305,
-0.0036007792223244905,
-0.03508473560214043,
-0.012106104753911495,
-0.009894167073071003,
-0.052746206521987915,
0.029078472405672073,
0.01214013434946537,
-0.04856053739786148,
0.03613965958356857,
0.011110733263194561,
-0.05968828871846199,
0.011587150394916534,
-0.02245967462658882,
0.02245967462658882,
0.023089226335287094,
-0.041550397872924805,
0.01214013434946537,
0.004700367338955402,
-0.00498536741361022,
-0.020758183673024178,
0.03916831314563751,
-0.0579867959022522,
0.020162662491202354,
0.027462055906653404,
0.08861362189054489,
-0.01637684553861618,
0.008218199014663696,
0.03801129758358002,
0.021932212635874748,
-0.007227080874145031,
-0.019124753773212433,
-0.0020747550297528505,
0.009672973304986954,
0.030984142795205116,
0.027717281132936478,
0.04811815172433853,
-0.015270877629518509,
0.04927516356110573,
-0.015355952084064484,
-0.05101068690419197,
-0.01415640115737915,
-0.006423126440495253,
-0.019924454391002655,
0.003402980975806713,
-0.022221466526389122,
0.004534472245723009,
0.04056353494524956,
0.018512217327952385,
-0.04512352868914604,
0.03753488138318062,
-0.0031902946066111326,
0.0007917248294688761,
0.0045217107981443405,
-0.034557271748781204,
-0.04917307570576668,
-0.0013069574488326907,
0.032804738730192184,
-0.0076354388147592545,
-0.05349486321210861,
0.06659633666276932,
0.0423671118915081,
-0.030490709468722343,
-0.0039495849050581455,
0.017270129173994064,
-0.014071326702833176,
-0.030660858377814293,
0.026288028806447983,
-0.009638943709433079,
0.007133498787879944,
-0.00976655539125204,
-0.014420132152736187,
-0.025743551552295685,
0.00023594887170474976,
-0.02707071416079998,
-0.03117130696773529,
-0.010285509750247002,
0.030116381123661995,
-0.0050023822113871574,
0.07119036465883255,
0.03981487825512886,
0.004764173645526171
] |
721,936
|
apprise.apprise_attachment
|
instantiate
|
Returns the instance of a instantiated attachment plugin based on
the provided Attachment URL. If the url fails to be parsed, then None
is returned.
A specified cache value will over-ride anything set
|
@staticmethod
def instantiate(url, asset=None, cache=None, suppress_exceptions=True):
"""
Returns the instance of a instantiated attachment plugin based on
the provided Attachment URL. If the url fails to be parsed, then None
is returned.
A specified cache value will over-ride anything set
"""
# Attempt to acquire the schema at the very least to allow our
# attachment based urls.
schema = GET_SCHEMA_RE.match(url)
if schema is None:
# Plan B is to assume we're dealing with a file
schema = 'file'
url = '{}://{}'.format(schema, URLBase.quote(url))
else:
# Ensure our schema is always in lower case
schema = schema.group('schema').lower()
# Some basic validation
if schema not in A_MGR:
logger.warning('Unsupported schema {}.'.format(schema))
return None
# Parse our url details of the server object as dictionary containing
# all of the information parsed from our URL
results = A_MGR[schema].parse_url(url)
if not results:
# Failed to parse the server URL
logger.warning('Unparseable URL {}.'.format(url))
return None
# Prepare our Asset Object
results['asset'] = \
asset if isinstance(asset, AppriseAsset) else AppriseAsset()
if cache is not None:
# Force an over-ride of the cache value to what we have specified
results['cache'] = cache
if suppress_exceptions:
try:
# Attempt to create an instance of our plugin using the parsed
# URL information
attach_plugin = A_MGR[results['schema']](**results)
except Exception:
# the arguments are invalid or can not be used.
logger.warning('Could not load URL: %s' % url)
return None
else:
# Attempt to create an instance of our plugin using the parsed
# URL information but don't wrap it in a try catch
attach_plugin = A_MGR[results['schema']](**results)
return attach_plugin
|
(url, asset=None, cache=None, suppress_exceptions=True)
|
[
0.024265184998512268,
-0.06158386170864105,
-0.07817788422107697,
0.03477950394153595,
0.02387179248034954,
-0.013697223737835884,
0.055861782282590866,
0.04756477102637291,
-0.076747365295887,
0.02412213385105133,
0.03302711620926857,
0.059438083320856094,
-0.05382329225540161,
0.0009577774908393621,
-0.08282707631587982,
-0.025910282507538795,
-0.0017669149674475193,
0.04048369824886322,
0.0012081183958798647,
-0.04341626539826393,
-0.004796710330992937,
0.0027269276324659586,
-0.01325912680476904,
0.04405999928712845,
0.02582087554037571,
0.07202665507793427,
0.05092649161815643,
0.0010874182917177677,
0.02136838436126709,
0.027483854442834854,
0.06423032283782959,
-0.0011159168789163232,
0.04645611718297005,
0.07109681516885757,
0.03926775977015495,
0.020778294652700424,
0.007291178684681654,
0.061369284987449646,
-0.09377054870128632,
0.0020407254341989756,
0.012955141253769398,
-0.000975100148934871,
0.08826304972171783,
-0.03923199698328972,
0.024533407762646675,
0.04330897703766823,
-0.022012118250131607,
0.011077584698796272,
-0.04706408828496933,
-0.04166387766599655,
0.03980420157313347,
0.01711258850991726,
0.06276404112577438,
0.019401419907808304,
-0.039446573704481125,
0.10192450881004333,
0.00370370433665812,
0.11880464106798172,
-0.0447394959628582,
0.002903507323935628,
-0.010675251483917236,
-0.020849820226430893,
0.0769619420170784,
-0.02430094964802265,
-0.01711258850991726,
-0.0017479159869253635,
-0.06004605442285538,
-0.01526185404509306,
-0.00031935228616930544,
0.07134715467691422,
0.006142292637377977,
-0.015816180035471916,
-0.01772950030863285,
-0.019723286852240562,
0.12331077456474304,
-0.0005221954779699445,
0.013080311939120293,
0.002997385337948799,
0.04645611718297005,
0.040769804269075394,
0.05039004608988762,
-0.040447935461997986,
-0.036871638149023056,
-0.016468854621052742,
0.05639822781085968,
-0.016620848327875137,
0.008077964186668396,
-0.06612575799226761,
0.02499832771718502,
0.06165538728237152,
-0.03891012817621231,
-0.0322224497795105,
0.009307317435741425,
-0.012847852893173695,
0.0032410204876214266,
-0.007492345757782459,
-0.018525226041674614,
-0.03708621487021446,
0.03388543054461479,
-0.027609024196863174,
-0.033170171082019806,
-0.004890588112175465,
-0.057936038821935654,
-0.017595389857888222,
0.020688887685537338,
-0.05832942947745323,
0.007787390146404505,
-0.02369297854602337,
0.004110508132725954,
0.05629093945026398,
-0.021332621574401855,
-0.0483873188495636,
-0.0732068344950676,
0.04920986667275429,
-0.03529806807637215,
-0.07553142309188843,
-0.01002257689833641,
0.00978117622435093,
0.04924563318490982,
-0.015547958202660084,
-0.038194868713617325,
0.022655852138996124,
-0.05303650721907616,
0.012964081950485706,
0.08075281977653503,
-0.015887705609202385,
0.012740563601255417,
-0.05174903944134712,
0.016442032530903816,
-0.039696913212537766,
0.005851718597114086,
0.033366866409778595,
-0.03427882120013237,
-0.019133197143673897,
-0.04956749826669693,
-0.01039808802306652,
0.011864370666444302,
0.02769843302667141,
-0.04566933214664459,
0.04009030759334564,
-0.05875858664512634,
0.0254453644156456,
-0.011077584698796272,
-0.012999845668673515,
-0.020206086337566376,
-0.013223364017903805,
0.03488679230213165,
-0.039518099278211594,
-0.031292613595724106,
0.01661190763115883,
0.0082120755687356,
-0.04441762715578079,
-0.002890096278861165,
0.05196361988782883,
0.0322224497795105,
-0.052285484969615936,
-0.03340262919664383,
0.03697892650961876,
0.0012606452219188213,
-0.05021123215556145,
0.0032007871195673943,
0.03563781455159187,
-0.030541589483618736,
-0.006133351940661669,
0.004128389526158571,
-0.043452028185129166,
0.0342072956264019,
0.028556743636727333,
0.0031225557904690504,
0.014618120156228542,
-0.05071191489696503,
0.03283042088150978,
-0.07667583972215652,
0.03715774044394493,
0.0020898994989693165,
0.08068129420280457,
-0.0035003023222088814,
-0.016531439498066902,
0.03193634748458862,
0.026142742484807968,
-0.0004137889191042632,
0.019097434356808662,
-0.0009276024647988379,
0.022727377712726593,
0.026661306619644165,
0.026786476373672485,
0.04313015937805176,
0.0059277149848639965,
-0.003462304128333926,
0.020635243505239487,
0.00005004722697776742,
0.038194868713617325,
0.02074253186583519,
-0.006790496874600649,
-0.023639334365725517,
0.0034153652377426624,
-0.026661306619644165,
-0.02029549516737461,
-0.0771765261888504,
0.10457096993923187,
-0.05096225440502167,
-0.04613425210118294,
-0.02895013615489006,
-0.012052126228809357,
0.061512336134910583,
-0.014126379042863846,
0.011122288182377815,
-0.05314379557967186,
-0.08933594077825546,
0.04159235209226608,
-0.05371600389480591,
0.01754174381494522,
-0.011131228879094124,
-0.010228213854134083,
-0.002751514781266451,
-0.05400210991501808,
0.02074253186583519,
0.041377775371074677,
0.018847092986106873,
0.029862092807888985,
-0.002407296095043421,
0.026858001947402954,
-0.0027761016972362995,
0.04041217267513275,
-0.035441119223833084,
0.032794658094644547,
0.03726503252983093,
0.017568565905094147,
-0.04016183316707611,
0.0027403386775404215,
-0.0435950793325901,
0.004215561784803867,
-0.006312166806310415,
0.019008027389645576,
0.04363084211945534,
0.003558417083695531,
0.02154719829559326,
0.039196234196424484,
-0.0033214872237294912,
-0.001693153870292008,
0.060117579996585846,
0.032544318586587906,
0.005073873791843653,
0.02499832771718502,
-0.044274576008319855,
-0.03570934012532234,
-0.06305014342069626,
-0.053108032792806625,
-0.0372292697429657,
-0.04742171987891197,
0.036066971719264984,
0.033366866409778595,
0.006607211660593748,
0.022387629374861717,
-0.02186906524002552,
-0.021654488518834114,
0.0064015742391347885,
-0.030505826696753502,
0.020724650472402573,
-0.03245490789413452,
0.006862022913992405,
-0.0647667646408081,
0.05199938267469406,
0.0422360859811306,
-0.025481127202510834,
-0.03991149365901947,
-0.007680101320147514,
-0.011703437194228172,
0.018632516264915466,
0.056362465023994446,
0.040197595953941345,
0.06448066234588623,
0.029790567234158516,
0.003936163615435362,
-0.01557478029280901,
0.004720713943243027,
-0.02029549516737461,
-0.011891192756593227,
0.008699346333742142,
0.0020228438079357147,
-0.018704041838645935,
0.006862022913992405,
0.024229422211647034,
-0.026053335517644882,
0.040769804269075394,
-0.05232124775648117,
-0.009673887863755226,
0.0609043650329113,
-0.0354590006172657,
0.0006716735661029816,
-0.010165628977119923,
0.03452916443347931,
0.012803148478269577,
-0.05732806771993637,
-0.06734170019626617,
0.041771166026592255,
-0.07746262848377228,
0.04016183316707611,
0.05131988599896431,
-0.01730034500360489,
-0.01372404582798481,
-0.02920047752559185,
0.04688527435064316,
0.04123472422361374,
-0.023085007444024086,
0.0011477683437988162,
-0.03309864178299904,
0.00817184243351221,
0.021833302453160286,
0.031918466091156006,
0.03941081091761589,
0.00021024723537266254,
-0.030791930854320526,
0.039446573704481125,
0.02344263717532158,
0.040126070380210876,
0.03479738533496857,
0.011953777633607388,
-0.002534701721742749,
0.02244127355515957,
-0.015646306797862053,
0.08075281977653503,
-0.00001871968743216712,
0.04034064710140228,
0.03526230528950691,
0.008466887287795544,
-0.008614408783614635,
0.035441119223833084,
-0.029164714738726616,
-0.008627820760011673,
-0.07846399396657944,
0.07013121247291565,
-0.019383538514375687,
0.04431033879518509,
-0.04516864940524101,
-0.010684192180633545,
-0.007031897082924843,
-0.11851853877305984,
0.029289884492754936,
-0.0068262601271271706,
0.03592392057180405,
0.0009678358328528702,
-0.05500347167253494,
0.009325198829174042,
-0.002664342522621155,
-0.022655852138996124,
0.05514652281999588,
-0.0260712169110775,
0.0273229219019413,
-0.0684145912528038,
-0.011953777633607388,
-0.06333624571561813,
-0.030183959752321243,
0.015235031954944134,
0.053286850452423096,
-0.0472429059445858,
-0.026106979697942734,
-0.05092649161815643,
-0.008516061119735241,
-0.021904828026890755,
-0.0022642440162599087,
-0.022262457758188248,
-0.062442172318696976,
0.003663470968604088,
-0.005292921792715788,
-0.027054699137806892,
0.019079552963376045,
-0.02462281659245491,
0.021761776879429817,
-0.04820850491523743,
0.012964081950485706,
0.01629898138344288,
-0.02812758833169937,
-0.05267887935042381,
0.029218358919024467,
-0.025034090504050255,
0.023764504119753838,
0.006119940895587206,
-0.016513558104634285,
0.009861643426120281,
-0.013241245411336422,
0.057292304933071136,
-0.04080556705594063,
-0.006575919222086668,
0.024175778031349182,
-0.060689788311719894,
-0.01078253984451294,
0.040447935461997986,
-0.009530835784971714,
0.01660296693444252,
0.054359737783670425,
-0.04774358496069908,
0.013554171659052372,
0.003080087248235941,
-0.0030175019055604935,
-0.04091285541653633,
-0.029808448627591133,
0.019526589661836624,
0.016754958778619766,
-0.003229844616726041,
0.014573416672647,
-0.05503923445940018,
0.015422787517309189,
0.047529008239507675,
-0.026643425226211548,
-0.011211696080863476,
0.06641186773777008,
0.06451642513275146,
0.025159260258078575,
0.01203424483537674,
0.005418092478066683,
-0.040626753121614456,
-0.04931715875864029,
-0.061261992901563644,
-0.015181387774646282,
0.012892556376755238,
0.019455064088106155,
-0.013545230962336063,
-0.0719551295042038,
0.006298755761235952,
0.026732832193374634,
0.013849216513335705,
-0.004318380728363991,
-0.02782360278069973,
-0.027734195813536644,
-0.04398847371339798,
-0.03980420157313347,
0.013026667758822441,
-0.05131988599896431,
-0.008511590771377087,
-0.012195178307592869,
0.050282757729291916,
0.017711618915200233,
-0.09069493412971497,
0.03397483751177788,
0.026106979697942734,
0.0015512194950133562,
-0.009602361358702183,
0.017470218241214752,
0.005807014647871256,
0.00662956340238452,
-0.013044549152255058,
-0.0022485977970063686,
-0.004725184291601181,
0.021708132699131966,
-0.03172176703810692,
-0.03542323783040047,
0.007845505140721798,
0.02875344082713127,
0.0031516130547970533,
-0.020474309101700783,
0.038624025881290436,
0.06723441183567047,
-0.015628425404429436,
-0.06741322576999664,
-0.03680011257529259,
0.04141353815793991,
-0.008127138949930668,
-0.004293793346732855,
0.01823912188410759,
0.005337625741958618,
-0.001993786543607712,
0.006298755761235952,
-0.0781063586473465,
-0.04792240262031555,
0.1004224643111229,
0.04080556705594063,
0.011175933293998241,
-0.015601602382957935,
-0.004725184291601181,
0.039768438786268234,
-0.012114711105823517,
0.018283827230334282,
-0.025034090504050255,
0.031864821910858154,
-0.0008510472835041583,
0.0844721719622612,
0.026554016396403313,
0.0096470657736063,
-0.039768438786268234,
-0.0010829479433596134,
-0.0409843809902668,
-0.0036388838198035955,
0.03397483751177788,
-0.007621986325830221,
-0.0019714345689862967,
0.03628154844045639,
-0.02524866722524166,
0.03438610956072807,
0.015145624056458473,
-0.013116074725985527,
0.03923199698328972,
-0.000468830403406173,
0.020134560763835907,
-0.017532803118228912,
0.010666310787200928,
0.03808758035302162,
0.03426093980669975,
0.020277613773941994,
-0.07302802056074142,
0.03302711620926857,
-0.054931946098804474,
-0.018686160445213318,
-0.04506136104464531,
-0.008270190097391605,
-0.03188270330429077,
-0.022208813577890396,
0.038695551455020905,
-0.010952414013445377,
0.010532199405133724,
-0.0596526600420475,
0.0007292296504601836,
-0.022208813577890396,
0.01565524749457836,
-0.013804512098431587,
0.03125685080885887,
-0.013420060276985168,
-0.02029549516737461,
-0.03513713181018829,
-0.044524915516376495,
0.06480252742767334,
0.005069403443485498,
0.02952234447002411,
-0.04280829429626465,
-0.028485218062996864,
0.0029459758661687374,
0.01956235244870186,
0.02587451972067356,
-0.013902860693633556,
0.0032566669397056103,
0.023639334365725517,
0.012150474824011326,
-0.013589934445917606,
-0.04291558265686035,
0.04938868433237076,
0.04606272652745247,
-0.09827668219804764,
-0.016844365745782852,
-0.013804512098431587,
-0.025230785831809044,
-0.00014919870591256768,
0.03172176703810692,
-0.05775722116231918,
-0.040447935461997986,
0.013151838444173336,
-0.07367175072431564,
-0.024604933336377144,
0.047457482665777206,
0.025159260258078575,
-0.05189209431409836,
0.05232124775648117,
0.03404636308550835,
0.028538862243294716,
0.009593420661985874,
0.004490490071475506,
0.03007667139172554,
-0.0235678069293499,
-0.11401239782571793,
0.007434230763465166,
-0.020635243505239487,
0.015744654461741447,
-0.024926800280809402,
-0.06748475134372711,
0.03783724084496498,
-0.05654127895832062,
-0.032365500926971436,
0.05432397499680519,
0.0260712169110775,
-0.028538862243294716,
-0.026786476373672485,
-0.0032253742683678865,
-0.03057735227048397,
-0.043273214250802994,
-0.006553567014634609,
-0.00833277590572834,
0.012087889015674591,
-0.0028990369755774736,
-0.02430094964802265,
0.04298710823059082,
0.004360849037766457,
0.044024236500263214,
-0.043452028185129166,
-0.003404189134016633,
-0.030166078358888626,
-0.06423032283782959,
-0.04895952716469765,
0.029164714738726616,
0.04105590656399727,
0.01956235244870186,
0.0010969177819788456,
-0.002975033363327384,
0.02156507968902588,
-0.017568565905094147,
-0.021922709420323372,
-0.009986814111471176,
0.057685695588588715,
0.06344353407621384,
-0.015959233045578003,
0.0065982709638774395,
-0.04613425210118294,
-0.009566598571836948,
-0.009450368583202362,
-0.03408212587237358,
-0.002901272149756551,
0.016719195991754532,
-0.0011444155825302005,
-0.07746262848377228,
-0.015431728214025497,
0.022781021893024445,
-0.018507344648241997,
0.0030331481248140335,
-0.035065606236457825,
0.006178055889904499,
0.04845884442329407,
0.015547958202660084,
-0.0033483095467090607,
-0.07803483307361603,
0.021636607125401497,
0.0273229219019413,
0.03558417037129402,
-0.024426119402050972,
0.019204722717404366,
0.04541899263858795,
0.003947339486330748,
-0.011918014846742153,
-0.0002696193987503648,
-0.002235186519101262,
-0.048351556062698364,
0.008216545917093754,
0.021726014092564583,
0.0460984893143177,
0.010371265932917595,
0.028538862243294716,
0.015869824215769768,
-0.003254431765526533,
0.0011980599956586957,
0.056040599942207336,
0.009602361358702183,
0.02844945527613163,
0.015181387774646282,
0.0360848531126976,
-0.053286850452423096,
-0.051534462720155716,
0.002213952364400029,
0.0016350389923900366,
-0.0019434947753325105,
0.007429760415107012,
-0.03304499760270119,
0.014770112931728363,
-0.0018272650195285678,
0.003522654063999653,
-0.0083953607827425,
-0.02394331991672516,
-0.003489126218482852,
-0.029486581683158875,
0.11236730217933655,
0.052142433822155,
0.014975749887526035,
0.016200631856918335,
0.01541384682059288,
-0.020974991843104362,
-0.015181387774646282,
-0.006450748536735773,
-0.013321712613105774,
0.021386265754699707,
-0.0447394959628582,
0.040769804269075394,
-0.04498983547091484,
-0.047958165407180786,
0.044346101582050323,
-0.04506136104464531,
0.0005004024133086205,
-0.004342967644333839,
0.0031873760744929314,
-0.0012807619059458375,
-0.01704106293618679,
-0.019633879885077477,
-0.007076601032167673,
-0.02056371606886387,
0.047779347747564316,
0.032437026500701904,
-0.0039607505314052105,
-0.023156533017754555,
0.043273214250802994,
-0.03705045208334923,
0.008520531468093395,
0.08096739649772644,
-0.009316258132457733,
-0.020903464406728745,
-0.024104252457618713,
0.01622745394706726,
-0.007273297291249037,
0.01388497930020094,
0.014993632212281227,
0.0006180290947668254,
-0.03772994875907898,
-0.004988936707377434,
0.021332621574401855,
-0.02626791223883629,
0.014224727638065815,
0.05857976898550987,
-0.009074857458472252,
-0.03270525112748146,
0.026410965248942375,
-0.026589779183268547,
-0.0022284809965640306,
-0.011265340261161327,
0.01956235244870186,
0.008368538692593575,
0.019723286852240562,
-0.0012751739704981446,
0.023102888837456703,
0.10099466890096664,
-0.012525985948741436,
0.024104252457618713,
0.012999845668673515,
-0.005909833591431379,
0.01535126194357872,
-0.005127517972141504,
0.029719041660428047,
-0.024426119402050972,
-0.08010908961296082,
0.07056037336587906,
-0.03125685080885887,
0.020384902134537697,
-0.009673887863755226,
-0.03442187234759331,
0.016003936529159546,
0.05732806771993637,
-0.017702678218483925,
-0.027090461924672127,
0.005936655681580305,
-0.042772531509399414,
0.039017416536808014,
0.0241936594247818,
-0.056433990597724915,
0.016468854621052742,
-0.021153805777430534,
0.031739648431539536,
0.015270794741809368,
-0.030613115057349205,
-0.005878540687263012,
-0.027430210262537003,
0.01780102588236332,
0.013536290265619755,
0.006473100278526545,
0.032794658094644547,
0.02281678467988968,
-0.024211540818214417,
0.035119250416755676,
0.017264582216739655,
-0.030487945303320885,
0.01754174381494522,
0.07048884779214859,
0.02024184912443161,
-0.09162476658821106,
-0.003048794576898217,
0.03458280861377716,
-0.015145624056458473,
-0.06644763052463531,
0.00006251537706702948,
-0.034314583986997604,
-0.008431123569607735,
0.020957110449671745,
-0.0005255482392385602,
0.036388836801052094,
0.034243058413267136,
0.013125015422701836
] |
721,937
|
apprise.apprise_attachment
|
pop
|
Removes an indexed Apprise Attachment from the stack and returns it.
by default the last element is poped from the list
|
def pop(self, index=-1):
"""
Removes an indexed Apprise Attachment from the stack and returns it.
by default the last element is poped from the list
"""
# Remove our entry
return self.attachments.pop(index)
|
(self, index=-1)
|
[
0.00886401068419218,
0.02152075432240963,
-0.12486843019723892,
0.006285467650741339,
-0.014475882053375244,
-0.045512791723012924,
-0.01679271087050438,
0.023562995716929436,
0.08477873355150223,
-0.015926044434309006,
-0.018809208646416664,
-0.04300718754529953,
-0.07551141828298569,
-0.016869938001036644,
-0.037481121718883514,
0.02270491048693657,
0.0047752391546964645,
0.016981488093733788,
0.051347766071558,
0.01566861942410469,
0.03152601793408394,
0.003614680143073201,
0.0031985093373805285,
0.013308887369930744,
-0.02045672945678234,
0.02900324948132038,
0.053510136902332306,
-0.023357054218649864,
0.056015744805336,
-0.012682486325502396,
-0.020988741889595985,
-0.05934511125087738,
0.02816232666373253,
-0.024867283180356026,
-0.014870600774884224,
0.047572195529937744,
-0.07413848489522934,
0.0015445518074557185,
0.010871928185224533,
0.023992037400603294,
0.008263352327048779,
0.015016475692391396,
0.04685140401124954,
-0.04606196656823158,
0.04980321228504181,
0.055638186633586884,
0.04510091245174408,
0.042629629373550415,
0.038476500660181046,
0.026411835104227066,
0.020267952233552933,
0.08065992593765259,
0.008310546167194843,
-0.005804940592497587,
-0.0793556347489357,
0.01359205599874258,
-0.005830682814121246,
0.025673883035779,
0.008173253387212753,
0.011052126064896584,
0.05323554947972298,
-0.030599286779761314,
0.0385451465845108,
-0.04695437476038933,
0.04695437476038933,
0.015119445510208607,
0.033448126167058945,
-0.004929694347083569,
-0.021057389676570892,
-0.012553773820400238,
-0.04063887149095535,
0.016355087980628014,
-0.012236282229423523,
-0.002778047928586602,
-0.022087089717388153,
-0.04259530454874039,
0.08114045113325119,
0.07654111832380295,
0.015196673572063446,
-0.007195036858320236,
0.017504919320344925,
0.024112168699502945,
0.0069547733291983604,
0.09905725717544556,
0.028316782787442207,
0.03936890885233879,
0.08553384244441986,
-0.007083485834300518,
-0.04194316267967224,
0.031148461624979973,
-0.0025592364836484194,
0.02749302238225937,
-0.00563761405646801,
-0.040261317044496536,
0.04383094608783722,
-0.027166949585080147,
-0.026326026767492294,
-0.02361448109149933,
-0.019203927367925644,
-0.05021509528160095,
0.008975561708211899,
0.006070946343243122,
-0.0235801562666893,
-0.03257288038730621,
-0.006006590090692043,
0.04256098344922066,
0.048327308148145676,
-0.039025675505399704,
-0.01457885280251503,
0.08580843359231949,
0.007083485834300518,
-0.04503226652741432,
-0.035147134214639664,
-0.010013843886554241,
0.03864811733365059,
-0.013446181081235409,
-0.05653059482574463,
-0.021469268947839737,
0.044723354279994965,
-0.011180838569998741,
0.04867054149508476,
-0.02816232666373253,
-0.07022561877965927,
-0.006868964992463589,
-0.007478205021470785,
0.008572262711822987,
0.002167735481634736,
-0.021709533408284187,
0.03336231783032417,
-0.0017730167601257563,
-0.05907052382826805,
-0.011215162463486195,
-0.05985996127128601,
-0.0335167720913887,
0.011318132281303406,
-0.02457553520798683,
0.051999907940626144,
-0.06401309370994568,
-0.030376184731721878,
-0.02718411199748516,
-0.03555901348590851,
0.035353075712919235,
0.058178115636110306,
0.0877305418252945,
-0.017951123416423798,
-0.04513523355126381,
-0.011378197930753231,
-0.0371035672724247,
-0.025416458025574684,
0.010339915752410889,
-0.04194316267967224,
0.014364331029355526,
-0.02239600010216236,
-0.05855567380785942,
0.06353256106376648,
0.021383460611104965,
-0.03634845092892647,
0.0005397886852733791,
-0.03509564697742462,
-0.03888837993144989,
0.006178207229822874,
0.038270559161901474,
-0.005568967200815678,
-0.029603909701108932,
-0.01694716513156891,
-0.031594663858413696,
0.08182691782712936,
0.049906183034181595,
-0.07544277608394623,
0.07393254339694977,
-0.022293031215667725,
0.052995286881923676,
-0.027081141248345375,
-0.021863987669348717,
-0.06281176954507828,
0.05306393280625343,
-0.012982815504074097,
0.055638186633586884,
0.04661114141345024,
-0.01439865492284298,
-0.06346391886472702,
-0.009601963683962822,
0.0229794979095459,
-0.04973456636071205,
0.024935930967330933,
0.01879204623401165,
-0.020817125216126442,
0.040810491889715195,
0.02194979600608349,
0.001584238139912486,
-0.011644204147160053,
0.007727049291133881,
0.02167521044611931,
-0.011549814604222775,
0.008465001359581947,
0.032143838703632355,
-0.008044540882110596,
0.02309962920844555,
0.005294380243867636,
-0.03200654685497284,
-0.04190883785486221,
-0.05522630736231804,
0.04664546251296997,
-0.047503549605607986,
-0.02682371623814106,
0.003788442350924015,
0.028196651488542557,
-0.020027687773108482,
-0.07235366851091385,
0.08189556747674942,
-0.024472564458847046,
0.03627980500459671,
0.06332661956548691,
-0.08601437509059906,
0.012682486325502396,
-0.08615166693925858,
-0.04863622039556503,
0.0030032950453460217,
0.05680518224835396,
0.024043522775173187,
-0.05107317864894867,
-0.011240904219448566,
-0.03672600910067558,
-0.017676537856459618,
-0.023562995716929436,
0.02445540390908718,
-0.015660038217902184,
-0.01009107194840908,
0.03655439242720604,
-0.02009633556008339,
0.008636618964374065,
-0.014227038249373436,
0.04335042089223862,
-0.036897625774145126,
0.04438012093305588,
0.029929980635643005,
-0.050970207899808884,
-0.02879730984568596,
0.03648574650287628,
0.031989384442567825,
0.06085534021258354,
0.03813326731324196,
0.021503593772649765,
0.09830214083194733,
0.008297675289213657,
0.03394581377506256,
0.02606860175728798,
0.0074181389063596725,
0.02112603560090065,
-0.015660038217902184,
0.048807837069034576,
0.003189928364008665,
-0.020868610590696335,
0.035627659410238266,
0.028145166113972664,
-0.03634845092892647,
-0.027132626622915268,
-0.06353256106376648,
0.006302629131823778,
-0.007709887810051441,
0.01564287766814232,
-0.08725001662969589,
0.08072857558727264,
0.0026750778779387474,
-0.01048579066991806,
0.03427188843488693,
0.014287103898823261,
0.019890394061803818,
0.039059996604919434,
0.07406983524560928,
0.0683378353714943,
-0.027424374595284462,
0.06161045283079147,
-0.03730950504541397,
0.015402613207697868,
0.029929980635643005,
-0.04647384583950043,
0.032778821885585785,
-0.018809208646416664,
0.018345842137932777,
0.03118278458714485,
-0.016020433977246284,
-0.012613839469850063,
0.03737815469503403,
0.02867717854678631,
0.02361448109149933,
0.052480436861515045,
-0.021023064851760864,
0.026875201612710953,
0.01125806663185358,
0.037206534296274185,
0.04506658762693405,
-0.02457553520798683,
-0.050970207899808884,
-0.028385428711771965,
-0.03382568433880806,
-0.05526062846183777,
0.016724063083529472,
0.04389959201216698,
0.07152990996837616,
-0.0025570911820977926,
-0.020405245944857597,
-0.02539929561316967,
-0.0034108851104974747,
-0.01596894860267639,
0.04386527091264725,
0.025210516527295113,
0.06490549445152283,
-0.0019274719525128603,
-0.005723422393202782,
0.024815797805786133,
0.013780834153294563,
-0.05388769507408142,
0.038270559161901474,
-0.0042067584581673145,
0.002820952096953988,
0.03464944288134575,
0.02488444559276104,
-0.005727712996304035,
0.049116745591163635,
-0.012236282229423523,
-0.03046199306845665,
-0.04856757074594498,
-0.00386781501583755,
0.059962932020425797,
-0.05539792403578758,
-0.08223880082368851,
0.016689740121364594,
-0.006512859836220741,
0.043659329414367676,
0.03085671178996563,
-0.0035160004626959562,
-0.009378861635923386,
-0.013171594589948654,
-0.004637945909053087,
0.01855178363621235,
-0.012210539542138577,
0.005109892226755619,
0.02661777473986149,
-0.02428378537297249,
-0.06143883615732193,
-0.07317742705345154,
0.006422760896384716,
0.013574893586337566,
0.035593338310718536,
0.011129353195428848,
0.05498604476451874,
-0.019203927367925644,
-0.008932657539844513,
-0.025296324864029884,
0.04232071712613106,
0.00676599470898509,
-0.009473251178860664,
0.020559700205922127,
-0.003329367144033313,
0.013746511191129684,
-0.027166949585080147,
0.02021646685898304,
0.041634250432252884,
0.011189419776201248,
0.010494370944797993,
-0.005307251587510109,
-0.03676033392548561,
-0.02749302238225937,
-0.00013769572251476347,
-0.03169763460755348,
-0.051450736820697784,
0.014029678888618946,
-0.03600521758198738,
-0.024318110197782516,
-0.0014405089896172285,
0.00815609097480774,
-0.03061644919216633,
0.012905588373541832,
-0.0010806499049067497,
-0.023923391476273537,
-0.014990733005106449,
0.05622168630361557,
-0.0327959842979908,
-0.03488970920443535,
-0.034872546792030334,
0.02009633556008339,
-0.03803029656410217,
0.042904216796159744,
-0.0010527621489018202,
0.023528672754764557,
-0.04280124604701996,
-0.047331929206848145,
0.006036623381078243,
0.006534311920404434,
0.004809562582522631,
-0.08711271733045578,
-0.03324218466877937,
-0.042011808604002,
-0.03454647585749626,
-0.04537549987435341,
-0.016071919351816177,
-0.01734188385307789,
-0.05320122838020325,
-0.009215825237333775,
0.05035238713026047,
0.05491739511489868,
-0.0368633009493351,
-0.005697679705917835,
0.03322502598166466,
0.00661583011969924,
-0.017041554674506187,
0.03751544654369354,
-0.029964303597807884,
-0.007589755579829216,
0.05539792403578758,
-0.00801879819482565,
-0.019598646089434624,
-0.02951810136437416,
0.06710219383239746,
-0.024146493524312973,
0.05474577844142914,
0.016869938001036644,
-0.015608553774654865,
0.015926044434309006,
-0.0183115191757679,
0.04722896218299866,
-0.04527252912521362,
-0.015608553774654865,
-0.054848749190568924,
-0.03485538437962532,
-0.024832960218191147,
-0.013669283129274845,
-0.09569356590509415,
0.04640519991517067,
-0.027904901653528214,
-0.07558006793260574,
0.003833491588011384,
0.02069699391722679,
0.019203927367925644,
-0.003342238487675786,
-0.03724085912108421,
-0.04856757074594498,
-0.053544461727142334,
0.06270880252122879,
0.01727323792874813,
0.020319435745477676,
0.01673264428973198,
-0.03248707205057144,
0.02397487498819828,
0.012193378061056137,
-0.042629629373550415,
0.01127522811293602,
0.050695620477199554,
0.010545856319367886,
-0.0038227655459195375,
-0.00043950005783699453,
0.04530685022473335,
-0.012510869652032852,
-0.027081141248345375,
-0.07811999320983887,
-0.05052400380373001,
0.01679271087050438,
-0.020353760570287704,
-0.003189928364008665,
-0.0011101466370746493,
0.02939796820282936,
-0.022327354177832603,
-0.0648711770772934,
0.0076154982671141624,
0.050695620477199554,
0.015162349678575993,
-0.0016957891639322042,
-0.07118667662143707,
-0.005148505792021751,
0.028179489076137543,
-0.05879593640565872,
-0.049631595611572266,
-0.06243421509861946,
-0.01432142686098814,
0.003833491588011384,
0.05059264972805977,
0.021383460611104965,
0.04280124604701996,
0.0023018112406134605,
-0.030444830656051636,
-0.05103885382413864,
-0.021743856370449066,
0.0385451465845108,
-0.043727975338697433,
-0.000685931125190109,
0.00801879819482565,
-0.017041554674506187,
0.025570912286639214,
-0.009215825237333775,
0.00965344812721014,
-0.061267219483852386,
-0.014441559091210365,
0.04801839962601662,
0.08086586743593216,
-0.007250812370330095,
-0.032452747225761414,
0.011240904219448566,
0.0028638564981520176,
-0.04849892482161522,
0.022018443793058395,
-0.04537549987435341,
-0.008503615856170654,
-0.06318932771682739,
-0.012124731205403805,
-0.02776760794222355,
0.024197977036237717,
0.021263329312205315,
-0.0069547733291983604,
-0.07647247612476349,
-0.03319070115685463,
0.04208045452833176,
-0.0054359640926122665,
0.019118119031190872,
0.012382157146930695,
0.02979268692433834,
-0.011112191714346409,
-0.0018706237897276878,
0.07063750177621841,
0.03833920881152153,
0.04712599143385887,
-0.037687063217163086,
-0.023511510342359543,
0.014347169548273087,
0.033688388764858246,
-0.03437485918402672,
-0.013308887369930744,
0.01333463005721569,
0.012631000950932503,
0.014218457043170929,
-0.031199945136904716,
0.027510182932019234,
0.015333966352045536,
-0.04976889118552208,
0.046508170664310455,
0.015865979716181755,
-0.07118667662143707,
-0.02563956007361412,
0.03485538437962532,
0.016741225495934486,
-0.0319550596177578,
-0.027046818286180496,
-0.014707565307617188,
-0.062090981751680374,
-0.05103885382413864,
-0.009301633574068546,
-0.060786694288253784,
-0.03149169310927391,
0.02061118558049202,
0.02634318917989731,
-0.06507711112499237,
-0.006971935275942087,
0.04015834629535675,
-0.02919202856719494,
0.048087045550346375,
0.05574115738272667,
-0.013746511191129684,
0.00144908984657377,
0.04125669226050377,
-0.0002382524689892307,
-0.002544220071285963,
-0.0020315146539360285,
0.020714156329631805,
0.002775902859866619,
0.003067651530727744,
0.0324355885386467,
-0.00925872940570116,
0.011129353195428848,
0.013772252947092056,
-0.0108633479103446,
-0.0469200499355793,
-0.024712828919291496,
0.015574230812489986,
-0.014072583056986332,
0.015239577740430832,
0.02694384753704071,
0.03813326731324196,
-0.011249485425651073,
0.001280690892599523,
0.003031182801350951,
0.046233583241701126,
-0.031079813838005066,
0.08093450963497162,
-0.06545466929674149,
-0.036417096853256226,
0.016260698437690735,
0.032452747225761414,
0.0040523032657802105,
-0.04194316267967224,
0.017135944217443466,
0.0422520712018013,
0.016526704654097557,
0.03531875088810921,
0.005603290628641844,
0.031663309782743454,
0.01930689625442028,
0.0724223181605339,
-0.009112855419516563,
-0.08436685055494308,
0.016114823520183563,
0.03437485918402672,
-0.030770903453230858,
0.030788065865635872,
0.01997620239853859,
0.01265674363821745,
-0.00696335406973958,
-0.0417715460062027,
-0.0692988857626915,
0.025210516527295113,
0.0007411703118123114,
0.0029217770788818598,
0.0023232633247971535,
-0.039506200700998306,
0.029329322278499603,
0.007521109189838171,
-0.008572262711822987,
0.0042282105423510075,
0.04458606243133545,
-0.02428378537297249,
0.044414445757865906,
0.010957736521959305,
0.011575557291507721,
-0.06112992763519287,
0.004022270441055298,
0.01600327342748642,
-0.05333852022886276,
0.004500652197748423,
-0.013197336345911026,
-0.002162372460588813,
0.07942428439855576,
0.03132007643580437,
-0.056084390729665756,
0.023665964603424072,
0.03210951387882233,
-0.04688572883605957,
0.010786119848489761,
-0.005925072357058525,
-0.026772230863571167,
-0.05443686991930008,
0.03833920881152153,
0.048292987048625946,
-0.0854652002453804,
-0.05515766143798828,
-0.011464006267488003,
-0.008559390902519226,
0.022378839552402496,
0.005976557265967131,
-0.05797217786312103,
-0.005500320345163345,
-0.028539884835481644,
-0.0035074197221547365,
-0.0005443472182378173,
-0.004938275087624788,
-0.01618346944451332,
-0.05213720351457596,
0.07805135101079941,
0.05958537384867668,
0.05151938274502754,
-0.06507711112499237,
-0.005590419284999371,
0.0006296193460002542,
-0.0385451465845108,
-0.023202599957585335,
0.0032757369335740805,
0.04585602506995201,
-0.03792732581496239,
0.0023103919811546803,
0.023391379043459892,
0.025296324864029884,
0.022378839552402496,
-0.018929339945316315,
-0.020473891869187355,
0.006028042174875736,
-0.007422429509460926,
0.0007025565137155354,
-0.008164672181010246,
0.011352455243468285,
0.05251476168632507,
0.023116791620850563,
0.03322502598166466,
0.002739434130489826,
0.030925359576940536,
-0.01879204623401165,
0.043693654239177704,
0.017796669155359268,
0.03885405883193016,
0.030376184731721878,
0.016535283997654915,
-0.01703297346830368,
0.005345865152776241,
-0.0025120419450104237,
-0.08985859155654907,
-0.0019317623227834702,
0.015007894486188889,
-0.03837352991104126,
0.01226202491670847,
0.02864285372197628,
-0.01961580663919449,
-0.020439568907022476,
0.002818807028234005,
0.008872591890394688,
0.049082424491643906,
0.022224383428692818,
-0.05488307401537895,
-0.0003424292663112283,
0.004483490716665983,
-0.019169604405760765,
0.02527916431427002,
-0.051347766071558,
-0.000985188060440123,
-0.025382133200764656,
0.03676033392548561,
0.03264152631163597,
0.03422040119767189,
0.0119702760130167,
0.04578737914562225,
-0.016140565276145935,
0.019512837752699852,
-0.04482632502913475,
0.020027687773108482,
-0.02733856625854969,
0.041359663009643555,
0.03463228419423103,
-0.0005700897891074419,
0.03404878452420235,
-0.03348245099186897,
0.027407212182879448,
-0.02412933111190796,
-0.0683378353714943,
0.03228113055229187,
-0.0035932280588895082,
-0.03658871352672577,
0.03015308268368244,
0.006770285312086344,
0.024112168699502945,
-0.05522630736231804,
0.05512333661317825,
-0.013068623840808868,
0.028419751673936844,
-0.010451466776430607,
0.00821615755558014,
0.01107786875218153,
-0.0614045150578022,
0.015282481908798218,
0.016526704654097557,
-0.04503226652741432,
0.0034559345804154873,
-0.007491075899451971,
-0.03713788837194443,
-0.03576495498418808,
0.05653059482574463,
0.01089767087250948,
-0.040055375546216965,
0.012330671772360802,
-0.0166382547467947,
-0.011807240545749664,
0.04118804633617401,
0.007847181521356106,
-0.01032275427132845,
0.027819093316793442,
0.009584802202880383,
-0.03337948024272919,
-0.04307583346962929,
0.02682371623814106,
-0.028711501508951187,
0.05546656996011734,
-0.0048524667508900166,
-0.00599371874704957
] |
721,938
|
apprise.apprise_attachment
|
size
|
Returns the total size of accumulated attachments
|
def size(self):
"""
Returns the total size of accumulated attachments
"""
return sum([len(a) for a in self.attachments if len(a) > 0])
|
(self)
|
[
-0.005933193955570459,
-0.03226494789123535,
-0.06517963856458664,
0.05755368992686272,
0.03438516706228256,
0.0011060619726777077,
-0.004084414336830378,
-0.05844281613826752,
0.0367276668548584,
0.0020539623219519854,
0.0008196613634936512,
-0.0209457129240036,
0.0015784091083332896,
-0.031170642003417015,
-0.011874937452375889,
0.03799295797944069,
0.009976998902857304,
-0.01717548444867134,
0.0869973823428154,
0.028127100318670273,
0.02513485588133335,
0.042404383420944214,
0.038300734013319016,
0.01398660708218813,
-0.022723961621522903,
-0.0014555134112015367,
0.05478372797369957,
-0.04589248448610306,
0.07222423702478409,
0.05382620915770531,
-0.05242412909865379,
-0.012063020840287209,
0.026554035022854805,
0.017782483249902725,
0.006852240767329931,
0.04650803282856941,
0.013969508931040764,
0.008301341906189919,
-0.04462719336152077,
0.05064588040113449,
-0.03212815895676613,
0.04295153543353081,
0.059571318328380585,
-0.015363039448857307,
0.032863397151231766,
0.012729864567518234,
0.014918477274477482,
0.034111589193344116,
-0.020313067361712456,
-0.02253587730228901,
0.02934109792113304,
0.05557025969028473,
0.010318970307707787,
0.04558471217751503,
-0.00565534271299839,
0.057485297322273254,
0.0016286361496895552,
0.03590693697333336,
-0.03505200892686844,
0.021065402776002884,
-0.011413276195526123,
-0.02099701017141342,
0.07448124885559082,
-0.10977263748645782,
0.027870623394846916,
-0.00009056883573066443,
-0.018261242657899857,
0.026468543335795403,
-0.00005667231380357407,
0.01676511950790882,
-0.003498789155855775,
0.006040059961378574,
-0.034060295671224594,
0.03652248531579971,
-0.026229163631796837,
-0.015705009922385216,
0.055365078151226044,
0.04052354395389557,
0.010259125381708145,
-0.03624890744686127,
0.07769577205181122,
-0.0004250590573064983,
0.03754839673638344,
0.05273190140724182,
0.0911010280251503,
0.01923585869371891,
0.05786146596074104,
0.026554035022854805,
-0.0368986539542675,
0.0552624873816967,
0.006497445981949568,
0.08816008269786835,
0.039087265729904175,
-0.0376167930662632,
0.0038493091706186533,
-0.015722109004855156,
-0.06415373086929321,
-0.041617851704359055,
-0.034008998423814774,
-0.04739715903997421,
-0.04927799850702286,
0.03895047679543495,
0.058784786611795425,
-0.029494984075427055,
-0.007544731721282005,
-0.019800111651420593,
0.011909134685993195,
-0.08939117938280106,
0.034504856914281845,
0.07454964518547058,
0.03683025762438774,
-0.04199402034282684,
-0.02891363389790058,
0.0030820120591670275,
0.03149551525712013,
-0.022672666236758232,
-0.00500987283885479,
-0.03011053241789341,
0.013345411978662014,
-0.01482443604618311,
0.06340139359235764,
0.02337370626628399,
-0.0280758049339056,
-0.01921876147389412,
0.03518879786133766,
0.018346736207604408,
-0.004637979436665773,
-0.016551388427615166,
0.04295153543353081,
-0.04821788892149925,
0.01674802228808403,
-0.013097482733428478,
-0.010566898621618748,
0.01844932697713375,
0.013294116593897343,
-0.014174691401422024,
0.033684127032756805,
-0.024177338927984238,
-0.002487837802618742,
0.012225457467138767,
-0.018500622361898422,
0.037514202296733856,
0.038745295256376266,
0.02935819700360298,
0.011139700189232826,
0.01966332271695137,
0.002532721497118473,
-0.024809984490275383,
-0.04979095235466957,
-0.013943861238658428,
-0.0434986911714077,
-0.02510065957903862,
-0.030401207506656647,
-0.02380117028951645,
0.005539927631616592,
0.031974274665117264,
-0.01594438962638378,
-0.022057119756937027,
-0.03231624513864517,
-0.0937684029340744,
-0.02508356049656868,
0.022758159786462784,
-0.022689765319228172,
-0.016123924404382706,
-0.03683025762438774,
-0.031033853068947792,
0.01839803159236908,
0.011139700189232826,
-0.07899526506662369,
0.0577588751912117,
0.02640014886856079,
0.0127469627186656,
-0.026878908276557922,
-0.029512083157896996,
0.02097991108894348,
0.07858489453792572,
-0.009301606565713882,
0.013328312896192074,
-0.00265882327221334,
-0.008061962202191353,
-0.044558800756931305,
-0.023322410881519318,
0.02763124369084835,
0.011644107289612293,
0.041583653539419174,
0.01068658847361803,
-0.0005530309863388538,
0.016551388427615166,
0.018688706681132317,
-0.004428522195667028,
-0.01235369686037302,
-0.007078796159476042,
-0.023698579519987106,
0.015670813620090485,
-0.043703872710466385,
-0.001888320199213922,
-0.0037232073955237865,
-0.019013578072190285,
-0.04900442063808441,
-0.010960165411233902,
-0.10539541393518448,
-0.07687504589557648,
-0.011387628503143787,
-0.032076865434646606,
-0.007741364650428295,
0.009532436728477478,
-0.029170112684369087,
0.00030830808100290596,
-0.058818984776735306,
0.024536406621336937,
-0.04216500371694565,
-0.02588719315826893,
0.022518780082464218,
-0.011259390041232109,
0.022364892065525055,
-0.07496000826358795,
0.01971461810171604,
-0.005702363792806864,
-0.02003949135541916,
0.0013839132152497768,
0.004270360805094242,
0.011430375277996063,
-0.038745295256376266,
-0.012721315026283264,
0.003545810002833605,
0.0022634195629507303,
0.015414335764944553,
0.035393983125686646,
0.0011936919763684273,
-0.026690823957324028,
0.010353166610002518,
0.05057748779654503,
0.008639038540422916,
0.049927741289138794,
0.031033853068947792,
0.02797321416437626,
-0.03809555247426033,
-0.028110003098845482,
0.004770493134856224,
-0.04476398229598999,
-0.021869035437703133,
-0.02217680774629116,
0.013601889833807945,
0.03462454676628113,
-0.03096545860171318,
-0.063298799097538,
-0.008668961003422737,
0.03542817756533623,
-0.021082501858472824,
-0.015414335764944553,
-0.0038941928651183844,
-0.027015695348381996,
-0.045379530638456345,
-0.04476398229598999,
0.028178397566080093,
-0.04274635389447212,
-0.021903231739997864,
-0.024416716769337654,
-0.013798522762954235,
0.0024408167228102684,
0.10881511867046356,
-0.06842836737632751,
0.030879966914653778,
0.040420953184366226,
-0.03973701223731041,
0.03895047679543495,
0.015371588990092278,
0.0003908619692083448,
-0.06111018732190132,
0.0655900090932846,
0.07331854850053787,
-0.01043866015970707,
0.07126672565937042,
-0.060870807617902756,
-0.039907995611429214,
0.00019195784989278764,
-0.00251562288030982,
0.058340225368738174,
-0.03638569638133049,
0.03542817756533623,
0.000593105680309236,
-0.0026716471184045076,
-0.007946547120809555,
-0.0024963871110230684,
0.01232804823666811,
0.013106032274663448,
-0.007501985412091017,
-0.00835263729095459,
-0.09246891736984253,
0.0049372040666639805,
0.0020988460164517164,
0.023595986887812614,
0.03219655528664589,
-0.036659274250268936,
-0.031221937388181686,
-0.03775358200073242,
-0.026673724874854088,
-0.002669509733095765,
0.06877033412456512,
0.06688949465751648,
-0.06986463814973831,
0.03559916466474533,
-0.014542309567332268,
-0.014542309567332268,
-0.05269770696759224,
0.02168095111846924,
0.036556683480739594,
-0.0026716471184045076,
0.04131007567048073,
0.0020603742450475693,
-0.014559408649802208,
0.05563865602016449,
0.0002829274453688413,
0.041652046144008636,
0.08152584731578827,
0.055399276316165924,
0.00038685451727360487,
0.03296598792076111,
-0.05180858075618744,
0.061281174421310425,
0.029922448098659515,
0.04230179265141487,
-0.02055244706571102,
-0.0018252693116664886,
-0.004868809599429369,
-0.03706963732838631,
0.0401131771504879,
0.037035442888736725,
0.00896818470209837,
-0.010105238296091557,
-0.0017333646537736058,
-0.03652248531579971,
0.002731492044404149,
-0.01001974567770958,
-0.06887292861938477,
-0.01581615023314953,
0.04066033288836479,
-0.03416288644075394,
-0.003590693697333336,
0.011430375277996063,
0.022450385615229607,
-0.01720113307237625,
-0.003917703405022621,
0.04691839963197708,
0.03645409271121025,
-0.03754839673638344,
0.07140351086854935,
-0.05635679513216019,
0.03812974691390991,
-0.048765040934085846,
0.027750933542847633,
0.027511553838849068,
0.0027015695814043283,
0.024844180792570114,
0.02922140806913376,
-0.027289273217320442,
-0.006138376425951719,
0.01316587720066309,
0.04089971259236336,
0.09616219997406006,
-0.020159181207418442,
0.0561516098678112,
-0.044182632118463516,
-0.005326195620000362,
0.030007941648364067,
0.00965212658047676,
-0.011592810973525047,
-0.04014737531542778,
-0.018910987302660942,
-0.019783012568950653,
-0.022929145023226738,
-0.024091845378279686,
-0.039566025137901306,
-0.04055774211883545,
0.04093391075730324,
0.0001982362155104056,
-0.07988438755273819,
0.03482972830533981,
-0.0014886418357491493,
0.04298573359847069,
-0.08241496980190277,
0.027921918779611588,
-0.03679606318473816,
0.0020069412421435118,
-0.020398560911417007,
0.034128688275814056,
-0.056322596967220306,
-0.045276939868927,
-0.024775786325335503,
0.030452502891421318,
0.03898467496037483,
-0.011627008207142353,
-0.047875918447971344,
-0.0104728564620018,
-0.06234128400683403,
-0.025357138365507126,
-0.011763797141611576,
-0.007454964332282543,
-0.005185132846236229,
-0.013123130425810814,
0.07920044660568237,
-0.008232947438955307,
-0.03898467496037483,
0.068804532289505,
-0.03315407410264015,
0.00492865452542901,
-0.025682009756565094,
0.014935576356947422,
-0.011336333118379116,
0.03358153626322746,
0.03518879786133766,
-0.013217172585427761,
-0.017714088782668114,
0.005189407616853714,
-0.04626865312457085,
-0.04736296087503433,
0.02633175440132618,
-0.0666843131184578,
0.045824091881513596,
0.010695138014853,
0.03720642626285553,
0.034487757831811905,
0.007181387394666672,
0.04678161069750786,
-0.008805749006569386,
-0.0392240546643734,
-0.030007941648364067,
-0.0033940605353564024,
-0.005993038881570101,
0.0024044823367148638,
-0.013815621845424175,
0.007946547120809555,
-0.008951086550951004,
-0.03358153626322746,
0.012404992245137691,
0.0025690558832138777,
-0.0037531298585236073,
-0.04893602803349495,
-0.03570175543427467,
0.032435934990644455,
0.019953997805714607,
0.005548476707190275,
0.01584179885685444,
-0.009472591802477837,
0.055467668920755386,
-0.039942193776369095,
-0.03765098750591278,
-0.032453034073114395,
0.0007758463616482913,
0.000044082178646931425,
-0.015636617317795753,
-0.03590693697333336,
0.038642704486846924,
-0.045003361999988556,
-0.0577588751912117,
-0.009882956743240356,
0.01295214518904686,
0.005753659177571535,
-0.06374336034059525,
-0.055365078151226044,
-0.010652391240000725,
0.03016182780265808,
-0.03566755726933479,
-0.012567427940666676,
-0.004009608179330826,
-0.019013578072190285,
-0.015157856978476048,
0.01920166239142418,
-0.010182181373238564,
0.04093391075730324,
0.08480876684188843,
-0.019441042095422745,
-0.02718668058514595,
-0.043225113302469254,
0.07543876767158508,
-0.0030820120591670275,
0.03378671780228615,
0.044182632118463516,
0.007873878814280033,
0.011182446032762527,
0.0167993176728487,
-0.00668980460613966,
-0.013892564922571182,
-0.016012784093618393,
-0.006386305205523968,
-0.00020825488900300115,
-0.06309361755847931,
-0.032076865434646606,
0.05156920105218887,
0.011609910055994987,
-0.02764834277331829,
-0.02221100591123104,
-0.024433815851807594,
-0.017765384167432785,
0.04175464063882828,
-0.0010852230479940772,
0.0343167744576931,
0.005454435013234615,
0.003402609843760729,
-0.0027977488934993744,
-0.015730658546090126,
-0.002344637643545866,
0.03840332478284836,
-0.034077394753694534,
-0.05940033495426178,
0.009746168740093708,
0.0011263664346188307,
-0.005933193955570459,
0.00791234988719225,
-0.006694078911095858,
-0.015670813620090485,
0.020398560911417007,
-0.03645409271121025,
0.05652777850627899,
0.021065402776002884,
0.015337391756474972,
0.0036270280834287405,
0.005462984088808298,
0.02891363389790058,
-0.007707167882472277,
0.006164024118334055,
0.00899383332580328,
-0.030401207506656647,
-0.02386956475675106,
-0.03007633425295353,
0.03007633425295353,
-0.022005822509527206,
-0.02920430898666382,
0.010712236166000366,
0.03549657389521599,
0.02723797783255577,
0.03250432759523392,
0.015670813620090485,
-0.02756284922361374,
0.017243878915905952,
0.03812974691390991,
-0.04425102472305298,
-0.06794960796833038,
-0.058306027203798294,
0.039053067564964294,
0.01235369686037302,
-0.05150080844759941,
0.03376961871981621,
-0.024570604786276817,
-0.07283978909254074,
0.08480876684188843,
0.00730535201728344,
-0.042438581585884094,
0.06651332974433899,
-0.05174018815159798,
-0.05769047886133194,
0.006172573659569025,
-0.0018936635460704565,
-0.02848616987466812,
0.09390518814325333,
0.0035222996957600117,
0.009079325944185257,
-0.08350928127765656,
0.025750404223799706,
-0.008728805929422379,
0.038232337683439255,
-0.04756814241409302,
-0.015251899138092995,
0.012422090396285057,
0.009224663488566875,
0.0003785724111367017,
-0.005296273157000542,
0.04469558969140053,
-0.00366763724014163,
0.008733079768717289,
-0.0711299329996109,
0.037411607801914215,
-0.07489161193370819,
-0.015149308368563652,
0.04089971259236336,
-0.03898467496037483,
-0.04469558969140053,
-0.008412482216954231,
-0.0035928310826420784,
-0.036180514842271805,
-0.004073727410286665,
-0.06582938879728317,
0.026109473779797554,
-0.014123395085334778,
-0.02140737511217594,
-0.02598978392779827,
-0.040420953184366226,
-0.022518780082464218,
-0.04476398229598999,
0.05738270655274391,
-0.025271644815802574,
-0.005851976107805967,
-0.004766218364238739,
0.0036505386233329773,
0.010387363843619823,
0.04838887229561806,
0.04643964022397995,
-0.00250066164880991,
-0.03229914605617523,
-0.0037723658606410027,
0.03884788602590561,
0.016884809359908104,
-0.02462190017104149,
0.10560059547424316,
0.013601889833807945,
-0.03192297741770744,
-0.011285037733614445,
0.0476023405790329,
0.005539927631616592,
-0.0008832465391606092,
-0.0221084151417017,
0.015132209286093712,
0.026913104578852654,
-0.015174956060945988,
-0.032880496233701706,
-0.01717548444867134,
-0.026177868247032166,
0.03139292448759079,
0.0392240546643734,
0.07687504589557648,
-0.019543632864952087,
0.018346736207604408,
-0.03017892688512802,
0.026536935940384865,
-0.03187168017029762,
0.004304558038711548,
-0.02299753949046135,
0.001172318821772933,
-0.03525719419121742,
0.0032572722993791103,
0.015628067776560783,
-0.035735953599214554,
0.057074934244155884,
-0.0009500377345830202,
0.016867712140083313,
-0.008100434206426144,
-0.06022106483578682,
0.0005428786971606314,
-0.02303173579275608,
0.007814033888280392,
0.019509436562657356,
-0.0015752031467854977,
-0.07899526506662369,
-0.03058929182589054,
-0.0020368637051433325,
0.01762859709560871,
-0.020637940615415573,
-0.046986792236566544,
-0.010199280455708504,
-0.006852240767329931,
-0.014747492037713528,
-0.001521770260296762,
0.029460787773132324,
-0.029460787773132324,
-0.013319764286279678,
0.063298799097538,
0.03301728516817093,
0.020603742450475693,
-0.04640544205904007,
-0.05512569844722748,
-0.017782483249902725,
-0.0734553337097168,
0.004103649873286486,
-0.030845768749713898,
0.11442343890666962,
-0.05967390909790993,
0.014935576356947422,
-0.012909399345517159,
0.011233742348849773,
-0.015397236682474613,
0.023322410881519318,
0.10101818293333054,
0.008215849287807941,
-0.0075319078750908375,
-0.02930689975619316,
0.03631730377674103,
-0.003026441903784871,
0.02296334132552147,
0.07687504589557648,
0.004287459421902895,
0.001343304174952209,
0.03315407410264015,
-0.0725662112236023,
0.014636351726949215,
0.03812974691390991,
-0.019081972539424896,
-0.015610968694090843,
-0.004689275287091732,
-0.00005874284033779986,
0.012387893162667751,
-0.020637940615415573,
-0.07865329086780548,
0.025801699608564377,
0.02176644280552864,
-0.030691882595419884,
0.015174956060945988,
0.013815621845424175,
0.037480004131793976,
0.02470739372074604,
-0.02970016747713089,
0.05143241211771965,
0.05003033205866814,
-0.012114317156374454,
-0.027255075052380562,
-0.046644821763038635,
-0.024365421384572983,
-0.04442201182246208,
0.024980969727039337,
-0.037890367209911346,
0.0065017202869057655,
-0.0196120273321867,
0.07892686873674393,
-0.012430639937520027,
-0.026451444253325462,
-0.049107011407613754,
0.04062613472342491,
0.0502697117626667,
0.05006453022360802,
0.01679076813161373,
0.021031206473708153,
-0.009156269021332264,
0.06377755850553513,
0.0392240546643734,
0.023100130259990692,
-0.045413725078105927,
0.006087081041187048,
0.016004234552383423,
0.000014143031876301393,
-0.00959228165447712,
-0.0275457501411438,
0.018466424196958542,
-0.03188877925276756,
0.009558084420859814,
0.010353166610002518,
-0.004714922979474068,
0.030606389045715332,
0.006480347365140915,
-0.029443688690662384,
-0.018569016829133034,
-0.011353431269526482,
0.0779009535908699,
0.0031717794481664896,
0.01624361425638199,
0.005967391189187765,
0.03881369158625603,
-0.085561104118824,
0.029443688690662384,
0.07543876767158508,
-0.014969773590564728,
-0.037445805966854095,
0.03267531469464302,
0.008386834524571896,
0.004629430361092091,
-0.027323469519615173,
0.002686608349904418,
0.02877684496343136,
-0.000395938113797456,
-0.07044599205255508,
-0.020620841532945633,
0.013969508931040764,
0.004873084370046854,
-0.08624504506587982,
-0.007754188496619463,
0.07564394921064377,
-0.002141592325642705,
0.08898080885410309,
-0.0064162276685237885,
0.02137317694723606
] |
721,939
|
apprise.apprise_config
|
AppriseConfig
|
Our Apprise Configuration File Manager
- Supports a list of URLs defined one after another (text format)
- Supports a destinct YAML configuration format
|
class AppriseConfig:
"""
Our Apprise Configuration File Manager
- Supports a list of URLs defined one after another (text format)
- Supports a destinct YAML configuration format
"""
def __init__(self, paths=None, asset=None, cache=True, recursion=0,
insecure_includes=False, **kwargs):
"""
Loads all of the paths specified (if any).
The path can either be a single string identifying one explicit
location, otherwise you can pass in a series of locations to scan
via a list.
If no path is specified then a default list is used.
By default we cache our responses so that subsiquent calls does not
cause the content to be retrieved again. Setting this to False does
mean more then one call can be made to retrieve the (same) data. This
method can be somewhat inefficient if disabled and you're set up to
make remote calls. Only disable caching if you understand the
consequences.
You can alternatively set the cache value to an int identifying the
number of seconds the previously retrieved can exist for before it
should be considered expired.
It's also worth nothing that the cache value is only set to elements
that are not already of subclass ConfigBase()
recursion defines how deep we recursively handle entries that use the
`import` keyword. This keyword requires us to fetch more configuration
from another source and add it to our existing compilation. If the
file we remotely retrieve also has an `import` reference, we will only
advance through it if recursion is set to 2 deep. If set to zero
it is off. There is no limit to how high you set this value. It would
be recommended to keep it low if you do intend to use it.
insecure includes by default are disabled. When set to True, all
Apprise Config files marked to be in STRICT mode are treated as being
in ALWAYS mode.
Take a file:// based configuration for example, only a file:// based
configuration can import another file:// based one. because it is set
to STRICT mode. If an http:// based configuration file attempted to
import a file:// one it woul fail. However this import would be
possible if insecure_includes is set to True.
There are cases where a self hosting apprise developer may wish to load
configuration from memory (in a string format) that contains import
entries (even file:// based ones). In these circumstances if you want
these includes to be honored, this value must be set to True.
"""
# Initialize a server list of URLs
self.configs = list()
# Prepare our Asset Object
self.asset = \
asset if isinstance(asset, AppriseAsset) else AppriseAsset()
# Set our cache flag
self.cache = cache
# Initialize our recursion value
self.recursion = recursion
# Initialize our insecure_includes flag
self.insecure_includes = insecure_includes
if paths is not None:
# Store our path(s)
self.add(paths)
return
def add(self, configs, asset=None, tag=None, cache=True, recursion=None,
insecure_includes=None):
"""
Adds one or more config URLs into our list.
You can override the global asset if you wish by including it with the
config(s) that you add.
By default we cache our responses so that subsiquent calls does not
cause the content to be retrieved again. Setting this to False does
mean more then one call can be made to retrieve the (same) data. This
method can be somewhat inefficient if disabled and you're set up to
make remote calls. Only disable caching if you understand the
consequences.
You can alternatively set the cache value to an int identifying the
number of seconds the previously retrieved can exist for before it
should be considered expired.
It's also worth nothing that the cache value is only set to elements
that are not already of subclass ConfigBase()
Optionally override the default recursion value.
Optionally override the insecure_includes flag.
if insecure_includes is set to True then all plugins that are
set to a STRICT mode will be a treated as ALWAYS.
"""
# Initialize our return status
return_status = True
# Initialize our default cache value
cache = cache if cache is not None else self.cache
# Initialize our default recursion value
recursion = recursion if recursion is not None else self.recursion
# Initialize our default insecure_includes value
insecure_includes = \
insecure_includes if insecure_includes is not None \
else self.insecure_includes
if asset is None:
# prepare default asset
asset = self.asset
if isinstance(configs, ConfigBase):
# Go ahead and just add our configuration into our list
self.configs.append(configs)
return True
elif isinstance(configs, str):
# Save our path
configs = (configs, )
elif not isinstance(configs, (tuple, set, list)):
logger.error(
'An invalid configuration path (type={}) was '
'specified.'.format(type(configs)))
return False
# Iterate over our configuration
for _config in configs:
if isinstance(_config, ConfigBase):
# Go ahead and just add our configuration into our list
self.configs.append(_config)
continue
elif not isinstance(_config, str):
logger.warning(
"An invalid configuration (type={}) was specified.".format(
type(_config)))
return_status = False
continue
logger.debug("Loading configuration: {}".format(_config))
# Instantiate ourselves an object, this function throws or
# returns None if it fails
instance = AppriseConfig.instantiate(
_config, asset=asset, tag=tag, cache=cache,
recursion=recursion, insecure_includes=insecure_includes)
if not isinstance(instance, ConfigBase):
return_status = False
continue
# Add our initialized plugin to our server listings
self.configs.append(instance)
# Return our status
return return_status
def add_config(self, content, asset=None, tag=None, format=None,
recursion=None, insecure_includes=None):
"""
Adds one configuration file in it's raw format. Content gets loaded as
a memory based object and only exists for the life of this
AppriseConfig object it was loaded into.
If you know the format ('yaml' or 'text') you can specify
it for slightly less overhead during this call. Otherwise the
configuration is auto-detected.
Optionally override the default recursion value.
Optionally override the insecure_includes flag.
if insecure_includes is set to True then all plugins that are
set to a STRICT mode will be a treated as ALWAYS.
"""
# Initialize our default recursion value
recursion = recursion if recursion is not None else self.recursion
# Initialize our default insecure_includes value
insecure_includes = \
insecure_includes if insecure_includes is not None \
else self.insecure_includes
if asset is None:
# prepare default asset
asset = self.asset
if not isinstance(content, str):
logger.warning(
"An invalid configuration (type={}) was specified.".format(
type(content)))
|
(paths=None, asset=None, cache=True, recursion=0, insecure_includes=False, **kwargs)
|
[
0.006813020911067724,
-0.08292362093925476,
-0.04097876325249672,
0.0034115423914045095,
0.009716354310512543,
0.02336755581200123,
-0.003147374140098691,
0.015517989173531532,
-0.050961799919605255,
-0.028459709137678146,
-0.00559030007570982,
-0.001090636826120317,
-0.014189600944519043,
0.012146701104938984,
-0.02069065161049366,
-0.031176866963505745,
0.009172922931611538,
0.02103281207382679,
-0.0035700432490557432,
-0.06557407230138779,
-0.00947986077517271,
-0.016182182356715202,
0.01064723264425993,
0.04850629344582558,
0.024716069921851158,
0.03630927577614784,
0.05659738555550575,
0.005751316901296377,
-0.0045965248718857765,
0.0027523799799382687,
-0.04214613139629364,
0.0229247584939003,
0.0235285721719265,
-0.015115447342395782,
0.04593002796173096,
-0.032948050647974014,
-0.0007629425963386893,
0.07120965421199799,
-0.08880073577165604,
0.016242563724517822,
0.005751316901296377,
-0.024937467649579048,
0.03832198679447174,
-0.04721815884113312,
0.00425688037648797,
0.09000836312770844,
-0.047540195286273956,
0.1107795238494873,
-0.03566521033644676,
-0.04456138610839844,
0.027674753218889236,
0.011885048821568489,
-0.012478797696530819,
0.051887646317481995,
-0.012700195424258709,
0.04427960515022278,
0.02093217708170414,
0.0949193686246872,
0.028198057785630226,
0.00014112552162259817,
-0.018647752702236176,
-0.026446999981999397,
0.04065672680735588,
-0.006858306936919689,
0.006903592962771654,
0.004619167651981115,
-0.10232613980770111,
-0.006390352267771959,
0.02061014249920845,
0.021113321185112,
0.0023221634328365326,
-0.032444875687360764,
-0.015679005533456802,
-0.033753134310245514,
0.06255500763654709,
-0.03568533435463905,
-0.011311426758766174,
0.0214152280241251,
0.003927298821508884,
0.009620750322937965,
-0.017963429912924767,
0.005640618037432432,
0.009142732247710228,
-0.030915215611457825,
0.05579230189323425,
0.003821631893515587,
0.00441789673641324,
-0.04335375875234604,
0.04448087513446808,
0.04295121505856514,
-0.02304552122950554,
0.04079761728644371,
0.02397136762738228,
-0.007839502766728401,
0.008478538133203983,
0.0040556094609200954,
-0.010289976373314857,
-0.0446418933570385,
0.030090004205703735,
-0.03512177616357803,
-0.03447771072387695,
0.00288823782466352,
-0.04003278911113739,
-0.0916990339756012,
0.005514823365956545,
-0.08300413191318512,
-0.030834706500172615,
0.029204411432147026,
0.0012944237096235156,
0.008755285292863846,
-0.03971075639128685,
-0.03977113589644432,
-0.01702752150595188,
-0.0013120349030941725,
-0.0033385816495865583,
0.004126054234802723,
-0.052934255450963974,
-0.014038647525012493,
0.03602749854326248,
-0.009983038529753685,
-0.011412061750888824,
0.04552748426795006,
-0.012227209284901619,
0.06267576664686203,
0.06174992024898529,
0.03643003851175308,
-0.016151992604136467,
-0.00266935583204031,
0.019050294533371925,
-0.04758044704794884,
0.04178384691476822,
0.04556773975491524,
-0.01167371403425932,
-0.05559103190898895,
0.040616475045681,
-0.054946962743997574,
-0.019895631819963455,
0.011351680383086205,
-0.06360161304473877,
0.03359211981296539,
0.0038593700155615807,
0.016323072835803032,
0.013656232506036758,
0.004030450247228146,
-0.01164352335035801,
-0.03393428027629852,
-0.017862794920802116,
-0.01127117220312357,
-0.024233020842075348,
0.030251020565629005,
0.032384492456912994,
-0.029989369213581085,
-0.06223297119140625,
0.04528595879673958,
-0.01690675877034664,
0.013153055682778358,
-0.06050204113125801,
0.048707567155361176,
-0.0017862794920802116,
-0.04371604695916176,
-0.04226689413189888,
0.003409026423469186,
0.02067052386701107,
0.002749864012002945,
-0.06187068298459053,
-0.04214613139629364,
-0.030492546036839485,
-0.029808225110173225,
0.006390352267771959,
0.04431986063718796,
-0.01857730746269226,
-0.02425314672291279,
-0.04154232144355774,
0.02181776985526085,
-0.017621269449591637,
0.050639767199754715,
0.005263234954327345,
-0.01173409540206194,
-0.005353807006031275,
0.012307717464864254,
-0.04468214511871338,
-0.007291039451956749,
-0.04087812453508377,
0.015095319598913193,
0.04178384691476822,
0.051646120846271515,
0.013213437050580978,
0.012579433619976044,
0.050881292670965195,
0.06001899018883705,
-0.0468558743596077,
-0.015437480062246323,
0.025199120864272118,
-0.027352720499038696,
-0.0219184048473835,
0.002588847419247031,
-0.016826249659061432,
-0.017198601737618446,
0.02258259803056717,
0.04729866981506348,
-0.07189397513866425,
-0.04713765159249306,
0.02288450486958027,
-0.06086432933807373,
0.04095863550901413,
0.008649618364870548,
-0.024152511730790138,
-0.024152511730790138,
-0.02145548164844513,
0.08992785215377808,
-0.06336008757352829,
0.006033095996826887,
-0.017500506713986397,
-0.025863314047455788,
0.024937467649579048,
-0.06239398941397667,
0.025903569534420967,
0.04621180519461632,
-0.03830185905098915,
0.018788641318678856,
0.051887646317481995,
0.03449783846735954,
0.017621269449591637,
-0.02145548164844513,
-0.030311401933431625,
0.015689069405198097,
0.006531241815537214,
-0.009001842699944973,
0.027252083644270897,
0.050277478992938995,
0.004855661187320948,
0.007200467400252819,
0.02010696567595005,
0.01109002809971571,
0.09459733963012695,
-0.005444378592073917,
0.030251020565629005,
0.03952961042523384,
0.00017076580843422562,
0.030351655557751656,
0.012629751116037369,
0.007623136509209871,
-0.015397226437926292,
-0.03890567272901535,
-0.04508468881249428,
-0.018828894942998886,
-0.029345301911234856,
0.0050066146068274975,
-0.03918744996190071,
-0.016202310100197792,
0.049512650817632675,
0.024575181305408478,
-0.01751057058572769,
-0.015990976244211197,
-0.025581534951925278,
-0.014461316168308258,
0.004833018407225609,
-0.013948075473308563,
0.04500418156385422,
-0.04460163787007332,
0.051444850862026215,
-0.047097399830818176,
0.024736197665333748,
0.03771817311644554,
-0.049432139843702316,
0.00471980357542634,
0.04351477697491646,
-0.03643003851175308,
-0.03691308945417404,
0.052692729979753494,
0.11021596193313599,
0.06038127839565277,
0.0011736610904335976,
-0.003970069345086813,
-0.008116249926388264,
0.025762679055333138,
0.023830479010939598,
-0.02379022352397442,
-0.014904112555086613,
0.026628144085407257,
0.027010558173060417,
0.01024469081312418,
0.051042307168245316,
-0.009917625226080418,
0.05679865553975105,
-0.08863972127437592,
-0.06460797041654587,
0.06404440850019455,
-0.06488975137472153,
0.026849541813135147,
0.01164352335035801,
0.015970848500728607,
0.01763133332133293,
-0.019714487716555595,
0.04440036788582802,
0.0026291015092283487,
-0.03405504301190376,
0.018406227231025696,
0.01101958379149437,
-0.050599511712789536,
-0.008237012661993504,
-0.026326237246394157,
0.00010000649490393698,
-0.02207942120730877,
0.0049915192648768425,
-0.01885908655822277,
-0.008569110184907913,
-0.01220708154141903,
0.04774146527051926,
0.05716094374656677,
0.025943823158740997,
-0.01938239112496376,
0.027634499594569206,
0.0180942565202713,
-0.017892986536026,
-0.0007723771850578487,
0.01751057058572769,
0.012227209284901619,
0.004744962323457003,
0.02018747478723526,
-0.032988306134939194,
0.07648295164108276,
-0.026285983622074127,
-0.014461316168308258,
0.07889820635318756,
-0.026386618614196777,
0.06573508679866791,
0.031035978347063065,
-0.022723488509655,
0.018768513575196266,
-0.05933466926217079,
-0.0002009564486797899,
-0.028640853241086006,
0.026487255468964577,
0.03475949168205261,
-0.01773196831345558,
-0.0192012470215559,
-0.0705655887722969,
0.004188951104879379,
-0.06223297119140625,
0.04532621428370476,
-0.028640853241086006,
-0.055752046406269073,
-0.015729323029518127,
-0.003710932796820998,
-0.028137676417827606,
0.04713765159249306,
0.026285983622074127,
-0.0005082091083750129,
0.01831565424799919,
0.013756868429481983,
-0.04347452148795128,
-0.012599560432136059,
0.027936404570937157,
0.027171576395630836,
-0.07865668088197708,
-0.04713765159249306,
-0.05631560832262039,
0.008634522557258606,
-0.02127433754503727,
0.009278589859604836,
0.012539179064333439,
-0.031297631561756134,
0.05559103190898895,
-0.01891946792602539,
-0.006933783646672964,
-0.01928175613284111,
-0.025742551311850548,
0.06686220318078995,
-0.0916990339756012,
-0.0073011028580367565,
0.02113344706594944,
0.031881313771009445,
-0.09186005592346191,
0.07294058799743652,
-0.03425631299614906,
0.0018906887853518128,
0.015417353250086308,
-0.032988306134939194,
0.03737601265311241,
-0.005039320793002844,
0.07467151433229446,
0.0008843341493047774,
-0.008941461332142353,
0.01031513512134552,
-0.04287070780992508,
0.026869669556617737,
-0.031901441514492035,
0.01133155357092619,
0.02181776985526085,
0.03502114117145538,
0.0038140842225402594,
-0.042226642370224,
0.049311377108097076,
-0.06480924040079117,
-0.03872452676296234,
0.0012667488772422075,
0.06678169220685959,
0.031297631561756134,
-0.004354999866336584,
0.03874465450644493,
-0.050277478992938995,
0.04456138610839844,
0.04436011239886284,
0.007069641258567572,
-0.014320426620543003,
0.07712702453136444,
0.05454442277550697,
-0.0005594702670350671,
0.03773830085992813,
0.00938928872346878,
-0.025098485872149467,
-0.02143535390496254,
-0.019211310893297195,
-0.03383364528417587,
0.005952587816864252,
-0.004395253956317902,
0.040616475045681,
-0.006943847052752972,
0.02119382843375206,
0.016655169427394867,
0.002588847419247031,
0.029667334631085396,
-0.006078382022678852,
0.0002025288704317063,
0.032444875687360764,
-0.008055869489908218,
0.01773196831345558,
-0.11891086399555206,
-0.031116485595703125,
0.005539982579648495,
0.035785973072052,
0.0011629685759544373,
-0.06557407230138779,
0.012911530211567879,
-0.04492367058992386,
0.013414707966148853,
-0.09564394503831863,
-0.015095319598913193,
-0.04011329635977745,
-0.0070495144464075565,
0.013273817487061024,
-0.0005009759333916008,
0.02097243070602417,
0.012549242936074734,
0.009177954867482185,
-0.09524140506982803,
0.025641916319727898,
0.05643637105822563,
-0.014672650955617428,
-0.08574141561985016,
-0.0034643758554011583,
-0.003285747952759266,
0.00590226985514164,
-0.04762070253491402,
-0.02358895353972912,
0.033733006566762924,
0.012086319737136364,
-0.01851692609488964,
0.029808225110173225,
0.03747664764523506,
-0.032243601977825165,
0.0396101176738739,
-0.049915190786123276,
-0.03486012667417526,
0.017540762200951576,
0.032142966985702515,
0.06871389597654343,
-0.007396706845611334,
-0.00885592121630907,
-0.016282819211483,
-0.014038647525012493,
-0.03528279438614845,
0.007014291826635599,
-0.003960005473345518,
-0.015538115985691547,
0.053055018186569214,
0.011311426758766174,
-0.04154232144355774,
-0.06368212401866913,
-0.025782806798815727,
-0.01847667060792446,
-0.0229247584939003,
-0.012609624303877354,
-0.006667099427431822,
-0.11343629658222198,
0.06710372865200043,
-0.051283832639455795,
0.003804020583629608,
0.015860149636864662,
-0.015598497353494167,
-0.04548722878098488,
-0.012378162704408169,
0.025380264967679977,
-0.02113344706594944,
0.019754741340875626,
-0.00035725589259527624,
0.033290211111307144,
0.06046178936958313,
-0.0400126613676548,
0.0013610946480184793,
-0.049512650817632675,
-0.014310363680124283,
0.013384517282247543,
0.007683517877012491,
0.029848478734493256,
-0.05993848294019699,
0.04593002796173096,
-0.030854834243655205,
-0.00521794892847538,
-0.03816096857190132,
0.0023762548808008432,
0.018627624958753586,
-0.0007484763045795262,
0.02238132804632187,
-0.02151586301624775,
-0.004199014976620674,
0.033088941127061844,
-0.00018145832291338593,
-0.026547634974122047,
0.01851692609488964,
-0.006063286680728197,
0.04037494957447052,
0.026084713637828827,
-0.029385555535554886,
0.0412202849984169,
0.03781880810856819,
-0.04089825227856636,
-0.05559103190898895,
0.05639611557126045,
0.008035741746425629,
0.014541824348270893,
-0.019150929525494576,
-0.014239918440580368,
0.03824147582054138,
0.0418240986764431,
-0.016876567155122757,
0.015206018462777138,
0.00518775824457407,
-0.00555507792159915,
0.031941697001457214,
-0.009610687382519245,
0.03673194348812103,
-0.029325174167752266,
-0.04194486141204834,
-0.04089825227856636,
-0.009927689097821712,
0.02193853072822094,
0.00033398394589312375,
-0.051042307168245316,
0.04299147054553032,
0.02135484665632248,
0.07414820790290833,
-0.008438283577561378,
0.06815033406019211,
-0.06867364048957825,
0.049150362610816956,
-0.04609104245901108,
0.006621813867241144,
0.033431101590394974,
0.019452836364507675,
0.013626041822135448,
-0.11464392393827438,
0.004146181046962738,
-0.008267203345894814,
-0.019553471356630325,
0.006974037736654282,
0.006355129648000002,
0.003934846725314856,
-0.010395643301308155,
0.04085800051689148,
-0.015336845070123672,
-0.017882922664284706,
-0.013263754546642303,
-0.016333136707544327,
0.049915190786123276,
0.0011151666985824704,
0.0363897830247879,
0.006611749995499849,
-0.02304552122950554,
0.014672650955617428,
-0.02308577671647072,
0.006848243530839682,
-0.03787918761372566,
0.000621109502390027,
-0.01021450012922287,
0.0432329960167408,
0.08308464288711548,
-0.011854858137667179,
0.016091611236333847,
-0.014783349819481373,
0.05454442277550697,
0.007029387168586254,
-0.000919556594453752,
-0.011291299015283585,
0.04170333594083786,
0.023951241746544838,
-0.03594698756933212,
0.029667334631085396,
0.012851148843765259,
-0.07672447711229324,
-0.050519004464149475,
0.003726028138771653,
-0.028016913682222366,
-0.023931114003062248,
-0.00257878378033638,
-0.03347135707736015,
-0.029808225110173225,
-0.002147309249266982,
0.006048191338777542,
0.035001013427972794,
0.003471923526376486,
0.032666273415088654,
0.002104539191350341,
-0.012992038391530514,
-0.0021737259812653065,
-0.04246816784143448,
0.048586804419755936,
0.03290779888629913,
-0.0458495169878006,
0.015095319598913193,
0.03600737079977989,
0.01656459830701351,
0.006969005800783634,
-0.10546597093343735,
-0.0073161981999874115,
-0.025219248607754707,
-0.01016418170183897,
-0.032746780663728714,
0.04017367959022522,
0.09258462488651276,
-0.011351680383086205,
0.0015887824120000005,
0.026446999981999397,
-0.04039507731795311,
-0.014702841639518738,
0.06589610129594803,
0.016544470563530922,
0.04335375875234604,
-0.004012839403003454,
0.0848558247089386,
-0.07346388697624207,
-0.026326237246394157,
-0.003791441209614277,
-0.04174359142780304,
0.008901206776499748,
0.004080768208950758,
-0.014743096195161343,
0.048224516212940216,
-0.014149346388876438,
-0.009696227498352528,
0.012358034960925579,
-0.02093217708170414,
0.013465025462210178,
-0.033330466598272324,
0.05812704563140869,
0.032183222472667694,
0.02075103297829628,
0.013646169565618038,
-0.011281236074864864,
-0.026789160445332527,
-0.00922827236354351,
-0.025742551311850548,
-0.054624930024147034,
0.025340009480714798,
-0.04003278911113739,
0.029224539175629616,
-0.003265620907768607,
0.0213145911693573,
0.02350844442844391,
0.024917341768741608,
-0.05812704563140869,
0.006153858732432127,
0.026306111365556717,
0.0420253686606884,
-0.03836223855614662,
-0.06686220318078995,
-0.004588977433741093,
-0.0015158216701820493,
0.004141149576753378,
-0.04274994507431984,
0.051122818142175674,
-0.012861212715506554,
0.054021116346120834,
-0.051042307168245316,
0.02012709341943264,
0.053940609097480774,
-0.01751057058572769,
-0.00873515848070383,
-0.000352853094227612,
-0.02441416308283806,
0.026104839518666267,
0.025279628112912178,
0.009640878066420555,
0.01098939310759306,
-0.04130079597234726,
0.008015614934265614,
-0.031096359714865685,
-0.04315248876810074,
0.01067742332816124,
0.0723770260810852,
-0.02203916758298874,
-0.02014722116291523,
0.0240317489951849,
-0.013585788197815418,
-0.034336820244789124,
-0.02135484665632248,
-0.02330717444419861,
-0.004035482183098793,
0.024575181305408478,
0.008282299153506756,
0.09121598303318024,
0.09958885610103607,
-0.05699992924928665,
-0.008664713241159916,
0.00885592121630907,
0.04850629344582558,
-0.03705397993326187,
-0.003970069345086813,
0.02093217708170414,
-0.03975100815296173,
-0.004576397594064474,
0.02342793717980385,
-0.0355846993625164,
0.026084713637828827,
-0.014964493922889233,
0.030190639197826385,
-0.02326691895723343,
0.02366946078836918,
0.009837117046117783,
-0.033994659781455994,
-0.009067255072295666,
-0.027594244107604027,
0.047982990741729736,
0.028359074145555496,
-0.05844907835125923,
0.01155295129865408,
0.024373909458518028,
-0.02083154208958149,
0.00923833530396223,
0.03381351754069328,
-0.03584635257720947,
-0.047097399830818176,
0.01003335602581501,
-0.04528595879673958,
-0.031760554760694504,
0.04576900973916054,
0.03592685982584953,
-0.031217120587825775,
0.04572875425219536,
-0.025823060423135757,
-0.005449410527944565,
-0.004126054234802723,
0.0416228286921978,
-0.02071077935397625,
-0.027272211387753487,
-0.03795969858765602,
0.025561409071087837,
0.008478538133203983,
-0.031418390572071075,
0.014139282517135143,
-0.06130712479352951,
0.015548179857432842,
0.054745692759752274,
0.07591939717531204,
0.04266943782567978,
-0.018909404054284096,
0.013948075473308563
] |
721,940
|
apprise.apprise_config
|
__bool__
|
Allows the Apprise object to be wrapped in an 'if statement'.
True is returned if at least one service has been loaded.
|
def __bool__(self):
"""
Allows the Apprise object to be wrapped in an 'if statement'.
True is returned if at least one service has been loaded.
"""
return True if self.configs else False
|
(self)
|
[
0.02674100361764431,
-0.060641296207904816,
0.006583355367183685,
-0.023037312552332878,
0.03887989744544029,
-0.0018983632326126099,
0.00737637048587203,
-0.006849170662462711,
-0.016817238181829453,
0.012165473774075508,
0.0011003640247508883,
0.012050286866724491,
0.005316303111612797,
-0.018500734120607376,
-0.01727798581123352,
-0.04834291711449623,
-0.011633843183517456,
0.008147234097123146,
0.021265212446451187,
-0.08541526645421982,
-0.023267686367034912,
0.027591612190008163,
0.051320046186447144,
-0.0034090792760252953,
0.03471545875072479,
0.04766951873898506,
0.03366991877555847,
-0.006348551716655493,
-0.007859268225729465,
0.05312759056687355,
-0.04788216948509216,
-0.0020855413749814034,
0.051213718950748444,
0.012883174233138561,
0.05082385614514351,
0.039305198937654495,
0.04093553498387337,
0.06801323592662811,
-0.05369466170668602,
0.007859268225729465,
0.002073358278721571,
-0.03586732596158981,
0.023037312552332878,
0.015523605048656464,
-0.043841779232025146,
-0.011704727075994015,
-0.031153535470366478,
0.07747625559568405,
0.016409656032919884,
-0.007389661390334368,
0.04501136764883995,
0.006273237522691488,
-0.007239032536745071,
0.05656546354293823,
-0.04511769115924835,
0.032907914370298386,
0.050398554652929306,
0.0988832339644432,
-0.016267888247966766,
0.012502172961831093,
-0.03017888031899929,
0.002299301093444228,
0.04221144691109657,
-0.044408850371837616,
0.04345191642642021,
0.019280459731817245,
-0.07676741480827332,
0.010331348516047001,
0.018660223111510277,
0.06854486465454102,
-0.042282331734895706,
0.01256419625133276,
-0.04880366101861,
0.020839907228946686,
0.03678881749510765,
-0.053198471665382385,
-0.03063962608575821,
-0.006911193951964378,
0.020201951265335083,
-0.024472715333104134,
-0.007327637635171413,
0.003976151812821627,
-0.017233682796359062,
0.005515664350241423,
0.015798280015587807,
0.015275510959327221,
0.03122442029416561,
0.006990938447415829,
0.04182158410549164,
0.03333321958780289,
-0.010047812946140766,
0.07329409569501877,
0.012519894167780876,
0.0030170020181685686,
0.038844455033540726,
0.038844455033540726,
0.007624464575201273,
-0.017915941774845123,
-0.02805235981941223,
-0.03643439710140228,
-0.031153535470366478,
0.012475591152906418,
0.02174367941915989,
-0.045294903218746185,
0.051213718950748444,
-0.022860102355480194,
-0.05546676367521286,
0.017340008169412613,
0.01816403493285179,
-0.0033824979327619076,
0.004259687848389149,
-0.07031697034835815,
-0.01867794431746006,
0.037745751440525055,
-0.03147251531481743,
-0.05592750757932663,
0.0037169819697737694,
-0.018766550347208977,
-0.04433796927332878,
0.0052542793564498425,
-0.004226461052894592,
0.042530424892902374,
0.01929818093776703,
-0.017233682796359062,
0.07988631725311279,
0.04072288051247597,
-0.016684330999851227,
0.04561388120055199,
0.052631400525569916,
-0.04688979312777519,
0.06181088462471962,
0.00994148664176464,
-0.004120134748518467,
-0.05748695880174637,
-0.0018418774707242846,
-0.0410064160823822,
0.049193523824214935,
0.003650528145954013,
-0.042069677263498306,
0.07570415735244751,
-0.03494583070278168,
0.03414838761091232,
-0.02480941452085972,
0.02684733085334301,
0.0037147668190300465,
0.016365353018045425,
-0.05837300792336464,
0.025376487523317337,
0.006508041173219681,
0.01769442856311798,
0.0638665184378624,
-0.046960677951574326,
-0.044869598001241684,
0.014628694392740726,
-0.10675136744976044,
0.016684330999851227,
-0.014221110381186008,
-0.033740803599357605,
0.03760398551821709,
-0.07350675016641617,
-0.016152700409293175,
0.023143639788031578,
-0.03586732596158981,
-0.004665055777877569,
-0.06003878265619278,
-0.014336297288537025,
-0.058195795863866806,
0.0025163835380226374,
0.04267219081521034,
0.06457535922527313,
-0.002954978495836258,
-0.006162481382489204,
-0.038171056658029556,
0.010074394755065441,
-0.002999281045049429,
0.04894543066620827,
0.010995887219905853,
0.004842265974730253,
-0.0248271357268095,
0.03515848517417908,
0.014478065073490143,
-0.013122407719492912,
-0.0800989642739296,
-0.00848393328487873,
0.05550220236182213,
0.046287279576063156,
0.012741406448185444,
-0.03724956512451172,
0.03980138897895813,
0.07180553674697876,
-0.02055637165904045,
-0.019900694489479065,
0.03958873823285103,
0.01159840077161789,
-0.021513305604457855,
-0.02550053410232067,
-0.006255516782402992,
-0.018660223111510277,
-0.017251404002308846,
-0.01633877120912075,
-0.04281396046280861,
-0.031401630491018295,
-0.020999396219849586,
0.00672512361779809,
0.019705763086676598,
0.03792296350002289,
-0.015621070750057697,
0.016533702611923218,
-0.01899692229926586,
0.014486925676465034,
-0.06383107602596283,
-0.06287414580583572,
-0.042069677263498306,
0.04635816439986229,
0.05227698013186455,
-0.0071282763965427876,
0.08371405303478241,
0.0005529508925974369,
-0.060641296207904816,
0.031454794108867645,
0.041183628141880035,
-0.017995685338974,
0.06758793443441391,
0.021371537819504738,
-0.0566009059548378,
0.06337033212184906,
-0.04657081514596939,
-0.011846495792269707,
-0.008129513822495937,
-0.015018556267023087,
0.016826098784804344,
0.02367527037858963,
-0.007221311796456575,
0.005334023851901293,
0.05599839240312576,
-0.05582118406891823,
0.028105521574616432,
0.054864246398210526,
-0.029115619137883186,
-0.003101176815107465,
0.05794770270586014,
0.02351578138768673,
-0.018199477344751358,
-0.029771296307444572,
-0.012555335648357868,
-0.060074225068092346,
-0.03188009560108185,
0.013148989528417587,
-0.03990771621465683,
-0.01643623784184456,
0.008599120192229748,
-0.017552660778164864,
0.021460143849253654,
-0.03356359526515007,
-0.02039688266813755,
-0.07279790937900543,
-0.013751504011452198,
0.02633342146873474,
0.03926976025104523,
-0.002317022066563368,
0.04387722164392471,
0.024419551715254784,
0.046535372734069824,
0.06340577453374863,
-0.08038250356912613,
0.004392595496028662,
0.05022134259343147,
-0.00112860684748739,
-0.007265614345669746,
0.0201842300593853,
0.09618964046239853,
-0.009897184558212757,
-0.0036704642698168755,
-0.02971813455224037,
0.007026380393654108,
-0.02399424836039543,
0.031047210097312927,
-0.030710510909557343,
-0.026262536644935608,
0.017047611996531487,
0.0651424303650856,
0.03671793267130852,
0.007717499975115061,
0.036505281925201416,
-0.03133074566721916,
-0.09136953204870224,
-0.006937775295227766,
0.0577704943716526,
-0.03714323788881302,
-0.017047611996531487,
0.01727798581123352,
0.033740803599357605,
0.050079576671123505,
-0.01339708361774683,
0.012617358937859535,
-0.0031078222673386335,
0.007336498238146305,
-0.018181756138801575,
-0.008320013992488384,
-0.07035241276025772,
0.043203823268413544,
-0.015523605048656464,
-0.05968436226248741,
-0.009950347244739532,
0.011314865201711655,
0.009897184558212757,
0.0103047676384449,
0.002117660827934742,
0.028743479400873184,
0.029735855758190155,
-0.010916142724454403,
-0.014300854876637459,
0.002549610333517194,
-0.016259027644991875,
0.0009198311599902809,
-0.024171458557248116,
-0.003515405347570777,
-0.02085762843489647,
0.0030723800882697105,
0.045861974358558655,
-0.061102043837308884,
0.05245418846607208,
-0.02805235981941223,
0.015302092768251896,
0.01857161894440651,
-0.03646983951330185,
0.05426173284649849,
-0.0035375566221773624,
-0.039198875427246094,
0.012688243761658669,
-0.052418749779462814,
-0.043948106467723846,
0.057203419506549835,
0.00793458241969347,
0.001065475749783218,
-0.04866189509630203,
0.021725958213210106,
-0.04632272198796272,
-0.006822588853538036,
-0.028938408941030502,
0.03739133104681969,
-0.018447572365403175,
-0.04646448791027069,
0.02690049447119236,
-0.0005496282246895134,
0.02783970721065998,
-0.011456632986664772,
0.008311153389513493,
0.06666643917560577,
-0.04547211155295372,
-0.03561922907829285,
0.007092834450304508,
0.021920889616012573,
0.05706165358424187,
0.05068209022283554,
-0.039730504155159,
-0.028495384380221367,
0.04479871317744255,
0.05823123827576637,
-0.01905008591711521,
0.0642918273806572,
-0.007735221181064844,
-0.06489434093236923,
0.05489968881011009,
-0.06216530501842499,
-0.01482362486422062,
-0.008692155592143536,
-0.002908460795879364,
0.024898018687963486,
-0.07655476778745651,
-0.01613497920334339,
-0.024791693314909935,
-0.010517419315874577,
-0.054297175258398056,
0.061739999800920486,
0.012714824639260769,
0.018536176532506943,
-0.004405886400490999,
-0.0009331219480372965,
0.036292627453804016,
-0.03242944926023483,
0.08250902593135834,
-0.018500734120607376,
-0.011536377482116222,
0.01173130888491869,
-0.013990737497806549,
-0.04540122672915459,
-0.0077706631273031235,
-0.014070481993258,
-0.02980673871934414,
0.038277383893728256,
-0.00665866956114769,
-0.12638624012470245,
0.014354018494486809,
-0.058656543493270874,
-0.03471545875072479,
0.013104687444865704,
0.010517419315874577,
0.021672796458005905,
0.010969305410981178,
0.04972515627741814,
-0.016923565417528152,
0.07301056385040283,
0.015080579556524754,
-0.029540924355387688,
-0.028229570016264915,
0.01602865383028984,
-0.03273070603609085,
-0.010340209119021893,
-0.008661143481731415,
0.00037574078305624425,
-0.026439746841788292,
-0.05971980467438698,
-0.0415380485355854,
-0.05837300792336464,
0.04348735883831978,
0.01919185370206833,
0.04791761189699173,
0.02663467824459076,
0.030940884724259377,
0.018536176532506943,
0.012236357666552067,
0.033102847635746,
0.009914904832839966,
-0.012475591152906418,
0.043416474014520645,
0.005471361801028252,
0.01835896633565426,
0.004306205548346043,
-0.034307874739170074,
-0.012635080143809319,
0.00224946066737175,
-0.018252640962600708,
-0.06003878265619278,
-0.008860505186021328,
-0.023267686367034912,
-0.009015563875436783,
-0.06772970408201218,
-0.0326775424182415,
-0.014398320578038692,
-0.010481977835297585,
-0.0058479332365095615,
-0.03870268538594246,
0.009347832761704922,
-0.00538275670260191,
-0.02496890351176262,
-0.05872742831707001,
0.009985789656639099,
0.059081848710775375,
-0.062200747430324554,
-0.08796709775924683,
-0.0205032080411911,
-0.005444780457764864,
0.013671759516000748,
-0.010411093942821026,
-0.02362210676074028,
-0.018961481750011444,
-0.0011031328467652202,
-0.008395328186452389,
0.019262738525867462,
-0.018084291368722916,
-0.03859636187553406,
-0.08385582268238068,
-0.013255315832793713,
0.04224688932299614,
0.005958689842373133,
-0.004337217193096876,
0.026085326448082924,
-0.03678881749510765,
0.015151463449001312,
0.012138891965150833,
-0.0575578399002552,
0.055537644773721695,
-0.006632088217884302,
0.013671759516000748,
0.01602865383028984,
0.020981676876544952,
0.07371940463781357,
-0.013459106907248497,
-0.0037612845189869404,
-0.07169920951128006,
0.025837233290076256,
-0.040191251784563065,
0.009197204373776913,
-0.013273037038743496,
-0.07109669595956802,
0.0016247951425611973,
-0.04727965593338013,
0.032907914370298386,
-0.0198652520775795,
0.0030037113465368748,
-0.030710510909557343,
0.021867725998163223,
-0.017499497160315514,
0.020201951265335083,
-0.018075430765748024,
0.013494549319148064,
0.01092500239610672,
0.07091948390007019,
0.03437875956296921,
-0.008315583691000938,
-0.0023325278889387846,
-0.022133542224764824,
0.026670120656490326,
0.01660458743572235,
-0.060641296207904816,
-0.07056505978107452,
0.0002220664027845487,
-0.05334024131298065,
0.03366991877555847,
0.007354219444096088,
0.0054757921025156975,
-0.0032030725851655006,
0.033067405223846436,
0.06244884058833122,
-0.012617358937859535,
-0.001701217028312385,
-0.010145278647542,
-0.010038952343165874,
0.00014841345546301454,
0.027981474995613098,
0.003187566762790084,
0.05684899911284447,
-0.004394810646772385,
-0.023905642330646515,
0.00014093740901444107,
0.0245613195002079,
-0.0206095352768898,
-0.020538650453090668,
-0.0017200455768033862,
0.03866724297404289,
-0.02991306595504284,
-0.04724421352148056,
0.00699979905039072,
0.01173130888491869,
0.009684531949460506,
-0.040651995688676834,
-0.007274474482983351,
-0.03117125667631626,
0.0028996001929044724,
0.06670188158750534,
-0.03810017183423042,
0.0490163154900074,
-0.009480740875005722,
-0.007881419733166695,
-0.011102212592959404,
-0.009480740875005722,
-0.011049049906432629,
0.035406578332185745,
-0.029310550540685654,
-0.009817440062761307,
0.026670120656490326,
0.050185900181531906,
-0.033421825617551804,
0.0651424303650856,
-0.01811087317764759,
0.024880297482013702,
-0.011075631715357304,
-0.0026958086527884007,
0.030302926898002625,
0.008253560401499271,
-0.018181756138801575,
-0.033793967217206955,
0.0328901931643486,
-0.03404206037521362,
-0.046641699969768524,
0.004521072842180729,
-0.01821719855070114,
0.02971813455224037,
-0.00438373489305377,
0.04525946080684662,
-0.06907650083303452,
-0.055962949991226196,
0.015541326254606247,
0.0058479332365095615,
0.054297175258398056,
0.036647047847509384,
0.013370501808822155,
-0.04483415558934212,
-0.028176406398415565,
-0.025004345923662186,
-0.06666643917560577,
-0.020290557295084,
-0.05401363968849182,
-0.008550387807190418,
-0.04479871317744255,
-0.012085729278624058,
0.05348200723528862,
0.0030590894166380167,
-0.022505683824419975,
-0.01846529357135296,
0.06673732399940491,
0.01805770955979824,
-0.028123242780566216,
0.021088002249598503,
0.004899859428405762,
0.050398554652929306,
-0.05050487816333771,
0.04572020471096039,
0.01323759462684393,
-0.03616858273744583,
0.00032728491351008415,
0.010730071924626827,
-0.07077771425247192,
0.0162324458360672,
-0.00620235363021493,
-0.07226628065109253,
0.008386468514800072,
-0.059081848710775375,
-0.041325394064188004,
0.025004345923662186,
-0.013654038310050964,
0.020272836089134216,
0.030090276151895523,
0.04238865524530411,
-0.008125083521008492,
-0.0034489515237510204,
0.020893070846796036,
0.020290557295084,
0.011181957088410854,
0.044763270765542984,
0.06393740326166153,
0.001940450631082058,
0.007309916894882917,
-0.06875751912593842,
-0.036647047847509384,
0.017658986151218414,
-0.03746221587061882,
0.005728316493332386,
-0.01225407887250185,
0.08144576102495193,
0.00925922766327858,
0.06900561600923538,
-0.053978197276592255,
0.00481125432997942,
-0.014026179909706116,
0.028371337801218033,
0.03007255494594574,
0.041077300906181335,
-0.025465091690421104,
0.023125918582081795,
-0.04543666914105415,
0.014938811771571636,
0.012971779331564903,
0.005015045870095491,
-0.02082218788564205,
-0.0159134678542614,
0.0004715450049843639,
0.07542061805725098,
-0.04199879243969917,
-0.05915273353457451,
0.016303328797221184,
-0.012023705057799816,
0.041431721299886703,
-0.015151463449001312,
-0.007070682942867279,
0.026670120656490326,
0.03574327751994133,
-0.030302926898002625,
-0.03671793267130852,
-0.047634076327085495,
0.00004419869219418615,
-0.03560150787234306,
-0.01873110793530941,
0.06340577453374863,
-0.01805770955979824,
-0.0033093986567109823,
-0.008612411096692085,
-0.026971377432346344,
0.026829609647393227,
0.027378961443901062,
0.04433796927332878,
0.011022468097507954,
0.009560485370457172,
0.028708036988973618,
-0.029044736176729202,
-0.06868663430213928,
-0.03820649906992912,
0.008160525001585484,
-0.02918650396168232,
-0.040403902530670166,
0.011988263577222824,
-0.009059866890311241,
0.04323926568031311,
-0.030373811721801758,
0.003867610590532422,
0.0201310683041811,
-0.040084924548864365,
0.007119415793567896,
-0.03600909188389778,
-0.07457000762224197,
-0.04465694725513458,
0.03616858273744583,
0.08279255777597427,
0.06758793443441391,
-0.028105521574616432,
-0.044621504843235016,
-0.0004643458523787558,
-0.03802928701043129,
0.035140763968229294,
0.0637601912021637,
-0.004766951780766249,
-0.041077300906181335,
0.018119733780622482,
-0.0566009059548378,
0.02262973040342331,
-0.003404649207368493,
-0.03147251531481743,
0.029204225167632103,
0.009649090468883514,
0.007810535375028849,
0.10136418044567108,
0.05826668068766594,
-0.06340577453374863,
0.026032164692878723,
-0.044621504843235016,
-0.010038952343165874,
0.0027489718049764633,
0.056211043149232864,
-0.006751704961061478,
-0.030604185536503792,
-0.006047294940799475,
-0.0048156846314668655,
-0.05518322438001633,
0.03845459222793579,
0.00462961383163929,
-0.0079833148047328,
-0.03569011390209198,
-0.006330830976366997,
0.03810017183423042,
-0.008807342499494553,
-0.050646647810935974,
-0.05373010411858559,
0.09555168449878693,
0.01144777238368988,
-0.0020700355526059866,
0.0285662692040205,
0.0357787199318409,
-0.01977664791047573,
-0.02335629239678383,
0.09682759642601013,
-0.04323926568031311,
0.04979603737592697,
-0.005781479645520449,
-0.01586916483938694,
-0.0006717370706610382,
0.02633342146873474,
0.004735940136015415,
-0.010721211321651936,
0.04416075721383095,
0.0001488287962274626,
0.01503627747297287,
0.03253577649593353,
-0.012236357666552067,
0.014743880368769169,
0.018589340150356293,
-0.07563327252864838,
0.01738431118428707,
0.013645177707076073,
-0.008492793887853622,
-0.002077788347378373,
0.0043726591393351555,
-0.029540924355387688,
0.037072353065013885,
0.0566009059548378,
0.03069278970360756,
-0.010703490115702152,
0.02674100361764431
] |
721,941
|
apprise.apprise_config
|
__getitem__
|
Returns the indexed config entry of a loaded apprise configuration
|
def __getitem__(self, index):
"""
Returns the indexed config entry of a loaded apprise configuration
"""
return self.configs[index]
|
(self, index)
|
[
0.031242303550243378,
-0.07074125111103058,
-0.049644824117422104,
-0.021831128746271133,
0.035335641354322433,
0.027831191197037697,
0.0009391495841555297,
-0.024210162460803986,
0.04495673254132271,
-0.005519007332623005,
-0.03542310371994972,
-0.006634179037064314,
-0.0024336986243724823,
0.01154530793428421,
0.007180831860750914,
-0.0209214985370636,
0.017519131302833557,
0.044991716742515564,
0.018892323598265648,
-0.004766813013702631,
-0.011177957989275455,
-0.03136475384235382,
0.033358942717313766,
-0.008593383245170116,
-0.011790208518505096,
0.03187204897403717,
0.053703177720308304,
-0.026851588860154152,
0.05510260909795761,
-0.058356285095214844,
-0.06661292910575867,
-0.04299752786755562,
0.01714303344488144,
0.04768562316894531,
0.0014519100077450275,
-0.00595632940530777,
-0.0009047104977071285,
0.0072464304976165295,
0.002470870967954397,
0.04674100503325462,
0.0026064408011734486,
-0.04173804074525833,
0.04530658945441246,
-0.06909692287445068,
-0.006083153188228607,
0.06423389911651611,
-0.026449251919984818,
0.05618716776371002,
-0.01045200228691101,
0.003354261862114072,
-0.002291568787768483,
0.015603658743202686,
-0.01448411401361227,
0.034670911729335785,
-0.05177895724773407,
0.021078934893012047,
0.005339704919606447,
0.07647892087697983,
0.036700084805488586,
0.02889825589954853,
-0.010854339227080345,
-0.041423168033361435,
0.04443194344639778,
0.002082747407257557,
0.03792458772659302,
-0.026519224047660828,
-0.035038262605667114,
0.02373785339295864,
0.012472431175410748,
-0.026099393144249916,
0.03739980235695839,
-0.009708554483950138,
-0.034373532980680466,
-0.03900914639234543,
0.005790146999061108,
-0.04632117599248886,
-0.04313747212290764,
0.02613437920808792,
0.03477586805820465,
0.03180207684636116,
-0.022180985659360886,
0.03064754605293274,
-0.027288910001516342,
0.02795363962650299,
0.0025495889130979776,
-0.009052570909261703,
0.03556304797530174,
-0.03425108268857002,
-0.019329644739627838,
0.01981944590806961,
0.011134225875139236,
0.0665079727768898,
-0.0024664977099746466,
0.032344356179237366,
-0.0006516102002933621,
-0.011344140395522118,
0.02382531762123108,
-0.024647483602166176,
0.020501669496297836,
-0.025364693254232407,
-0.010189609602093697,
-0.0028797672130167484,
-0.015262547880411148,
-0.03991877660155296,
-0.03806453198194504,
-0.026116887107491493,
-0.02170867845416069,
0.03963889181613922,
-0.026344293728470802,
0.02076406218111515,
0.004985474050045013,
0.0005630524246953428,
-0.07133600860834122,
0.003656014334410429,
-0.0073732538148760796,
0.029650451615452766,
0.003750038566067815,
-0.017405426129698753,
0.01727423071861267,
0.014720268547534943,
0.0016651046462357044,
0.024210162460803986,
-0.034898318350315094,
0.03935900703072548,
0.042087897658348083,
0.06021053344011307,
-0.046076275408267975,
0.0047493199817836285,
0.03876424580812454,
-0.04352231323719025,
0.05734169855713844,
-0.011877673678100109,
-0.05793645605444908,
-0.05349326133728027,
0.051953889429569244,
-0.032344356179237366,
0.0715809091925621,
-0.042157869786024094,
-0.09257238358259201,
0.07053133845329285,
-0.00921875424683094,
0.02758629061281681,
-0.0008002998074516654,
0.03549307584762573,
-0.016102205961942673,
-0.0394989475607872,
-0.041143279522657394,
0.02578452229499817,
0.026396773755550385,
0.01735294796526432,
0.019731981679797173,
0.023982753977179527,
-0.03253677859902382,
-0.0008872175822034478,
-0.04205290973186493,
-0.012909754179418087,
-0.04516664519906044,
0.002361540449783206,
0.020589133724570274,
-0.07032142579555511,
-0.030962418764829636,
-0.00498984707519412,
0.009122543036937714,
-0.012288756668567657,
-0.0972604751586914,
0.012323741801083088,
-0.0398138202726841,
-0.01045200228691101,
-0.006962170824408531,
0.02518976293504238,
-0.02309061586856842,
-0.04163308069109917,
-0.08690468221902847,
-0.004495672881603241,
-0.021306341513991356,
0.03799455985426903,
-0.032851651310920715,
0.04282259941101074,
0.05622215196490288,
-0.027691246941685677,
-0.03911410644650459,
0.01859494298696518,
-0.08095709979534149,
-0.010618184693157673,
0.003035016590729356,
0.07465966045856476,
-0.004445380996912718,
0.03579045459628105,
0.056082211434841156,
0.06014056131243706,
0.03367381542921066,
-0.03164464235305786,
0.003083122195675969,
-0.02200605720281601,
-0.029423043131828308,
-0.01140536554157734,
-0.03194202110171318,
0.03542310371994972,
-0.02657170221209526,
0.043172456324100494,
-0.0195920392870903,
-0.02744634635746479,
-0.01521006878465414,
0.020571639761328697,
0.000008238229384005535,
0.0005400929949246347,
0.04775559529662132,
-0.02809358388185501,
-0.0729103684425354,
0.0512891560792923,
-0.05744665488600731,
-0.014912690035998821,
0.014344170689582825,
-0.00875081866979599,
0.054787736386060715,
-0.0641639232635498,
-0.007211444433778524,
-0.014169242233037949,
0.012262516655027866,
0.021813634783029556,
0.06091024726629257,
-0.00630181422457099,
0.09474150091409683,
-0.0037150527350604534,
-0.006398024968802929,
-0.020344233140349388,
-0.02438509091734886,
-0.04394214227795601,
-0.01386311650276184,
0.025032328441739082,
0.017834002152085304,
0.0027769964653998613,
0.07368005812168121,
-0.006984036881476641,
0.11027518659830093,
0.017317961901426315,
0.014562832191586494,
0.027393868193030357,
0.00879017822444439,
0.0601055733859539,
0.021883606910705566,
0.06748757511377335,
-0.008090462535619736,
-0.0023068750742822886,
-0.03302657976746559,
0.009419921785593033,
0.004898009821772575,
0.026466744020581245,
-0.026116887107491493,
-0.03064754605293274,
0.05786648392677307,
0.012691092677414417,
0.008973853662610054,
0.029720421880483627,
0.007469464559108019,
-0.048175424337387085,
-0.043032512068748474,
0.005339704919606447,
0.02127135545015335,
-0.0466010645031929,
-0.004688094835728407,
-0.00925373937934637,
0.039324019104242325,
0.030612559989094734,
-0.07105612754821777,
0.0364551842212677,
0.05324836075305939,
0.04649610444903374,
0.03753974661231041,
0.05611719563603401,
0.0945315882563591,
0.08865397423505783,
-0.019434602931141853,
-0.007779963314533234,
0.016163431107997894,
-0.0043907156214118,
0.03530065342783928,
0.007591914851218462,
-0.0156911239027977,
0.039393991231918335,
0.0009823351865634322,
0.02113141305744648,
-0.033149030059576035,
0.05016961321234703,
-0.001513135153800249,
-0.07451971620321274,
-0.00033619150053709745,
0.03173210471868515,
-0.02345796674489975,
0.0270090252161026,
0.047300778329372406,
-0.0008440320380032063,
-0.009865990839898586,
-0.03244931250810623,
0.034303560853004456,
-0.00921875424683094,
-0.06297440826892853,
0.031487204134464264,
0.009927215985953808,
0.006192483473569155,
0.005930090323090553,
-0.049190010875463486,
-0.07486957311630249,
0.01720425859093666,
0.015883546322584152,
0.04271763935685158,
0.014772746711969376,
0.02874082140624523,
0.015332519076764584,
0.0214287918061018,
-0.004583137575536966,
-0.022320929914712906,
0.03486333414912224,
0.07521943002939224,
-0.058916058391332626,
-0.037784647196531296,
-0.05359821766614914,
0.045936331152915955,
0.03236185014247894,
0.05482272058725357,
-0.07046137005090714,
0.07654889672994614,
-0.03237934038043022,
-0.04943491145968437,
0.07668883353471756,
-0.003450472839176655,
0.006013181526213884,
-0.003892168402671814,
-0.04950488358736038,
0.021393805742263794,
-0.05443787947297096,
-0.03374378755688667,
-0.006030674558132887,
0.006590446922928095,
0.004723080899566412,
-0.009568612091243267,
0.002339674159884453,
0.01208758819848299,
-0.02672913856804371,
-0.068222276866436,
0.0261518731713295,
-0.058391273021698,
-0.03753974661231041,
0.009454907849431038,
0.014903943985700607,
-0.011956390924751759,
0.025014834478497505,
-0.006935931276530027,
-0.018489986658096313,
-0.04177302494645119,
-0.0005206868518143892,
-0.03064754605293274,
-0.0005581325967796147,
0.038169488310813904,
0.00515602994710207,
-0.01850747875869274,
-0.028408456593751907,
-0.05531252175569534,
-0.0004028831608593464,
0.003758785082027316,
0.01990691013634205,
-0.017877735197544098,
-0.0533183328807354,
0.007762470748275518,
-0.04786055162549019,
0.010688156820833683,
-0.05569736659526825,
-0.0004110829613637179,
0.0624496228992939,
-0.07270045578479767,
-0.037714675068855286,
0.010530720464885235,
0.002820728812366724,
-0.0039971256628632545,
0.06552837044000626,
-0.05219878628849983,
-0.02382531762123108,
0.04037359356880188,
-0.0796276405453682,
-0.00795051921159029,
-0.024455063045024872,
0.056397080421447754,
0.0073338947258889675,
0.03556304797530174,
-0.022041043266654015,
-0.0425427109003067,
-0.05170898884534836,
-0.028863271698355675,
0.008637115359306335,
0.021236369386315346,
-0.023562924936413765,
-0.015857305377721786,
-0.099919393658638,
0.055802322924137115,
-0.05615217983722687,
-0.02947552129626274,
0.022828223183751106,
0.007521943189203739,
-0.00040506976074539125,
-0.004427887964993715,
0.041423168033361435,
-0.0043098111636936665,
0.02272326685488224,
0.04093336686491966,
0.02090400457382202,
-0.03774965927004814,
0.05118419975042343,
0.054262951016426086,
-0.027271417900919914,
-0.03136475384235382,
0.026029422879219055,
0.029720421880483627,
-0.01995938830077648,
-0.053633205592632294,
-0.0195920392870903,
0.0010626931907609105,
0.013145907782018185,
0.042297810316085815,
-0.018350042402744293,
0.047020893543958664,
0.009341203607618809,
-0.03463592380285263,
0.033446408808231354,
-0.005895104259252548,
0.006336799822747707,
0.022268451750278473,
0.006231842562556267,
0.018997279927134514,
-0.07277043163776398,
-0.008068596012890339,
-0.05888107419013977,
-0.033656321465969086,
0.007285789120942354,
-0.01945209503173828,
0.002647986402735114,
-0.04656607657670975,
0.009183768182992935,
-0.07409989088773727,
-0.010023427195847034,
0.01306718960404396,
0.05237371847033501,
0.03297410160303116,
0.025504635646939278,
0.013644455000758171,
-0.0007237683748826385,
-0.01633836142718792,
-0.07878798246383667,
-0.004963607992976904,
0.06209976598620415,
-0.07584917545318604,
-0.07885795831680298,
-0.039463963359594345,
0.020431697368621826,
0.00018340203678235412,
0.04394214227795601,
-0.05811138451099396,
-0.06101520359516144,
-0.010049666278064251,
0.031557176262140274,
0.03166213259100914,
-0.00486302375793457,
-0.025732044130563736,
-0.0015098551521077752,
-0.08725453913211823,
0.04320744052529335,
0.0011282914783805609,
0.0017175832763314247,
0.049050066620111465,
-0.028198540210723877,
-0.003815636970102787,
-0.01380189135670662,
0.006813481450080872,
-0.04404710233211517,
-0.061400048434734344,
-0.03094492480158806,
0.0031421605963259935,
0.03187204897403717,
0.051219187676906586,
-0.007784336805343628,
-0.02281073108315468,
-0.033219002187252045,
-0.0384843610227108,
-0.00921875424683094,
0.040268637239933014,
-0.029213128611445427,
-0.07794832438230515,
0.017055569216609,
-0.024734947830438614,
-0.003457032609730959,
-0.028408456593751907,
0.015376251190900803,
-0.003354261862114072,
0.007001529913395643,
0.034670911729335785,
0.0594058595597744,
-0.0028229153249412775,
0.017877735197544098,
0.022058535367250443,
0.06461874395608902,
0.022425886243581772,
0.012787303887307644,
-0.022670786827802658,
0.01423046737909317,
-0.02382531762123108,
-0.00486302375793457,
-0.03251928463578224,
-0.04733576253056526,
0.02120138518512249,
-0.027201445773243904,
-0.06101520359516144,
-0.00008801111107459292,
0.018140127882361412,
-0.01056570652872324,
-0.009052570909261703,
0.05226875841617584,
0.008042356930673122,
-0.012227531522512436,
0.01031205989420414,
0.009481146931648254,
0.06706774234771729,
0.030682532116770744,
-0.035685498267412186,
0.029213128611445427,
0.005698309279978275,
0.002921312814578414,
0.0007204884896054864,
0.018052663654088974,
-0.04674100503325462,
-0.07144097238779068,
0.09551119059324265,
-0.01525380089879036,
-0.00009368263272335753,
-0.010434510186314583,
0.040338609367609024,
-0.0003432979865465313,
0.02426264062523842,
-0.02302064560353756,
0.012533656321465969,
0.013382062315940857,
0.05548745021224022,
0.011134225875139236,
-0.06748757511377335,
0.06188984960317612,
-0.051009271293878555,
0.006726016756147146,
-0.03897416219115257,
-0.057901471853256226,
-0.014930183067917824,
0.022460872307419777,
-0.039603907614946365,
0.006249335594475269,
0.0026567329186946154,
0.06948176771402359,
-0.027568796649575233,
0.041143279522657394,
-0.029807887971401215,
-0.004123948980122805,
-0.06290443986654282,
0.007941773161292076,
0.040268637239933014,
0.02853090688586235,
-0.014046791940927505,
-0.00997969415038824,
0.050064656883478165,
0.0025605219416320324,
0.017466651275753975,
-0.05009964108467102,
-0.004215786699205637,
-0.008930121548473835,
-0.03781963139772415,
0.028443440794944763,
-0.04967981204390526,
-0.004915502388030291,
0.03579045459628105,
-0.02867084927856922,
0.04845530912280083,
0.04908505454659462,
0.013005964457988739,
-0.0003771904739551246,
-0.04219285398721695,
0.015043886378407478,
0.01727423071861267,
0.06007058918476105,
-0.024367596954107285,
-0.0056283376179635525,
0.0053878105245530605,
0.030367659404873848,
0.03447848930954933,
-0.009078810922801495,
-0.024210162460803986,
-0.011125478893518448,
0.010600692592561245,
-0.015621151775121689,
0.008650234900414944,
0.06230967864394188,
-0.001579826814122498,
-0.007766843773424625,
-0.04495673254132271,
0.016871893778443336,
0.002146159065887332,
-0.0489451102912426,
-0.0391840785741806,
0.02811107598245144,
-0.04642613232135773,
0.018542464822530746,
-0.004714334383606911,
-0.001686970703303814,
-0.03500327467918396,
-0.002595507772639394,
-0.01997688226401806,
0.006914065219461918,
-0.025609593838453293,
-0.020938990637660027,
0.006188110448420048,
0.02134132757782936,
-0.0322393998503685,
0.014204228296875954,
0.040688466280698776,
0.03440851718187332,
0.019504573196172714,
0.019574545323848724,
0.06598318368196487,
-0.01626838929951191,
0.012437446042895317,
-0.07200074195861816,
-0.03928903490304947,
0.030472617596387863,
-0.022408394142985344,
0.0010222408454865217,
0.010950550436973572,
0.07193076610565186,
0.002304688561707735,
0.056537024676799774,
-0.03440851718187332,
-0.03806453198194504,
-0.004972354508936405,
0.046880949288606644,
-0.02337050251662731,
-0.012481178157031536,
0.05443787947297096,
0.03064754605293274,
-0.03767968714237213,
0.011414111591875553,
-0.0024490049108862877,
0.025434663519263268,
0.0051035513170063496,
-0.010285819880664349,
-0.004911129362881184,
0.042087897658348083,
0.0016323054442182183,
-0.021026454865932465,
-0.010425763204693794,
-0.05814637243747711,
0.052898503839969635,
-0.028933241963386536,
0.002545215655118227,
0.034968290477991104,
0.027848683297634125,
-0.06017554551362991,
-0.019259672611951828,
-0.04086339473724365,
0.0014223906910046935,
-0.08963357657194138,
-0.07990752905607224,
0.06206477805972099,
-0.03827444836497307,
-0.033358942717313766,
0.02120138518512249,
0.0016038795001804829,
0.03566800430417061,
0.056886881589889526,
-0.025452157482504845,
-0.0001835386938182637,
0.030682532116770744,
0.04509667307138443,
-0.06077030673623085,
-0.026046914979815483,
0.007762470748275518,
0.043382368981838226,
-0.0137581592425704,
-0.013714427128434181,
0.016522036865353584,
0.008873268961906433,
0.07864803820848465,
-0.026029422879219055,
0.03697997331619263,
0.03579045459628105,
-0.038099516183137894,
0.049714796245098114,
0.0013895916054025292,
-0.04401211440563202,
-0.030402645468711853,
0.012612374499440193,
0.04110829532146454,
0.0021385059226304293,
-0.0570618137717247,
0.011274168267846107,
-0.030682532116770744,
-0.04394214227795601,
0.027498824521899223,
0.05443787947297096,
0.009175021201372147,
0.007928652688860893,
-0.030682532116770744,
0.002103520091623068,
-0.01452784612774849,
-0.0009566424996592104,
-0.026116887107491493,
-0.05489269271492958,
-0.007456345017999411,
0.026519224047660828,
0.09166274964809418,
0.07514946162700653,
-0.03624527156352997,
0.040198665112257004,
0.04089837893843651,
-0.03718988597393036,
0.012306248769164085,
-0.04138818010687828,
0.03624527156352997,
-0.05730671063065529,
-0.02244338020682335,
0.002735450863838196,
0.02200605720281601,
0.0435573011636734,
-0.002354980446398258,
-0.0017361694481223822,
-0.02774372510612011,
-0.04233279824256897,
0.07416985929012299,
-0.011326647363603115,
-0.09761033207178116,
-0.034740883857011795,
0.03085746057331562,
0.016863146796822548,
-0.010145877487957478,
0.03014025278389454,
0.0029737914446741343,
0.026099393144249916,
0.003699746448546648,
0.032641734927892685,
0.03374378755688667,
-0.04950488358736038,
0.026746630668640137,
-0.01960953138768673,
-0.018245086073875427,
0.014790239743888378,
0.017090555280447006,
-0.018787365406751633,
0.04684596508741379,
0.03260675072669983,
0.05744665488600731,
-0.0043907156214118,
0.04873519390821457,
-0.03827444836497307,
-0.04394214227795601,
0.011527815833687782,
-0.007150219287723303,
0.003373941406607628,
0.014466620981693268,
0.00871583353728056,
-0.010618184693157673,
-0.060875263065099716,
0.05030955746769905,
0.024927370250225067,
0.0004958141362294555,
-0.012306248769164085,
-0.021673692390322685
] |
721,942
|
apprise.apprise_config
|
__init__
|
Loads all of the paths specified (if any).
The path can either be a single string identifying one explicit
location, otherwise you can pass in a series of locations to scan
via a list.
If no path is specified then a default list is used.
By default we cache our responses so that subsiquent calls does not
cause the content to be retrieved again. Setting this to False does
mean more then one call can be made to retrieve the (same) data. This
method can be somewhat inefficient if disabled and you're set up to
make remote calls. Only disable caching if you understand the
consequences.
You can alternatively set the cache value to an int identifying the
number of seconds the previously retrieved can exist for before it
should be considered expired.
It's also worth nothing that the cache value is only set to elements
that are not already of subclass ConfigBase()
recursion defines how deep we recursively handle entries that use the
`import` keyword. This keyword requires us to fetch more configuration
from another source and add it to our existing compilation. If the
file we remotely retrieve also has an `import` reference, we will only
advance through it if recursion is set to 2 deep. If set to zero
it is off. There is no limit to how high you set this value. It would
be recommended to keep it low if you do intend to use it.
insecure includes by default are disabled. When set to True, all
Apprise Config files marked to be in STRICT mode are treated as being
in ALWAYS mode.
Take a file:// based configuration for example, only a file:// based
configuration can import another file:// based one. because it is set
to STRICT mode. If an http:// based configuration file attempted to
import a file:// one it woul fail. However this import would be
possible if insecure_includes is set to True.
There are cases where a self hosting apprise developer may wish to load
configuration from memory (in a string format) that contains import
entries (even file:// based ones). In these circumstances if you want
these includes to be honored, this value must be set to True.
|
def __init__(self, paths=None, asset=None, cache=True, recursion=0,
insecure_includes=False, **kwargs):
"""
Loads all of the paths specified (if any).
The path can either be a single string identifying one explicit
location, otherwise you can pass in a series of locations to scan
via a list.
If no path is specified then a default list is used.
By default we cache our responses so that subsiquent calls does not
cause the content to be retrieved again. Setting this to False does
mean more then one call can be made to retrieve the (same) data. This
method can be somewhat inefficient if disabled and you're set up to
make remote calls. Only disable caching if you understand the
consequences.
You can alternatively set the cache value to an int identifying the
number of seconds the previously retrieved can exist for before it
should be considered expired.
It's also worth nothing that the cache value is only set to elements
that are not already of subclass ConfigBase()
recursion defines how deep we recursively handle entries that use the
`import` keyword. This keyword requires us to fetch more configuration
from another source and add it to our existing compilation. If the
file we remotely retrieve also has an `import` reference, we will only
advance through it if recursion is set to 2 deep. If set to zero
it is off. There is no limit to how high you set this value. It would
be recommended to keep it low if you do intend to use it.
insecure includes by default are disabled. When set to True, all
Apprise Config files marked to be in STRICT mode are treated as being
in ALWAYS mode.
Take a file:// based configuration for example, only a file:// based
configuration can import another file:// based one. because it is set
to STRICT mode. If an http:// based configuration file attempted to
import a file:// one it woul fail. However this import would be
possible if insecure_includes is set to True.
There are cases where a self hosting apprise developer may wish to load
configuration from memory (in a string format) that contains import
entries (even file:// based ones). In these circumstances if you want
these includes to be honored, this value must be set to True.
"""
# Initialize a server list of URLs
self.configs = list()
# Prepare our Asset Object
self.asset = \
asset if isinstance(asset, AppriseAsset) else AppriseAsset()
# Set our cache flag
self.cache = cache
# Initialize our recursion value
self.recursion = recursion
# Initialize our insecure_includes flag
self.insecure_includes = insecure_includes
if paths is not None:
# Store our path(s)
self.add(paths)
return
|
(self, paths=None, asset=None, cache=True, recursion=0, insecure_includes=False, **kwargs)
|
[
-0.008447043597698212,
-0.0971859022974968,
-0.0242964755743742,
0.012384585104882717,
-0.00964295957237482,
0.010380362160503864,
-0.005223269574344158,
0.009898214600980282,
-0.05566445738077164,
-0.003840639488771558,
0.00897173397243023,
0.055702272802591324,
-0.029949897900223732,
0.021290142089128494,
-0.0242964755743742,
-0.0303280521184206,
0.025487665086984634,
0.041067663580179214,
-0.018038006499409676,
-0.0669713020324707,
-0.006698075216263533,
0.00015953424735926092,
-0.0015563452616333961,
0.0485929511487484,
0.01402956061065197,
0.03843948245048523,
0.02972300350666046,
0.007548924535512924,
0.015315288677811623,
-0.02087417058646679,
-0.02319982647895813,
0.05702581629157066,
-0.012479123659431934,
-0.0001995655329665169,
0.048971109092235565,
-0.02618725225329399,
0.014984402805566788,
0.04889547824859619,
-0.09476570785045624,
0.031670503318309784,
0.01450225431472063,
-0.03170831874012947,
0.04337440803647041,
-0.04556770995259285,
0.0066697136498987675,
0.05914348363876343,
-0.019049571827054024,
0.037361741065979004,
-0.01877540908753872,
-0.05158038064837456,
0.023502349853515625,
0.05188290402293205,
-0.005818864330649376,
0.020458200946450233,
-0.028153659775853157,
0.07600920647382736,
0.0007208584574982524,
0.11329531669616699,
0.0039469958283007145,
0.004405508749186993,
-0.03749409317970276,
-0.021970821544528008,
0.051618196070194244,
0.02253805473446846,
0.00009269235306419432,
0.013320519588887691,
-0.10111872106790543,
0.000904027430806309,
0.011202849447727203,
0.024580093100667,
0.017612582072615623,
0.0029567014425992966,
-0.04227776080369949,
-0.03993319720029831,
0.06099644675850868,
-0.03331547975540161,
-0.018302714452147484,
-0.0058992221020162106,
0.0004918972845189273,
-0.003516844008117914,
-0.008328869938850403,
-0.005582517012953758,
-0.02308637835085392,
-0.03859074413776398,
0.048025719821453094,
-0.010673432610929012,
0.007851448841392994,
-0.05566445738077164,
0.021611573174595833,
0.04987867921590805,
-0.05313081666827202,
0.05657202750444412,
0.00033561279997229576,
0.003150506177917123,
0.008116157725453377,
0.020250214263796806,
-0.0015528000658378005,
-0.026697762310504913,
0.034166328608989716,
-0.028248198330402374,
-0.017688212916254997,
-0.03894999250769615,
-0.05256358161568642,
-0.06746289879083633,
0.0117889903485775,
-0.07010998576879501,
-0.01096650306135416,
0.016657739877700806,
0.0037886430509388447,
-0.01825544610619545,
-0.03475246950984001,
-0.0006298648659139872,
-0.012006429955363274,
0.003911543637514114,
-0.015910882502794266,
0.009869852103292942,
-0.046097125858068466,
-0.025601111352443695,
0.0391012541949749,
-0.004393691662698984,
-0.030025528743863106,
0.0595216378569603,
-0.002190937055274844,
0.08833707123994827,
0.07196294516324997,
0.04870639741420746,
-0.02159266546368599,
-0.006130842491984367,
0.016081053763628006,
-0.028304921463131905,
0.0735890120267868,
0.0033277664333581924,
-0.0034057609736919403,
-0.035603318363428116,
0.03227555379271507,
-0.04227776080369949,
-0.004793118219822645,
0.00028597991331480443,
-0.04855513572692871,
0.05093751475214958,
-0.005918129812926054,
0.008834652602672577,
0.00945860892534256,
0.00584249896928668,
-0.0065231784246861935,
-0.021951913833618164,
0.008172880858182907,
-0.03978193551301956,
-0.022292252629995346,
0.0359436571598053,
0.03569785878062248,
-0.029193587601184845,
-0.04624839127063751,
0.03809914365410805,
-0.026773393154144287,
-0.00709513807669282,
-0.06413513422012329,
0.059408191591501236,
0.003346674144268036,
-0.03148142620921135,
-0.05301737040281296,
0.016799548640847206,
0.01584470644593239,
-0.01917247287929058,
-0.06663095951080322,
-0.02352125756442547,
-0.0477231964468956,
-0.02843727543950081,
-0.010720701888203621,
0.0362272746860981,
-0.026149436831474304,
-0.02093089371919632,
-0.024996062740683556,
0.004062805790454149,
-0.02800239808857441,
0.017830021679401398,
-0.004972741939127445,
-0.0008691662806086242,
-0.0045165917836129665,
0.031954120844602585,
-0.02696247026324272,
-0.023672519251704216,
-0.02541203424334526,
0.016317399218678474,
0.03486591577529907,
0.05335770919919014,
0.02794567495584488,
-0.001891958061605692,
0.056647658348083496,
0.06568557024002075,
-0.00904263835400343,
0.018983393907546997,
0.02115778811275959,
-0.020647278055548668,
-0.0144455311819911,
-0.026546500623226166,
-0.004017899744212627,
-0.027756595984101295,
-0.009529512375593185,
0.05014338716864586,
-0.08924464136362076,
-0.013585228472948074,
0.018822679296135902,
-0.05158038064837456,
0.05381149426102638,
0.007879810407757759,
-0.011874075047671795,
-0.02276494726538658,
-0.00135308678727597,
0.09839600324630737,
-0.0595216378569603,
0.01276274025440216,
-0.0042329756543040276,
-0.035603318363428116,
-0.0014216274721547961,
-0.005951218772679567,
-0.013282704167068005,
0.04711814597249031,
0.001773784519173205,
0.010125107131898403,
0.05407620221376419,
0.040462613105773926,
0.0019758613780140877,
-0.019701888784766197,
-0.044168535619974136,
0.013027449138462543,
-0.011599913239479065,
0.00146062474232167,
-0.013017995283007622,
0.03849620744585991,
-0.0122900465503335,
-0.014020106755197048,
0.056420765817165375,
-0.008182334713637829,
0.06973183155059814,
-0.005261084996163845,
0.02860744670033455,
0.05218542739748955,
0.011136672459542751,
0.015400373376905918,
0.02679230086505413,
0.025487665086984634,
-0.006631898228079081,
-0.07487474381923676,
-0.033504556864500046,
-0.021063247695565224,
-0.05456780642271042,
-0.004117165692150593,
-0.0288910623639822,
-0.029363756999373436,
0.01856742426753044,
0.0367945060133934,
-0.019191380590200424,
-0.017026441171765327,
-0.006301012355834246,
-0.018841587007045746,
0.004679671488702297,
-0.019011756405234337,
0.03146251663565636,
-0.029912082478404045,
0.039025623351335526,
-0.06651750952005386,
0.014247000217437744,
0.03386380523443222,
-0.05033246800303459,
-0.005549428518861532,
0.023332180455327034,
-0.03212428838014603,
-0.05384930968284607,
0.03490373119711876,
0.07835377007722855,
0.05759304761886597,
0.0056061516515910625,
0.006480636075139046,
-0.007586739957332611,
0.04409290477633476,
-0.0014830776490271091,
-0.04193741828203201,
-0.04042479768395424,
0.025922544300556183,
0.02397504448890686,
0.024504462257027626,
0.045151740312576294,
-0.020401475951075554,
0.03666215389966965,
-0.09521950036287308,
-0.06345445662736893,
0.04870639741420746,
-0.07827813923358917,
0.009765859693288803,
0.04360130429267883,
0.03660542890429497,
0.0008762566721998155,
-0.0462862066924572,
0.050786253064870834,
-0.010323639027774334,
-0.021895190700888634,
0.005365077871829271,
0.014795324765145779,
-0.014350992627441883,
-0.027548611164093018,
-0.06076955050230026,
0.024012859910726547,
-0.004698579199612141,
0.008163427002727985,
-0.0221409909427166,
-0.012781647965312004,
0.01402956061065197,
0.04779882729053497,
0.07385372370481491,
0.05876532942056656,
-0.011373019777238369,
0.058576252311468124,
0.0038500933442264795,
-0.030309144407510757,
-0.00548325153067708,
-0.016742825508117676,
0.017432957887649536,
0.0076056476682424545,
0.0047765737399458885,
-0.03359909728169441,
0.08334542065858841,
-0.028985600918531418,
-0.014662970788776875,
0.04734503850340843,
-0.0024863709695637226,
0.06481581181287766,
0.04602149501442909,
-0.04208867996931076,
0.027302810922265053,
-0.05381149426102638,
0.017546404153108597,
-0.039744120091199875,
0.021857375279068947,
0.04927363246679306,
0.02276494726538658,
-0.007137680891901255,
-0.048971109092235565,
0.01210096850991249,
-0.047080330550670624,
0.06795450299978256,
-0.03369363397359848,
-0.05619387328624725,
-0.006315193139016628,
-0.030403682962059975,
-0.026357421651482582,
0.08342105150222778,
0.019512811675667763,
-0.025279680266976357,
0.013878297992050648,
-0.0058330451138317585,
-0.036643244326114655,
0.006353008560836315,
0.043487854301929474,
0.03800460323691368,
-0.0572148934006691,
-0.06908896565437317,
-0.05237450450658798,
0.04000882804393768,
-0.02507169358432293,
0.023615796118974686,
0.026716670021414757,
-0.03496045619249344,
0.022613685578107834,
-0.01259257085621357,
-0.02369142696261406,
-0.01174172107130289,
-0.010370908305048943,
0.014313177205622196,
-0.09053037315607071,
-0.02026912197470665,
0.00596539955586195,
0.017688212916254997,
-0.06682003289461136,
0.08531183004379272,
-0.03569785878062248,
-0.006679167505353689,
-0.011599913239479065,
-0.04624839127063751,
0.04258028417825699,
-0.043223146349191666,
0.08130338042974472,
0.004864022135734558,
-0.006674440577626228,
0.012677655555307865,
-0.03142470121383667,
0.023048562929034233,
-0.04318533092737198,
0.026886839419603348,
0.038023512810468674,
0.04779882729053497,
-0.006508997641503811,
-0.010900326073169708,
0.032842785120010376,
-0.0606561042368412,
-0.038250405341386795,
0.048139166086912155,
0.07604702562093735,
0.04016008973121643,
-0.03254026174545288,
0.036983586847782135,
-0.054492175579071045,
0.06606372445821762,
0.04534081742167473,
0.0121482377871871,
-0.033504556864500046,
0.09930357336997986,
0.001010383595712483,
0.009468062780797482,
-0.0071754963137209415,
-0.013660859316587448,
-0.024126306176185608,
-0.010427631437778473,
-0.02032584510743618,
-0.037872251123189926,
0.014540069736540318,
0.007416570093482733,
0.021138880401849747,
0.0130085414275527,
0.014606247656047344,
0.030346959829330444,
0.0033608549274504185,
0.01679009385406971,
-0.03755081817507744,
0.026867931708693504,
0.03076293133199215,
0.0119307991117239,
-0.0016934265149757266,
-0.0853874608874321,
-0.024599000811576843,
-0.0140862837433815,
0.047080330550670624,
-0.017432957887649536,
-0.06110989302396774,
0.03049822337925434,
-0.02352125756442547,
0.017546404153108597,
-0.0761982873082161,
0.01046544685959816,
-0.04379038140177727,
-0.03148142620921135,
-0.006698075216263533,
-0.007941260933876038,
0.0030961462762206793,
-0.02788895182311535,
-0.005941764451563358,
-0.08894211798906326,
0.03331547975540161,
0.06080736592411995,
-0.03800460323691368,
-0.060958631336688995,
-0.012252231128513813,
0.0028030758257955313,
-0.023105287924408913,
-0.035092808306217194,
-0.014757509343326092,
0.03199193626642227,
0.049840863794088364,
-0.02265150099992752,
0.03320203348994255,
0.03645416721701622,
-0.030857469886541367,
0.06765197962522507,
-0.07888318598270416,
-0.04080295190215111,
0.015589451417326927,
0.04590804874897003,
0.053168632090091705,
0.005194908007979393,
-0.029307033866643906,
-0.032332275062799454,
-0.016752278432250023,
-0.04757193475961685,
0.02607380598783493,
-0.008645574562251568,
-0.014436077326536179,
0.03791006654500961,
0.0026919927913695574,
-0.05014338716864586,
-0.06175275519490242,
-0.03221882879734039,
-0.014256454072892666,
-0.009009549394249916,
-0.0011728722602128983,
-0.0006275014020502567,
-0.10179939866065979,
0.05695018544793129,
-0.041899602860212326,
-0.008811017498373985,
0.017224973067641258,
-0.009813128970563412,
-0.0010292914230376482,
-0.033220939338207245,
0.022292252629995346,
0.004481140058487654,
0.03197302669286728,
0.018728138878941536,
0.04061387479305267,
0.05914348363876343,
-0.04624839127063751,
-0.0012396402889862657,
-0.06046702712774277,
0.004788391292095184,
0.021082155406475067,
-0.019153565168380737,
0.06088299676775932,
-0.037588633596897125,
-0.008952826261520386,
-0.021611573174595833,
-0.007780544459819794,
-0.022122083231806755,
-0.010474900715053082,
-0.0017548768082633615,
0.01866196282207966,
0.015740713104605675,
-0.022746039554476738,
-0.023956136777997017,
0.027662057429552078,
-0.010853055864572525,
-0.0036751965526491404,
0.039630673825740814,
0.004972741939127445,
0.04579460248351097,
0.021441403776407242,
-0.04269373044371605,
0.018236538395285606,
0.08069833368062973,
-0.024542277678847313,
-0.0238615982234478,
0.04496266320347786,
-0.010238554328680038,
-0.019512811675667763,
-0.057366155087947845,
0.017272241413593292,
0.05400057137012482,
0.053282078355550766,
-0.033220939338207245,
0.012602024711668491,
-0.005549428518861532,
-0.012299500405788422,
0.01454952359199524,
0.024580093100667,
0.03876091539859772,
-0.02855072356760502,
-0.024220844730734825,
-0.07408061623573303,
-0.03197302669286728,
0.04723159223794937,
0.02423975244164467,
-0.033769264817237854,
0.04159707948565483,
-0.016005421057343483,
0.05676110461354256,
-0.015967605635523796,
0.04726940765976906,
-0.05384930968284607,
0.03475246950984001,
-0.05948382243514061,
-0.013490688987076283,
0.049954310059547424,
0.03647307679057121,
0.020855262875556946,
-0.09922794252634048,
0.001336542540229857,
-0.03959285840392113,
-0.01112721860408783,
0.03121671825647354,
0.00872593279927969,
-0.009326254017651081,
-0.016487570479512215,
0.021403588354587555,
0.004398418590426445,
-0.019909875467419624,
0.02696247026324272,
-0.017924560233950615,
0.047080330550670624,
0.00487347599118948,
0.037305016070604324,
0.028418367728590965,
-0.0017194247338920832,
0.03936596214771271,
-0.017754390835762024,
-0.0133677888661623,
-0.02855072356760502,
-0.005643967539072037,
-0.0048167528584599495,
0.019314279779791832,
0.06519396603107452,
-0.0027392623014748096,
0.009718590416014194,
0.0006706347339786589,
0.007657644338905811,
0.000904027430806309,
0.04068950563669205,
-0.027907859534025192,
0.02734062634408474,
0.002337472280487418,
-0.02851290814578533,
0.01960735023021698,
-0.0024603726342320442,
-0.07181168347597122,
-0.032332275062799454,
-0.017574766650795937,
-0.014294269494712353,
-0.03673778474330902,
-0.008376139216125011,
-0.029193587601184845,
-0.018321622163057327,
-0.010125107131898403,
0.026886839419603348,
0.03288060054183006,
-0.0017099708784371614,
0.030233513563871384,
0.007057322654873133,
-0.0048498413525521755,
-0.0004635356308426708,
-0.041559264063835144,
0.03291841596364975,
0.02253805473446846,
-0.05199635028839111,
-0.008631394244730473,
0.0122900465503335,
0.018955033272504807,
0.014237546361982822,
-0.08690007776021957,
0.023729242384433746,
-0.002963791834190488,
-0.0064097316935658455,
-0.013717582449316978,
0.06129897013306618,
0.10369017720222473,
-0.023710334673523903,
0.0010405178181827068,
0.045983679592609406,
-0.03552768751978874,
-0.01325434260070324,
0.06999654322862625,
0.03291841596364975,
0.05695018544793129,
0.006811521947383881,
0.08183280378580093,
-0.05755523219704628,
-0.0274540726095438,
0.011855167336761951,
-0.039517227560281754,
-0.02998771332204342,
-0.012167145498096943,
-0.005242177285254002,
0.06508052349090576,
-0.005398166365921497,
-0.00856521725654602,
0.014152460731565952,
-0.01427536178380251,
0.017168249934911728,
-0.06201746314764023,
0.05071062222123146,
0.021800652146339417,
0.020250214263796806,
0.03685123100876808,
0.002857435727491975,
-0.05165601149201393,
0.012715470977127552,
-0.03348565101623535,
-0.04000882804393768,
0.023823782801628113,
-0.061223339289426804,
0.023842690512537956,
-0.04855513572692871,
-0.00354756903834641,
0.04269373044371605,
0.0016910630511119962,
-0.03136797994375229,
0.003289950778707862,
0.024428829550743103,
0.013679767027497292,
-0.018614692613482475,
-0.06307630240917206,
-0.03981975093483925,
-0.0053225355222821236,
0.010777425020933151,
-0.03533861041069031,
0.024617908522486687,
-0.006457001436501741,
0.05528629943728447,
-0.04840387403964996,
0.03165159747004509,
0.03341001644730568,
-0.010115653276443481,
0.0077994526363909245,
0.014133553020656109,
-0.0010464265942573547,
0.01681845635175705,
0.02204645238816738,
0.02966628037393093,
0.0008402137318626046,
-0.02021239884197712,
0.007534743752330542,
-0.06803013384342194,
-0.025449849665164948,
0.028323829174041748,
0.07237891852855682,
-0.007005326449871063,
-0.03522516414523125,
0.011817351914942265,
-0.0391012541949749,
-0.017177702859044075,
0.005171273369342089,
-0.008588851429522038,
-0.004145527258515358,
0.0321999229490757,
0.027378441765904427,
0.09605143964290619,
0.09174046665430069,
-0.04125674068927765,
0.0026305424980819225,
0.011770082637667656,
0.043714750558137894,
-0.02756751887500286,
-0.015022218227386475,
0.03055494651198387,
-0.02800239808857441,
-0.018936125561594963,
0.01842561550438404,
-0.01920083351433277,
0.013036902993917465,
-0.0007764000329189003,
0.03197302669286728,
-0.00933098141103983,
0.04458450525999069,
0.018680870532989502,
-0.0482904277741909,
-0.001813963521271944,
-0.01577852852642536,
0.004533136263489723,
0.019333187490701675,
-0.06734945625066757,
0.010181830264627934,
-0.001001520548015833,
-0.007104591932147741,
0.023010747507214546,
0.016147229820489883,
-0.04942489415407181,
-0.057139262557029724,
0.035376425832509995,
-0.06950493901968002,
-0.023937229067087173,
0.03505499288439751,
0.03815586492419243,
-0.01312198769301176,
0.045756787061691284,
-0.04329877719283104,
0.006471182219684124,
0.011855167336761951,
0.020968709141016006,
-0.00116460002027452,
-0.029307033866643906,
-0.05297955498099327,
0.019049571827054024,
-0.0007840812904760242,
-0.022556962445378304,
-0.012299500405788422,
-0.06716037541627884,
-0.01756531186401844,
0.029250310733914375,
0.0879589170217514,
0.03732392564415932,
0.010314185172319412,
-0.015542181208729744
] |
721,943
|
apprise.apprise_config
|
__iter__
|
Returns an iterator to our config list
|
def __iter__(self):
"""
Returns an iterator to our config list
"""
return iter(self.configs)
|
(self)
|
[
0.039974987506866455,
-0.05100493133068085,
-0.06926257163286209,
-0.04103687405586243,
-0.02639308199286461,
0.0204499289393425,
-0.019405167549848557,
0.010053691454231739,
0.0722084566950798,
0.026684245094656944,
-0.020655455067753792,
-0.02853398770093918,
-0.01717006228864193,
0.0654945820569992,
0.004365306347608566,
-0.0027510635554790497,
0.0033890532795339823,
0.030743401497602463,
-0.009026057086884975,
0.007544550579041243,
-0.039632439613342285,
-0.0017063015839084983,
0.02221403457224369,
0.015286064706742764,
-0.011098453775048256,
0.04120814800262451,
0.025947773829102516,
-0.023327305912971497,
0.0295958761125803,
-0.006482661701738834,
-0.07282503694295883,
-0.030503621324896812,
0.036172736436128616,
-0.005609172396361828,
0.03798822686076164,
0.012357305735349655,
-0.03531637415289879,
0.0606304407119751,
-0.058883462101221085,
0.038570553064346313,
0.05525248870253563,
-0.026821263134479523,
0.021905744448304176,
-0.00635848892852664,
-0.0024020958226174116,
0.044496577233076096,
-0.011209781281650066,
0.03043511137366295,
-0.011852052062749863,
-0.02223116159439087,
0.012579960748553276,
0.017384152859449387,
-0.00445736525580287,
0.03324398025870323,
-0.01603109948337078,
0.035110849887132645,
0.020261529833078384,
0.022248288616538048,
0.056485649198293686,
0.04203025624155998,
-0.053505510091781616,
-0.05867793783545494,
0.05737626552581787,
-0.05155300348997116,
0.008251049555838108,
-0.05490994080901146,
-0.10680548846721649,
0.009890982881188393,
0.017521170899271965,
0.030452238395810127,
-0.015097664669156075,
-0.01959356665611267,
-0.013890194706618786,
0.007398969028145075,
-0.032010819762945175,
-0.029047803953289986,
-0.06655646860599518,
0.04357170686125755,
0.0353848859667778,
-0.055663540959358215,
-0.030572129413485527,
0.0642271637916565,
-0.026821263134479523,
0.02041567489504814,
0.049977295100688934,
-0.012408687733113766,
0.005151018500328064,
-0.024526212364435196,
-0.020963745191693306,
0.08789701014757156,
-0.01830902323126793,
0.057547539472579956,
0.02767762541770935,
0.016553480178117752,
-0.013967267237603664,
0.03161689266562462,
-0.03624124825000763,
-0.015337446704506874,
0.009051748551428318,
-0.022727852687239647,
-0.021426182240247726,
0.015131919644773006,
0.008362377062439919,
-0.010130764916539192,
-0.0187714584171772,
-0.048059046268463135,
-0.041071128100156784,
-0.023138906806707382,
-0.009933801367878914,
-0.0023421505466103554,
-0.04381148889660835,
0.021563200280070305,
-0.016039663925766945,
0.008118313737213612,
0.035693176090717316,
-0.02019301988184452,
0.0019086172105744481,
-0.015363137237727642,
0.04076283797621727,
-0.004037747625261545,
-0.020364291965961456,
0.05237511172890663,
-0.0060245078057050705,
0.06796090304851532,
0.02365272305905819,
0.04600377753376961,
-0.004889828152954578,
0.0064398436807096004,
0.0178123340010643,
-0.05038835108280182,
0.03233623504638672,
0.012391560710966587,
-0.018017860129475594,
-0.043777234852313995,
0.08289586007595062,
-0.04826457053422928,
0.01288825087249279,
-0.04216727241873741,
-0.050080060958862305,
0.052580635994672775,
0.02778038941323757,
0.03305558115243912,
0.010370546020567417,
0.035145103931427,
-0.041893236339092255,
-0.025622356683015823,
-0.035110849887132645,
0.03812524303793907,
0.029373222962021828,
0.0023271641694009304,
-0.003637398360297084,
0.00873489398509264,
0.008285303600132465,
0.05651990324258804,
-0.0726880207657814,
0.029167694970965385,
-0.050217077136039734,
0.034391503781080246,
0.02375548705458641,
-0.0529574379324913,
-0.04689439386129379,
-0.000379207864170894,
-0.01301670540124178,
0.0029779993928968906,
-0.05230659991502762,
0.00016993437020573765,
-0.06467247009277344,
-0.04764799028635025,
0.0068080793134868145,
-0.016356516629457474,
0.00829386804252863,
-0.07467477768659592,
-0.033312488347291946,
-0.0065811434760689735,
-0.03956393152475357,
0.06844046711921692,
0.001968562602996826,
0.07419522106647491,
0.001667765318416059,
0.02601628191769123,
-0.050080060958862305,
-0.005193836521357298,
-0.057307757437229156,
-0.01950792968273163,
0.032969944179058075,
0.06265145540237427,
0.021117890253663063,
0.028516860678792,
0.02433781325817108,
0.008897602558135986,
-0.0022393870167434216,
-0.02365272305905819,
-0.0033590805251151323,
0.0004263077862560749,
-0.03774844482541084,
-0.0070093241520226,
-0.022025635465979576,
0.036652300506830215,
0.005146736744791269,
0.06275422126054764,
-0.0572735033929348,
-0.032850053161382675,
-0.007493169046938419,
-0.01021640095859766,
0.016442153602838516,
0.02577650174498558,
-0.000624073960352689,
-0.06844046711921692,
0.013085214421153069,
0.03231910988688469,
-0.03696059063076973,
-0.0397009514272213,
0.02790028043091297,
-0.014618102461099625,
0.05617735907435417,
-0.040557313710451126,
0.024800248444080353,
-0.040454547852277756,
-0.029613003134727478,
-0.0008226429345086217,
0.0837179645895958,
-0.00781002314761281,
0.051861293613910675,
-0.039392661303281784,
-0.006140116602182388,
-0.00878627598285675,
-0.01758967898786068,
-0.05405357852578163,
-0.054464634507894516,
0.018480295315384865,
0.021546071395277977,
0.009128821082413197,
0.045318685472011566,
0.0022094144951552153,
0.09974906593561172,
0.0007182737463153899,
-0.015405955724418163,
-0.012425814755260944,
-0.056143105030059814,
0.05902048200368881,
-0.016964534297585487,
0.02743784338235855,
0.008131158538162708,
-0.038536299020051956,
-0.041173893958330154,
0.0087563032284379,
0.013847376219928265,
0.05699946731328964,
0.009711147285997868,
0.023430069908499718,
0.051141947507858276,
-0.013239359483122826,
-0.01878858543932438,
-0.007848558947443962,
0.017863715067505836,
-0.06364483386278152,
-0.04072858393192291,
-0.0058275447227060795,
0.07679855823516846,
-0.028071552515029907,
0.04076283797621727,
0.001730922027491033,
0.024303559213876724,
0.09933800995349884,
-0.022899124771356583,
0.033672161400318146,
0.0368235744535923,
0.007197724189609289,
-0.0042775291949510574,
0.06025364249944687,
0.0909799188375473,
0.04062582179903984,
0.0020670441444963217,
0.02375548705458641,
-0.012751232832670212,
-0.0009403927251696587,
0.01973058469593525,
-0.032987069338560104,
-0.06525480002164841,
0.010918617248535156,
0.031103074550628662,
0.00997661892324686,
-0.03815949708223343,
0.01853167824447155,
0.012965323403477669,
-0.05682819336652756,
-0.018017860129475594,
0.0690912976861,
-0.0154573367908597,
0.018463168293237686,
0.06361058354377747,
-0.010841544717550278,
0.013162286952137947,
-0.029201950877904892,
0.08604726940393448,
-0.0413794219493866,
-0.05326572805643082,
0.011166962794959545,
0.01597115397453308,
-0.010961435735225677,
0.025211302563548088,
-0.040214765816926956,
-0.04381148889660835,
0.04548995941877365,
-0.0029244767501950264,
0.03692633658647537,
0.011920561082661152,
0.038022480905056,
0.007497450802475214,
0.02769475243985653,
0.03435724973678589,
0.00022078087204135954,
-0.005416490603238344,
0.031085947528481483,
-0.0010367335053160787,
-0.07816874235868454,
-0.019747711718082428,
0.03447714075446129,
-0.012451506219804287,
0.07775768637657166,
-0.09796783328056335,
0.08145716786384583,
0.004001352470368147,
-0.026804136112332344,
0.012562832795083523,
0.0363440103828907,
0.047339700162410736,
0.055423758924007416,
-0.016724754124879837,
0.02981853112578392,
-0.03223347291350365,
-0.061384040862321854,
-0.00781002314761281,
0.05227234587073326,
0.016039663925766945,
-0.012631341814994812,
0.025348320603370667,
0.0010131835006177425,
0.02243668958544731,
-0.1232476457953453,
0.019987493753433228,
-0.025262683629989624,
-0.01086723618209362,
-0.00413194764405489,
-0.03288430720567703,
0.014815066009759903,
-0.021323418244719505,
0.009599819779396057,
0.002967295004054904,
0.014780811034142971,
0.04908667877316475,
0.018720077350735664,
0.04298938065767288,
0.04826457053422928,
0.017623933032155037,
-0.01585126295685768,
-0.03709761053323746,
0.005763317458331585,
0.0008783064549788833,
0.010550381615757942,
0.04350319877266884,
0.0027189499232918024,
-0.01347914058715105,
0.013761740177869797,
-0.00504825497046113,
-0.0019707034807652235,
-0.06145254895091057,
-0.022984759882092476,
0.07042722404003143,
-0.044496577233076096,
-0.042578328400850296,
0.011012817732989788,
-0.012699850834906101,
-0.06501501798629761,
0.027043918147683144,
-0.03620699420571327,
-0.04566122964024544,
0.06830344349145889,
-0.027848897501826286,
0.07378416508436203,
0.011312544345855713,
0.0389816053211689,
0.05843815580010414,
0.01224597916007042,
-0.007446069270372391,
-0.06193211302161217,
0.01995323784649372,
-0.02647871896624565,
0.009899546392261982,
0.02279636077582836,
-0.04466785117983818,
-0.029852785170078278,
-0.09899546951055527,
0.024920139461755753,
-0.06011662632226944,
-0.06080171465873718,
0.0420987643301487,
0.008602158166468143,
-0.005330854561179876,
-0.03235336393117905,
0.03887884318828583,
-0.020056001842021942,
0.026752755045890808,
0.06083596870303154,
0.043092142790555954,
-0.04775075614452362,
0.03956393152475357,
0.04227003827691078,
-0.0044188289903104305,
0.014506774954497814,
0.03541914001107216,
-0.023841122165322304,
0.002220118883997202,
-0.052238091826438904,
-0.0007477112230844796,
-0.02817431464791298,
-0.02661573700606823,
0.007167751435190439,
0.05884920805692673,
0.052101075649261475,
0.03386056050658226,
-0.038570553064346313,
0.05206682160496712,
0.010850109159946442,
-0.007488887291401625,
-0.003628834616392851,
0.003344094380736351,
0.0021248485427349806,
-0.048778388649225235,
-0.05189554765820503,
-0.03990647569298744,
-0.01081585418432951,
0.007167751435190439,
-0.03648103028535843,
0.048059046268463135,
-0.05347125232219696,
-0.034031834453344345,
-0.05261489003896713,
-0.005724781192839146,
0.011149835772812366,
0.038913097232580185,
0.01854880526661873,
0.014472520910203457,
-0.023858249187469482,
0.018446041271090508,
0.0044616470113396645,
-0.06131553277373314,
0.03497382998466492,
0.06518629193305969,
-0.019542185589671135,
-0.0647067278623581,
-0.029989803209900856,
0.01853167824447155,
-0.03767993673682213,
0.01134679839015007,
-0.024885885417461395,
0.011852052062749863,
-0.020398546010255814,
-0.02433781325817108,
0.029064932838082314,
0.029767148196697235,
-0.04346894472837448,
0.008036958985030651,
-0.04870988056063652,
0.015020592138171196,
-0.023104650899767876,
0.002280064392834902,
0.07967593520879745,
-0.011706470511853695,
0.011500944383442402,
0.04405127093195915,
0.005151018500328064,
-0.04596951976418495,
-0.04227003827691078,
-0.05158725753426552,
-0.00018451928917784244,
0.003543198574334383,
0.0418589822947979,
-0.012280233204364777,
-0.04692864790558815,
-0.05264914780855179,
-0.033792052417993546,
0.015123356133699417,
0.00286453147418797,
-0.01983334869146347,
-0.09611809253692627,
0.033329617232084274,
-0.06621392071247101,
0.003093608422204852,
-0.01081585418432951,
-0.0071891602128744125,
-0.01878858543932438,
-0.01473799254745245,
0.004155497532337904,
0.04566122964024544,
-0.01015645544975996,
0.0009585904190316796,
0.006212907377630472,
0.05833538994193077,
-0.027232317253947258,
0.015542973764240742,
0.011869180016219616,
0.0299555491656065,
-0.010961435735225677,
0.0067781065590679646,
0.01567142829298973,
-0.03870756924152374,
-0.03362077847123146,
-0.0529574379324913,
-0.025982027873396873,
0.03699484467506409,
-0.023806868121027946,
-0.04072858393192291,
-0.032850053161382675,
0.04076283797621727,
-0.070290207862854,
-0.03413459658622742,
0.0023421505466103554,
-0.010576073080301285,
0.06165807694196701,
0.04785351827740669,
-0.011509507894515991,
0.008829093538224697,
0.02493726648390293,
-0.00402276124805212,
0.016433589160442352,
0.016459280624985695,
-0.04716842994093895,
-0.032593145966529846,
0.0309146735817194,
0.024663230404257774,
-0.027163807302713394,
-0.015020592138171196,
0.027643371373414993,
-0.02889365889132023,
-0.021597454324364662,
0.017315642908215523,
0.0026076228823512793,
-0.023549959063529968,
0.08995228260755539,
0.051278967410326004,
-0.035932958126068115,
0.05261489003896713,
-0.03245612606406212,
-0.026941154152154922,
0.0022993325255811214,
-0.04668886587023735,
-0.013042395934462547,
0.013795994222164154,
-0.03159976378083229,
0.002575509250164032,
-0.02233392558991909,
-0.018343277275562286,
0.011894870549440384,
0.011715034954249859,
-0.04274959862232208,
0.011158399283885956,
-0.03161689266562462,
-0.0008574326056987047,
0.04716842994093895,
0.003440435044467449,
0.057444773614406586,
-0.0996120497584343,
-0.0005967773613519967,
0.06080171465873718,
0.01634795404970646,
-0.0141385393217206,
0.047339700162410736,
0.0009066734346561134,
0.021546071395277977,
0.046860139816999435,
-0.03243900090456009,
-0.009608383290469646,
0.018137751147150993,
0.01712724380195141,
0.07011893391609192,
0.020381418988108635,
0.02399526722729206,
0.006675343029201031,
-0.09173351526260376,
-0.011800670996308327,
-0.019216766580939293,
0.049018170684576035,
-0.045215923339128494,
-0.030983183532953262,
-0.04038603976368904,
-0.03576168417930603,
0.034494269639253616,
-0.02137479931116104,
-0.0044316742569208145,
-0.00997661892324686,
0.018702950328588486,
-0.031411364674568176,
-0.025742247700691223,
0.010456182062625885,
-0.047476720064878464,
-0.015268937684595585,
-0.04778501018881798,
-0.025365447625517845,
0.023310178890824318,
-0.0295958761125803,
0.011980506591498852,
0.027300825342535973,
0.03168540075421333,
0.042818110436201096,
-0.056280121207237244,
0.002650440903380513,
-0.013950140215456486,
-0.012477196753025055,
0.04120814800262451,
-0.01853167824447155,
0.01502915658056736,
0.035830192267894745,
-0.03839927911758423,
0.01087579969316721,
-0.035247866064310074,
-0.0025284092407673597,
0.06744708120822906,
0.014823629520833492,
0.0028987859841436148,
0.056245867162942886,
0.02235105261206627,
-0.013102341443300247,
0.030572129413485527,
-0.10906628519296646,
-0.04470210522413254,
0.002596918260678649,
-0.06665923446416855,
0.02517704851925373,
-0.0008638553554192185,
0.059465788304805756,
-0.01341919507831335,
0.04874413460493088,
-0.05323147401213646,
-0.027951661497354507,
-0.012442942708730698,
0.03137711063027382,
-0.024560466408729553,
-0.024628976359963417,
-0.003224203595891595,
0.03716611862182617,
-0.034494269639253616,
0.007103524170815945,
-0.01947367563843727,
-0.025570973753929138,
0.0021002283319830894,
-0.0019385898485779762,
0.0016249471809715033,
0.05501270666718483,
-0.04302363470196724,
-0.014592410996556282,
0.03531637415289879,
-0.027729006484150887,
0.05528674274682999,
-0.04340043663978577,
-0.03596721217036247,
0.011757852509617805,
0.057102229446172714,
0.00674385204911232,
-0.019268149510025978,
0.007296205498278141,
0.014541029930114746,
-0.009582692757248878,
-0.05908899009227753,
0.022025635465979576,
0.00089115189621225,
-0.026427336037158966,
0.0389816053211689,
0.007741514127701521,
0.006953660864382982,
0.019918983802199364,
0.0028666723519563675,
-0.03192518278956413,
-0.03733738884329796,
-0.00736471451818943,
-0.03293569013476372,
-0.05179278552532196,
-0.012614214792847633,
0.028825150802731514,
-0.020175892859697342,
-0.08871912211179733,
0.033689286559820175,
-0.019884729757905006,
0.05480717867612839,
-0.020364291965961456,
0.02603341080248356,
0.014600975438952446,
-0.04477061331272125,
0.042818110436201096,
-0.030503621324896812,
-0.024988647550344467,
-0.01937091164290905,
0.03135998174548149,
0.015757063403725624,
0.0028966451063752174,
0.004915518686175346,
-0.012554269284009933,
-0.07248249650001526,
-0.014934956096112728,
-0.01485788356512785,
0.06035640463232994,
-0.006461252458393574,
0.015594354830682278,
0.010130764916539192,
0.04079709202051163,
-0.000595706922467798,
0.009916674345731735,
0.006846615578979254,
0.0011229049414396286,
0.010678836144506931,
0.011672216467559338,
0.12023325264453888,
0.005741908214986324,
-0.08604726940393448,
0.019799092784523964,
-0.0005001690587960184,
0.03901585936546326,
-0.01230592466890812,
0.02805442549288273,
0.014232738874852657,
0.008332404308021069,
-0.015423082746565342,
-0.011107017286121845,
0.01959356665611267,
0.009051748551428318,
-0.007732950616627932,
-0.028140060603618622,
0.031788162887096405,
-0.02031291089951992,
0.03315834328532219,
0.0016035381704568863,
-0.05621161311864853,
-0.04740820825099945,
0.06665923446416855,
-0.020843856036663055,
-0.026444463059306145,
0.02101512812077999,
0.06176083907485008,
0.003061494790017605,
0.011689343489706516,
0.027043918147683144,
-0.00822535902261734,
-0.02945885807275772,
0.039392661303281784,
-0.03305558115243912,
-0.05456739664077759,
0.059945352375507355,
0.030366603285074234,
-0.004825600888580084,
-0.005793290212750435,
0.011774979531764984,
-0.003654525615274906,
0.01151807140558958,
0.0297157671302557,
-0.01360759511590004,
-0.03055500239133835,
0.005180991254746914,
-0.045455705374479294,
-0.035247866064310074,
-0.010824417695403099,
-0.010773035697638988,
-0.027951661497354507,
0.039152879267930984,
0.008422321639955044,
0.03613848239183426,
0.03624124825000763,
0.03555615618824959,
-0.00937716569751501
] |
721,944
|
apprise.apprise_config
|
__len__
|
Returns the number of config entries loaded
|
def __len__(self):
"""
Returns the number of config entries loaded
"""
return len(self.configs)
|
(self)
|
[
-0.006376981269568205,
-0.04275551065802574,
-0.03654373809695244,
-0.015116419643163681,
0.02268289029598236,
0.07017983496189117,
-0.012117916718125343,
-0.044341497123241425,
0.020650846883654594,
-0.00864031445235014,
-0.02104734256863594,
-0.031058872118592262,
0.005150320939719677,
-0.007376482244580984,
0.03203359246253967,
-0.01775972731411457,
0.02070040814578533,
0.016396772116422653,
0.021014301106333733,
-0.031670138239860535,
-0.03522208333015442,
0.033817827701568604,
0.04288767650723457,
-0.017164982855319977,
-0.013613037765026093,
0.012142697349190712,
0.04424237459897995,
-0.036444611847400665,
0.05131322145462036,
0.010391505435109138,
-0.10322119295597076,
-0.007182364352047443,
0.006455454509705305,
0.04605964571237564,
0.018684886395931244,
-0.016049837693572044,
0.03186838701367378,
0.012068354524672031,
-0.03604811802506447,
0.030034590512514114,
0.010300641879439354,
-0.05032198131084442,
0.03459429740905762,
-0.04179731383919716,
0.026020066812634468,
0.02222030982375145,
-0.013390008360147476,
0.02565661072731018,
-0.07249273359775543,
-0.024450602009892464,
-0.01044932845979929,
0.05871448665857315,
0.0011450893944129348,
0.061919499188661575,
-0.016545457765460014,
0.04149993881583214,
0.030398046597838402,
0.054353028535842896,
0.006265466567128897,
0.026251355186104774,
-0.033123958855867386,
-0.017825810238718987,
0.04738130047917366,
-0.047315217554569244,
0.02321155183017254,
-0.02745736576616764,
-0.05329570546746254,
0.039880912750959396,
0.032000552862882614,
0.011894887313246727,
0.015529436059296131,
0.0035374900326132774,
-0.0233602374792099,
0.03355349600315094,
-0.009028550237417221,
-0.037435855716466904,
-0.027374761179089546,
0.04067390784621239,
0.05365915969014168,
-0.003985613118857145,
-0.004741434473544359,
0.009259839542210102,
0.026598289608955383,
0.03267790004611015,
0.06918859481811523,
-0.016652842983603477,
0.01809014193713665,
0.0037791049107909203,
-0.018007537350058556,
0.04179731383919716,
-0.026267876848578453,
0.09284620732069016,
0.043680671602487564,
0.0032008811831474304,
-0.00937548466026783,
-0.012943950481712818,
-0.007099761161953211,
-0.023806296288967133,
0.01566160097718239,
-0.06618183106184006,
-0.02679653838276863,
-0.0263504795730114,
0.026053108274936676,
-0.0266643725335598,
-0.0037770397029817104,
-0.05868144333362579,
-0.027440844103693962,
-0.012555714696645737,
-0.04668743163347244,
0.01594245247542858,
0.03386738896369934,
-0.02468189224600792,
0.003630418796092272,
0.021129945293068886,
0.051544513553380966,
-0.008454456925392151,
0.012349206022918224,
-0.013464352115988731,
0.015711164101958275,
-0.013010033406317234,
0.0122500816360116,
0.0727570652961731,
-0.03309091553092003,
-0.020204788073897362,
0.08617185056209564,
0.06205166131258011,
-0.03203359246253967,
-0.013423049822449684,
0.028547730296850204,
-0.04275551065802574,
0.1017012894153595,
0.002542119240388274,
-0.03469341993331909,
-0.03601507470011711,
0.07467345893383026,
-0.06261336803436279,
0.052568793296813965,
-0.0172641072422266,
-0.049925487488508224,
0.053031373769044876,
0.0049355523660779,
0.05081760138273239,
0.006232425570487976,
0.005455953534692526,
-0.010845824144780636,
0.026284396648406982,
-0.020502159371972084,
0.023145468905568123,
0.018800530582666397,
-0.0025834208354353905,
0.033140476793050766,
-0.045167531818151474,
-0.025937462225556374,
-0.003432170720770955,
-0.0690564289689064,
0.015050336718559265,
-0.03485862910747528,
-0.03518904373049736,
0.015479874797165394,
-0.11690030992031097,
-0.043019842356443405,
0.004142559599131346,
-0.020832573994994164,
-0.0319344699382782,
-0.09945447742938995,
0.004844688344746828,
-0.030827583745121956,
-0.033289164304733276,
-0.0339004285633564,
0.052040133625268936,
0.009251578710973263,
-0.034792546182870865,
-0.02288113720715046,
-0.010432807728648186,
0.012861346825957298,
0.06806518882513046,
-0.023145468905568123,
0.010878865607082844,
0.014059096574783325,
-0.01207661535590887,
-0.0473482608795166,
-0.015413791872560978,
-0.02251768298447132,
-0.02023782953619957,
0.04328417405486107,
0.059276189655065536,
0.005142060574144125,
0.03208315372467041,
0.026912182569503784,
0.05319657921791077,
-0.013216541148722172,
-0.03707239776849747,
-0.010589754208922386,
0.016190264374017715,
-0.01167185790836811,
-0.021658606827259064,
-0.013423049822449684,
0.024896660819649696,
-0.00012790618347935379,
0.00038152438355609775,
-0.05792149528861046,
-0.03171969950199127,
-0.019031820818781853,
-0.044671911746263504,
0.029704177752137184,
0.011481870897114277,
-0.006054827943444252,
0.002360391663387418,
-0.04255726560950279,
0.02334371581673622,
-0.047150012105703354,
-0.04675351455807686,
0.018883133307099342,
0.030662376433610916,
0.04470495134592056,
-0.08650226145982742,
0.030976269394159317,
-0.011110154911875725,
-0.03538728877902031,
-0.024268874898552895,
0.11333184689283371,
0.016504155471920967,
0.04748042672872543,
-0.016661101952195168,
-0.03142232820391655,
-0.019147465005517006,
-0.006451324559748173,
0.00790101382881403,
-0.003690306330099702,
0.0035457503981888294,
0.02402106486260891,
0.0423920564353466,
0.03170317783951759,
0.050916727632284164,
0.1009082943201065,
-0.006215904839336872,
0.015248584561049938,
0.008822041563689709,
-0.021278632804751396,
0.00609199982136488,
-0.04338329657912254,
0.010746700689196587,
-0.01372868288308382,
-0.029208557680249214,
-0.02534271776676178,
-0.013596517033874989,
-0.0018255348550155759,
0.04130169376730919,
-0.008607272990047932,
-0.03277702257037163,
0.01233268529176712,
-0.019676126539707184,
-0.021509921178221703,
-0.02435147762298584,
0.008124043233692646,
-0.0880882516503334,
-0.03565162047743797,
-0.008231427520513535,
0.023228071630001068,
-0.044506702572107315,
0.046290937811136246,
-0.015000774525105953,
-0.009590253233909607,
0.07672202587127686,
-0.03945137560367584,
0.038394052535295486,
0.06314202398061752,
0.01259701605886221,
-0.03568466380238533,
0.03961658477783203,
0.017495397478342056,
0.03317352011799812,
-0.021509921178221703,
-0.04275551065802574,
-0.028035588562488556,
-0.022501161321997643,
0.037766266614198685,
-0.01217573881149292,
-0.0073103997856378555,
0.030298922210931778,
0.033586535602808,
-0.023905418813228607,
-0.022088145837187767,
0.010110653936862946,
-0.023244593292474747,
-0.01759452186524868,
-0.028696415945887566,
0.024467121809720993,
-0.07678810507059097,
0.02137775532901287,
0.025061866268515587,
-0.014686881564557552,
0.0162811279296875,
0.0061869933269917965,
0.04411020874977112,
-0.06148995831608772,
-0.03157101199030876,
0.04077303037047386,
0.016049837693572044,
0.006352200172841549,
-0.0618203729391098,
-0.04222685098648071,
-0.07777934521436691,
-0.008945946581661701,
0.00312240794301033,
-0.007099761161953211,
0.04523361474275589,
-0.007112151477485895,
0.04143385961651802,
0.02286461740732193,
0.005439432803541422,
0.04526665434241295,
0.043515462428331375,
0.06476105749607086,
0.05603813752532005,
0.008987247943878174,
-0.032297924160957336,
0.045002322643995285,
-0.01795797608792782,
0.05805365741252899,
-0.0578884519636631,
0.08260338753461838,
-0.01144056860357523,
-0.03010067343711853,
0.0230463445186615,
-0.010259340517222881,
0.08987247943878174,
0.01160577591508627,
-0.0034961882047355175,
-0.005464213900268078,
-0.05038806423544884,
-0.07156757265329361,
0.022815054282546043,
-0.005344438832253218,
-0.017164982855319977,
-0.02778777852654457,
0.02238551713526249,
-0.004956203047186136,
-0.014868609607219696,
-0.04886816442012787,
0.04473799467086792,
-0.05481560528278351,
-0.05286616459488869,
0.022435080260038376,
0.020452598109841347,
-0.015091638080775738,
0.032149236649274826,
-0.014331687241792679,
0.008747698739171028,
-0.019659604877233505,
0.02190641686320305,
0.01774320751428604,
0.007066719699651003,
0.056335508823394775,
0.04748042672872543,
-0.03419779986143112,
0.004902510903775692,
0.024566246196627617,
0.01774320751428604,
0.03406563773751259,
0.015265105292201042,
0.0034466262441128492,
-0.04563010856509209,
0.017346709966659546,
0.002459515817463398,
0.01647111587226391,
-0.028432084247469902,
-0.038559261709451675,
0.0355524979531765,
-0.05630246549844742,
-0.02762257121503353,
-0.02876249887049198,
0.011828804388642311,
-0.031042352318763733,
0.06608270853757858,
-0.007739937398582697,
-0.036609821021556854,
0.04536578059196472,
-0.05755803734064102,
0.008016658946871758,
-0.05085064470767975,
0.04034349322319031,
-0.0005160130094736814,
-0.020303912460803986,
-0.037435855716466904,
-0.00674456637352705,
-0.05263487622141838,
-0.036444611847400665,
0.003099692054092884,
0.04126865044236183,
0.010812782682478428,
0.031488411128520966,
-0.12192259728908539,
0.019130943343043327,
-0.07658986002206802,
0.016718925908207893,
0.008565970696508884,
0.026383521035313606,
0.027209555730223656,
-0.014810786582529545,
0.0785723403096199,
-0.04361458867788315,
0.05071847885847092,
0.09211929142475128,
-0.010168476961553097,
-0.01563682034611702,
0.03700631484389305,
0.02420279197394848,
-0.03865838423371315,
-0.005720284301787615,
0.03399955481290817,
0.017578000202775,
-0.010754960589110851,
-0.03651069477200508,
-0.024880139157176018,
-0.04995852708816528,
-0.001025830744765699,
-0.002457450609654188,
0.05359307676553726,
0.033801306039094925,
0.01613244041800499,
0.010325423441827297,
0.055872928351163864,
0.06148995831608772,
0.006979986093938351,
0.04196251928806305,
-0.031670138239860535,
0.03984787315130234,
-0.03294223174452782,
-0.04192947968840599,
-0.04361458867788315,
0.034462131559848785,
0.02354196459054947,
-0.023740213364362717,
-0.015199023298919201,
-0.0549808144569397,
0.008764219470322132,
-0.0690564289689064,
-0.017065858468413353,
0.014752964489161968,
0.016793267801404,
0.03024935908615589,
0.022501161321997643,
0.04262334853410721,
0.027606051415205002,
-0.02484709769487381,
-0.031818825751543045,
-0.02501230500638485,
0.035453371703624725,
-0.06000309810042381,
-0.11485174298286438,
-0.043019842356443405,
0.0016572304302826524,
-0.043680671602487564,
0.011300142854452133,
-0.032000552862882614,
-0.04166514798998833,
0.010928427800536156,
-0.047282177954912186,
-0.020799532532691956,
-0.018470117822289467,
0.009937187656760216,
-0.017991017550230026,
-0.026400042697787285,
0.021278632804751396,
-0.04311896860599518,
0.012630057521164417,
0.04817429557442665,
-0.011490130797028542,
0.03132320195436478,
0.01746235601603985,
0.03143884986639023,
-0.04149993881583214,
-0.02962157316505909,
-0.014546455815434456,
-0.005782236810773611,
0.029836343601346016,
0.05237054452300072,
-0.016008535400032997,
-0.029819821938872337,
0.0038348622620105743,
0.0073021394200623035,
0.008615532889962196,
0.014620799571275711,
-0.01742931455373764,
-0.09059939533472061,
-0.016809789463877678,
-0.0467204749584198,
0.0241862703114748,
-0.020601283758878708,
-0.01809014193713665,
-0.04642310366034508,
0.004642310086637735,
-0.01794145442545414,
0.0659174993634224,
-0.01746235601603985,
0.028564250096678734,
-0.006571099162101746,
0.026581769809126854,
0.0019680256955325603,
-0.01059801410883665,
0.004134299233555794,
0.02415323071181774,
-0.0047538247890770435,
-0.033966511487960815,
-0.006306768395006657,
-0.006967595312744379,
0.006302638445049524,
-0.02271593175828457,
-0.014397770166397095,
0.00020534684881567955,
-0.0025813558604568243,
-0.008582491427659988,
0.03469341993331909,
0.06261336803436279,
0.0164793748408556,
0.009012029506266117,
0.02122906967997551,
0.0019587327260524035,
0.09092980623245239,
0.025772256776690483,
-0.01044932845979929,
0.03667590394616127,
-0.029704177752137184,
-0.03869142383337021,
0.02483057789504528,
0.012927429750561714,
-0.06446368247270584,
-0.027110431343317032,
0.092185378074646,
0.0434163399040699,
-0.03203359246253967,
0.0029861123766750097,
0.01875096932053566,
-0.005852449685335159,
0.018701406195759773,
-0.025540966540575027,
-0.010201518423855305,
0.0035127089358866215,
0.062282953411340714,
0.03902183845639229,
-0.07837409526109695,
0.07652377337217331,
-0.023277634754776955,
-0.04880208149552345,
0.008863342925906181,
0.0049933744594454765,
-0.015422051772475243,
0.04414324834942818,
-0.03289266675710678,
-0.015686383470892906,
0.015587259083986282,
0.0388566330075264,
-0.06618183106184006,
0.06433151662349701,
-0.040541741997003555,
0.024285394698381424,
-0.08299987763166428,
0.04625789448618889,
0.03403259441256523,
0.01257223542779684,
-0.007698635570704937,
-0.02829992026090622,
0.039550501853227615,
0.013018293306231499,
-0.007376482244580984,
-0.03403259441256523,
0.03667590394616127,
-0.02415323071181774,
0.023608047515153885,
-0.0039009449537843466,
-0.013637819327414036,
-0.050916727632284164,
-0.004865339491516352,
0.007665594108402729,
0.020832573994994164,
0.007987746968865395,
0.032810065895318985,
0.019461357966065407,
-0.07143540680408478,
-0.00881378073245287,
0.013935190625488758,
0.03902183845639229,
0.01860228180885315,
-0.017478875815868378,
-0.002352131297811866,
-0.039550501853227615,
0.02218726836144924,
-0.017809290438890457,
0.023145468905568123,
-0.0589127354323864,
0.05263487622141838,
-0.024896660819649696,
-0.02798602730035782,
0.052040133625268936,
0.02288113720715046,
0.0035209693014621735,
-0.034296926110982895,
0.008272728882730007,
0.02337675727903843,
-0.015075117349624634,
-0.008371853269636631,
-0.008169475011527538,
0.026449603959918022,
0.03239704668521881,
-0.0388566330075264,
0.0012586690718308091,
0.049429867416620255,
-0.01479426585137844,
0.02269941009581089,
-0.005398131441324949,
-0.03700631484389305,
0.020964739844202995,
-0.06049871817231178,
-0.0208821352571249,
-0.03276050090789795,
0.0029055741615593433,
0.021278632804751396,
0.08491627871990204,
0.04245813935995102,
0.02141079679131508,
0.048603832721710205,
0.004142559599131346,
0.03865838423371315,
-0.09681116789579391,
0.0016758161364123225,
-0.037898432463407516,
0.0034301055129617453,
-0.02170816995203495,
-0.008173604495823383,
0.04047565907239914,
-0.019990019500255585,
0.06367068737745285,
-0.0523044615983963,
-0.00435732863843441,
-0.024087147787213326,
-0.0014445267152041197,
-0.009168975986540318,
0.03043108619749546,
0.007529298774898052,
0.046951763331890106,
-0.04011220484972,
-0.027506927028298378,
-0.0012741571990773082,
-0.008855083025991917,
0.018387513235211372,
-0.010622795671224594,
0.0006055860430933535,
0.05425390228629112,
-0.04655526950955391,
0.01070539839565754,
-0.018007537350058556,
0.010953208431601524,
0.04159906506538391,
-0.01775972731411457,
-0.05745891481637955,
0.01878400892019272,
0.030365005135536194,
-0.04751346632838249,
-0.06826343387365341,
-0.02516099065542221,
-0.029902424663305283,
-0.026862621307373047,
-0.05957356095314026,
0.07705243676900864,
-0.03558553755283356,
-0.006480235606431961,
0.014034315012395382,
0.0028209055308252573,
0.0016355470288544893,
0.02942332625389099,
0.016908913850784302,
0.018717927858233452,
0.010490629822015762,
0.0011657403083518147,
-0.026449603959918022,
-0.05375828221440315,
0.014480373822152615,
0.03915400430560112,
-0.0008286152151413262,
-0.02684609964489937,
0.03717152401804924,
-0.0438128337264061,
0.009995009750127792,
0.009416786022484303,
0.03707239776849747,
-0.01860228180885315,
-0.031339723616838455,
0.08498236536979675,
0.003729542950168252,
-0.0444406196475029,
-0.024632329121232033,
0.040872156620025635,
0.04262334853410721,
-0.02141079679131508,
-0.04262334853410721,
0.005014025606215,
-0.01693369448184967,
-0.021774252876639366,
-0.012555714696645737,
0.04946290701627731,
0.012935689650475979,
-0.015909412875771523,
-0.03869142383337021,
-0.01746235601603985,
-0.002182794502004981,
-0.04487016052007675,
-0.01176272239536047,
-0.06846168637275696,
0.013679120689630508,
-0.001845153165049851,
0.13414789736270905,
0.04563010856509209,
-0.09720766544342041,
-0.023938460275530815,
0.016413291916251183,
0.017065858468413353,
0.01909790188074112,
-0.007731677033007145,
0.025788776576519012,
-0.021774252876639366,
0.02962157316505909,
0.0003391901555005461,
0.019015299156308174,
0.0161241814494133,
0.008731178008019924,
-0.005852449685335159,
-0.020452598109841347,
-0.01101929135620594,
0.014777746051549911,
0.002703195670619607,
-0.07817584276199341,
-0.06482713669538498,
0.05507993698120117,
0.007611901964992285,
0.019990019500255585,
0.04179731383919716,
0.01495947316288948,
0.009474608115851879,
-0.014422550797462463,
0.08075306564569473,
-0.013687380589544773,
0.014662100933492184,
0.033834345638751984,
0.037601061165332794,
-0.03869142383337021,
0.035122960805892944,
0.059144023805856705,
-0.02334371581673622,
0.006356330588459969,
0.01809014193713665,
0.026383521035313606,
0.011506651528179646,
-0.014496893621981144,
-0.0361802838742733,
-0.006277857348322868,
-0.00075633724918589,
-0.02453320473432541,
-0.03338828682899475,
0.00424168398603797,
-0.002166273770853877,
-0.04648918658494949,
-0.005014025606215,
0.045299697667360306,
0.059144023805856705,
0.042986802756786346,
0.011275362223386765,
-0.006430673412978649
] |
721,945
|
apprise.apprise_config
|
add
|
Adds one or more config URLs into our list.
You can override the global asset if you wish by including it with the
config(s) that you add.
By default we cache our responses so that subsiquent calls does not
cause the content to be retrieved again. Setting this to False does
mean more then one call can be made to retrieve the (same) data. This
method can be somewhat inefficient if disabled and you're set up to
make remote calls. Only disable caching if you understand the
consequences.
You can alternatively set the cache value to an int identifying the
number of seconds the previously retrieved can exist for before it
should be considered expired.
It's also worth nothing that the cache value is only set to elements
that are not already of subclass ConfigBase()
Optionally override the default recursion value.
Optionally override the insecure_includes flag.
if insecure_includes is set to True then all plugins that are
set to a STRICT mode will be a treated as ALWAYS.
|
def add(self, configs, asset=None, tag=None, cache=True, recursion=None,
insecure_includes=None):
"""
Adds one or more config URLs into our list.
You can override the global asset if you wish by including it with the
config(s) that you add.
By default we cache our responses so that subsiquent calls does not
cause the content to be retrieved again. Setting this to False does
mean more then one call can be made to retrieve the (same) data. This
method can be somewhat inefficient if disabled and you're set up to
make remote calls. Only disable caching if you understand the
consequences.
You can alternatively set the cache value to an int identifying the
number of seconds the previously retrieved can exist for before it
should be considered expired.
It's also worth nothing that the cache value is only set to elements
that are not already of subclass ConfigBase()
Optionally override the default recursion value.
Optionally override the insecure_includes flag.
if insecure_includes is set to True then all plugins that are
set to a STRICT mode will be a treated as ALWAYS.
"""
# Initialize our return status
return_status = True
# Initialize our default cache value
cache = cache if cache is not None else self.cache
# Initialize our default recursion value
recursion = recursion if recursion is not None else self.recursion
# Initialize our default insecure_includes value
insecure_includes = \
insecure_includes if insecure_includes is not None \
else self.insecure_includes
if asset is None:
# prepare default asset
asset = self.asset
if isinstance(configs, ConfigBase):
# Go ahead and just add our configuration into our list
self.configs.append(configs)
return True
elif isinstance(configs, str):
# Save our path
configs = (configs, )
elif not isinstance(configs, (tuple, set, list)):
logger.error(
'An invalid configuration path (type={}) was '
'specified.'.format(type(configs)))
return False
# Iterate over our configuration
for _config in configs:
if isinstance(_config, ConfigBase):
# Go ahead and just add our configuration into our list
self.configs.append(_config)
continue
elif not isinstance(_config, str):
logger.warning(
"An invalid configuration (type={}) was specified.".format(
type(_config)))
return_status = False
continue
logger.debug("Loading configuration: {}".format(_config))
# Instantiate ourselves an object, this function throws or
# returns None if it fails
instance = AppriseConfig.instantiate(
_config, asset=asset, tag=tag, cache=cache,
recursion=recursion, insecure_includes=insecure_includes)
if not isinstance(instance, ConfigBase):
return_status = False
continue
# Add our initialized plugin to our server listings
self.configs.append(instance)
# Return our status
return return_status
|
(self, configs, asset=None, tag=None, cache=True, recursion=None, insecure_includes=None)
|
[
-0.021097248420119286,
-0.04906517267227173,
-0.04735720902681351,
0.003314034081995487,
0.0041146427392959595,
0.054111432284116745,
-0.030064063146710396,
0.006264155264943838,
-0.07553862780332565,
-0.006215633358806372,
0.010383649729192257,
0.022746985778212547,
-0.011198814958333969,
0.011965458281338215,
-0.008268103003501892,
-0.05259755253791809,
0.0186129342764616,
0.013411405496299267,
-0.013188205659389496,
-0.07359775900840759,
-0.020185038447380066,
0.01573074422776699,
0.01978716067969799,
0.05547004193067551,
0.04122406244277954,
0.04312611371278763,
0.08400081843137741,
0.004299025051295757,
-0.02228117734193802,
0.046347953379154205,
-0.032703645527362823,
0.0038671817164868116,
0.009136641398072243,
-0.01655561290681362,
0.020864343270659447,
0.0047599817626178265,
-0.006341789849102497,
0.062495987862348557,
-0.09471441805362701,
0.022630535066127777,
0.04037007689476013,
-0.03276187181472778,
0.03249014914035797,
-0.049608614295721054,
0.035673175007104874,
0.0696772038936615,
-0.05655692517757416,
0.10542801022529602,
-0.06230190023779869,
-0.06595073640346527,
0.019263125956058502,
0.016914675012230873,
0.014013075269758701,
0.03648833930492401,
-0.027502115815877914,
0.030937453731894493,
0.03716764599084854,
0.0798085406422615,
0.04130169376730919,
0.04238858073949814,
-0.003653686260804534,
-0.0362166166305542,
0.02833668887615204,
-0.02090316079556942,
-0.020806116983294487,
0.0030495906248688698,
-0.09036687016487122,
-0.029559437185525894,
0.029345940798521042,
0.022572308778762817,
0.007986676879227161,
-0.01616743952035904,
-0.010859162546694279,
-0.05189884081482887,
0.03837098181247711,
-0.015623996965587139,
0.044639989733695984,
0.02284402959048748,
-0.015391092747449875,
0.008869771845638752,
-0.006341789849102497,
0.010403058491647243,
0.010306015610694885,
-0.00002536018473620061,
0.047667745500802994,
0.014556518755853176,
-0.026570498943328857,
-0.06346642225980759,
0.013100867159664631,
0.05356798693537712,
-0.011014432646334171,
-0.006317528896033764,
0.04281557351350784,
-0.05088958889245987,
0.007152102887630463,
0.00369735574349761,
0.015264935791492462,
-0.031946707516908646,
0.05279164016246796,
-0.04180632159113884,
-0.036915332078933716,
-0.019360169768333435,
-0.02233940362930298,
-0.0864851325750351,
0.004422755446285009,
-0.10325423628091812,
-0.02707512490451336,
0.026512272655963898,
-0.01664295233786106,
0.014634153805673122,
0.01655561290681362,
-0.02957884594798088,
0.0025231298059225082,
-0.010412762872874737,
0.012440971098840237,
0.018059788271784782,
-0.04289320856332779,
-0.01444977056235075,
0.011654919013381004,
-0.0030204777140170336,
-0.03474155813455582,
0.05294691026210785,
0.0073219286277890205,
0.039438460022211075,
0.04906517267227173,
0.028802497312426567,
-0.007530572358518839,
0.007865372113883495,
-0.013459927402436733,
-0.028860723599791527,
0.025095438584685326,
0.03324708715081215,
-0.010092519223690033,
-0.035673175007104874,
0.0540337972342968,
-0.050462596118450165,
-0.003073851577937603,
0.009044449776411057,
-0.06785278767347336,
0.015410500578582287,
-0.0045464858412742615,
0.027055716142058372,
0.0030034950468689203,
0.008830954320728779,
-0.007904189638793468,
-0.021718325093388557,
-0.02249467372894287,
-0.002673547249287367,
-0.009985771961510181,
0.03627484291791916,
0.0291906725615263,
-0.03260660171508789,
-0.046347953379154205,
0.049608614295721054,
-0.04075825214385986,
-0.0009680084767751396,
-0.030588097870349884,
0.07899337261915207,
0.01214013621211052,
-0.03472214937210083,
-0.015216413885354996,
0.042000409215688705,
0.01070389337837696,
0.023892099037766457,
-0.06890085339546204,
-0.04568805918097496,
-0.056789830327034,
0.014702083542943,
-0.01211102306842804,
0.04471762478351593,
-0.002666268963366747,
-0.012965005822479725,
-0.0256388820707798,
0.023212794214487076,
-0.039438460022211075,
0.013023232109844685,
0.0025061473716050386,
-0.01481853611767292,
-0.0113346753641963,
0.0024345777928829193,
-0.0534515380859375,
-0.0005473857745528221,
-0.009854762814939022,
0.028356097638607025,
0.005919651128351688,
0.03551790490746498,
0.017691021785140038,
0.003304329700767994,
0.020010361447930336,
0.059662315994501114,
-0.03730350360274315,
0.004420329350978136,
0.01176166720688343,
-0.052287016063928604,
-0.02860841155052185,
0.004221390467137098,
-0.01840914413332939,
0.007841111160814762,
0.024183230474591255,
0.030762776732444763,
-0.04254385083913803,
-0.06303942948579788,
0.0226693507283926,
-0.04254385083913803,
0.06583428382873535,
-0.019389282912015915,
-0.03313063457608223,
-0.02633759379386902,
-0.008830954320728779,
0.061991360038518906,
-0.0437471903860569,
0.029326532036066055,
-0.013042640872299671,
-0.008107980713248253,
-0.01613832637667656,
-0.009456885047256947,
-0.000010367728464188986,
0.03371289744973183,
-0.029423575848340988,
0.006152555346488953,
0.05741091072559357,
0.0040394337847828865,
0.03371289744973183,
0.0002436700597172603,
-0.02169891633093357,
0.02140778675675392,
0.010199267417192459,
-0.00946658942848444,
-0.0015078127617016435,
0.048909902572631836,
0.00778288533911109,
0.03163616731762886,
0.04875463247299194,
-0.00829236302524805,
0.07926509529352188,
0.01605098694562912,
0.012751510366797447,
0.04887108504772186,
0.019039927050471306,
0.032645419239997864,
0.043436650186777115,
0.02525070682168007,
-0.012013980187475681,
-0.027540933340787888,
-0.030976271256804466,
0.002615321194753051,
-0.0443294495344162,
0.01728343963623047,
-0.04165105149149895,
-0.026065872982144356,
0.05178238824009895,
0.05003560706973076,
-0.013081458397209644,
-0.040059540420770645,
-0.024319089949131012,
-0.011645214632153511,
0.01542020495980978,
-0.0014386692782863975,
0.05170475319027901,
-0.06676589697599411,
0.03674065321683884,
-0.07406356930732727,
0.05123894661664963,
0.04266030341386795,
-0.08733911067247391,
-0.005206381436437368,
0.049259260296821594,
-0.012557423673570156,
-0.031170358881354332,
0.0746070072054863,
0.07305431365966797,
0.03765286132693291,
0.02963707223534584,
-0.022145317867398262,
0.03730350360274315,
0.012654466554522514,
0.04797828570008278,
-0.024940168485045433,
-0.03627484291791916,
0.02660931646823883,
0.025949420407414436,
0.006652329117059708,
0.04832764342427254,
-0.019098151475191116,
0.03610016778111458,
-0.06932784616947174,
-0.027948515489697456,
0.09580130130052567,
-0.07352012395858765,
0.007059911731630564,
0.013828692957758904,
0.02437731623649597,
-0.008826102130115032,
-0.019952135160565376,
0.021912412717938423,
0.015284344553947449,
-0.018593525514006615,
0.025658290833234787,
0.021000204607844353,
-0.013382292352616787,
-0.027560342103242874,
-0.03184966370463371,
-0.0009546650107949972,
-0.020825525745749474,
0.005992433521896601,
-0.011227928102016449,
-0.029559437185525894,
-0.008190467953681946,
0.046580858528614044,
0.06956075131893158,
0.011383197270333767,
0.027210986241698265,
0.018088899552822113,
0.0362166166305542,
0.005672189872711897,
0.009607302024960518,
0.003052016720175743,
-0.0040467120707035065,
-0.019175786525011063,
0.01008281484246254,
-0.035886671394109726,
0.07515045255422592,
-0.06311706453561783,
-0.025968829169869423,
0.06144791841506958,
-0.017691021785140038,
0.04724075645208359,
0.02034030854701996,
-0.03219901770353317,
0.0019481474300846457,
-0.04627032205462456,
-0.003748303512111306,
0.014983509667217731,
0.03730350360274315,
0.013003823347389698,
-0.03084040991961956,
-0.008627163246273994,
-0.060399848967790604,
0.01578897051513195,
-0.03318886086344719,
0.026881037279963493,
-0.033887576311826706,
-0.05236465111374855,
-0.011635510250926018,
0.0004473096923902631,
-0.02763797715306282,
0.05989522114396095,
0.035886671394109726,
-0.009029894135892391,
0.0296952985227108,
0.021679507568478584,
-0.056789830327034,
0.0014617170672863722,
0.02757975086569786,
0.048676997423172,
-0.05197647586464882,
-0.055819395929574966,
-0.03676006197929382,
0.02736625447869301,
-0.04009835794568062,
-0.022184133529663086,
-0.008670832961797714,
-0.0016169865848496556,
0.07006537914276123,
-0.008224433287978172,
-0.0027511820662766695,
-0.007142398506402969,
-0.02055380493402481,
0.06595073640346527,
-0.12281820178031921,
0.0019857517909258604,
0.019321352243423462,
0.04141814634203911,
-0.0524422861635685,
0.05776026472449303,
-0.033771123737096786,
-0.013246431946754456,
0.017069943249225616,
-0.022882847115397453,
0.025153664872050285,
-0.027715612202882767,
0.07813939452171326,
-0.002603190718218684,
0.002264751587063074,
0.050579048693180084,
-0.03478037565946579,
0.013382292352616787,
-0.01758427359163761,
0.010373945347964764,
0.004793946631252766,
0.02478489838540554,
0.002709938446059823,
-0.060050491243600845,
0.03010288067162037,
-0.09898432344198227,
-0.048793449997901917,
0.016807926818728447,
0.05310218036174774,
0.0053373901173472404,
0.0004940118524245918,
0.05741091072559357,
-0.055819395929574966,
0.07650905847549438,
0.03728409484028816,
0.003066573292016983,
-0.003925407771021128,
0.03695414960384369,
0.03524618223309517,
-0.012829145416617393,
0.0063369376584887505,
0.0055994074791669846,
-0.03353821858763695,
-0.025794150307774544,
-0.03493564575910568,
-0.05647929385304451,
0.01961248181760311,
-0.01661383919417858,
0.03639129549264908,
-0.02837550640106201,
0.024532586336135864,
0.04176750406622887,
-0.021776551380753517,
-0.004575598984956741,
0.023562151938676834,
-0.014750605449080467,
0.03169439360499382,
0.03054928034543991,
0.028647229075431824,
-0.1241379901766777,
-0.052519917488098145,
-0.0018802169943228364,
0.029287714511156082,
0.044407084584236145,
-0.058109622448682785,
0.010306015610694885,
-0.05081195384263992,
-0.010616553947329521,
-0.10635963082313538,
-0.035032689571380615,
-0.01641004905104637,
-0.010519511066377163,
-0.006298120599240065,
-0.03757522627711296,
0.009922693483531475,
0.000017759710317477584,
-0.0007175150676630437,
-0.0643204003572464,
-0.005643077194690704,
0.04735720902681351,
-0.029404167085886,
-0.039147332310676575,
-0.004687198903411627,
-0.002542538568377495,
0.02730802819132805,
-0.008224433287978172,
-0.04002072289586067,
0.02352333441376686,
0.008879476226866245,
-0.030704550445079803,
0.029714707285165787,
0.018011266365647316,
-0.038642704486846924,
0.038409799337387085,
-0.026085281744599342,
-0.056168753653764725,
0.0019275256199762225,
0.0391085147857666,
0.046464405953884125,
0.013712240383028984,
-0.0003072031831834465,
-0.026589907705783844,
-0.02125251665711403,
-0.03941905125975609,
0.015633700415492058,
-0.0350520983338356,
-0.020398534834384918,
0.04522225260734558,
0.00846704188734293,
-0.04739602282643318,
-0.03575081005692482,
-0.031247993931174278,
-0.01559488382190466,
-0.028977176174521446,
0.010626258328557014,
0.005385912023484707,
-0.09191956371068954,
0.059817586094141006,
-0.022688759490847588,
0.02866663783788681,
0.03025815077126026,
-0.025056621059775352,
-0.07018183171749115,
-0.013964553363621235,
0.032004933804273605,
-0.0229604821652174,
0.012945597060024738,
0.021446604281663895,
0.010558328591287136,
0.04778419807553291,
-0.02895776741206646,
0.02061203122138977,
-0.05418906733393669,
0.008758172392845154,
0.010849458165466785,
0.00832147616893053,
0.0010298737324774265,
-0.04254385083913803,
0.02822023816406727,
-0.0627288892865181,
-0.009694641456007957,
-0.0540337972342968,
0.012955301441252232,
0.006370902992784977,
0.009253093972802162,
0.04568805918097496,
-0.027327436953783035,
0.008491302840411663,
-0.007850815542042255,
-0.004172868560999632,
-0.02878308854997158,
0.044523537158966064,
-0.00133798667229712,
0.05768262967467308,
0.03169439360499382,
-0.01259624119848013,
0.03681828826665878,
0.01787540502846241,
-0.05744972825050354,
-0.08306919783353806,
0.040525346994400024,
-0.010655371472239494,
0.033887576311826706,
-0.05741091072559357,
-0.02536715939640999,
0.01139290165156126,
0.030413419008255005,
-0.0019008386880159378,
0.020980795845389366,
-0.008573789149522781,
-0.019505735486745834,
0.040525346994400024,
-0.015886014327406883,
0.04021481052041054,
-0.0512777641415596,
-0.04487289488315582,
-0.03295595943927765,
-0.012955301441252232,
0.03687651455402374,
0.0356343574821949,
-0.04778419807553291,
0.034353382885456085,
0.018030675128102303,
0.029287714511156082,
-0.0005807444686070085,
0.0854758769273758,
-0.05391734465956688,
0.03493564575910568,
-0.050113242119550705,
-0.006433981005102396,
0.03798281028866768,
0.03260660171508789,
0.018564414232969284,
-0.10868867486715317,
0.023445699363946915,
-0.0036342774983495474,
-0.04095233976840973,
0.017040831968188286,
-0.010548624210059643,
0.026318185031414032,
-0.02237822115421295,
0.04630913957953453,
-0.02610469050705433,
-0.058226075023412704,
-0.024881942197680473,
-0.009039598517119884,
0.03210197389125824,
-0.004068546928465366,
0.024454951286315918,
-0.010849458165466785,
-0.01616743952035904,
-0.019292239099740982,
-0.017623091116547585,
-0.00669599836692214,
-0.03146148845553398,
0.03289773315191269,
0.0037822688464075327,
0.010490397922694683,
0.06827977299690247,
-0.006894937716424465,
0.004983181599527597,
-0.00504140742123127,
0.07449055463075638,
0.0005977270193397999,
0.004061268642544746,
-0.016623543575406075,
0.0315779410302639,
-0.002206525532528758,
-0.023348655551671982,
-0.0008558019762858748,
0.01731255277991295,
-0.043087296187877655,
-0.04553278908133507,
0.0027948515489697456,
-0.04545515403151512,
-0.01781717874109745,
-0.010131336748600006,
-0.05232583358883858,
-0.0207867082208395,
-0.012635057792067528,
-0.01772983931005001,
0.0544607900083065,
-0.00805460661649704,
0.031209176406264305,
0.004774537868797779,
0.008564084768295288,
-0.02428027242422104,
-0.044795259833335876,
0.037672270089387894,
0.056401658803224564,
-0.04165105149149895,
0.025716517120599747,
0.04335901513695717,
0.04095233976840973,
0.01450799684971571,
-0.10503983497619629,
-0.019534848630428314,
-0.029345940798521042,
-0.030918044969439507,
-0.021000204607844353,
0.020767299458384514,
0.09044450521469116,
0.006521320436149836,
0.03551790490746498,
0.016507092863321304,
-0.023620378226041794,
-0.03712882846593857,
0.08337973803281784,
0.024862533435225487,
0.06571783125400543,
-0.029772933572530746,
0.09199719876050949,
-0.043669555336236954,
-0.02146601304411888,
-0.022261768579483032,
0.00679789436981082,
0.024454951286315918,
0.010839753784239292,
-0.009272502735257149,
0.07029827684164047,
-0.024319089949131012,
-0.0010062193032354116,
-0.002964677521958947,
-0.026803402230143547,
0.02860841155052185,
0.014750605449080467,
0.04976388439536095,
0.0409911572933197,
0.04848290979862213,
0.004803651012480259,
-0.02416382171213627,
-0.02067025564610958,
-0.01864204742014408,
-0.03413988649845123,
-0.04665849357843399,
-0.010606849566102028,
-0.04564924165606499,
0.019505735486745834,
-0.02290225587785244,
-0.0035178253892809153,
0.022145317867398262,
-0.004813355393707752,
-0.06206899508833885,
-0.007598502561450005,
0.04704666882753372,
0.07041472941637039,
-0.02827846258878708,
-0.08555351197719574,
0.01270298846065998,
-0.032858915627002716,
0.014100414700806141,
-0.060555119067430496,
0.013576379977166653,
-0.0004551944730337709,
0.06564019620418549,
-0.0453387014567852,
0.02352333441376686,
0.06323351711034775,
-0.022067682817578316,
-0.00706961564719677,
0.03786635771393776,
-0.02325161173939705,
-0.0021543647162616253,
0.00911238044500351,
0.008632015436887741,
0.030762776732444763,
-0.010713597759604454,
0.005808050744235516,
-0.02261112630367279,
-0.026570498943328857,
0.01136378850787878,
0.06878440082073212,
0.000015674791939090937,
-0.024920759722590446,
0.038293346762657166,
-0.008442780934274197,
-0.035265590995550156,
0.012101318687200546,
-0.025173073634505272,
0.0014908300945535302,
0.007278259377926588,
-0.027210986241698265,
0.07957563549280167,
0.08174940943717957,
-0.043203748762607574,
-0.024746080860495567,
0.004866729490458965,
0.07705250382423401,
-0.02643463760614395,
-0.0022004602942615747,
0.03254837542772293,
-0.03227665275335312,
-0.010723302140831947,
0.03963254764676094,
-0.043203748762607574,
0.016594430431723595,
-0.04712430387735367,
0.03631366044282913,
-0.002760886447504163,
0.011208519339561462,
-0.0002670211251825094,
-0.03190788999199867,
-0.003952094819396734,
-0.003476581769064069,
0.04075825214385986,
0.014440066181123257,
-0.05818725749850273,
0.014653561636805534,
0.026861628517508507,
-0.010985319502651691,
-0.009136641398072243,
0.021679507568478584,
-0.031247993931174278,
-0.012887370772659779,
-0.024260863661766052,
-0.02525070682168007,
-0.04716312140226364,
0.03936082497239113,
0.02810378558933735,
-0.03778872266411781,
0.015352275222539902,
-0.02792910672724247,
0.0008188041974790394,
0.0037337469402700663,
0.05104485899209976,
-0.00018999289022758603,
-0.008685389533638954,
-0.03959373012185097,
0.016322709619998932,
0.009801389649510384,
-0.031092723831534386,
0.005497511941939592,
-0.0421556793153286,
0.028918949887156487,
0.031053906306624413,
0.044911712408065796,
0.029617663472890854,
0.0031539122574031353,
0.009956658817827702
] |
721,946
|
apprise.apprise_config
|
add_config
|
Adds one configuration file in it's raw format. Content gets loaded as
a memory based object and only exists for the life of this
AppriseConfig object it was loaded into.
If you know the format ('yaml' or 'text') you can specify
it for slightly less overhead during this call. Otherwise the
configuration is auto-detected.
Optionally override the default recursion value.
Optionally override the insecure_includes flag.
if insecure_includes is set to True then all plugins that are
set to a STRICT mode will be a treated as ALWAYS.
|
def add_config(self, content, asset=None, tag=None, format=None,
recursion=None, insecure_includes=None):
"""
Adds one configuration file in it's raw format. Content gets loaded as
a memory based object and only exists for the life of this
AppriseConfig object it was loaded into.
If you know the format ('yaml' or 'text') you can specify
it for slightly less overhead during this call. Otherwise the
configuration is auto-detected.
Optionally override the default recursion value.
Optionally override the insecure_includes flag.
if insecure_includes is set to True then all plugins that are
set to a STRICT mode will be a treated as ALWAYS.
"""
# Initialize our default recursion value
recursion = recursion if recursion is not None else self.recursion
# Initialize our default insecure_includes value
insecure_includes = \
insecure_includes if insecure_includes is not None \
else self.insecure_includes
if asset is None:
# prepare default asset
asset = self.asset
if not isinstance(content, str):
logger.warning(
"An invalid configuration (type={}) was specified.".format(
type(content)))
return False
logger.debug("Loading raw configuration: {}".format(content))
# Create ourselves a ConfigMemory Object to store our configuration
instance = C_MGR['memory'](
content=content, format=format, asset=asset, tag=tag,
recursion=recursion, insecure_includes=insecure_includes)
if instance.config_format not in CONFIG_FORMATS:
logger.warning(
"The format of the configuration could not be deteced.")
return False
# Add our initialized plugin to our server listings
self.configs.append(instance)
# Return our status
return True
|
(self, content, asset=None, tag=None, format=None, recursion=None, insecure_includes=None)
|
[
-0.01828821375966072,
-0.06244025379419327,
0.025751454755663872,
-0.010459772311151028,
0.01566624827682972,
0.04790706932544708,
-0.009097286500036716,
0.02726844884455204,
-0.04108995571732521,
-0.053975049406290054,
0.019646018743515015,
-0.006302082911133766,
-0.004373065195977688,
0.007758210878819227,
-0.014074340462684631,
-0.031276311725378036,
-0.0017276884755119681,
-0.006016476079821587,
-0.03914221003651619,
-0.02500232122838497,
-0.006437863688915968,
-0.03794359788298607,
0.020039312541484833,
0.05566059798002243,
0.054274700582027435,
0.04550984129309654,
0.07090546190738678,
0.0012910842197015882,
-0.030171340331435204,
0.0034319665282964706,
-0.03425411507487297,
-0.011012258008122444,
0.0013519513886421919,
-0.03796232491731644,
0.03033989481627941,
-0.009485899470746517,
0.01272590085864067,
0.06850823014974594,
-0.08937159180641174,
0.017679544165730476,
0.035040706396102905,
-0.012154686264693737,
0.027062436565756798,
-0.03749411553144455,
0.0001872833090601489,
0.06206568703055382,
-0.01337202824652195,
0.11768882721662521,
-0.06513713300228119,
-0.034666139632463455,
0.03228764235973358,
-0.00610543554648757,
-0.007903355173766613,
0.06038013845682144,
-0.030602091923356056,
0.02065734751522541,
0.02981550246477127,
0.07225389778614044,
0.025301974266767502,
0.04977990314364433,
-0.0038416488096117973,
-0.0186159610748291,
0.043974120169878006,
-0.007992315106093884,
-0.004698469769209623,
0.01201422419399023,
-0.08105621486902237,
-0.032624751329422,
0.024309372529387474,
-0.00648000231012702,
-0.006428499240428209,
-0.034965790808200836,
0.0001159547027782537,
-0.05371285229921341,
0.05071631819009781,
-0.016359196975827217,
-0.014626826159656048,
0.07607448101043701,
-0.00752878887578845,
0.036389146000146866,
0.008423066698014736,
0.006049250718206167,
0.00032950154854916036,
-0.032793305814266205,
0.03505943343043327,
0.007304048631340265,
-0.024815037846565247,
-0.014458270743489265,
0.0356212854385376,
0.006386360619217157,
0.015600699000060558,
0.0011002894025295973,
0.0476074144244194,
-0.0252457894384861,
0.009134743362665176,
-0.002572804456576705,
0.011883125640451908,
-0.014214802533388138,
0.04153943806886673,
-0.011929946020245552,
-0.06288973242044449,
0.0004322147578932345,
0.00784717034548521,
-0.09693783521652222,
-0.027774114161729813,
-0.0927426889538765,
-0.007088672835379839,
0.04168926179409027,
-0.03758775815367699,
0.0054686726070940495,
0.018007289618253708,
-0.04569712653756142,
-0.020694805309176445,
0.01337202824652195,
0.00412959698587656,
0.004185781814157963,
-0.0008269728277809918,
-0.011274455115199089,
0.016359196975827217,
0.0245528407394886,
-0.033018045127391815,
0.023841165006160736,
0.004021909087896347,
0.002914596349000931,
0.06509967893362045,
0.02517087571322918,
0.0014128184411674738,
-0.008998963050544262,
-0.026463130488991737,
-0.042400941252708435,
0.04108995571732521,
0.039778973907232285,
-0.006437863688915968,
-0.08345343917608261,
0.039404407143592834,
-0.06936973333358765,
-0.004333267454057932,
-0.0022778331767767668,
-0.03629550337791443,
0.0036450012121349573,
0.014121160842478275,
0.022193070501089096,
-0.003001214936375618,
-0.0030363304540514946,
-0.010806246660649776,
-0.03833689168095589,
-0.04049064964056015,
0.001490072812885046,
-0.024309372529387474,
0.042251113802194595,
0.0049911001697182655,
0.002243888098746538,
-0.07850915938615799,
0.06191585958003998,
-0.02876671589910984,
0.022923476994037628,
-0.003357053268700838,
0.0721040740609169,
0.0034858104772865772,
-0.013325206935405731,
-0.01843804121017456,
0.04034082219004631,
0.04723284766077995,
0.050229381769895554,
-0.07716072350740433,
-0.04138961061835289,
-0.04273805022239685,
-0.013475033454596996,
-0.01051595713943243,
0.023316770792007446,
-0.01818520948290825,
-0.03296186029911041,
-0.03644533082842827,
0.005351620260626078,
0.035284172743558884,
0.025751454755663872,
0.01569434069097042,
-0.0219308752566576,
-0.006526823155581951,
-0.00749133201315999,
-0.028429605066776276,
0.027437003329396248,
0.020938273519277573,
0.0408652164041996,
0.014542548917233944,
0.024983592331409454,
0.018091566860675812,
0.013568675145506859,
0.07532534748315811,
-0.00031662583933211863,
0.014533184468746185,
0.005066013429313898,
-0.01998312771320343,
-0.06809620559215546,
-0.01596590131521225,
-0.012435611337423325,
-0.03095792979001999,
-0.017829369753599167,
0.02352278307080269,
0.06573644280433655,
-0.04476070776581764,
-0.07165458798408508,
-0.0005056649097241461,
-0.017969833686947823,
0.0676092728972435,
-0.011808211915194988,
-0.018990525975823402,
0.0014139888808131218,
-0.051427993923425674,
0.04502290487289429,
-0.040078625082969666,
-0.029871687293052673,
-0.009729367680847645,
0.010150754824280739,
0.02921619452536106,
-0.06157875061035156,
-0.006578326225280762,
0.06539932638406754,
-0.06502476334571838,
0.010871795937418938,
0.02509596198797226,
0.051278166472911835,
0.04977990314364433,
-0.02262382209300995,
-0.019149716943502426,
-0.013353299349546432,
0.008554165251553059,
-0.009064511395990849,
0.014692375436425209,
0.051203254610300064,
0.014177345670759678,
0.05655955895781517,
0.010956073179841042,
0.004047660157084465,
0.06371378153562546,
0.019514920189976692,
0.025676541030406952,
0.03020879626274109,
0.014495727606117725,
0.019739659503102303,
0.027174808084964752,
0.012782085686922073,
-0.020376423373818398,
-0.04491053521633148,
-0.04801943898200989,
-0.014467635191977024,
-0.03322405740618706,
-0.013887057080864906,
-0.025863824412226677,
-0.017258156090974808,
0.016509022563695908,
0.037868682295084,
-0.03311168774962425,
-0.012529253028333187,
-0.042176198214292526,
0.005103469826281071,
0.03464741259813309,
-0.016303012147545815,
0.05476163700222969,
-0.0609794445335865,
0.05213966965675354,
-0.0616162084043026,
0.07495077699422836,
0.008076592348515987,
-0.04453596845269203,
0.01771700009703636,
0.020039312541484833,
-0.01741734705865383,
0.00029467858257703483,
0.051502909511327744,
0.06120418384671211,
0.0802321657538414,
0.040078625082969666,
-0.040228452533483505,
0.02312948741018772,
0.012332605198025703,
0.051053427159786224,
0.005712140817195177,
0.039254579693078995,
0.03535908833146095,
0.008863182738423347,
-0.005417169537395239,
0.06659794598817825,
-0.0037924868520349264,
0.025994922965765,
-0.06131655350327492,
-0.04618406295776367,
0.06850823014974594,
-0.05191493034362793,
-0.0029637583065778017,
-0.011780119501054287,
0.042625680565834045,
-0.010356767103075981,
0.008689945563673973,
0.03395446389913559,
-0.007313413079828024,
-0.026257118210196495,
0.024815037846565247,
-0.007055898662656546,
-0.04929296672344208,
-0.026463130488991737,
0.008109367452561855,
-0.02088208869099617,
-0.00048049871111288667,
-0.0311826691031456,
-0.016284283250570297,
-0.019140353426337242,
-0.024964863434433937,
0.00991665106266737,
0.06678522378206253,
0.012510525062680244,
0.0006320811226032674,
0.051727648824453354,
0.02297966182231903,
-0.020114226266741753,
0.08352835476398468,
0.04034082219004631,
-0.005693412385880947,
-0.0005524857551790774,
-0.023017117753624916,
-0.025058506056666374,
0.032044172286987305,
-0.04805689677596092,
-0.02584509551525116,
0.05139053985476494,
-0.014551912434399128,
0.0779847651720047,
-0.006639193277806044,
-0.010459772311151028,
0.011040350422263145,
-0.04442359879612923,
0.02442174218595028,
0.012416883371770382,
0.024927407503128052,
0.00995410792529583,
-0.07461366802453995,
-0.021687407046556473,
-0.08120603859424591,
-0.01741734705865383,
-0.06315193325281143,
0.04573458433151245,
-0.02297966182231903,
-0.04213874414563179,
-0.05041666328907013,
0.0504915788769722,
-0.023841165006160736,
0.01616254821419716,
-0.0026172841899096966,
0.006428499240428209,
0.04977990314364433,
-0.02005804143846035,
-0.016780583187937737,
-0.012201507575809956,
-0.013624859973788261,
-0.00646127387881279,
-0.029871687293052673,
-0.06142892315983772,
-0.027849027886986732,
-0.000226056799874641,
-0.008956823498010635,
0.00845584087073803,
0.025208331644535065,
-0.0018927318742498755,
0.065249502658844,
-0.013924513943493366,
0.01119017694145441,
-0.042101286351680756,
0.038805101066827774,
0.05566059798002243,
-0.07607448101043701,
0.020020585507154465,
0.03442266955971718,
0.03612694889307022,
-0.016462203115224838,
0.07030615210533142,
-0.031744521111249924,
-0.03326151520013809,
0.008769541047513485,
-0.0293660219758749,
0.022361626848578453,
0.005880695767700672,
0.04644626006484032,
0.0007713731029070914,
-0.055623140186071396,
0.010600235313177109,
-0.03695099428296089,
0.02886035665869713,
-0.023316770792007446,
-0.03247492387890816,
-0.021312840282917023,
0.021425209939479828,
0.0357336550951004,
-0.04438614100217819,
0.036464057862758636,
-0.07596210390329361,
-0.052776433527469635,
-0.014448907226324081,
0.05363793671131134,
0.013877692632377148,
0.04423631727695465,
0.03577110916376114,
-0.06573644280433655,
0.032568566501140594,
0.00017923596897162497,
-0.026350760832428932,
0.017379891127347946,
0.006348903756588697,
0.02891654148697853,
0.0030339895747601986,
0.03125758469104767,
0.03326151520013809,
-0.010750061832368374,
-0.042101286351680756,
0.010263125412166119,
-0.0579829104244709,
0.024927407503128052,
0.00884445384144783,
0.0022801742888987064,
-0.07652395963668823,
0.00961699802428484,
0.010581506416201591,
-0.006409770809113979,
-0.007224453613162041,
0.03026498109102249,
0.010403587482869625,
0.03110775724053383,
0.013980698771774769,
-0.0028467061929404736,
-0.10405460000038147,
-0.054349616169929504,
-0.03401064872741699,
0.04303770139813423,
0.034366484731435776,
-0.02756810188293457,
-0.006255262531340122,
-0.07367724925279617,
0.0036239319015294313,
-0.10974801331758499,
-0.0023738157469779253,
-0.020900815725326538,
-0.01776382140815258,
-0.0014643212780356407,
-0.013203472830355167,
0.018466133624315262,
-0.05296371877193451,
-0.0032423422671854496,
-0.06206568703055382,
-0.01535723078995943,
0.045472387224435806,
0.0034811284858733416,
-0.037887413054704666,
-0.0150575777515769,
0.008549482561647892,
0.023298043757677078,
0.007664569187909365,
-0.034291572868824005,
0.07352742552757263,
-0.028897814452648163,
-0.0069294823333621025,
0.017557809129357338,
0.013858964666724205,
-0.021275382488965988,
0.04603423550724983,
-0.03019006922841072,
-0.057645801454782486,
-0.01540405210107565,
0.03065827675163746,
0.06839586049318314,
0.03505943343043327,
0.02359769679605961,
-0.028129952028393745,
0.006686014123260975,
-0.014177345670759678,
0.004330926574766636,
0.03419793024659157,
-0.012154686264693737,
0.014196074567735195,
0.010750061832368374,
-0.03704463690519333,
-0.034516312181949615,
-0.012735264375805855,
0.006044568493962288,
-0.019402550533413887,
-0.011424281634390354,
0.023934805765748024,
-0.06480002403259277,
0.0668601393699646,
-0.04183908924460411,
0.02344786934554577,
0.03814961016178131,
-0.011770755983889103,
-0.02284856326878071,
-0.0077956672757864,
-0.011396189220249653,
-0.020039312541484833,
0.025713996961712837,
0.018129022791981697,
0.04550984129309654,
0.04146452248096466,
-0.02389734983444214,
-0.005796418059617281,
-0.053600482642650604,
-0.036314234137535095,
-0.01704278029501438,
-0.004967689514160156,
0.004567371681332588,
-0.04655862972140312,
0.029703130945563316,
-0.01696786656975746,
0.0219308752566576,
-0.07813459634780884,
0.004471388645470142,
-0.015338502824306488,
0.006082025356590748,
0.042700592428445816,
-0.040378279983997345,
-0.007603702135384083,
0.001103215734474361,
-0.009635725989937782,
-0.05940626189112663,
0.013400120660662651,
-0.019130989909172058,
0.050828687846660614,
0.026650413870811462,
-0.027212264016270638,
0.03200671821832657,
0.009748095646500587,
-0.07940812408924103,
-0.06738453358411789,
0.06303955614566803,
0.02470266819000244,
0.05221458524465561,
-0.023841165006160736,
-0.022717464715242386,
0.0308081042021513,
0.012941276654601097,
0.004934914875775576,
0.040078625082969666,
-0.0046399435959756374,
-0.008699309080839157,
0.03043353743851185,
-0.03974151611328125,
0.0401160828769207,
-0.03401064872741699,
-0.03869273141026497,
-0.005112834274768829,
0.03238128125667572,
-0.01438335794955492,
0.0245528407394886,
-0.07262846827507019,
0.04356209561228752,
0.013765322975814342,
0.038580361753702164,
0.04753250256180763,
0.09304234385490417,
-0.051203254610300064,
0.04539747163653374,
-0.05955608934164047,
0.02245526760816574,
0.011780119501054287,
0.02876671589910984,
0.027661744505167007,
-0.08929667621850967,
0.04682082682847977,
-0.02352278307080269,
-0.028373420238494873,
0.011208905838429928,
-0.023017117753624916,
-0.016462203115224838,
-0.0012852316722273827,
0.04198891669511795,
-0.014317808672785759,
-0.04648371413350105,
-0.021425209939479828,
-0.01359676755964756,
0.034666139632463455,
0.011368096806108952,
0.05895678326487541,
-0.017173878848552704,
-0.004888094030320644,
-0.053001172840595245,
-0.025863824412226677,
-0.000943439663387835,
-0.017080238088965416,
0.03597712144255638,
0.019440006464719772,
0.03033989481627941,
0.0689951702952385,
-0.02996532805263996,
0.009710639715194702,
0.013830872252583504,
0.07217898219823837,
0.024590298533439636,
-0.044723253697156906,
0.006302082911133766,
0.04168926179409027,
0.009663818404078484,
-0.038205794990062714,
0.04446105659008026,
0.012856998480856419,
-0.07603701949119568,
-0.05693412572145462,
0.0017358821351081133,
-0.03168833628296852,
-0.044873081147670746,
0.019739659503102303,
-0.03764394298195839,
-0.017642086371779442,
0.0003754445060621947,
-0.00423494353890419,
0.03629550337791443,
0.0030456946697086096,
0.019514920189976692,
0.006676649674773216,
0.0005788224516436458,
0.0015228473348543048,
-0.020488793030381203,
0.016312375664711,
0.0714673101902008,
-0.02886035665869713,
0.008886592462658882,
0.062252968549728394,
0.026107292622327805,
0.005964973010122776,
-0.06993158161640167,
0.01532913837581873,
-0.04603423550724983,
0.0015462577575817704,
-0.03357989713549614,
0.004541620146483183,
0.06682268530130386,
0.018072837963700294,
0.027099894359707832,
0.02509596198797226,
-0.026463130488991737,
-0.06708487868309021,
0.05019192397594452,
0.03125758469104767,
0.05341319739818573,
-0.005323527846485376,
0.08817297965288162,
-0.06371378153562546,
-0.004450319334864616,
-0.020900815725326538,
-0.008718037977814674,
0.027287177741527557,
0.024065904319286346,
-0.03758775815367699,
0.00033506154431961477,
-0.024103360250592232,
0.018428677693009377,
-0.014514455571770668,
-0.018878156319260597,
0.01116208452731371,
0.06869551539421082,
0.051427993923425674,
0.04288787767291069,
0.038355618715286255,
0.0003458888386376202,
-0.03243746981024742,
-0.015638155862689018,
-0.015338502824306488,
-0.038954928517341614,
-0.04554729908704758,
0.003745666006579995,
-0.06850823014974594,
0.004705492872744799,
-0.011443009600043297,
0.01092798076570034,
0.006812429986894131,
0.001580202835611999,
-0.03434775769710541,
-0.03133249655365944,
0.04517273232340813,
0.07090546190738678,
-0.03232509642839432,
-0.07746037095785141,
-0.030602091923356056,
-0.00026087978039868176,
0.014701738953590393,
-0.014823473058640957,
0.026406945660710335,
0.0211817417293787,
0.019140353426337242,
-0.06745944917201996,
-0.000715188100002706,
0.043749380856752396,
0.014907751232385635,
-0.027886483818292618,
0.010244396515190601,
-0.03702590987086296,
0.04783215373754501,
0.01288509089499712,
-0.013915149495005608,
0.028523247689008713,
-0.0005829192814417183,
0.04539747163653374,
0.0019863734487444162,
-0.040902674198150635,
0.0035771110560745,
0.03876764327287674,
0.005707458592951298,
-0.031201398000121117,
0.015179311856627464,
-0.026257118210196495,
-0.07768511772155762,
-0.007500696461647749,
-0.01337202824652195,
0.016630757600069046,
0.012978732585906982,
0.0011301377089694142,
0.09034546464681625,
0.06112926825881004,
-0.030077697709202766,
-0.010759425349533558,
0.01681804098188877,
0.053151000291109085,
-0.013044281862676144,
-0.008924049325287342,
0.010000928305089474,
-0.08210500329732895,
0.007776939310133457,
0.04727030545473099,
-0.07225389778614044,
0.0047616781666874886,
-0.04719539359211922,
0.002166633727028966,
-0.00649873074144125,
0.02614474855363369,
-0.020825903862714767,
-0.04153943806886673,
-0.013400120660662651,
-0.029778044670820236,
0.08959633111953735,
0.006873297039419413,
-0.01193931046873331,
-0.012800813652575016,
0.025882553309202194,
-0.014420813880860806,
-0.020264053717255592,
0.022886019200086594,
-0.0034202614333480597,
-0.0009563153726048768,
-0.023859892040491104,
0.003041012678295374,
-0.052926260977983475,
0.03213781490921974,
0.05333828553557396,
-0.06880788505077362,
0.05521111935377121,
-0.03277457877993584,
0.014542548917233944,
0.002554076025262475,
0.08150569349527359,
0.0015848849434405565,
-0.034741051495075226,
-0.024964863434433937,
-0.005665319971740246,
0.02749318815767765,
-0.03048972226679325,
-0.019514920189976692,
-0.0549863763153553,
0.05109088495373726,
0.03809342533349991,
0.019365092739462852,
0.014083703979849815,
-0.03073319047689438,
0.028129952028393745
] |
721,947
|
apprise.apprise_config
|
clear
|
Empties our configuration list
|
def clear(self):
"""
Empties our configuration list
"""
self.configs[:] = []
|
(self)
|
[
0.009572441689670086,
0.005754458252340555,
-0.027804052457213402,
-0.06555262207984924,
-0.05987004190683365,
0.013952763751149178,
-0.07962377369403839,
-0.007674020249396563,
0.061865709722042084,
0.02665400691330433,
-0.05980239063501358,
-0.042585525661706924,
-0.005792511161416769,
0.030746817588806152,
-0.006980610080063343,
0.0014217020943760872,
0.035820551216602325,
-0.00875218864530325,
0.03321603313088417,
-0.07170874625444412,
-0.0010575561318546534,
-0.015796219930052757,
0.0335373692214489,
0.05963326618075371,
-0.018755897879600525,
-0.005669896025210619,
0.017402902245521545,
-0.03118654154241085,
-0.0008440365199930966,
-0.005441578105092049,
-0.039270687848329544,
0.011238317005336285,
-0.01565246470272541,
-0.0012430644128471613,
0.008473132736980915,
-0.023051656782627106,
0.013453846797347069,
0.027922440320253372,
-0.04634008929133415,
0.05286829173564911,
0.050196126103401184,
-0.025267187505960464,
0.023964928463101387,
-0.0390339121222496,
0.03399400785565376,
0.0702204555273056,
0.03592202439904213,
0.0800296738743782,
-0.016853246837854385,
-0.009969883598387241,
-0.03076373040676117,
0.05831409618258476,
-0.034230779856443405,
0.07603833824396133,
-0.04234875366091728,
0.005644527263939381,
0.04451354593038559,
0.009115805849432945,
0.0787443220615387,
-0.005124469753354788,
-0.0070947688072919846,
-0.002602401887997985,
-0.002870886819437146,
-0.08368276059627533,
0.04674598574638367,
-0.022933270782232285,
-0.07333234697580338,
0.054863959550857544,
0.0564875528216362,
-0.00752180814743042,
-0.04880930483341217,
-0.014265644364058971,
-0.01977064274251461,
0.013335459865629673,
0.031101979315280914,
-0.047490134835243225,
0.00034459098242223263,
0.06257603317499161,
0.018434559926390648,
-0.07373823970556259,
-0.010139008052647114,
0.05733317509293556,
-0.004904607776552439,
0.06017446517944336,
0.035516124218702316,
0.020785389468073845,
0.05384921282529831,
0.03900009021162987,
0.012422188185155392,
0.003154170233756304,
0.05300359055399895,
0.046137139201164246,
-0.0001829979009926319,
-0.018045574426651,
0.03350354731082916,
0.02861585095524788,
-0.02240898460149765,
-0.04343114793300629,
-0.019855204969644547,
-0.03737649321556091,
-0.009547073394060135,
-0.035955850034952164,
-0.02264575846493244,
-0.026129720732569695,
-0.023423731327056885,
-0.046813637018203735,
0.023051656782627106,
-0.03561760112643242,
-0.019990505650639534,
0.08544164896011353,
-0.011720321141183376,
0.022561196237802505,
-0.003052695654332638,
-0.005877073388546705,
0.06758211553096771,
0.03710589557886124,
-0.07272349298000336,
-0.022730320692062378,
0.02000741846859455,
-0.01016437727957964,
-0.005860160570591688,
0.029562946408987045,
-0.04194285348057747,
0.006071566138416529,
0.0730617418885231,
0.05131234601140022,
-0.028277602046728134,
0.016861703246831894,
0.007826232351362705,
-0.046948935836553574,
0.015280390158295631,
0.01415571290999651,
-0.04234875366091728,
-0.013310090638697147,
0.04752396047115326,
-0.05926119163632393,
0.010096726939082146,
-0.09768626093864441,
-0.001302257995121181,
0.012642049230635166,
-0.018941933289170265,
0.023356081917881966,
0.020548615604639053,
0.04674598574638367,
0.045460641384124756,
0.005699492525309324,
-0.017724238336086273,
-0.013986588455736637,
-0.04519004374742508,
0.035448476672172546,
-0.017758062109351158,
-0.006515517830848694,
-0.03954128548502922,
-0.07069400697946548,
-0.06102008745074272,
0.04562976583838463,
-0.06159510836005211,
0.027398154139518738,
-0.000942868588026613,
-0.053206540644168854,
-0.019922856241464615,
0.0153226712718606,
0.02793935313820839,
-0.009690828621387482,
-0.08111206442117691,
-0.011018455028533936,
-0.007669792044907808,
-0.01500979159027338,
-0.04671216383576393,
-0.007788178976625204,
-0.03360502049326897,
-0.07164110243320465,
-0.04701658710837364,
-0.012396818958222866,
-0.002672165632247925,
0.035516124218702316,
-0.03467050567269325,
-0.0008583063608966768,
-0.007948847487568855,
-0.004477568902075291,
-0.07312939316034317,
-0.02049787901341915,
-0.02719520591199398,
-0.006160356570035219,
0.03977806121110916,
0.01699700392782688,
-0.012946473434567451,
0.022628845646977425,
0.01620211824774742,
0.030915942043066025,
-0.029935020953416824,
-0.021749399602413177,
-0.01916179619729519,
-0.002010466530919075,
0.0331483855843544,
-0.030002670362591743,
-0.009470966644585133,
0.006435183808207512,
-0.009107349440455437,
-0.024117140099406242,
-0.05131234601140022,
-0.06710856407880783,
0.053510963916778564,
-0.0807061716914177,
0.0351102277636528,
0.020278016105294228,
-0.0060081444680690765,
-0.04505474120378494,
-0.008692994713783264,
0.06967926025390625,
0.0010406436631456017,
0.0034395677503198385,
0.04836958274245262,
-0.05956561863422394,
0.05039907246828079,
-0.079826720058918,
-0.010451888665556908,
0.010291220620274544,
-0.032945435494184494,
0.015855412930250168,
-0.004293645732104778,
-0.004456428345292807,
-0.002234556246548891,
-0.02689078077673912,
-0.02185087464749813,
0.042889948934316635,
-0.03032400645315647,
-0.04735483601689339,
0.001424873131327331,
-0.03774856775999069,
0.06474082171916962,
0.0008678196463733912,
0.02130967564880848,
-0.025503961369395256,
0.07150579988956451,
-0.001589769497513771,
-0.03561760112643242,
-0.035583775490522385,
-0.04441206902265549,
0.013039492070674896,
-0.039879534393548965,
-0.0111791230738163,
0.025571610778570175,
-0.010612556710839272,
-0.008557694964110851,
0.0681571364402771,
-0.00022342920419760048,
0.04705040901899338,
0.01939857006072998,
-0.014756104908883572,
0.013310090638697147,
-0.03458594158291817,
0.012092395685613155,
-0.010908524505794048,
0.04698276147246361,
-0.07427944242954254,
-0.027736403048038483,
0.007369596045464277,
0.01884046010673046,
-0.010544907301664352,
0.031643178313970566,
-0.013969676569104195,
0.03737649321556091,
0.06788653880357742,
0.03818829357624054,
0.019178707152605057,
0.05077114701271057,
0.056386079639196396,
-0.020616265013813972,
0.03781621903181076,
0.06277897953987122,
-0.008988962508738041,
0.026738569140434265,
-0.029241610318422318,
0.0024819006212055683,
0.04529151692986488,
0.0052217161282896996,
-0.029393821954727173,
-0.02098833955824375,
0.053375665098428726,
0.06643206626176834,
-0.03013796918094158,
0.025267187505960464,
0.04133400693535805,
0.011737233959138393,
0.003669999772682786,
-0.024759814143180847,
-0.0007457329193130136,
-0.02653561905026436,
0.045156218111515045,
0.048606354743242264,
0.02406640350818634,
0.009496335871517658,
0.021022163331508636,
0.06646589189767838,
-0.038154467940330505,
-0.011407441459596157,
0.04596801474690437,
-0.01369062066078186,
0.02068391442298889,
-0.024759814143180847,
-0.023440642282366753,
-0.04634008929133415,
0.012329169549047947,
0.03448446840047836,
-0.008371658623218536,
-0.011669584549963474,
0.022003086283802986,
0.08523870259523392,
0.009403317235410213,
0.005872845184057951,
0.01682787947356701,
-0.0052005755715072155,
0.05631842836737633,
0.05107557028532028,
-0.01248983759433031,
-0.009437141939997673,
0.009716196916997433,
0.02021036669611931,
0.054119810461997986,
-0.03734267130494118,
0.030746817588806152,
-0.03734267130494118,
0.002522067865356803,
-0.004731255583465099,
-0.015466427430510521,
0.012760437093675137,
0.051041748374700546,
-0.04593418911099434,
0.013183247298002243,
-0.035820551216602325,
-0.02700916863977909,
0.013487671501934528,
-0.019922856241464615,
-0.004832730162888765,
-0.05861851945519447,
-0.003843352198600769,
-0.014815297909080982,
0.005877073388546705,
-0.06166275963187218,
0.0014671542448922992,
-0.009191911667585373,
-0.018738985061645508,
0.0008916027727536857,
0.00840971153229475,
0.028040826320648193,
0.016667211428284645,
0.008295551873743534,
-0.006071566138416529,
0.006088478956371546,
0.08077381551265717,
0.039135389029979706,
0.05408598482608795,
0.06866451352834702,
0.09207133203744888,
-0.012904192321002483,
-0.029867371544241905,
0.034112393856048584,
-0.007077856454998255,
-0.03930451348423958,
0.057197876274585724,
0.03191377595067024,
-0.05601400509476662,
-0.01701391488313675,
0.061865709722042084,
0.005170978605747223,
-0.03302999585866928,
-0.037545617669820786,
0.016472717747092247,
-0.06927336007356644,
-0.020886864513158798,
-0.06538349390029907,
0.004925748333334923,
-0.013107141479849815,
0.038289766758680344,
0.003794729011133313,
-0.04427677020430565,
0.04901225492358208,
-0.016159838065505028,
0.047490134835243225,
-0.004223882220685482,
0.014806842431426048,
0.04042073339223862,
-0.01175414677709341,
-0.029562946408987045,
0.00201152334921062,
-0.02350829355418682,
-0.01185562089085579,
0.021444974467158318,
0.05631842836737633,
0.028751149773597717,
-0.02707681804895401,
-0.10309824347496033,
0.005297821946442127,
-0.02371124178171158,
0.04038690775632858,
0.03020562045276165,
0.03118654154241085,
-0.046137139201164246,
-0.018620597198605537,
0.06308340281248093,
-0.043566446751356125,
0.009826128371059895,
0.0496211014688015,
0.019618431106209755,
-0.02296709455549717,
0.0136567959561944,
0.03653087094426155,
0.004164688754826784,
0.0020569756161421537,
0.09619796276092529,
0.0074752988293766975,
0.04339732229709625,
-0.018400736153125763,
0.039879534393548965,
-0.032133638858795166,
-0.01904340833425522,
-0.004655149299651384,
0.09978339821100235,
0.05459335818886757,
0.001318113412708044,
0.030171794816851616,
0.014502418227493763,
0.05641990154981613,
0.023068569600582123,
0.034230779856443405,
-0.008151796646416187,
0.005817879922688007,
-0.0634554773569107,
-0.0340278297662735,
-0.01670103520154953,
-0.002982931677252054,
-0.02271340787410736,
-0.010756312869489193,
-0.04238257557153702,
0.01043497584760189,
0.021072901785373688,
-0.04332967475056648,
-0.043262023478746414,
0.024150965735316277,
-0.004027274902909994,
0.0034522521309554577,
0.026501795276999474,
-0.014536242932081223,
0.014079607091844082,
0.04437824338674545,
-0.04880930483341217,
0.018772808834910393,
0.0062871999107301235,
-0.013039492070674896,
-0.04752396047115326,
-0.001491465838626027,
-0.0002980817807838321,
-0.04529151692986488,
-0.0016764457104727626,
-0.043194375932216644,
-0.007158190477639437,
0.023254606872797012,
-0.04782838374376297,
0.009005874395370483,
0.026670919731259346,
0.005255540832877159,
0.0032958118245005608,
-0.028142301365733147,
0.029241610318422318,
0.018502211198210716,
0.028074651956558228,
0.05533750727772713,
-0.02173248678445816,
0.039913360029459,
0.0035262438468635082,
-0.02560543641448021,
-0.06568791717290878,
-0.014375574886798859,
-0.046813637018203735,
-0.012286888435482979,
0.02621428295969963,
0.029004836454987526,
-0.016303593292832375,
-0.02700916863977909,
-0.033182207494974136,
-0.01867133565247059,
-0.0209376011043787,
0.028818799182772636,
-0.013293178752064705,
-0.04857252910733223,
0.03154170140624046,
-0.09125953167676926,
-0.006397130899131298,
-0.04031926020979881,
-0.05905824527144432,
-0.07962377369403839,
-0.027127554640173912,
-0.020768476650118828,
0.030256357043981552,
-0.025994421914219856,
-0.04542681574821472,
-0.0038581506814807653,
0.02007506787776947,
-0.02836216427385807,
0.014028869569301605,
0.008189849555492401,
-0.05716405063867569,
0.0016024537617340684,
0.00862111710011959,
-0.03218437358736992,
0.005910898093134165,
0.007390736602246761,
-0.09687446057796478,
-0.01621057465672493,
0.00040008494397625327,
-0.011035367846488953,
-0.009876865893602371,
-0.011407441459596157,
0.03394326940178871,
-0.01415571290999651,
-0.04451354593038559,
-0.011035367846488953,
0.03862801566720009,
0.026755481958389282,
-0.0223582461476326,
0.023406818509101868,
-0.00008879031520336866,
0.030932854861021042,
-0.02364359237253666,
0.005813651718199253,
-0.02019345387816429,
-0.022121472284197807,
0.008413939736783504,
0.047185711562633514,
0.030746817588806152,
-0.030239444226026535,
-0.02812538854777813,
0.023559030145406723,
0.016802510246634483,
0.01818087324500084,
-0.028768062591552734,
-0.0846298560500145,
0.00635484978556633,
0.05307123810052872,
0.000045022767153568566,
-0.02684004418551922,
0.08036792278289795,
-0.03193068876862526,
-0.06524819880723953,
0.02707681804895401,
-0.026112809777259827,
0.005534596275538206,
-0.01058718841522932,
-0.001600339775905013,
-0.013073316775262356,
-0.04126635566353798,
0.03916921466588974,
-0.016286680474877357,
0.024286264553666115,
-0.0692395344376564,
0.03340207040309906,
-0.04586654156446457,
0.05875381827354431,
0.027854790911078453,
-0.012396818958222866,
0.03517787903547287,
-0.02056552842259407,
0.007788178976625204,
0.057502299547195435,
0.01977064274251461,
-0.028768062591552734,
0.04248405247926712,
0.03910156339406967,
0.007564089260995388,
0.01934783160686493,
-0.03900009021162987,
0.021394237875938416,
-0.01380900852382183,
-0.02002432942390442,
0.032032161951065063,
0.06108773499727249,
0.009496335871517658,
-0.02070082724094391,
-0.06403049826622009,
-0.01736907660961151,
0.0049215201288461685,
-0.009369492530822754,
-0.06863068789243698,
-0.014197994023561478,
0.00030204563518054783,
0.02487820014357567,
0.004790449049323797,
-0.027229029685258865,
-0.011974007822573185,
0.0004043130320496857,
0.0887564867734909,
0.033182207494974136,
-0.005631842650473118,
-0.026180459186434746,
0.006198409479111433,
0.02572382241487503,
-0.04031926020979881,
-0.04684746265411377,
0.06852921098470688,
-0.0068495385348796844,
-0.025148799642920494,
0.05100792273879051,
0.015314214862883091,
0.013183247298002243,
-0.01701391488313675,
-0.020650090649724007,
-0.0002016280050156638,
0.008726819418370724,
0.025453222915530205,
-0.01022357027977705,
-0.004891923628747463,
0.028294513002038002,
-0.006088478956371546,
0.03507640212774277,
-0.04640773683786392,
-0.0007198357488960028,
-0.0009238420752808452,
0.029698247089982033,
0.023660505190491676,
0.019195619970560074,
0.0097584780305624,
-0.053206540644168854,
0.01982138119637966,
-0.0809091180562973,
-0.017149215564131737,
-0.057806722819805145,
-0.009284930303692818,
-0.030374744907021523,
0.08273565769195557,
0.05831409618258476,
-0.08415630459785461,
-0.021817049011588097,
0.022628845646977425,
-0.024523040279746056,
-0.024607602506875992,
-0.018282348290085793,
-0.0023106622975319624,
0.04468267038464546,
-0.006473236717283726,
0.09038008749485016,
-0.07630893588066101,
0.036869119852781296,
-0.015694744884967804,
-0.040488384664058685,
-0.015973800793290138,
-0.041773729026317596,
-0.036801472306251526,
0.022865619510412216,
-0.02100525237619877,
-0.04397234693169594,
0.005627614911645651,
0.004507165402173996,
0.048707831650972366,
-0.015145091339945793,
0.00005813651659991592,
0.003306382102891803,
0.01160193420946598,
-0.0136567959561944,
-0.030526956543326378,
-0.029765896499156952,
0.03013796918094158,
-0.010663294233381748,
0.007166646886616945,
0.042822301387786865,
-0.03346972167491913,
-0.007166646886616945,
0.07887962460517883,
-0.017910275608301163,
0.04370174929499626,
0.004680518060922623,
-0.050432898104190826,
-0.016963178291916847,
-0.004253478720784187,
-0.014722280204296112,
-0.008921312168240547,
-0.02530101127922535,
0.02333916909992695,
0.0021943892352283,
0.013851288706064224,
-0.03964276239275932,
0.02947838418185711,
-0.004477568902075291,
-0.024573776870965958,
0.0036129201762378216,
0.07312939316034317,
-0.011796427890658379,
-0.026366494596004486,
0.014147256501019001,
-0.0011733005521818995,
-0.03916921466588974,
-0.03494110330939293,
0.04968875274062157,
0.020531702786684036,
-0.04701658710837364,
0.012565943412482738,
0.00452830595895648,
-0.11358395218849182,
0.0005813651368953288,
-0.0014851237647235394,
0.04441206902265549,
0.014485505409538746,
-0.042889948934316635,
0.006857994943857193,
0.026620181277394295,
0.0277533158659935,
0.016540367156267166,
0.007771266624331474,
-0.06917188316583633,
0.012532118707895279,
0.061798058450222015,
0.13692311942577362,
0.0029660193249583244,
-0.024269353598356247,
0.020768476650118828,
0.031643178313970566,
-0.026806218549609184,
-0.049215205013751984,
-0.015305759385228157,
0.014299469068646431,
0.014832210727036,
0.02782096527516842,
0.018062487244606018,
-0.0155679015442729,
0.07488828897476196,
0.007716301362961531,
-0.038830965757369995,
-0.035144053399562836,
0.0111791230738163,
-0.025892946869134903,
-0.02406640350818634,
-0.033486634492874146,
-0.005610702093690634,
0.07143814861774445,
0.01719995215535164,
-0.02130967564880848,
0.04437824338674545,
0.04150313138961792,
0.019787555560469627,
0.0014291012194007635,
-0.03292852267622948,
-0.048538707196712494,
0.0012800603872165084,
0.046272438019514084,
-0.005915126297622919,
-0.04789603129029274,
0.0641319751739502,
0.05378156155347824,
-0.028074651956558228,
0.0068283979780972,
-0.002697534393519163,
-0.01701391488313675,
-0.002181704854592681,
0.03548230230808258,
-0.02327151969075203,
-0.019077233970165253,
-0.03008723258972168,
-0.017149215564131737,
-0.040556032210588455,
-0.008177164942026138,
-0.01347921509295702,
-0.017639676108956337,
0.005196347367018461,
0.01040960755199194,
0.04400617256760597,
0.035448476672172546,
0.041909027844667435,
-0.03497492894530296
] |
721,948
|
apprise.apprise_config
|
instantiate
|
Returns the instance of a instantiated configuration plugin based on
the provided Config URL. If the url fails to be parsed, then None
is returned.
|
@staticmethod
def instantiate(url, asset=None, tag=None, cache=None,
recursion=0, insecure_includes=False,
suppress_exceptions=True):
"""
Returns the instance of a instantiated configuration plugin based on
the provided Config URL. If the url fails to be parsed, then None
is returned.
"""
# Attempt to acquire the schema at the very least to allow our
# configuration based urls.
schema = GET_SCHEMA_RE.match(url)
if schema is None:
# Plan B is to assume we're dealing with a file
schema = 'file'
url = '{}://{}'.format(schema, URLBase.quote(url))
else:
# Ensure our schema is always in lower case
schema = schema.group('schema').lower()
# Some basic validation
if schema not in C_MGR:
logger.warning('Unsupported schema {}.'.format(schema))
return None
# Parse our url details of the server object as dictionary containing
# all of the information parsed from our URL
results = C_MGR[schema].parse_url(url)
if not results:
# Failed to parse the server URL
logger.warning('Unparseable URL {}.'.format(url))
return None
# Build a list of tags to associate with the newly added notifications
results['tag'] = set(parse_list(tag))
# Prepare our Asset Object
results['asset'] = \
asset if isinstance(asset, AppriseAsset) else AppriseAsset()
if cache is not None:
# Force an over-ride of the cache value to what we have specified
results['cache'] = cache
# Recursion can never be parsed from the URL
results['recursion'] = recursion
# Insecure includes flag can never be parsed from the URL
results['insecure_includes'] = insecure_includes
if suppress_exceptions:
try:
# Attempt to create an instance of our plugin using the parsed
# URL information
cfg_plugin = C_MGR[results['schema']](**results)
except Exception:
# the arguments are invalid or can not be used.
logger.warning('Could not load URL: %s' % url)
return None
else:
# Attempt to create an instance of our plugin using the parsed
# URL information but don't wrap it in a try catch
cfg_plugin = C_MGR[results['schema']](**results)
return cfg_plugin
|
(url, asset=None, tag=None, cache=None, recursion=0, insecure_includes=False, suppress_exceptions=True)
|
[
0.011850432492792606,
-0.0953259989619255,
-0.043557338416576385,
-0.02026703767478466,
0.009741615504026413,
0.012149025686085224,
0.043855931609869,
0.03230409324169159,
-0.07162513583898544,
-0.0042782858945429325,
0.021312115713953972,
0.05553840473294258,
-0.027563918381929398,
0.001257358817383647,
-0.05576235055923462,
-0.04900667071342468,
0.012858185917139053,
0.026836097240447998,
0.00035662102163769305,
-0.06897511333227158,
-0.0062797958962619305,
-0.002447067527100444,
-0.0009616812458261847,
0.05938279628753662,
0.035327352583408356,
0.051320768892765045,
0.05994265899062157,
0.005925216246396303,
-0.004098663106560707,
-0.002512384904548526,
0.004217633977532387,
0.04042210429906845,
0.047401729971170425,
0.06472015380859375,
0.03275198116898537,
-0.007362197618931532,
0.027545256540179253,
0.061435628682374954,
-0.11742192506790161,
0.02164803445339203,
-0.010674719698727131,
-0.020472321659326553,
0.06285394728183746,
-0.05426938086748123,
0.03700694069266319,
0.0565461590886116,
-0.025044536218047142,
0.06102506071329117,
-0.06677298992872238,
-0.04463974013924599,
0.03922773152589798,
0.015302920714020729,
0.014351153746247292,
0.02761990576982498,
-0.04393057897686958,
0.09838657826185226,
0.03389037027955055,
0.1210796907544136,
0.008160002529621124,
0.018662098795175552,
-0.01950189284980297,
0.00716158002614975,
0.0569193996489048,
-0.008439933881163597,
-0.028683645650744438,
-0.015060313045978546,
-0.0659891813993454,
-0.025641722604632378,
0.00420597055926919,
0.05281373858451843,
0.030549854040145874,
-0.020024431869387627,
-0.0014941341942176223,
-0.04826018586754799,
0.11943742632865906,
-0.04725243151187897,
-0.010329470969736576,
0.0000960806428338401,
0.03249071165919304,
0.04191507399082184,
0.00729688024148345,
-0.021312115713953972,
0.005272042937576771,
-0.023756850510835648,
0.07520825415849686,
0.0032518706284463406,
0.0226557869464159,
-0.06804201006889343,
0.018914036452770233,
0.0743497982621193,
-0.052515145391225815,
-0.030643165111541748,
0.00413365475833416,
-0.011934411711990833,
0.006410430651158094,
0.02396213449537754,
-0.0017880622763186693,
-0.029094211757183075,
0.0634511336684227,
-0.035327352583408356,
-0.012177019380033016,
-0.03200550004839897,
-0.09502740204334259,
-0.05326162651181221,
0.02842237614095211,
-0.07420050352811813,
-0.0043436032719910145,
0.04594608396291733,
-0.01390326302498579,
0.026518842205405235,
-0.022973041981458664,
-0.02984069474041462,
-0.07196105271577835,
0.020976198837161064,
-0.011262576095759869,
-0.03125901520252228,
-0.029467452317476273,
-0.009391700848937035,
0.0284596998244524,
-0.026948070153594017,
-0.07957518845796585,
0.018503470346331596,
-0.03665236011147499,
0.034356921911239624,
0.07136386632919312,
0.038817163556814194,
0.006396434269845486,
-0.046282004565000534,
0.02487657591700554,
-0.0329945906996727,
0.031594932079315186,
0.03194951266050339,
-0.01755170337855816,
-0.041243236511945724,
-0.014603091403841972,
-0.034132976084947586,
-0.0017192458035424352,
0.01042278204113245,
-0.046431299299001694,
0.04826018586754799,
-0.02769455313682556,
0.04180309921503067,
-0.03041921928524971,
-0.011757121421396732,
-0.02295438013970852,
-0.025604398921132088,
0.02388748526573181,
-0.023514242842793465,
-0.03204282373189926,
0.024316713213920593,
0.017887620255351067,
-0.034935448318719864,
-0.012652902863919735,
0.053634870797395706,
0.00523938424885273,
-0.0416911281645298,
-0.003361510345712304,
0.038854487240314484,
-0.00471451273187995,
-0.0493052639067173,
-0.008160002529621124,
0.046393975615501404,
-0.02526848018169403,
0.002259280299767852,
-0.04837215691804886,
-0.04807356372475624,
0.027041379362344742,
0.005467994604259729,
-0.007334204390645027,
0.020173728466033936,
-0.042250990867614746,
0.01461242325603962,
-0.05811377242207527,
0.04937991127371788,
-0.005225387401878834,
0.07994842529296875,
-0.0010100860381498933,
-0.02995266765356064,
0.031165704131126404,
0.015862783417105675,
-0.00812267791479826,
0.012260998599231243,
-0.021368103101849556,
0.018046248704195023,
0.02526848018169403,
0.060315899550914764,
0.04090731963515282,
0.012121032923460007,
0.012587585486471653,
0.03278930485248566,
0.011495852842926979,
0.008010705932974815,
0.03321853652596474,
0.014547105878591537,
-0.0072222319431602955,
-0.011561170220375061,
-0.020248375833034515,
0.01957654021680355,
-0.05542642995715141,
0.09965560585260391,
-0.03821997717022896,
-0.015965424478054047,
-0.024969886988401413,
-0.028664981946349144,
0.07356598973274231,
-0.015386899933218956,
0.0078847361728549,
-0.025660384446382523,
-0.06572791188955307,
0.04840948432683945,
-0.04579678922891617,
0.01384727656841278,
-0.018550125882029533,
-0.004922128282487392,
-0.006559727713465691,
-0.04661792144179344,
0.02661215141415596,
0.06326451152563095,
-0.02907554805278778,
-0.005836571101099253,
0.041205912828445435,
0.026089612394571304,
0.047327082604169846,
0.038593217730522156,
-0.04792426899075508,
0.03400234133005142,
0.013194103725254536,
-0.005775919184088707,
-0.02342093363404274,
0.009900243021547794,
-0.0223012063652277,
0.0019431909313425422,
0.055053189396858215,
0.0013798289000988007,
0.06072646751999855,
-0.019987106323242188,
0.03937702625989914,
0.03907843306660652,
-0.0009645972168073058,
0.04434114694595337,
0.028441037982702255,
0.008183330297470093,
0.007628132589161396,
0.010768030770123005,
-0.027601243928074837,
-0.007450842764228582,
-0.05994265899062157,
-0.02168535813689232,
-0.023738188669085503,
-0.01972583681344986,
0.027209339663386345,
0.012830192223191261,
-0.001974683254957199,
0.0062797958962619305,
-0.03654038906097412,
-0.0215733852237463,
0.011309231631457806,
-0.02045365981757641,
0.04467706382274628,
-0.04445311799645424,
0.007679453585296869,
-0.05232852324843407,
0.053597547113895416,
0.06550396233797073,
-0.04381860792636871,
-0.03904110938310623,
0.009610980749130249,
-0.001262024394236505,
0.004103329032659531,
0.055015865713357925,
0.056508831679821014,
0.08099350333213806,
0.014621754176914692,
0.0057339295744895935,
-0.00907911080867052,
-0.04340803995728493,
-0.007870740257203579,
-0.030045978724956512,
0.015470879152417183,
-0.017505047842860222,
-0.016945185139775276,
0.000021742072931374423,
0.05464262515306473,
-0.02149873785674572,
0.015256265178322792,
-0.07076667249202728,
-0.016264017671346664,
0.07920194417238235,
-0.019296608865261078,
0.017607688903808594,
-0.03607383742928505,
0.015228272415697575,
-0.016795888543128967,
-0.021200142800807953,
-0.015900107100605965,
0.04721510782837868,
-0.07897800207138062,
0.04273620620369911,
0.017561035230755806,
-0.042400285601615906,
-0.0161333829164505,
-0.05673277750611305,
-0.017141137272119522,
0.02418607845902443,
0.0006928304210305214,
0.007516160141676664,
-0.011729128658771515,
-0.01542422454804182,
0.03019527532160282,
0.05072358250617981,
0.037977371364831924,
-0.021368103101849556,
0.0026920076925307512,
0.028142444789409637,
0.006783672608435154,
0.016012080013751984,
0.018428821116685867,
-0.0027853180654346943,
0.03088577277958393,
0.02911287359893322,
-0.015162955038249493,
0.07207302004098892,
-0.0337224118411541,
0.050275690853595734,
0.031016407534480095,
0.00005438251901068725,
-0.009233073331415653,
0.032863955944776535,
-0.03353578969836235,
-0.017019834369421005,
-0.0892048254609108,
0.044863682240247726,
-0.013800621964037418,
0.018372835591435432,
-0.0034081656485795975,
-0.04449044167995453,
-0.0030932428780943155,
-0.102940134704113,
0.006004530005156994,
-0.04926794022321701,
0.05792715400457382,
-0.00660638278350234,
-0.0721476748585701,
0.006368441041558981,
-0.008402609266340733,
-0.016721239313483238,
0.04717778414487839,
-0.03933970257639885,
0.013735304586589336,
-0.03267733380198479,
-0.01174779050052166,
-0.034898124635219574,
-0.010273485444486141,
0.051208797842264175,
0.06647439301013947,
-0.05139541998505592,
-0.04034745693206787,
-0.05960674211382866,
0.0016037740278989077,
-0.044901009649038315,
-0.006139830220490694,
-0.003720755921676755,
-0.02487657591700554,
0.020211052149534225,
0.010413451120257378,
-0.023364946246147156,
0.0027339973021298647,
-0.005719933193176985,
0.029280832037329674,
-0.07386458665132523,
-0.0009243570384569466,
0.008925148285925388,
-0.00716158002614975,
-0.057292640209198,
0.04840948432683945,
-0.03514073044061661,
0.016366660594940186,
-0.0006560893962159753,
-0.04758835211396217,
0.015722816810011864,
-0.029542101547122,
0.07356598973274231,
-0.037286873906850815,
-0.0036297780461609364,
0.019333934411406517,
-0.0503876656293869,
-0.01078669261187315,
0.02357023023068905,
-0.006695027928799391,
0.015032320283353329,
0.04590876027941704,
-0.02707870490849018,
-0.00868254154920578,
0.03271465748548508,
-0.03499143570661545,
-0.028627658262848854,
-0.006522403098642826,
0.030251260846853256,
0.029542101547122,
0.019221961498260498,
0.02349558100104332,
-0.06740749627351761,
0.038369275629520416,
0.042698878794908524,
-0.01844748482108116,
-0.01570415496826172,
0.08181463927030563,
0.07151316106319427,
0.001579280011355877,
0.014024566859006882,
-0.01417386345565319,
-0.036167144775390625,
-0.044901009649038315,
-0.0507609061896801,
-0.04583411291241646,
0.003776742145419121,
0.0063124545849859715,
0.01270888838917017,
-0.05311233177781105,
-0.005211391020566225,
0.016403984278440475,
-0.028235753998160362,
0.03510340675711632,
-0.016627930104732513,
-0.01480837445706129,
0.0075068287551403046,
0.00431561004370451,
0.020248375833034515,
-0.07673855125904083,
-0.0067090243101119995,
-0.012354308739304543,
0.04926794022321701,
0.015620175749063492,
-0.09375838190317154,
0.016264017671346664,
-0.026593489572405815,
0.01642264612019062,
-0.03803335502743721,
0.025791019201278687,
0.010814686305820942,
-0.021330777555704117,
0.015032320283353329,
0.017458392307162285,
0.014388477429747581,
-0.015358907170593739,
-0.011897088028490543,
-0.0565461590886116,
-0.028329065069556236,
0.03549531102180481,
-0.015078974887728691,
-0.042362961918115616,
0.01584412157535553,
0.032360076904296875,
-0.012634240090847015,
-0.02015506662428379,
-0.05467994883656502,
0.01480837445706129,
0.009601649828255177,
-0.005467994604259729,
0.018540794029831886,
0.010338802821934223,
-0.009582987055182457,
0.02549242600798607,
-0.0677807405591011,
-0.056508831679821014,
0.05609826743602753,
0.047513701021671295,
0.020136404782533646,
-0.018802063539624214,
-0.016739901155233383,
0.0038910475559532642,
-0.0000265533963101916,
-0.0016644258284941316,
0.026238910853862762,
-0.02237585559487343,
-0.016991840675473213,
0.04542354866862297,
0.02041633613407612,
-0.004695850424468517,
-0.053933463990688324,
-0.01257825456559658,
-0.0010829848470166326,
-0.003391836304217577,
0.028888927772641182,
-0.029542101547122,
-0.06617580354213715,
0.0714385136961937,
-0.0496785044670105,
0.014491119422018528,
0.005248715169727802,
-0.05818842351436615,
0.02360755391418934,
0.011411872692406178,
-0.013194103725254536,
-0.027395959943532944,
0.016264017671346664,
0.024410024285316467,
0.03948900103569031,
0.03689496964216232,
-0.051358092576265335,
0.013791290111839771,
-0.0282730795443058,
-0.01834484189748764,
-0.026873420923948288,
0.011010637506842613,
-0.023868823423981667,
-0.04463974013924599,
0.04937991127371788,
-0.036820318549871445,
0.0037930714897811413,
-0.06468283385038376,
0.0008287138189189136,
-0.010114856995642185,
0.02526848018169403,
-0.007511494681239128,
-0.0051880632527172565,
-0.019296608865261078,
0.004819486755877733,
-0.05434402823448181,
-0.04695383831858635,
0.05718066915869713,
0.014388477429747581,
0.06251803040504456,
-0.004800824914127588,
-0.014994995668530464,
-0.0000252412173722405,
0.05453065037727356,
-0.01899801567196846,
-0.04445311799645424,
0.021871978417038918,
-0.0025310469791293144,
0.0075721461325883865,
-0.04389325529336929,
-0.02646285481750965,
0.03030724823474884,
0.018111566081643105,
-0.08203858137130737,
0.012699557468295097,
0.015862783417105675,
-0.030867110937833786,
0.01169180404394865,
0.005719933193176985,
-0.007142918184399605,
-0.007502163294702768,
-0.024130092933773994,
-0.06315253674983978,
-0.0038327283691614866,
0.07099062204360962,
-0.0005496570956893265,
-0.05053696036338806,
0.04176577553153038,
0.02515650913119316,
0.032266765832901,
0.0012678563361987472,
0.044863682240247726,
0.004670190159231424,
0.011971736326813698,
-0.09196682274341583,
0.0148643609136343,
0.021704019978642464,
-0.001293516717851162,
-0.015265596099197865,
-0.08435268700122833,
0.041093941777944565,
-0.05311233177781105,
-0.0015629506669938564,
0.03194951266050339,
0.011701135896146297,
-0.027582580223679543,
-0.019595203921198845,
0.04695383831858635,
-0.038406599313020706,
-0.02106950804591179,
0.0029836029279977083,
-0.04016083478927612,
0.026780111715197563,
0.033741071820259094,
0.01623602584004402,
0.027246663346886635,
0.003394169034436345,
0.022898394614458084,
-0.012503605335950851,
0.004537222441285849,
-0.036633700132369995,
-0.03545798733830452,
-0.01203705370426178,
0.026350881904363632,
0.04833483323454857,
0.028179768472909927,
0.021312115713953972,
0.007530156522989273,
0.029672736302018166,
-0.016105391085147858,
-0.03258402273058891,
-0.014575098641216755,
0.03538333624601364,
0.043594662100076675,
-0.025287143886089325,
0.02834772691130638,
-0.02207726240158081,
-0.06479480117559433,
-0.02922484651207924,
-0.01718779280781746,
-0.04691651463508606,
0.007548818830400705,
0.0022067930549383163,
-0.060203928500413895,
-0.0427735298871994,
0.01101996935904026,
-0.022674448788166046,
0.017775649204850197,
-0.030736476182937622,
0.00006710336310788989,
0.050201043486595154,
0.02995266765356064,
0.013520689681172371,
-0.06367507576942444,
0.021797331050038338,
0.02733997441828251,
-0.028011810034513474,
-0.011626487597823143,
0.039824917912483215,
0.046132706105709076,
0.002908954629674554,
-0.06651172041893005,
0.0008432935574091971,
-0.01330607570707798,
-0.06360042840242386,
-0.016049403697252274,
0.02857167273759842,
0.07979913055896759,
-0.0003618697519414127,
0.0021239800844341516,
0.006004530005156994,
-0.03933970257639885,
-0.00928439386188984,
0.07494698464870453,
0.020901549607515335,
0.03389037027955055,
0.027526594698429108,
0.048857372254133224,
-0.057777855545282364,
-0.02580968104302883,
-0.005892557557672262,
-0.011402541771531105,
-0.010068202391266823,
0.010824017226696014,
-0.01243828795850277,
0.038369275629520416,
-0.00841194111853838,
0.0016084396047517657,
0.004516227636486292,
-0.014565767720341682,
0.029411466792225838,
-0.03937702625989914,
0.07565614581108093,
0.05098485201597214,
0.04381860792636871,
0.025212494656443596,
-0.005533311981707811,
-0.02711602859199047,
0.00756748067215085,
-0.023700864985585213,
-0.009401031769812107,
0.005514650139957666,
-0.05344824865460396,
0.03933970257639885,
-0.05915885046124458,
-0.05042498931288719,
0.0337224118411541,
0.017719661816954613,
-0.03491678461432457,
0.009195748716592789,
0.022282544523477554,
0.022431841120123863,
-0.042288314551115036,
-0.042064368724823,
0.0023665872868150473,
-0.030027315020561218,
0.04463974013924599,
0.030027315020561218,
0.008701203390955925,
-0.0034104983787983656,
0.046468622982501984,
-0.02707870490849018,
-0.0028016474097967148,
0.08494987338781357,
-0.019632527604699135,
-0.016879867762327194,
-0.005090087186545134,
-0.0008829504949972034,
0.03818265348672867,
0.013837945647537708,
0.014472456648945808,
0.008598561398684978,
-0.029094211757183075,
-0.03038189560174942,
0.009419693611562252,
-0.02422340400516987,
0.016226693987846375,
0.07741038501262665,
-0.01813022792339325,
-0.03618580847978592,
0.018148889765143394,
-0.013464704155921936,
0.0011103948345407844,
0.025567075237631798,
-0.041205912828445435,
0.011869094334542751,
0.021554723381996155,
0.0027876507956534624,
0.06751947104930878,
0.11443598568439484,
-0.04057140275835991,
-0.0004298114508856088,
0.03114704228937626,
-0.015386899933218956,
-0.018624773249030113,
-0.012652902863919735,
0.035401999950408936,
-0.0261082760989666,
-0.08271042257547379,
0.042250990867614746,
-0.03799603134393692,
0.019371258094906807,
0.008929814212024212,
0.012690226547420025,
-0.005911219399422407,
0.030736476182937622,
-0.005995199084281921,
-0.04404255002737045,
0.01276487484574318,
-0.05721799284219742,
0.04441579431295395,
0.0326400101184845,
-0.057628560811281204,
0.015340244397521019,
-0.023756850510835648,
0.0344502329826355,
0.031781554222106934,
-0.019445905461907387,
-0.0017262441106140614,
-0.021797331050038338,
0.021013522520661354,
-0.0018907038029283285,
-0.0023397605400532484,
0.03945167362689972,
0.028441037982702255,
-0.016665253788232803,
0.052589792758226395,
0.0012048716889694333,
-0.004922128282487392,
0.01907266490161419,
0.04038478061556816,
0.006578389555215836,
-0.10122322291135788,
-0.02164803445339203,
0.04333339259028435,
-0.024410024285316467,
-0.038593217730522156,
0.014033897779881954,
-0.018102236092090607,
0.014108546078205109,
0.03573791682720184,
0.02399945817887783,
0.04400522634387016,
0.02226388268172741,
-0.0028926252853125334
] |
721,949
|
apprise.apprise_config
|
pop
|
Removes an indexed Apprise Configuration from the stack and returns it.
By default, the last element is removed from the list
|
def pop(self, index=-1):
"""
Removes an indexed Apprise Configuration from the stack and returns it.
By default, the last element is removed from the list
"""
# Remove our entry
return self.configs.pop(index)
|
(self, index=-1)
|
[
0.014659754000604153,
-0.0026509577874094248,
-0.06623527407646179,
-0.06259182095527649,
-0.019145328551530838,
-0.007334173657000065,
-0.038084425032138824,
-0.006436198949813843,
0.0820121318101883,
-0.025693237781524658,
-0.03708763048052788,
-0.029646044597029686,
-0.06114818900823593,
-0.013903564773499966,
-0.0025564341340214014,
0.0022964943200349808,
0.03870312497019768,
0.011686556041240692,
0.04134978726506233,
-0.025761982426047325,
0.03208647295832634,
-0.023734021931886673,
0.00006706611748086289,
0.014530858024954796,
-0.007987245917320251,
0.011763893999159336,
0.05056154355406761,
-0.01814853399991989,
0.026363495737314224,
-0.03860000893473625,
-0.05753910541534424,
-0.014874580316245556,
-0.002003256231546402,
-0.02816803753376007,
-0.0123224426060915,
-0.0028829702641814947,
-0.05111149698495865,
0.017547020688652992,
-0.007291208021342754,
0.020674893632531166,
0.016094794496893883,
-0.04100606590509415,
0.030574094504117966,
-0.045611944049596786,
0.03330668434500694,
0.07740624994039536,
0.027308732271194458,
0.07307534664869308,
-0.003278251038864255,
0.028219597414135933,
0.007634930312633514,
0.07809369266033173,
-0.01668771542608738,
0.03928745165467262,
-0.0776124820113182,
-0.028924226760864258,
0.017469683662056923,
0.01955779641866684,
0.06073572114109993,
-0.02177480421960354,
0.007119346875697374,
0.0003273417241871357,
0.025160469114780426,
-0.020949870347976685,
0.050492797046899796,
-0.005628451704978943,
-0.020056193694472313,
0.01266616489738226,
0.008739138022065163,
-0.030608465895056725,
-0.023734021931886673,
-0.008189182728528976,
-0.017925115302205086,
-0.006363158114254475,
-0.0031407619826495647,
-0.07211292535066605,
0.040112387388944626,
0.06757579743862152,
0.021190477535128593,
-0.02230757474899292,
-0.04922102764248848,
0.04179662466049194,
0.026690032333135605,
0.08489939570426941,
0.0060495114885270596,
0.04619627073407173,
0.09088016301393509,
-0.0024167969822883606,
-0.019059399142861366,
0.009787490591406822,
0.01862974651157856,
0.03145058453083038,
-0.007158015854656696,
0.0002705469960346818,
0.05179894343018532,
-0.00004645621083909646,
0.00006337378727039322,
-0.033959757536649704,
0.021465454250574112,
-0.05310508608818054,
0.014685533009469509,
-0.028700808063149452,
-0.051867686212062836,
-0.059670183807611465,
-0.0024167969822883606,
0.011746708303689957,
0.03263642638921738,
0.01700565777719021,
-0.053689416497945786,
0.056198589503765106,
0.009306279942393303,
-0.025160469114780426,
-0.029405439272522926,
-0.040593598037958145,
0.04509636014699936,
0.040387365967035294,
-0.06726644188165665,
-0.0206061489880085,
0.014238693751394749,
0.00040253097540698946,
0.016919728368520737,
-0.0034200362861156464,
-0.04327462986111641,
0.01940312050282955,
0.0183891411870718,
0.05767659470438957,
-0.02682752162218094,
-0.00959844421595335,
0.03212084248661995,
0.01300988718867302,
-0.000059916426835116,
-0.008412602357566357,
-0.06056385859847069,
-0.05386127531528473,
0.04062797129154205,
-0.039906151592731476,
0.051902059465646744,
-0.07307534664869308,
-0.050939638167619705,
0.004618767648935318,
0.012923956848680973,
0.03976866602897644,
0.02763526886701584,
0.07768122851848602,
-0.011746708303689957,
-0.048189859837293625,
-0.03997489809989929,
-0.011222531087696552,
0.015527652576565742,
0.04049048200249672,
-0.009185977280139923,
0.021843548864126205,
-0.0565766803920269,
-0.06214498355984688,
0.01191856898367405,
0.00959844421595335,
-0.026569729670882225,
0.02129359357059002,
0.005387846380472183,
-0.07926235347986221,
-0.012073243968188763,
0.04073108732700348,
0.016954099759459496,
-0.04076545685529709,
-0.08634302765130997,
-0.01689394935965538,
0.03763758763670921,
0.04763990268111229,
-0.04478700831532478,
0.042896535247564316,
-0.02021086774766445,
-0.007265429012477398,
-0.04489012435078621,
-0.009821862913668156,
-0.09307998418807983,
0.03973429277539253,
-0.022943459451198578,
0.0343378521502018,
0.02682752162218094,
-0.025315143167972565,
-0.06114818900823593,
-0.009641408920288086,
-0.033134825527668,
-0.06798826158046722,
0.026397868990898132,
0.020588962361216545,
-0.023905882611870766,
0.030574094504117966,
0.02622600831091404,
0.0339425727725029,
0.003198765218257904,
-0.03901247680187225,
0.0335301049053669,
-0.007901315577328205,
0.027669640257954597,
-0.003997919615358114,
-0.010973332449793816,
0.06317614763975143,
0.025040166452527046,
-0.02918201871216297,
-0.041762251406908035,
-0.035506509244441986,
0.036915767937898636,
-0.05881087854504585,
-0.01058664545416832,
-0.008253630250692368,
0.021671688184142113,
-0.04506198689341545,
-0.052073922008275986,
0.09369868785142899,
-0.026655660942196846,
0.02033117040991783,
0.07015371322631836,
-0.060804467648267746,
0.023424671962857246,
-0.06499787420034409,
-0.028546132147312164,
-0.006938892882317305,
0.04224346578121185,
0.003989326301962137,
0.007527517154812813,
-0.032189588993787766,
0.04093731939792633,
-0.0005298156174831092,
-0.008739138022065163,
0.01149750966578722,
-0.0432402603328228,
-0.05358629673719406,
0.04640250280499458,
0.0029925317503511906,
0.031020933762192726,
-0.005624155513942242,
0.05447997525334358,
-0.05307071655988693,
0.06351987272500992,
0.0004616082296706736,
-0.016223689541220665,
-0.03062565252184868,
0.040387365967035294,
0.054651837795972824,
0.010741320438683033,
0.03870312497019768,
-0.001281439559534192,
0.057779710739851,
-0.009014115668833256,
0.07046306133270264,
-0.0053019155748188496,
0.03952805697917938,
0.024094929918646812,
-0.011523288674652576,
0.04667748138308525,
0.0053319912403821945,
0.0023373113945126534,
0.039218708872795105,
0.0383937768638134,
-0.060838837176561356,
-0.02901015803217888,
-0.025607308372855186,
0.01830320991575718,
-0.03426910936832428,
0.016137760132551193,
-0.06963812559843063,
0.0646541565656662,
0.0107069481164217,
-0.03002413921058178,
0.03208647295832634,
0.045921292155981064,
0.02084675431251526,
0.04217471927404404,
0.07926235347986221,
0.07747499644756317,
0.004859373439103365,
0.002541396301239729,
-0.03139902651309967,
0.023424671962857246,
0.026208821684122086,
-0.01341376081109047,
-0.008739138022065163,
-0.012623199261724949,
0.015123778954148293,
0.041246671229600906,
-0.02101861499249935,
-0.015544838272035122,
0.0525207594037056,
0.00673695607110858,
0.02844301611185074,
0.02918201871216297,
-0.01681661047041416,
0.03609083592891693,
0.056954775005578995,
0.056439194828271866,
0.022496622055768967,
-0.040112387388944626,
-0.012459931895136833,
0.021723246201872826,
-0.024060556665062904,
-0.03327231481671333,
0.03732823580503464,
0.006466274615377188,
0.0448557548224926,
-0.0044125341810286045,
-0.062419962137937546,
-0.0776124820113182,
-0.003785241162404418,
0.040387365967035294,
0.043343376368284225,
0.04898041859269142,
0.0521426647901535,
0.018200093880295753,
0.03633144125342369,
-0.0051902057603001595,
0.0014844504185020924,
-0.011471729725599289,
0.025590121746063232,
-0.03277391567826271,
-0.02497142180800438,
0.007385731674730778,
0.020090565085411072,
0.022823156788945198,
0.03382226824760437,
-0.037190746515989304,
-0.0060881804674863815,
-0.07458772510290146,
-0.035179972648620605,
0.030539721250534058,
-0.019007841125130653,
-0.0776124820113182,
-0.00959844421595335,
-0.03626269847154617,
0.015948712825775146,
-0.03337543085217476,
-0.026690032333135605,
-0.01123112440109253,
0.00036789022851735353,
0.047055575996637344,
-0.0148488013073802,
0.001031703781336546,
0.04341211915016174,
-0.01121393870562315,
-0.054376859217882156,
-0.03463001549243927,
-0.04399644955992699,
-0.02804773487150669,
0.004070960450917482,
0.020434288308024406,
0.013662959448993206,
0.021207662299275398,
-0.0036434559151530266,
-0.014118391089141369,
0.02837427146732807,
0.05296759679913521,
0.008352451026439667,
0.006045214831829071,
0.06296991556882858,
0.035008110105991364,
0.02194666489958763,
-0.03939057141542435,
0.01887035183608532,
0.03602209314703941,
-0.03609083592891693,
0.01761576533317566,
-0.0019527720287442207,
-0.030849071219563484,
0.016919728368520737,
0.0012051761150360107,
-0.009185977280139923,
-0.07891862839460373,
0.013327830471098423,
-0.01806260459125042,
-0.05973892658948898,
-0.008760620839893818,
-0.010655390098690987,
0.023544974625110626,
0.009160198271274567,
0.029714789241552353,
0.0010069988202303648,
-0.0063115996308624744,
0.04684934392571449,
-0.06351987272500992,
-0.04416830837726593,
-0.03208647295832634,
0.03983740881085396,
-0.013809041120111942,
0.03732823580503464,
0.007729453966021538,
0.012219325639307499,
-0.04805237054824829,
-0.059017110615968704,
0.020537404343485832,
-0.003662790171802044,
-0.009521106258034706,
-0.0642760619521141,
-0.08792415261268616,
-0.0021590052638202906,
-0.044512029737234116,
0.0002606112975627184,
-0.01814853399991989,
0.0024790966417640448,
-0.04698683321475983,
0.01745249703526497,
0.04210597649216652,
0.01190138328820467,
0.014977697283029556,
-0.0005029623280279338,
0.04031861945986748,
-0.039218708872795105,
0.004562912974506617,
0.05956706404685974,
-0.03540339320898056,
-0.022823156788945198,
0.054892443120479584,
-0.003198765218257904,
-0.004507057834416628,
-0.028821110725402832,
0.047021202743053436,
-0.026157263666391373,
0.04238095507025719,
0.07022245228290558,
0.021396709606051445,
0.0016939062625169754,
0.015991678461432457,
-0.0025134689640253782,
-0.01571669988334179,
-0.013628587126731873,
-0.018371954560279846,
0.03390819951891899,
-0.009134418331086636,
0.010285887867212296,
-0.1288958489894867,
0.020090565085411072,
-0.030539721250534058,
-0.07080678641796112,
-0.003939916379749775,
0.022651296108961105,
-0.012631792575120926,
-0.032997336238622665,
-0.009744525887072086,
-0.05812343209981918,
-0.033598851412534714,
0.0400092713534832,
0.026535358279943466,
0.022238830104470253,
0.014316031709313393,
0.004562912974506617,
0.01173811499029398,
0.036228325217962265,
-0.039459314197301865,
-0.005632748361676931,
0.06406982988119125,
-0.023751206696033478,
-0.04801799729466438,
-0.04007801413536072,
0.0016444961074739695,
-0.0031042415648698807,
0.011875603348016739,
-0.08895532041788101,
-0.08634302765130997,
0.019489051774144173,
-0.014960510656237602,
0.020056193694472313,
0.030608465895056725,
-0.00477773929014802,
0.0051601300947368145,
-0.05365504324436188,
0.021310780197381973,
0.05929208919405937,
0.02913046069443226,
0.015656547620892525,
-0.06138879433274269,
-0.0107069481164217,
-0.013491097837686539,
-0.038978103548288345,
-0.06664774566888809,
-0.03249893710017204,
-0.038737498223781586,
-0.01444492768496275,
0.04179662466049194,
0.04327462986111641,
0.006801404058933258,
-0.008734841831028461,
-0.03750009834766388,
0.0036778280045837164,
-0.0319317951798439,
0.04599003866314888,
-0.04482138156890869,
-0.03956243023276329,
0.03705325722694397,
-0.066269651055336,
0.005847574677318335,
-0.0057143825106322765,
-0.02084675431251526,
-0.08469316363334656,
0.00038427073741331697,
0.03351292014122009,
0.06235121563076973,
-0.024851119145751,
-0.03158807381987572,
0.00009700754890218377,
0.04708994925022125,
-0.0049882689490914345,
0.009744525887072086,
-0.019935891032218933,
-0.017125960439443588,
-0.0388062410056591,
-0.006689694244414568,
-0.034973740577697754,
-0.007205277681350708,
0.03581585735082626,
-0.03842814639210701,
-0.061526283621788025,
-0.026036961004137993,
0.029267949983477592,
0.011987313628196716,
0.014144170098006725,
0.04664310812950134,
0.0171775184571743,
0.006225669290870428,
0.001771243754774332,
0.06431043148040771,
0.06451666355133057,
0.030969373881816864,
-0.02610570564866066,
0.004537133499979973,
0.0444432869553566,
0.02380276657640934,
-0.01785637065768242,
0.01871567592024803,
-0.029852276667952538,
-0.015897154808044434,
0.03450971469283104,
-0.027325918897986412,
0.018732862547039986,
-0.018526628613471985,
0.004051626194268465,
0.04097169265151024,
-0.020915498957037926,
-0.046093154698610306,
0.005628451704978943,
0.044477660208940506,
0.028013363480567932,
-0.024060556665062904,
-0.05447997525334358,
0.024868303909897804,
-0.035008110105991364,
-0.06754142045974731,
-0.01353406347334385,
-0.05637044832110405,
-0.002007552655413747,
-0.01099051907658577,
-0.004859373439103365,
-0.06602904200553894,
-0.001647718483582139,
0.08654925972223282,
-0.027893060818314552,
0.058776505291461945,
-0.002788446843624115,
0.014556637033820152,
0.018286023288965225,
0.0404217354953289,
0.04141853004693985,
-0.011016298085451126,
0.0031042415648698807,
0.023527787998318672,
-0.0003045164339710027,
0.023751206696033478,
0.02864925004541874,
-0.04251844063401222,
-0.0072095743380486965,
0.023665277287364006,
0.011299869045615196,
0.00518161291256547,
-0.06138879433274269,
0.04279341921210289,
-0.00535347405821085,
-0.02332155406475067,
0.029474182054400444,
0.07953733205795288,
0.01923125982284546,
-0.011729521676898003,
-0.0021826361771672964,
0.02129359357059002,
0.03564399853348732,
0.05743598937988281,
-0.06187000498175621,
-0.03387382626533508,
0.04894604906439781,
0.026861893013119698,
0.022410690784454346,
-0.04024987667798996,
0.015175336971879005,
0.03701888769865036,
0.041487276554107666,
0.02634631097316742,
-0.004580099135637283,
0.031536515802145004,
0.0003649363643489778,
0.035179972648620605,
-0.04114355146884918,
-0.03459564596414566,
0.06042637303471565,
-0.01943749375641346,
-0.05685165897011757,
0.06534159928560257,
-0.024833932518959045,
0.015768257901072502,
0.0023759801406413317,
-0.041246671229600906,
-0.06551346182823181,
-0.0059463949874043465,
-0.015183930285274982,
0.025005793198943138,
-0.01375748310238123,
-0.050492797046899796,
0.019729657098650932,
0.02751496620476246,
-0.03547213599085808,
0.018492257222533226,
0.03585023060441017,
-0.022651296108961105,
0.014066833071410656,
0.02586509846150875,
0.039699919521808624,
-0.05080214887857437,
-0.009057081304490566,
-0.042415324598550797,
-0.03270517289638519,
-0.012838025577366352,
-0.011360020376741886,
-0.023493416607379913,
0.08077473193407059,
0.059945158660411835,
-0.05289885401725769,
0.021224848926067352,
-0.007634930312633514,
-0.0804310068488121,
0.004764849785715342,
0.027497779577970505,
-0.0002665189967956394,
-0.02461051382124424,
0.024352721869945526,
0.06482601910829544,
-0.0909489095211029,
-0.01238259393721819,
0.00586905749514699,
-0.002739036688581109,
0.003052683314308524,
0.004169780761003494,
-0.02658691629767418,
0.029044529423117638,
-0.03167400509119034,
-0.009486733935773373,
-0.022445062175393105,
-0.01785637065768242,
0.03047097660601139,
-0.033959757536649704,
0.01052649412304163,
0.039906151592731476,
0.05355192720890045,
-0.05193643271923065,
-0.029955394566059113,
-0.009203162975609303,
-0.007501738145947456,
-0.057161010801792145,
0.0012943290639668703,
0.03236145153641701,
-0.022771598771214485,
-0.0034995221067219973,
0.03846251964569092,
0.004906635265797377,
0.025590121746063232,
0.031536515802145004,
-0.08764917403459549,
0.0108100650832057,
0.017194705083966255,
-0.00028437646687962115,
-0.032430194318294525,
-0.04049048200249672,
0.05712663754820824,
0.00371220032684505,
-0.0013158117653802037,
-0.015261268243193626,
0.031622447073459625,
0.006449088919907808,
0.02314969338476658,
-0.000028179181754239835,
0.05427374318242073,
0.03585023060441017,
-0.016584599390625954,
0.0140410540625453,
0.02699938230216503,
-0.019815588369965553,
-0.08379948139190674,
0.001573603367432952,
0.037156373262405396,
-0.03370196744799614,
-0.01854381524026394,
0.0013888527173548937,
-0.05702352151274681,
-0.01964372582733631,
0.019214073196053505,
0.038290657103061676,
0.050492797046899796,
0.01139439269900322,
-0.03481906279921532,
0.01697128638625145,
0.019214073196053505,
0.017598578706383705,
-0.019849959760904312,
-0.05379253253340721,
0.00880788266658783,
-0.006247151643037796,
0.0759626179933548,
0.05362066999077797,
-0.002648809691891074,
-0.002801336348056793,
0.05894836410880089,
-0.04231220856308937,
-0.0131301898509264,
-0.07300660759210587,
0.028992971405386925,
-0.044237054884433746,
0.023218438029289246,
-0.0013931492576375604,
-0.013061445206403732,
0.055579885840415955,
-0.011067856103181839,
0.040387365967035294,
-0.03602209314703941,
-0.05152396485209465,
0.03660641983151436,
-0.03239582106471062,
-0.037362609058618546,
0.012571641243994236,
0.044237054884433746,
0.03908121958374977,
-0.03285984694957733,
0.04409956559538841,
0.026758776977658272,
0.05478932708501816,
-0.013628587126731873,
0.019128143787384033,
0.01692832075059414,
-0.04348086565732956,
0.022238830104470253,
0.021156104281544685,
-0.04379021376371384,
-0.014642567373812199,
0.007295504678040743,
-0.037362609058618546,
-0.008691876195371151,
0.0383937768638134,
0.0091945705935359,
0.002547841053456068,
0.01740953139960766,
-0.041968487203121185,
-0.034733131527900696,
0.012898177839815617,
0.0038131687324494123,
-0.02631193771958351,
0.03215521574020386,
0.022530993446707726,
-0.003748720744624734,
-0.033134825527668,
0.016094794496893883,
0.034372225403785706,
0.023785579949617386,
-0.004472685977816582,
-0.04777739197015762
] |
721,950
|
apprise.apprise_config
|
server_pop
|
Removes an indexed Apprise Notification from the servers
|
def server_pop(self, index):
"""
Removes an indexed Apprise Notification from the servers
"""
# Tracking variables
prev_offset = -1
offset = prev_offset
for entry in self.configs:
servers = entry.servers(cache=True)
if len(servers) > 0:
# Acquire a new maximum offset to work with
offset = prev_offset + len(servers)
if offset >= index:
# we can pop an notification from our config stack
return entry.pop(index if prev_offset == -1
else (index - prev_offset - 1))
# Update our old offset
prev_offset = offset
# If we reach here, then we indexed out of range
raise IndexError('list index out of range')
|
(self, index)
|
[
0.008563368581235409,
0.022114524617791176,
-0.08172758668661118,
-0.028621826320886612,
0.0027836314402520657,
-0.03533516451716423,
-0.03037313185632229,
0.04093247279524803,
0.07925515621900558,
-0.01266262587159872,
-0.03962757810950279,
-0.01329790335148573,
-0.04598035290837288,
-0.03471705690026283,
0.0011364170350134373,
0.0038502966053783894,
0.028810692951083183,
-0.015787504613399506,
0.05604177713394165,
-0.017358528450131416,
0.02791786938905716,
-0.006026551127433777,
0.005202407483011484,
0.018663423135876656,
-0.01225055381655693,
0.010756793431937695,
0.020294539630413055,
-0.00849469006061554,
0.07650801539421082,
-0.052676521241664886,
-0.04216868802905083,
-0.017049474641680717,
0.03432215377688408,
-0.02300734631717205,
-0.0019004669738933444,
0.00946048367768526,
-0.048555802553892136,
0.0009539893362671137,
-0.026561466977000237,
0.05247048661112785,
0.026681654155254364,
-0.029772194102406502,
0.04124152660369873,
-0.029823701828718185,
0.04258076101541519,
0.07273069024085999,
0.005477122031152248,
0.11723445355892181,
0.03452818840742111,
0.03167802467942238,
-0.043954335153102875,
0.06400849670171738,
0.001442251610569656,
0.004455527290701866,
-0.04999805614352226,
0.019504735246300697,
0.008765112608671188,
0.0578274205327034,
0.040829457342624664,
-0.03794495388865471,
-0.021736791357398033,
-0.015959201380610466,
0.05885760113596916,
-0.006215417757630348,
0.059407029300928116,
-0.011555182747542858,
0.018165502697229385,
-0.013778653927147388,
-0.01758173294365406,
-0.040966812521219254,
0.011117355898022652,
-0.012456589378416538,
-0.02038038894534111,
-0.006880742032080889,
-0.0019755843095481396,
-0.041481900960206985,
0.035266485065221786,
0.06284096091985703,
0.029308613389730453,
-0.0026505666319280863,
-0.02068944275379181,
0.012181875295937061,
0.04405735060572624,
0.0679231807589531,
0.04883051663637161,
0.035884592682123184,
0.07877440750598907,
-0.009889725595712662,
-0.01363271102309227,
0.014534118585288525,
0.005163775756955147,
0.02582317218184471,
0.0049792020581662655,
-0.03250217065215111,
0.0032343349885195494,
0.0017577441176399589,
-0.007451632991433144,
-0.03087105229496956,
0.016002124175429344,
-0.06424887478351593,
0.02084396965801716,
-0.015229489654302597,
-0.04831542819738388,
-0.04089813306927681,
0.008194221183657646,
0.04254642128944397,
0.031471990048885345,
0.00022790042567066848,
-0.07403558492660522,
0.05583573877811432,
0.0074430485256016254,
-0.008202806115150452,
-0.038666076958179474,
-0.08179626613855362,
0.04089813306927681,
0.06133003160357475,
-0.05202407389879227,
-0.026338260620832443,
0.006653244141489267,
-0.00830153189599514,
0.016963625326752663,
-0.010567926801741123,
-0.03828834742307663,
0.016903532668948174,
-0.0037944952491670847,
0.038528721779584885,
-0.01510930247604847,
-0.028827862814068794,
0.0789804458618164,
-0.007288521621376276,
-0.046083372086286545,
-0.011031507514417171,
-0.03330914303660393,
-0.0038138111121952534,
0.027025047689676285,
-0.04649544507265091,
0.0243294108659029,
-0.06315001845359802,
-0.02695636823773384,
-0.05992211773991585,
-0.02299017645418644,
0.04113851115107536,
0.0410354919731617,
0.07389822602272034,
-0.015564298257231712,
-0.05861722677946091,
-0.025033365935087204,
-0.02517072483897209,
0.013555447570979595,
-0.006078060250729322,
-0.030974069610238075,
0.0070910705253481865,
-0.05010107159614563,
-0.04752562195062637,
0.003238627454265952,
0.01674042083323002,
-0.016860608011484146,
0.004316023550927639,
-0.0036099213175475597,
-0.05830817297101021,
-0.009537747129797935,
0.020603593438863754,
-0.0034081777557730675,
-0.03664005920290947,
-0.08756527304649353,
-0.014353836886584759,
0.037532880902290344,
0.008207098580896854,
-0.05652252584695816,
0.06393981724977493,
-0.02333356998860836,
0.054874237626791,
0.0038460041396319866,
-0.04731958732008934,
-0.08825206011533737,
0.0483497679233551,
-0.009005487896502018,
-0.0038824898656457663,
0.0345110185444355,
-0.03691477328538895,
-0.08715320378541946,
-0.013812992721796036,
-0.038219667971134186,
-0.0761646181344986,
-0.01633693277835846,
0.07657669484615326,
-0.01938454806804657,
0.02001982554793358,
0.02151358686387539,
0.01264545600861311,
-0.01652579940855503,
-0.034270644187927246,
0.020637933164834976,
0.03955890238285065,
0.025084875524044037,
0.021959997713565826,
0.014431100338697433,
0.058720242232084274,
-0.0157789196819067,
-0.03495743125677109,
-0.03784193471074104,
-0.007344322744756937,
0.008988318033516407,
-0.03742986172437668,
-0.017264094203710556,
-0.00837021041661501,
0.028673335909843445,
-0.006447208113968372,
-0.03760156035423279,
0.07437897473573685,
-0.007644792087376118,
0.05058182403445244,
0.06181078404188156,
-0.05356934294104576,
-0.011452164500951767,
-0.03938720375299454,
-0.005575847811996937,
0.031815383583307266,
0.051680680364370346,
-0.0011321245692670345,
-0.017015134915709496,
-0.03811664879322052,
-0.01691211760044098,
0.019796619191765785,
-0.014817418530583382,
0.03452818840742111,
-0.02450110763311386,
-0.014207894913852215,
0.09154863655567169,
-0.005811930634081364,
0.012293477542698383,
0.04598035290837288,
0.05092521756887436,
-0.04333622753620148,
0.06685866415500641,
0.004863306879997253,
-0.019264360889792442,
-0.024758651852607727,
0.038185328245162964,
0.07053297013044357,
0.00825431477278471,
0.005777591373771429,
0.01919568143785,
0.04086379334330559,
0.00697946734726429,
0.043061513453722,
0.008627754636108875,
0.031952738761901855,
0.048075053840875626,
0.03636534512042999,
0.05391273647546768,
-0.007018099073320627,
0.00920293852686882,
0.028158245608210564,
0.04113851115107536,
-0.020243031904101372,
-0.05933834984898567,
-0.03432215377688408,
0.00968368910253048,
-0.02513638511300087,
0.00013165643031243235,
-0.02515355497598648,
0.0028029473032802343,
0.021462077274918556,
-0.013709974475204945,
0.015632977709174156,
0.015529959462583065,
0.04567129909992218,
0.04179095849394798,
0.09154863655567169,
0.038837775588035583,
0.005155190825462341,
0.03190123289823532,
-0.027832021936774254,
0.008164173923432827,
0.03626232594251633,
-0.032278962433338165,
-0.008541906252503395,
-0.0374642014503479,
-0.012542437762022018,
0.01777059957385063,
-0.014328083023428917,
0.004339632112532854,
0.024363750591874123,
0.020483406260609627,
0.012542437762022018,
0.047869015485048294,
-0.03037313185632229,
0.04831542819738388,
0.023762810975313187,
0.04240906611084938,
0.008116957731544971,
-0.03567855805158615,
-0.028518809005618095,
-0.028621826320886612,
-0.0005676719592884183,
-0.0292227640748024,
0.054633863270282745,
0.004854721948504448,
0.03157500922679901,
-0.014731570146977901,
-0.05367236211895943,
-0.09656217694282532,
-0.039524562656879425,
0.057243652641773224,
0.03406460955739021,
0.05614479258656502,
0.04598035290837288,
0.04845278710126877,
0.019333038479089737,
0.012654040940105915,
-0.049379948526620865,
-0.0575183667242527,
-0.01748730055987835,
0.027505798265337944,
-0.02051774598658085,
0.0004270953359082341,
0.020157182589173317,
0.017452960833907127,
0.05010107159614563,
-0.005335472524166107,
0.029669174924492836,
-0.053466327488422394,
0.0009690127917565405,
0.027471458539366722,
-0.010516418144106865,
-0.042649440467357635,
0.01856040395796299,
-0.03296574950218201,
-0.007829365320503712,
-0.002736414782702923,
-0.049517303705215454,
-0.03502611070871353,
-0.01570165529847145,
0.041001152247190475,
-0.01854323409497738,
0.011246128007769585,
0.019298700615763664,
0.030476149171590805,
-0.01378723792731762,
-0.028862200677394867,
-0.035111960023641586,
-0.005305425263941288,
0.03533516451716423,
0.014559873379766941,
-0.0020786020904779434,
0.003790202783420682,
-0.021616604179143906,
-0.045121870934963226,
0.013375166803598404,
0.028312772512435913,
0.008327285759150982,
-0.029634837061166763,
0.04003965109586716,
0.06091795861721039,
0.011005752719938755,
-0.01421647984534502,
-0.012533852830529213,
0.029308613389730453,
-0.011555182747542858,
-0.06356208771467209,
0.028175415471196175,
0.0200541652739048,
-0.009160014800727367,
-0.04714789241552353,
-0.005365519318729639,
-0.02810673601925373,
0.02022586204111576,
-0.015152226202189922,
-0.03846004232764244,
-0.02726542204618454,
0.005867731757462025,
-0.0013274294324219227,
0.01825135014951229,
0.01825135014951229,
-0.005623064003884792,
-0.021238870918750763,
0.049689002335071564,
-0.08523020148277283,
-0.042958494275808334,
-0.049551643431186676,
-0.015804674476385117,
-0.003659284207969904,
0.03370404615998268,
0.028810692951083183,
0.032330472022295,
-0.0371551476418972,
-0.0626349225640297,
-0.013160545378923416,
-0.002637689234688878,
-0.010782547295093536,
-0.0732114389538765,
-0.05786176025867462,
-0.02101566642522812,
-0.01206168718636036,
-0.010336136445403099,
-0.008567661046981812,
0.012654040940105915,
-0.020466236397624016,
-0.017555980011820793,
0.043954335153102875,
0.022887159138917923,
-0.014680060558021069,
0.008468935266137123,
0.034768566489219666,
-0.04038304463028908,
0.021650943905115128,
0.01904115453362465,
-0.023436589166522026,
0.012310647405683994,
0.045430924743413925,
0.024569785222411156,
0.012310647405683994,
-0.013941765762865543,
0.03667439892888069,
-0.02415771409869194,
0.018440216779708862,
0.03320612758398056,
0.030819542706012726,
0.014860342256724834,
0.010258872993290424,
-0.017289848998188972,
0.013512523844838142,
-0.04402301087975502,
-0.02857031673192978,
-0.032124437391757965,
-0.012757058255374432,
-0.01413063146173954,
-0.1197068840265274,
0.05961306393146515,
-0.004592884331941605,
-0.05714063346385956,
-0.008953978307545185,
0.013263563625514507,
0.0075203119777143,
-0.026252413168549538,
-0.018508896231651306,
-0.05030710995197296,
-0.021582264453172684,
0.0439886748790741,
-0.022921498864889145,
0.050204090774059296,
0.028673335909843445,
-0.0029252811800688505,
0.03585025295615196,
0.025033365935087204,
-0.03128312528133392,
-0.05916665494441986,
0.05422179028391838,
0.005717497318983078,
-0.06466094404459,
-0.06363076716661453,
-0.00032541874679736793,
-0.006022258661687374,
0.02450110763311386,
-0.08598566800355911,
-0.07211258262395859,
0.05995645746588707,
-0.04491583630442619,
-0.0008627754868939519,
-0.014654306694865227,
-0.019762281328439713,
-0.03231330215930939,
-0.07540915161371231,
0.01886945776641369,
0.038185328245162964,
0.02134189009666443,
0.015384016558527946,
-0.056625545024871826,
-0.00036861118860542774,
-0.016139481216669083,
-0.06290964037179947,
-0.05483989790081978,
-0.030115585774183273,
-0.010782547295093536,
-0.026200903579592705,
0.009735197760164738,
0.03385857120156288,
0.033566687256097794,
-0.01988246850669384,
-0.061707764863967896,
0.04433206841349602,
-0.004382556304335594,
0.007640499621629715,
-0.04436640441417694,
-0.07884308695793152,
0.04374829679727554,
-0.08351323753595352,
-0.02299017645418644,
-0.01804531365633011,
0.008816621266305447,
-0.0486588217318058,
0.0011965108569711447,
0.022869989275932312,
0.1055590808391571,
-0.012894416227936745,
-0.041481900960206985,
-0.00024077767739072442,
0.08488680422306061,
-0.033103108406066895,
0.02530808188021183,
-0.020620763301849365,
-0.011555182747542858,
-0.028020888566970825,
0.002181620104238391,
-0.016225330531597137,
-0.017993805930018425,
0.025411099195480347,
-0.009889725595712662,
-0.05861722677946091,
-0.010782547295093536,
0.035232145339250565,
0.015538543462753296,
0.01775342971086502,
0.03469988703727722,
0.018302859738469124,
-0.0006985905929468572,
-0.005172360688447952,
0.033463671803474426,
0.0598534420132637,
0.022904329001903534,
-0.0486588217318058,
-0.002779338974505663,
0.0469418540596962,
0.01986529864370823,
-0.04168793931603432,
0.016208160668611526,
-0.006232587154954672,
-0.013006018474698067,
0.015984954312443733,
-0.06290964037179947,
0.04814373329281807,
0.020243031904101372,
-0.019642092287540436,
0.030115585774183273,
-0.024260731413960457,
-0.03698345273733139,
-0.003539096564054489,
0.048075053840875626,
0.029669174924492836,
-0.016800513491034508,
-0.02827843278646469,
-0.018783610314130783,
-0.07540915161371231,
-0.08454341441392899,
-0.016800513491034508,
-0.0342019647359848,
-0.01173546351492405,
-0.0008665313944220543,
-0.004953447263687849,
-0.0581364743411541,
0.0017674020491540432,
0.09305956959724426,
-0.02563430555164814,
0.019968315958976746,
0.0014143509324640036,
0.01116886455565691,
-0.01792512647807598,
0.042958494275808334,
0.04587733745574951,
-0.03609062731266022,
-0.04268378019332886,
0.032107267528772354,
0.034098949283361435,
-0.006648951675742865,
0.08028534054756165,
-0.012207629159092903,
-0.02513638511300087,
0.03042464144527912,
0.011065847240388393,
-0.006558810826390982,
-0.02807239629328251,
0.004854721948504448,
-0.05422179028391838,
-0.03609062731266022,
0.006932251155376434,
0.0525391660630703,
-0.020792460069060326,
0.010645190253853798,
0.00937463529407978,
0.02220037207007408,
0.01668032631278038,
0.11290769279003143,
-0.03643402084708214,
-0.020157182589173317,
0.06641225516796112,
-0.007528896443545818,
0.015487034805119038,
-0.007395831868052483,
0.058926280587911606,
0.028381450101733208,
0.013581202365458012,
0.0315578393638134,
-0.0009443314047530293,
0.03330914303660393,
0.030184265226125717,
0.039833616465330124,
-0.0005035540089011192,
-0.0383913628757,
0.02103283628821373,
-0.016963625326752663,
-0.033601026982069016,
0.03773891553282738,
-0.04687317833304405,
0.02762598544359207,
-0.03664005920290947,
-0.03629666566848755,
-0.02565147541463375,
-0.0005236747092567384,
0.008091202937066555,
0.003822396043688059,
0.025239402428269386,
-0.012525267899036407,
0.03480290621519089,
0.027471458539366722,
-0.011881405487656593,
0.027231084182858467,
0.03598761186003685,
-0.04024568572640419,
-0.014353836886584759,
0.03087105229496956,
0.03698345273733139,
-0.0075417738407850266,
-0.04522489011287689,
-0.025531286373734474,
-0.022612445056438446,
0.0058591472916305065,
-0.006743384525179863,
-0.026063546538352966,
0.07273069024085999,
0.015306753106415272,
-0.05226445198059082,
-0.005854854825884104,
0.018302859738469124,
-0.05137162655591965,
-0.007867997512221336,
0.004588592331856489,
-0.004850429482758045,
-0.03296574950218201,
0.029669174924492836,
0.08516152203083038,
-0.10672661662101746,
-0.01859474368393421,
-0.00894539337605238,
-0.00904841162264347,
0.02578883245587349,
0.01919568143785,
0.0005880609387531877,
0.019624924287199974,
-0.00788945984095335,
0.03487158194184303,
-0.030012568458914757,
-0.03396159037947655,
0.05453084409236908,
-0.057930439710617065,
0.0584455281496048,
0.04028002545237541,
0.03006407804787159,
-0.021067174151539803,
-0.05896061658859253,
0.0005384298856370151,
-0.013941765762865543,
-0.040966812521219254,
0.0031785336323082447,
0.04828108847141266,
-0.037052128463983536,
0.003594897920265794,
0.01019877940416336,
0.02529091201722622,
0.047869015485048294,
0.08474945276975632,
-0.07087636739015579,
0.005927825812250376,
0.03564421832561493,
0.020809629932045937,
-0.03301725909113884,
-0.029480308294296265,
0.05322595313191414,
-0.015830427408218384,
0.021118683740496635,
0.02151358686387539,
0.008808036334812641,
-0.00706531573086977,
0.0019766571931540966,
-0.00455854507163167,
0.011108770966529846,
0.09305956959724426,
0.005223869811743498,
-0.011125940829515457,
0.020792460069060326,
-0.03006407804787159,
-0.05703761801123619,
0.01091990526765585,
0.05027277022600174,
-0.030802372843027115,
-0.02252659574151039,
-0.002120453165844083,
-0.03445951268076897,
-0.03619364649057388,
0.009881140664219856,
0.020105673000216484,
0.05631649121642113,
0.01411346159875393,
-0.04450376331806183,
0.0012040225556120276,
0.03238198161125183,
-0.015881936997175217,
-0.0343564935028553,
-0.06703036278486252,
0.02630392089486122,
-0.008644924499094486,
0.06534773111343384,
0.07067032903432846,
-0.006777723785489798,
-0.011778388172388077,
0.06242889165878296,
-0.026166563853621483,
-0.01809682324528694,
-0.03664005920290947,
0.062360212206840515,
-0.02958332747220993,
-0.0025518410839140415,
-0.012130365706980228,
0.01874927058815956,
0.01510930247604847,
-0.011812726967036724,
0.06321869790554047,
-0.016809098422527313,
-0.07458501309156418,
0.043473582714796066,
-0.03105991892516613,
-0.05147464573383331,
0.03238198161125183,
0.001173975644633174,
0.03619364649057388,
-0.039696257561445236,
0.03471705690026283,
0.011211789213120937,
0.013323657214641571,
0.00016592867905274034,
0.007378662005066872,
-0.022045845165848732,
-0.01700654998421669,
0.02300734631717205,
-0.01019877940416336,
-0.04391999542713165,
-0.026750333607196808,
0.0028394327964633703,
-0.024106204509735107,
0.010971413925290108,
0.045602623373270035,
0.005975042469799519,
-0.022063015028834343,
-0.016637401655316353,
-0.03421913459897041,
-0.010619435459375381,
-0.011263297870755196,
0.0009974500862881541,
-0.04258076101541519,
0.0598534420132637,
0.033910080790519714,
0.01543552614748478,
-0.04223736748099327,
0.033429332077503204,
-0.02822692319750786,
0.01643136702477932,
-0.0014508364256471395,
-0.0018596890149638057
] |
721,951
|
apprise.apprise_config
|
servers
|
Returns all of our servers dynamically build based on parsed
configuration.
If a tag is specified, it applies to the configuration sources
themselves and not the notification services inside them.
This is for filtering the configuration files polled for
results.
If the anytag is set, then any notification that is found
set with that tag are included in the response.
|
def servers(self, tag=common.MATCH_ALL_TAG, match_always=True, *args,
**kwargs):
"""
Returns all of our servers dynamically build based on parsed
configuration.
If a tag is specified, it applies to the configuration sources
themselves and not the notification services inside them.
This is for filtering the configuration files polled for
results.
If the anytag is set, then any notification that is found
set with that tag are included in the response.
"""
# A match_always flag allows us to pick up on our 'any' keyword
# and notify these services under all circumstances
match_always = common.MATCH_ALWAYS_TAG if match_always else None
# Build our tag setup
# - top level entries are treated as an 'or'
# - second level (or more) entries are treated as 'and'
#
# examples:
# tag="tagA, tagB" = tagA or tagB
# tag=['tagA', 'tagB'] = tagA or tagB
# tag=[('tagA', 'tagC'), 'tagB'] = (tagA and tagC) or tagB
# tag=[('tagB', 'tagC')] = tagB and tagC
response = list()
for entry in self.configs:
# Apply our tag matching based on our defined logic
if is_exclusive_match(
logic=tag, data=entry.tags, match_all=common.MATCH_ALL_TAG,
match_always=match_always):
# Build ourselves a list of services dynamically and return the
# as a list
response.extend(entry.servers())
return response
|
(self, tag='all', match_always=True, *args, **kwargs)
|
[
0.07192833721637726,
-0.015964234247803688,
-0.027892766520380974,
-0.056071244180202484,
-0.013758883811533451,
0.035214170813560486,
-0.005089269019663334,
-0.036964163184165955,
0.026464199647307396,
0.01511602196842432,
-0.0017790120327845216,
0.042749859392642975,
-0.025303488597273827,
-0.0674283504486084,
0.004732127301394939,
-0.055678389966487885,
-0.03724987804889679,
-0.013758883811533451,
0.02694633975625038,
-0.041857004165649414,
0.0206606462597847,
0.07699974626302719,
0.0337141752243042,
0.038321301341056824,
0.06157122552394867,
-0.007040155585855246,
0.007245511747896671,
-0.04167843610048294,
0.009955324232578278,
0.02624991349875927,
-0.042821288108825684,
-0.012035674415528774,
0.02857133559882641,
-0.015964234247803688,
0.014526737853884697,
0.014830308966338634,
0.037678446620702744,
0.08357115089893341,
-0.10185680538415909,
0.03621416538953781,
0.012624958530068398,
-0.05835695192217827,
0.05039269104599953,
-0.018607081845402718,
0.007049084175378084,
0.04432128369808197,
0.03017847239971161,
0.10157109797000885,
-0.004977662116289139,
-0.03467845916748047,
0.02617848478257656,
0.02914276160299778,
-0.043714143335819244,
-0.018678510561585426,
-0.017098158597946167,
0.04521413892507553,
-0.00244418834336102,
0.10528536885976791,
0.0409284383058548,
0.0049731978215277195,
-0.026267770677804947,
-0.021196359768509865,
0.03376774489879608,
0.005955337546765804,
-0.06028551608324051,
0.013196385465562344,
-0.015785662457346916,
-0.014098168350756168,
-0.03878558799624443,
-0.0004444739897735417,
-0.0198749341070652,
-0.029964188113808632,
-0.009526754729449749,
-0.029482046142220497,
0.002337045967578888,
-0.02160707116127014,
-0.009321398101747036,
0.04064272344112396,
0.014419595710933208,
-0.05282125622034073,
-0.04328557103872299,
0.01885708048939705,
-0.0074240826070308685,
-0.0029129369650036097,
0.060964085161685944,
0.016821373254060745,
-0.016348160803318024,
0.007312476169317961,
0.007267833221703768,
-0.020607074722647667,
-0.03171418234705925,
0.020357076078653336,
0.0429641455411911,
0.03871415928006172,
-0.03416060283780098,
0.03703559190034866,
-0.03699987754225731,
-0.0005532905925065279,
0.0008342606597580016,
-0.01479459460824728,
-0.023624923080205917,
-0.031999893486499786,
0.00919639877974987,
-0.012633887119591236,
0.023196352645754814,
-0.03119632601737976,
-0.0634283646941185,
0.03171418234705925,
-0.026339199393987656,
0.050535548478364944,
-0.019339222460985184,
-0.012160674668848515,
0.04032129794359207,
-0.04432128369808197,
-0.010142823681235313,
0.02385706454515457,
-0.05228554457426071,
-0.0035915060434490442,
-0.029964188113808632,
-0.04449985548853874,
-0.04207129031419754,
0.027964193373918533,
0.025428488850593567,
0.0337141752243042,
-0.02694633975625038,
-0.012732100673019886,
-0.01980350725352764,
-0.013026743195950985,
0.020892787724733353,
-0.046999845653772354,
0.001570307300426066,
0.06453550606966019,
0.0218749288469553,
-0.005830338224768639,
0.037285592406988144,
-0.07174976170063019,
-0.02373206429183483,
-0.03603559732437134,
0.013464241288602352,
0.007473189849406481,
-0.03208918124437332,
0.012723173014819622,
-0.03699987754225731,
0.021821357309818268,
-0.03660702332854271,
-0.06682121008634567,
0.03596416860818863,
-0.02135707251727581,
-0.0038281125016510487,
0.0020267791114747524,
-0.045964136719703674,
-0.008013366721570492,
-0.015544591471552849,
0.004785698372870684,
-0.06207122653722763,
0.040499866008758545,
0.006401764694601297,
0.009624968282878399,
0.019267793744802475,
-0.06410693377256393,
-0.0272856242954731,
-0.0016975391190499067,
-0.04678555950522423,
0.00733479717746377,
-0.034053459763526917,
-0.002316956641152501,
-0.029607046395540237,
-0.0023950813338160515,
0.022107070311903954,
0.020285647362470627,
-0.028124907985329628,
0.07260690629482269,
-0.019982077181339264,
-0.017955297604203224,
-0.021821357309818268,
0.04432128369808197,
0.026196341961622238,
-0.0343034602701664,
-0.0027276696637272835,
0.035410597920417786,
-0.07042834162712097,
-0.018999937921762466,
-0.007455332670360804,
0.024142777547240257,
-0.004087040200829506,
0.0333213210105896,
0.01348209846764803,
-0.004857127089053392,
-0.06007122993469238,
0.01447316724807024,
-0.006736584939062595,
-0.025374917313456535,
-0.0036562380846589804,
0.032142750918865204,
-0.01283031515777111,
-0.0069731916300952435,
0.009138362482190132,
0.028089193627238274,
-0.016553517431020737,
-0.005540160462260246,
-0.03749987855553627,
-0.04560699313879013,
-0.02051779069006443,
0.039535585790872574,
0.0284999068826437,
0.03146418184041977,
0.023392779752612114,
-0.018357083201408386,
-0.033285606652498245,
-0.011303534731268883,
-0.029285619035363197,
0.015491020865738392,
-0.0272856242954731,
-0.009249969385564327,
0.026017772033810616,
0.04446414113044739,
0.023517780005931854,
0.043071288615465164,
-0.05949980393052101,
-0.05678552761673927,
0.006620514206588268,
-0.06289265304803848,
0.013232099823653698,
0.06321407854557037,
-0.04439271241426468,
0.04264271631836891,
0.027071340009570122,
0.010767822153866291,
0.030714185908436775,
0.03016061522066593,
0.006008909083902836,
0.029678473249077797,
0.06928548961877823,
-0.019732078537344933,
0.07196404784917831,
0.01658923178911209,
0.06671406328678131,
0.0232856385409832,
0.08342830091714859,
0.0653926432132721,
0.02194635570049286,
-0.009267826564610004,
-0.002517848974093795,
-0.06035694479942322,
0.00865175761282444,
-0.022874925285577774,
-0.00990175362676382,
0.021374929696321487,
0.026607055217027664,
0.03433917462825775,
0.004624984692782164,
0.02160707116127014,
0.03749987855553627,
-0.0036071310751140118,
-0.0036830236203968525,
-0.05749981105327606,
-0.005241054110229015,
0.022160641849040985,
0.054321251809597015,
-0.04142843559384346,
0.012258888222277164,
0.05228554457426071,
-0.03867844492197037,
0.04260700196027756,
-0.03208918124437332,
0.021339215338230133,
0.016071375459432602,
-0.006415157578885555,
-0.06182122603058815,
0.07728546112775803,
0.030249901115894318,
-0.010053538717329502,
0.04785698652267456,
-0.0014698612503707409,
-0.0024151706602424383,
0.04649984836578369,
-0.003437488805502653,
-0.03903558477759361,
-0.07053548097610474,
0.007437475491315126,
-0.016232090070843697,
-0.004136146977543831,
0.029624903574585915,
-0.025232059881091118,
0.05524981766939163,
-0.06717835366725922,
-0.007995509542524815,
0.05285697057843208,
-0.00519641162827611,
-0.012660672888159752,
0.00452900305390358,
0.005468732211738825,
0.004026772454380989,
-0.04703556001186371,
-0.03623202443122864,
0.016133876517415047,
-0.026517769321799278,
-0.00397989759221673,
0.06389264762401581,
-0.050928402692079544,
0.008352651260793209,
-0.028017764911055565,
-0.017062444239854813,
-0.05442839115858078,
0.025124916806817055,
0.027821337804198265,
0.04446414113044739,
-0.0064330147579312325,
0.07146405428647995,
-0.00905800610780716,
-0.024160634726285934,
-0.016991015523672104,
-0.02335706539452076,
-0.07260690629482269,
-0.00495534110814333,
0.02798205055296421,
-0.03842844441533089,
0.04424985498189926,
-0.003145078895613551,
0.01891065202653408,
0.00034346984466537833,
0.08628543466329575,
-0.06635692715644836,
0.02837490662932396,
0.057356953620910645,
0.017741013318300247,
0.016473161056637764,
0.03667845204472542,
-0.0204642191529274,
-0.00755801098421216,
0.028910620138049126,
-0.03216060996055603,
-0.01853565312922001,
0.042285576462745667,
0.04142843559384346,
-0.034321315586566925,
0.02501777559518814,
0.007374975830316544,
0.022535640746355057,
-0.035482026636600494,
0.006964263040572405,
-0.03119632601737976,
-0.05385696515440941,
0.010910678654909134,
0.046214133501052856,
0.027553481981158257,
0.036964163184165955,
0.018321368843317032,
-0.023107066750526428,
0.040357012301683426,
0.028446335345506668,
0.000212052880669944,
0.045392706990242004,
0.022428497672080994,
0.10699965059757233,
-0.05392839387059212,
-0.06674978137016296,
0.030017759650945663,
0.01621423289179802,
0.020696360617876053,
-0.030089186504483223,
-0.0012120496248826385,
0.022607069462537766,
0.022821353748440742,
0.008397294208407402,
0.0008342606597580016,
0.01733030006289482,
0.029767759144306183,
0.027232052758336067,
-0.10528536885976791,
0.00026715872809290886,
0.009187470190227032,
-0.005200875923037529,
-0.053178396075963974,
0.031160611659288406,
0.0012857100227847695,
-0.04303557425737381,
-0.015071379020810127,
-0.031232040375471115,
0.0270891971886158,
-0.03562488406896591,
0.03796416148543358,
0.05964266136288643,
-0.007915152236819267,
0.03498202934861183,
-0.012455316260457039,
0.011857103556394577,
-0.017607085406780243,
0.012517816387116909,
0.03641059622168541,
0.03660702332854271,
-0.02573205903172493,
-0.07678546011447906,
0.0055937315337359905,
-0.04424985498189926,
-0.0533926822245121,
-0.0102321095764637,
-0.00733479717746377,
-0.011017820797860622,
-0.026071343570947647,
0.0005943060969002545,
-0.041785575449466705,
0.04124986380338669,
0.013741026632487774,
-0.0070089055225253105,
-0.046964131295681,
0.04614270478487015,
0.025874914601445198,
-0.034196317195892334,
0.056249815970659256,
0.01839279755949974,
-0.048535555601119995,
-0.037928447127342224,
-0.03807130455970764,
-0.05828552320599556,
0.01776779815554619,
0.05782124027609825,
0.08342830091714859,
0.03796416148543358,
0.053606968373060226,
0.015580305829644203,
-0.049642693251371384,
0.03967843949794769,
0.01994636282324791,
0.038749873638153076,
0.016035661101341248,
-0.0099374670535326,
-0.03828558698296547,
-0.040357012301683426,
-0.038571301847696304,
0.016374945640563965,
0.02823205105960369,
-0.07599975168704987,
-0.046214133501052856,
0.08907113969326019,
-0.07378546893596649,
-0.019696364179253578,
-0.07657117396593094,
0.013205314055085182,
-0.044106997549533844,
-0.058964092284440994,
-0.0037700769025832415,
0.009169613011181355,
-0.028196336701512337,
0.0063392650336027145,
-0.023446351289749146,
-0.027678480371832848,
-0.042821288108825684,
0.044535569846630096,
-0.0457855649292469,
-0.07578546553850174,
-0.029803473502397537,
-0.0002223765040980652,
0.032142750918865204,
0.04792841523885727,
-0.022624926641583443,
0.04871412739157677,
0.011732104234397411,
-0.06046408787369728,
-0.03208918124437332,
0.0010323626920580864,
-0.04771412909030914,
0.009138362482190132,
0.019071366637945175,
-0.04003558307886124,
-0.05128554627299309,
0.015964234247803688,
0.012017818167805672,
-0.013330313377082348,
-0.008191937580704689,
-0.007272297516465187,
-0.05482124909758568,
-0.0055580176413059235,
0.022732067853212357,
0.007299083285033703,
-0.011946389451622963,
0.039464157074689865,
-0.011062463745474815,
-0.02694633975625038,
-0.034392744302749634,
-0.06685692071914673,
0.04867841303348541,
-0.0010569161968305707,
-0.003178561106324196,
-0.004156236536800861,
-0.10614250600337982,
0.08692828565835953,
-0.07364261895418167,
-0.04857126995921135,
-0.0005982122966088355,
-0.00795979518443346,
-0.015071379020810127,
0.02682134136557579,
-0.032839179039001465,
0.0072633689269423485,
0.021535644307732582,
0.006924084387719631,
0.06453550606966019,
0.027964193373918533,
0.00794640276581049,
-0.0037031129468232393,
-0.0401427261531353,
-0.00017438558279536664,
0.031946323812007904,
-0.015169593505561352,
-0.05146411806344986,
-0.021499929949641228,
0.011705318465828896,
-0.024678491055965424,
0.026803484186530113,
-0.006776763591915369,
-0.0337141752243042,
-0.004160700831562281,
0.0010128314606845379,
0.023178495466709137,
-0.02130350098013878,
-0.04199986159801483,
0.002696419833227992,
-0.013776740990579128,
-0.0008510016486980021,
0.005535696167498827,
-0.0016729856142774224,
0.01910708099603653,
0.06289265304803848,
0.025303488597273827,
-0.040178440511226654,
0.020035648718476295,
-0.040107011795043945,
-0.036642737686634064,
0.016178518533706665,
-0.0042589143849909306,
0.006040158681571484,
-0.05610695853829384,
-0.012098174542188644,
-0.01776779815554619,
-0.01833922602236271,
-0.012464244849979877,
0.007285690400749445,
-0.05403553694486618,
0.01878565177321434,
0.030785612761974335,
0.03960701450705528,
0.009124970063567162,
-0.035214170813560486,
-0.07399975508451462,
0.011848175898194313,
-0.006477657239884138,
0.008040152490139008,
0.046749845147132874,
-0.03839273005723953,
-0.012785672210156918,
-0.02224992774426937,
-0.00021581960027106106,
0.01151781901717186,
-0.00283034797757864,
-0.05199982970952988,
-0.0025937415193766356,
-0.034517742693424225,
-0.04260700196027756,
0.03807130455970764,
0.01740172877907753,
0.005830338224768639,
-0.05267839878797531,
0.06935691833496094,
0.021446358412504196,
0.0023950813338160515,
0.04485699534416199,
0.004772305954247713,
0.027571337297558784,
0.021571358665823936,
0.0067544421181082726,
0.007245511747896671,
-0.03369631990790367,
-0.016544587910175323,
-0.017901727929711342,
0.04135700687766075,
0.03739273548126221,
-0.05839266628026962,
-0.01049103680998087,
-0.011955318041145802,
-0.038892731070518494,
-0.03180346637964249,
0.035803455859422684,
-0.0002643685438670218,
-0.010758893564343452,
0.07335690408945084,
-0.01505352184176445,
0.041464149951934814,
-0.024714205414056778,
0.029892759397625923,
0.01910708099603653,
0.0497855506837368,
0.005803552456200123,
0.020892787724733353,
-0.03478559851646423,
0.004964269232004881,
0.028714191168546677,
0.020428504794836044,
0.014741023071110249,
-0.022499926388263702,
-0.05364268273115158,
-0.003104900475591421,
0.057356953620910645,
-0.04582127928733826,
0.010258895345032215,
-0.07349976152181625,
0.01720529980957508,
-0.028803477063775063,
-0.02805347926914692,
0.023107066750526428,
-0.0006143953069113195,
0.002591509371995926,
0.06785692274570465,
0.009160684421658516,
0.06332121789455414,
0.04078558087348938,
0.015187449753284454,
0.041642721742391586,
0.02291063964366913,
-0.12471387535333633,
0.034374888986349106,
0.05421410873532295,
-0.012392816133797169,
-0.006741049233824015,
-0.05510696396231651,
0.005526767577975988,
-0.028160622343420982,
-0.03717844933271408,
-0.012964243069291115,
0.03539274260401726,
0.04928555339574814,
0.0038281125016510487,
0.03208918124437332,
0.03310703486204147,
-0.030249901115894318,
-0.022732067853212357,
0.04357128590345383,
-0.01898208074271679,
0.008424079976975918,
-0.05803552269935608,
0.07032119482755661,
-0.06360693275928497,
0.011285677552223206,
-0.040749866515398026,
-0.014124954119324684,
-0.0074240826070308685,
0.009187470190227032,
-0.01787494122982025,
0.05089269205927849,
-0.004205343313515186,
0.033749889582395554,
-0.020696360617876053,
-0.06699977815151215,
0.07264261692762375,
-0.006428550463169813,
0.03546416759490967,
0.030249901115894318,
0.0034173994790762663,
0.02033921889960766,
0.010276751592755318,
-0.030571328476071358,
0.0038638266269117594,
0.028803477063775063,
-0.012169603258371353,
0.0014185220934450626,
-0.052392683923244476,
0.05803552269935608,
-0.08549971878528595,
0.010705322027206421,
0.07153548300266266,
0.11192820221185684,
-0.04992840811610222,
0.009044612757861614,
0.00907139852643013,
0.02958918921649456,
-0.022339211776852608,
-0.05428553745150566,
0.02919633314013481,
-0.011062463745474815,
0.017883870750665665,
0.041464149951934814,
-0.031107040122151375,
-0.016294589266180992,
-0.002428563544526696,
-0.007406225893646479,
-0.01766958460211754,
0.053178396075963974,
-0.014098168350756168,
-0.00897318497300148,
0.009267826564610004,
-0.029428474605083466,
-0.048214126378297806,
0.019660649821162224,
0.03598202392458916,
0.01549994945526123,
0.05524981766939163,
-0.03183918073773384,
-0.08892828226089478,
0.015205306932330132,
0.047249846160411835,
0.04157129302620888,
0.03241060674190521,
-0.03617845103144646,
0.008977648802101612,
0.0036473094951361418,
-0.020214218646287918,
-0.011660676449537277,
-0.04046415165066719,
0.009366041049361229,
0.025232059881091118,
-0.004535699263215065,
0.09164255857467651,
0.08278544247150421,
-0.011348176747560501,
0.008209794759750366,
-0.0034553457517176867,
0.015455306507647038,
-0.02419634908437729,
0.05074983462691307,
0.04996412247419357,
0.006272301077842712,
-0.03699987754225731,
0.008303544484078884,
-0.035089172422885895,
0.026589198037981987,
0.01804458349943161,
0.059606947004795074,
0.020946359261870384,
0.03042847104370594,
0.052714113146066666,
-0.02605348639190197,
0.005919623654335737,
-0.002457581227645278,
-0.022696353495121002,
0.014464238658547401,
-0.06964262574911118,
-0.025303488597273827,
-0.035410597920417786,
-0.029607046395540237,
0.01733030006289482,
0.012089245952665806,
-0.04749984294176102,
0.06260693818330765,
0.0014319149777293205,
-0.029767759144306183,
-0.07614260911941528,
0.024749919772148132,
0.05714267119765282,
-0.014330309815704823,
0.005732124205678701,
-0.032071322202682495,
0.020946359261870384,
-0.012589244171977043,
-0.03514274209737778,
-0.012214245274662971,
0.009312469512224197,
-0.004687484819442034,
-0.027749909088015556,
-0.03366060554981232,
0.01572316326200962,
0.0041785575449466705,
0.031124897301197052,
0.00786158163100481,
0.03166060894727707,
0.02449991926550865,
-0.008169615641236305,
0.04642841964960098,
0.013142813928425312
] |
721,952
|
apprise.locale
|
AppriseLocale
|
A wrapper class to gettext so that we can manipulate multiple lanaguages
on the fly if required.
|
class AppriseLocale:
"""
A wrapper class to gettext so that we can manipulate multiple lanaguages
on the fly if required.
"""
# Define our translation domain
_domain = 'apprise'
# The path to our translations
_locale_dir = abspath(join(dirname(__file__), 'i18n'))
# Locale regular expression
_local_re = re.compile(
r'^((?P<ansii>C)|(?P<lang>([a-z]{2}))([_:](?P<country>[a-z]{2}))?)'
r'(\.(?P<enc>[a-z0-9-]+))?$', re.IGNORECASE)
# Define our default encoding
_default_encoding = 'utf-8'
# The function to assign `_` by default
_fn = 'gettext'
# The language we should fall back to if all else fails
_default_language = 'en'
def __init__(self, language=None):
"""
Initializes our object, if a language is specified, then we
initialize ourselves to that, otherwise we use whatever we detect
from the local operating system. If all else fails, we resort to the
defined default_language.
"""
# Cache previously loaded translations
self._gtobjs = {}
# Get our language
self.lang = AppriseLocale.detect_language(language)
# Our mapping to our _fn
self.__fn_map = None
if GETTEXT_LOADED is False:
# We're done
return
# Add language
self.add(self.lang)
def add(self, lang=None, set_default=True):
"""
Add a language to our list
"""
lang = lang if lang else self._default_language
if lang not in self._gtobjs:
# Load our gettext object and install our language
try:
self._gtobjs[lang] = gettext.translation(
self._domain, localedir=self._locale_dir, languages=[lang],
fallback=False)
# The non-intrusive method of applying the gettext change to
# the global namespace only
self.__fn_map = getattr(self._gtobjs[lang], self._fn)
except FileNotFoundError:
# The translation directory does not exist
logger.debug(
'Could not load translation path: %s',
join(self._locale_dir, lang))
# Fallback (handle case where self.lang does not exist)
if self.lang not in self._gtobjs:
self._gtobjs[self.lang] = gettext
self.__fn_map = getattr(self._gtobjs[self.lang], self._fn)
return False
logger.trace('Loaded language %s', lang)
if set_default:
logger.debug('Language set to %s', lang)
self.lang = lang
return True
@contextlib.contextmanager
def lang_at(self, lang, mapto=_fn):
"""
The syntax works as:
with at.lang_at('fr'):
# apprise works as though the french language has been
# defined. afterwards, the language falls back to whatever
# it was.
"""
if GETTEXT_LOADED is False:
# Do nothing
yield None
# we're done
return
# Tidy the language
lang = AppriseLocale.detect_language(lang, detect_fallback=False)
if lang not in self._gtobjs and not self.add(lang, set_default=False):
# Do Nothing
yield getattr(self._gtobjs[self.lang], mapto)
else:
# Yield
yield getattr(self._gtobjs[lang], mapto)
return
@property
def gettext(self):
"""
Return the current language gettext() function
Useful for assigning to `_`
"""
return self._gtobjs[self.lang].gettext
@staticmethod
def detect_language(lang=None, detect_fallback=True):
"""
Returns the language (if it's retrievable)
"""
# We want to only use the 2 character version of this language
# hence en_CA becomes en, en_US becomes en.
if not isinstance(lang, str):
if detect_fallback is False:
# no detection enabled; we're done
return None
# Posix lookup
lookup = os.environ.get
localename = None
for variable in ('LC_ALL', 'LC_CTYPE', 'LANG', 'LANGUAGE'):
localename = lookup(variable, None)
if localename:
result = AppriseLocale._local_re.match(localename)
if result and result.group('lang'):
return result.group('lang').lower()
# Windows handling
if hasattr(ctypes, 'windll'):
windll = ctypes.windll.kernel32
try:
lang = locale.windows_locale[
windll.GetUserDefaultUILanguage()]
# Our detected windows language
return lang[0:2].lower()
except (TypeError, KeyError):
# Fallback to posix detection
pass
# Built in locale library check
try:
# Acquire our locale
lang = locale.getlocale()[0]
# Compatibility for Python >= 3.12
if lang == 'C':
lang = AppriseLocale._default_language
except (ValueError, TypeError) as e:
# This occurs when an invalid locale was parsed from the
# environment variable. While we still return None in this
# case, we want to better notify the end user of this. Users
# receiving this error should check their environment
# variables.
logger.warning(
'Language detection failure / {}'.format(str(e)))
return None
return None if not lang else lang[0:2].lower()
def __getstate__(self):
"""
Pickle Support dumps()
"""
state = self.__dict__.copy()
# Remove the unpicklable entries.
del state['_gtobjs']
del state['_AppriseLocale__fn_map']
return state
def __setstate__(self, state):
"""
Pickle Support loads()
"""
self.__dict__.update(state)
# Our mapping to our _fn
self.__fn_map = None
self._gtobjs = {}
self.add(state['lang'], set_default=True)
|
(language=None)
|
[
0.040774326771497726,
-0.0847248062491417,
-0.005220537073910236,
0.03656696155667305,
0.020614031702280045,
-0.04060933366417885,
0.0373094379901886,
0.003542231163010001,
0.051643356680870056,
-0.08163115382194519,
0.0016731498762965202,
0.004916328005492687,
0.007517573423683643,
0.0241098590195179,
-0.07643382251262665,
0.039536867290735245,
-0.04003185033798218,
0.027574747800827026,
0.0035216067917644978,
-0.020438725128769875,
0.015695124864578247,
-0.03893876075744629,
0.015262014232575893,
0.01119901891797781,
-0.00025909332907758653,
0.029719680547714233,
0.04677601158618927,
-0.0074453880079090595,
0.042486149817705154,
-0.05655195191502571,
-0.01909814216196537,
0.02573918178677559,
0.00343137513846159,
-0.0393306240439415,
0.0021720011718571186,
-0.03535012528300285,
0.006563697475939989,
-0.04170242324471474,
-0.007785690017044544,
-0.05275707319378853,
0.03462827205657959,
-0.0020585672464221716,
0.026254789903759956,
-0.013405823148787022,
-0.041784919798374176,
0.012353981845080853,
-0.08876717835664749,
0.06294550001621246,
0.01755131594836712,
0.05651070177555084,
0.04421859234571457,
-0.020624343305826187,
0.007641319651156664,
-0.030462156981229782,
-0.08860218524932861,
0.07276268303394318,
-0.02332613244652748,
0.03442202880978584,
-0.01337488740682602,
0.00341075100004673,
0.02561543509364128,
-0.013075834140181541,
0.012725220061838627,
0.041434306651353836,
0.0013315592659637332,
0.007935216650366783,
0.017922554165124893,
-0.05403578281402588,
0.006836969871073961,
0.03268958628177643,
-0.02028404176235199,
0.014220485463738441,
-0.043723609298467636,
0.004900859668850899,
0.055025748908519745,
0.014055490493774414,
-0.056221961975097656,
0.0013728078920394182,
-0.011941495351493359,
0.00016998971113935113,
0.0029415469616651535,
-0.021903052926063538,
0.024666715413331985,
-0.01034310832619667,
0.04405359923839569,
-0.027038514614105225,
0.0629042461514473,
-0.0028100667987018824,
0.04409484565258026,
0.011518696323037148,
-0.06888531148433685,
0.02082027494907379,
0.03667008504271507,
0.06335798650979996,
-0.0069349356926977634,
-0.06117180362343788,
-0.015622940845787525,
0.0002721446508076042,
-0.022893022745847702,
0.01997467689216137,
0.037907544523477554,
0.005950123071670532,
-0.021758683025836945,
-0.08926215767860413,
0.06632789224386215,
-0.03409203886985779,
-0.022542407736182213,
0.014406104572117329,
0.044466085731983185,
-0.024398598819971085,
-0.08736471831798553,
-0.08769471198320389,
-0.025553561747074127,
0.009141740389168262,
-0.04677601158618927,
0.0009068266372196376,
-0.057583168148994446,
0.017138829454779625,
-0.005228271242231131,
0.017963804304599762,
-0.049003440886735916,
0.037598177790641785,
-0.06187303364276886,
-0.004599228501319885,
0.02231553941965103,
-0.009580007754266262,
0.056304458528757095,
-0.0038129256572574377,
0.06859657168388367,
0.002411759225651622,
0.033163946121931076,
0.0338032990694046,
0.023738620802760124,
-0.07049401104450226,
0.021985551342368126,
-0.02578043006360531,
-0.034875765442848206,
0.030400283634662628,
-0.033205192536115646,
0.12308608740568161,
-0.012910839170217514,
-0.031184008345007896,
0.016932586207985878,
-0.017345072701573372,
-0.0006196970934979618,
-0.007661943789571524,
0.03464889898896217,
0.009167521260678768,
-0.02697664126753807,
0.023429254069924355,
0.04285738617181778,
-0.015994178131222725,
-0.04413609579205513,
0.03489638864994049,
0.0056716944091022015,
-0.030915891751646996,
-0.05985184758901596,
0.028853457421064377,
-0.03603072836995125,
-0.0035809017717838287,
-0.012374605983495712,
0.02829659916460514,
-0.05593322217464447,
0.0078784991055727,
0.024934832006692886,
0.021284323185682297,
0.02200617454946041,
-0.0507771335542202,
0.01720070280134678,
0.032937075942754745,
-0.06315173953771591,
-0.04623977839946747,
-0.023738620802760124,
0.027533499523997307,
-0.007115398533642292,
0.0777125284075737,
-0.0034623118117451668,
0.023614874109625816,
0.011415574699640274,
0.02728600800037384,
0.005955279339104891,
0.014199860394001007,
-0.11458885669708252,
0.026522906497120857,
0.02922469563782215,
0.06410045921802521,
0.029637182131409645,
-0.014746406115591526,
0.02177930809557438,
0.017705999314785004,
-0.05052964389324188,
-0.013869871385395527,
0.03370017930865288,
0.0027353037148714066,
-0.060924313962459564,
0.04397110268473625,
-0.015334200114011765,
-0.021408069878816605,
-0.04698225483298302,
-0.036154475063085556,
-0.04669351503252983,
-0.00755882216617465,
0.0579131580889225,
-0.006723536178469658,
-0.05139586701989174,
-0.04293988272547722,
-0.017087269574403763,
0.01637572981417179,
-0.05057089030742645,
0.010765907354652882,
0.007997089065611362,
-0.017448194324970245,
-0.03766005113720894,
0.02922469563782215,
0.014911401085555553,
-0.06443045288324356,
-0.004612118937075138,
0.04623977839946747,
-0.021882429718971252,
0.05255082994699478,
-0.0013805420603603125,
0.0016267450992017984,
-0.025532938539981842,
-0.04347611591219902,
0.0338032990694046,
-0.02561543509364128,
0.036463841795921326,
0.01997467689216137,
0.019221888855099678,
0.018324729055166245,
-0.020882148295640945,
-0.056964438408613205,
0.016468537971377373,
-0.0038412839639931917,
0.013075834140181541,
-0.054984502494335175,
0.050488393753767014,
0.0573769249022007,
0.029595933854579926,
0.029472187161445618,
0.037247564643621445,
0.005212802905589342,
-0.00379487918689847,
0.02464609034359455,
0.0015803403221070766,
-0.006656507030129433,
0.012271484360098839,
-0.0031606806442141533,
-0.002962171332910657,
-0.006300737150013447,
0.012910839170217514,
0.0003857396950479597,
0.005352017469704151,
-0.030647775158286095,
-0.015437321737408638,
-0.04562104865908623,
0.014684532769024372,
0.029987795278429985,
0.004617275204509497,
-0.03976373374462128,
0.026852896437048912,
-0.006022308487445116,
-0.033638305962085724,
0.06430670619010925,
-0.031266506761312485,
0.023119889199733734,
0.07697004824876785,
-0.00888909213244915,
-0.020789338275790215,
0.010745283216238022,
0.04813721776008606,
0.027162261307239532,
-0.07494886964559555,
0.05655195191502571,
0.007677412126213312,
0.035845108330249786,
-0.006109961774200201,
0.007321642246097326,
-0.03712381795048714,
0.0098996851593256,
0.04603353515267372,
0.04430109262466431,
0.019943740218877792,
0.02922469563782215,
0.014230797067284584,
-0.057624418288469315,
-0.04883844777941704,
-0.05003465712070465,
-0.043104879558086395,
-0.004480638541281223,
0.04331112280488014,
0.031885236501693726,
0.0340714156627655,
0.014942336827516556,
0.05712943151593208,
0.02200617454946041,
-0.036319468170404434,
0.004926640074700117,
0.05057089030742645,
-0.09206707030534744,
-0.015695124864578247,
0.014416416175663471,
0.058243148028850555,
-0.004109400324523449,
-0.061543043702840805,
-0.012219923548400402,
-0.0317821130156517,
-0.013034585863351822,
0.01496296189725399,
0.02689414471387863,
-0.01583949662744999,
-0.05750067159533501,
0.08860218524932861,
-0.032586462795734406,
-0.053705792874097824,
0.03403016924858093,
0.03976373374462128,
-0.010951526463031769,
0.012488040141761303,
-0.002420782344415784,
-0.012065241113305092,
0.004083619918674231,
0.012096177786588669,
0.023862365633249283,
0.04685850813984871,
-0.009868748486042023,
0.04137243330478668,
0.01150838378816843,
0.06051182374358177,
-0.06665787845849991,
-0.029513435438275337,
0.025285445153713226,
-0.039804983884096146,
0.005991371814161539,
-0.01694289781153202,
0.04491982236504555,
0.00009877127013169229,
-0.03481389209628105,
0.01755131594836712,
-0.04958092421293259,
0.0418880432844162,
0.009667661041021347,
-0.11937370151281357,
-0.011188706383109093,
-0.013106770813465118,
0.045703545212745667,
0.009244862012565136,
0.005970747675746679,
0.03035903349518776,
-0.0378456711769104,
-0.035576991736888885,
-0.08777720481157303,
-0.0017182657029479742,
-0.0015171782579272985,
-0.026687901467084885,
-0.08059993386268616,
-0.02899782732129097,
-0.06579165905714035,
0.05729442834854126,
-0.005805752705782652,
-0.009832656010985374,
0.0044316560961306095,
-0.04277488961815834,
0.033638305962085724,
-0.017180077731609344,
-0.041166190057992935,
0.014437041245400906,
0.038608770817518234,
-0.003433953272178769,
-0.04128993675112724,
0.035226378589868546,
0.03221522644162178,
0.0482197180390358,
-0.01395236887037754,
-0.009796563535928726,
-0.05420077592134476,
0.08092992752790451,
0.023862365633249283,
-0.07334017008543015,
0.03900063410401344,
0.05081838369369507,
0.042094286531209946,
-0.001514600240625441,
0.07230895012617111,
0.02098526991903782,
-0.04677601158618927,
0.04958092421293259,
0.00932735949754715,
0.018293792381882668,
-0.011993056163191795,
0.025532938539981842,
-0.0038747985381633043,
0.03792816773056984,
0.011116521432995796,
-0.0013985882978886366,
-0.023119889199733734,
-0.01034310832619667,
0.0028538936749100685,
0.05448951572179794,
0.0019077517790719867,
0.011920871213078499,
-0.009074711240828037,
-0.02507920190691948,
-0.011848685331642628,
-0.007491793017834425,
0.04557979851961136,
0.05729442834854126,
0.027347879484295845,
-0.003170992946252227,
0.08422981947660446,
-0.020387163385748863,
-0.021243074908852577,
-0.01610761322081089,
-0.11038149148225784,
-0.06711161881685257,
-0.0031684148125350475,
-0.017963804304599762,
0.0492921806871891,
-0.022521784529089928,
-0.0015726062702015042,
-0.02891533076763153,
0.016953211277723312,
0.03035903349518776,
0.0070432135835289955,
0.03710319474339485,
-0.010487479157745838,
-0.001132405363023281,
-0.03471077233552933,
-0.058160651475191116,
-0.02895657904446125,
0.030297162011265755,
-0.021531814709305763,
-0.029142197221517563,
-0.07589758932590485,
0.0023228167556226254,
-0.023161137476563454,
-0.03124588169157505,
-0.041083693504333496,
-0.03885626420378685,
-0.031122134998440742,
0.006568853743374348,
0.028007859364151955,
0.0347520187497139,
0.0426923930644989,
-0.004328534007072449,
-0.020892459899187088,
-0.04751848801970482,
0.028750335797667503,
-0.020789338275790215,
-0.02697664126753807,
-0.025945425033569336,
0.04483732208609581,
-0.016025114804506302,
0.0005494453944265842,
0.009935777634382248,
-0.02534731850028038,
0.005202490836381912,
-0.0031864610500633717,
-0.03737131133675575,
0.05325205624103546,
0.028172854334115982,
0.03396829590201378,
0.0564282052218914,
0.0008584883180446923,
0.014767030254006386,
0.0360926017165184,
0.0028951421845704317,
0.016468537971377373,
-0.06253301352262497,
-0.020954333245754242,
-0.06146054342389107,
0.01791224256157875,
0.004331112373620272,
-0.014921712689101696,
-0.02728600800037384,
-0.028709087520837784,
-0.05799565464258194,
-0.013880183920264244,
-0.06657538563013077,
-0.04747724160552025,
0.024893583729863167,
0.00014912367623765022,
0.016210734844207764,
0.0007798580336384475,
-0.047765981405973434,
-0.055520735681056976,
0.09833687543869019,
-0.02503795363008976,
-0.0017569363117218018,
-0.015334200114011765,
-0.038794390857219696,
0.06925654411315918,
0.022686777636408806,
0.02825535088777542,
-0.023161137476563454,
0.0039495620876550674,
-0.015035146847367287,
-0.012580850161612034,
0.03611322492361069,
-0.07288642972707748,
-0.004452280234545469,
-0.008873623795807362,
0.007187583949416876,
0.05457201600074768,
0.043847355991601944,
-0.0016576816560700536,
-0.06385296583175659,
0.02503795363008976,
0.02771911770105362,
-0.05197334662079811,
-0.04483732208609581,
-0.013849247246980667,
0.04797222465276718,
-0.05193209648132324,
0.0037536306772381067,
-0.036896951496601105,
-0.024666715413331985,
-0.019727185368537903,
-0.020779026672244072,
0.011559944599866867,
-0.03019404038786888,
-0.005310768727213144,
0.03726818785071373,
-0.017283199355006218,
0.0033411437179893255,
0.04211490973830223,
-0.006630726624280214,
-0.0080486498773098,
0.0177781842648983,
-0.00992030929774046,
-0.018324729055166245,
-0.037907544523477554,
0.040898073464632034,
0.010487479157745838,
0.008136304095387459,
0.020005613565444946,
-0.045208562165498734,
-0.041558053344488144,
0.010178113356232643,
0.02130494825541973,
0.009208769537508488,
0.008064118213951588,
-0.024976080283522606,
-0.03093651682138443,
0.014550474472343922,
-0.02010873518884182,
-0.012075553648173809,
-0.020717153325676918,
-0.03541199862957001,
0.0021681340876966715,
-0.02689414471387863,
-0.023965487256646156,
0.03221522644162178,
0.027780991047620773,
-0.007981620728969574,
-0.018819713965058327,
-0.006579165812581778,
0.05981059744954109,
0.037165068089962006,
-0.016169486567378044,
-0.02786348946392536,
0.043806105852127075,
-0.11203143745660782,
-0.0036376186180859804,
-0.01795349083840847,
0.026832271367311478,
0.001092445687390864,
0.048384711146354675,
0.04164054989814758,
0.029080325737595558,
0.0599343441426754,
-0.05073588714003563,
0.02138744480907917,
-0.0060171522200107574,
-0.0044290777295827866,
0.04277488961815834,
0.0053777978755533695,
0.013313014060258865,
0.04326987266540527,
-0.012188986875116825,
0.0236354973167181,
0.02613104321062565,
-0.03252458944916725,
-0.01350894570350647,
0.03221522644162178,
-0.0062646446749567986,
0.0350201353430748,
0.08530228585004807,
-0.0035680115688592196,
-0.01298302412033081,
-0.05457201600074768,
0.03295770287513733,
0.02728600800037384,
-0.00888909213244915,
-0.007708348799496889,
0.00041055335896089673,
0.02864721417427063,
-0.01496296189725399,
-0.0015390916960313916,
-0.053582046180963516,
-0.052385833114385605,
-0.007698036264628172,
-0.03312269598245621,
-0.019397195428609848,
0.023119889199733734,
0.02266615442931652,
-0.04281613975763321,
-0.032627712935209274,
0.014168924652040005,
0.0639767125248909,
-0.01139494962990284,
-0.02965780720114708,
0.009987338446080685,
-0.001978647895157337,
0.002610268536955118,
-0.024357350543141365,
-0.0195312537252903,
-0.004305331967771053,
0.04343486949801445,
-0.015726061537861824,
-0.06830782443284988,
-0.0030678710900247097,
-0.024976080283522606,
0.021047143265604973,
-0.019345635548233986,
-0.0015622940845787525,
0.000718629511538893,
-0.004537355620414019,
-0.04557979851961136,
0.012797405011951923,
0.02476983703672886,
-0.020737778395414352,
0.030090918764472008,
0.01003374345600605,
0.046487271785736084,
0.03132838010787964,
0.02705913968384266,
-0.0028822519816458225,
0.00640385877341032,
0.031122134998440742,
-0.036896951496601105,
-0.034174539148807526,
0.0413518100976944,
-0.01764412596821785,
-0.0024916785769164562,
0.06591540575027466,
-0.019727185368537903,
-0.009415012784302235,
0.02693539299070835,
-0.015282639302313328,
-0.011580568738281727,
0.03413328900933266,
0.0012542179320007563,
0.013117082417011261,
-0.0837760865688324,
0.0740826427936554,
0.009332515299320221,
0.02868846245110035,
0.030379658564925194,
0.022954894229769707,
-0.01909814216196537,
0.02380049228668213,
-0.012127114459872246,
-0.04859095439314842,
0.06698787212371826,
0.00370206986553967,
0.036195725202560425,
0.045662298798561096,
0.0558919720351696,
0.0016770169604569674,
0.010477166622877121,
0.02507920190691948,
0.0436411127448082,
-0.0035680115688592196,
-0.013209892436861992,
0.025759804993867874,
0.02146994136273861,
-0.004748755134642124,
0.04184679314494133,
0.0209440216422081,
-0.04475482553243637,
0.05523199215531349,
-0.04854970425367355,
0.05869688466191292,
-0.05283956974744797,
0.04537355527281761,
0.03834065422415733,
0.024171730503439903,
0.0373094379901886,
-0.05457201600074768,
0.016478851437568665,
0.026481658220291138,
-0.0048338305205106735,
0.023429254069924355,
0.05671694502234459,
-0.051024626940488815,
-0.043146125972270966,
-0.054943252354860306,
-0.06385296583175659,
-0.017963804304599762,
0.07680505514144897,
-0.04611603170633316,
0.026687901467084885,
0.0066771311685442924,
-0.009182989597320557,
0.008811751380562782,
-0.06129555031657219,
-0.01878877729177475,
-0.028977204114198685,
0.06261550635099411,
0.03279270604252815,
0.018953772261738777,
0.01737600937485695,
-0.02340863086283207,
0.0259247999638319,
-0.06084181368350983,
0.032400842756032944,
0.01786068268120289,
-0.01721101440489292,
0.005117415450513363,
0.0005555682582780719,
-0.011632130481302738,
0.06579165905714035,
-0.02608979493379593,
0.031184008345007896,
0.04401234909892082,
0.007177271880209446,
-0.030524028465151787,
-0.015767311677336693,
0.0025226150173693895,
-0.04685850813984871,
0.015210453420877457,
-0.03974311053752899,
0.023614874109625816,
0.026852896437048912,
-0.08262111991643906,
0.017613189294934273,
0.002565152710303664,
-0.028709087520837784,
-0.029822802171111107,
0.005847001448273659,
-0.0367732048034668,
-0.013591442257165909,
0.04467232897877693,
-0.0370413213968277,
0.04962217062711716,
0.006955559831112623,
-0.026956018060445786,
-0.0017865838017314672,
0.06991652399301529,
0.018417539075016975,
-0.011343388818204403,
-0.010116240940988064,
0.007651631720364094,
0.024089233949780464,
-0.019768433645367622,
-0.020170608535408974,
-0.02309926599264145,
-0.019201263785362244,
0.04083620011806488,
-0.009126272052526474,
-0.021841179579496384,
-0.010724659077823162,
0.05679944157600403,
0.10543164610862732,
-0.030400283634662628,
-0.0317821130156517,
0.021243074908852577
] |
721,953
|
apprise.locale
|
__getstate__
|
Pickle Support dumps()
|
def __getstate__(self):
"""
Pickle Support dumps()
"""
state = self.__dict__.copy()
# Remove the unpicklable entries.
del state['_gtobjs']
del state['_AppriseLocale__fn_map']
return state
|
(self)
|
[
0.01083881501108408,
-0.052738115191459656,
-0.0009335671202279627,
0.024984996765851974,
-0.003399487351998687,
-0.037315722554922104,
-0.02904730662703514,
0.004331931006163359,
0.03515874221920967,
-0.07880160212516785,
-0.03363088518381119,
0.0037095530424267054,
-0.05672852694988251,
0.038609910756349564,
-0.02671057917177677,
0.017058102414011955,
-0.047956813126802444,
-0.0055092815309762955,
-0.015017960220575333,
-0.0015952651156112552,
-0.00868183746933937,
-0.02130015939474106,
0.04659072682261467,
0.07420004904270172,
-0.009162663482129574,
-0.007553917355835438,
0.0234930869191885,
-0.030395416542887688,
0.055578138679265976,
-0.0014885396230965853,
-0.03559013828635216,
-0.0006600128253921866,
0.0010936553589999676,
-0.01622227393090725,
-0.007311257068067789,
-0.007171952165663242,
-0.005810359958559275,
0.03553621470928192,
-0.023277388885617256,
-0.03643495589494705,
0.0025366961490362883,
-0.0181545652449131,
-0.03465544804930687,
-0.021048512309789658,
0.02608146145939827,
0.00887956004589796,
0.004677946213632822,
0.03609343618154526,
0.06341515481472015,
-0.029676424339413643,
0.05410420149564743,
0.03050326555967331,
-0.006461947225034237,
0.044972993433475494,
-0.04148587957024574,
0.008493101224303246,
0.050653036683797836,
0.03467342257499695,
-0.004552122671157122,
0.04669857770204544,
-0.067405566573143,
0.00792689435184002,
0.04425400123000145,
-0.06140197813510895,
0.01944875344634056,
-0.019772300496697426,
-0.03438582643866539,
-0.01957457698881626,
-0.022504471242427826,
0.0542120523750782,
0.009517665952444077,
-0.04231272265315056,
-0.004273512866348028,
0.06391845643520355,
-0.00173569330945611,
-0.0056306119076907635,
-0.013076679781079292,
0.007877464406192303,
-0.04245651885867119,
-0.01580885238945484,
-0.012168951332569122,
-0.030647065490484238,
-0.048316311091184616,
0.058849554508924484,
-0.02295384183526039,
-0.02557816542685032,
0.09174346923828125,
0.0035680013243108988,
-0.04680642485618591,
0.03857395797967911,
-0.01724683865904808,
0.07880160212516785,
-0.04734567180275917,
0.053636856377124786,
-0.013148579746484756,
-0.07628512382507324,
-0.04191727563738823,
0.04162967950105667,
-0.007073090877383947,
-0.012141989544034004,
-0.02363688498735428,
-0.025272594764828682,
-0.12093457579612732,
-0.04058713838458061,
-0.012133002281188965,
-0.011378060095012188,
0.03632710874080658,
-0.028651859611272812,
-0.011162362061440945,
-0.045368440449237823,
0.005635105539113283,
0.005473332013934851,
-0.022756120190024376,
0.03785496577620506,
0.009832225739955902,
-0.016545819118618965,
-0.03321746364235878,
0.0025299557019025087,
0.003556767012923956,
-0.025326518341898918,
-0.01840621419250965,
0.06478124111890793,
-0.05759131535887718,
0.04490109533071518,
0.016689619049429893,
0.0405152402818203,
0.037926867604255676,
0.01251946110278368,
0.04644693061709404,
-0.0019109478453174233,
0.021318133920431137,
0.03618330880999565,
-0.03557216376066208,
-0.022342698648571968,
-0.014218080788850784,
-0.009940074756741524,
0.036668628454208374,
-0.020167745649814606,
-0.010802865959703922,
0.0638824999332428,
0.016042524948716164,
0.006547327619045973,
0.05201912298798561,
0.01934090442955494,
0.0537087544798851,
0.017489498481154442,
0.02153383195400238,
0.04993404448032379,
-0.062085021287202835,
-0.008493101224303246,
0.08994598686695099,
0.0034983488731086254,
-0.05126418173313141,
-0.0067540379241108894,
-0.031725551933050156,
-0.011845405213534832,
0.0002161191077902913,
0.0062147933058440685,
-0.04148587957024574,
-0.04738162085413933,
-0.01880165934562683,
0.027699194848537445,
0.02009584568440914,
-0.07736361771821976,
-0.0020019453950226307,
0.03100656159222126,
0.06693822145462036,
-0.07391244918107986,
0.016563795506954193,
0.0020760914776474237,
-0.08131807297468185,
-0.01919710636138916,
-0.08541633188724518,
0.060898683965206146,
-0.03298379108309746,
0.055326491594314575,
-0.017183925956487656,
0.03127618506550789,
-0.007284294813871384,
0.01161173265427351,
0.008129111491143703,
-0.02764526940882206,
-0.10396634787321091,
0.06503289192914963,
0.05291786417365074,
-0.007023660000413656,
0.02518272027373314,
-0.027681220322847366,
0.04605148360133171,
0.02543436735868454,
0.0237447340041399,
-0.0000912081595743075,
-0.003884807461872697,
-0.01278908271342516,
-0.027195898815989494,
-0.004677946213632822,
-0.05263026803731918,
-0.059352848678827286,
-0.050688985735177994,
0.031186308711767197,
-0.026908302679657936,
-0.05579383671283722,
0.00020123370632063597,
-0.017983805388212204,
-0.05615333095192909,
-0.009706401266157627,
-0.0016143632819876075,
-0.049610499292612076,
0.04583578556776047,
0.036111410707235336,
0.05007784441113472,
-0.031977202743291855,
-0.029137179255485535,
0.04385855421423912,
0.058561958372592926,
-0.10986208915710449,
0.005684536416083574,
0.01454162783920765,
0.011467933654785156,
0.035230644047260284,
0.046375028789043427,
0.05147987976670265,
-0.0106950169429183,
-0.04270816594362259,
-0.05514674261212349,
0.0032174924854189157,
-0.02076091431081295,
-0.02739362232387066,
-0.028220463544130325,
-0.043139562010765076,
0.010038935579359531,
-0.04892745614051819,
-0.020724965259432793,
-0.0063136545941233635,
0.029514651745557785,
0.03654280677437782,
-0.005122823175042868,
-0.06075488403439522,
0.013085667043924332,
0.01271718367934227,
0.04260031878948212,
-0.027968816459178925,
0.049898095428943634,
-0.014874162152409554,
0.0269802026450634,
-0.005783397704362869,
0.05895740166306496,
0.03940080106258392,
-0.02893945761024952,
-0.0012436327524483204,
0.06650682538747787,
-0.0294607263058424,
-0.01635708473622799,
0.016545819118618965,
0.039113204926252365,
-0.08440974354743958,
0.020077871158719063,
0.00583732221275568,
0.0012930635130032897,
-0.010587167926132679,
-0.011719581671059132,
-0.06266021728515625,
0.0006802345160394907,
0.030125794932246208,
0.016294172033667564,
0.0019064540974795818,
0.04216892272233963,
0.012699209153652191,
-0.018055705353617668,
0.010596155188977718,
0.1049010381102562,
-0.044433750212192535,
-0.08138997852802277,
0.03760331869125366,
-0.05007784441113472,
-0.0651407390832901,
0.0015885245520621538,
-0.031869351863861084,
-0.009355892427265644,
0.020814839750528336,
0.0212642103433609,
0.01700417697429657,
0.06823240965604782,
0.015862775966525078,
-0.013004780746996403,
-0.051587726920843124,
-0.024319928139448166,
-0.024481702595949173,
0.005167759954929352,
-0.030143769457936287,
0.03571596369147301,
0.049251001328229904,
-0.02025762014091015,
-0.016797468066215515,
0.06621923297643661,
-0.02620728500187397,
-0.05212697386741638,
-0.010946664027869701,
0.06086273491382599,
0.013067692518234253,
0.0060799820348620415,
-0.02153383195400238,
-0.02153383195400238,
0.04943075031042099,
0.015080871991813183,
-0.008614431135356426,
-0.004104998894035816,
0.03616533428430557,
-0.037819016724824905,
0.058058660477399826,
-0.0007105670520104468,
-0.021569781005382538,
0.04763326793909073,
0.010173747316002846,
-0.022360673174262047,
-0.061186280101537704,
-0.013364276848733425,
0.0019390335073694587,
-0.011494896374642849,
0.0775793120265007,
-0.06873570382595062,
-0.025524241849780083,
-0.0116836316883564,
0.03436785191297531,
0.020023947581648827,
-0.04310361295938492,
-0.01440681703388691,
-0.0022861722391098738,
0.06449364870786667,
-0.014505677856504917,
-0.09778300672769547,
-0.0298381969332695,
0.03603950887918472,
0.0067540379241108894,
0.006151881534606218,
0.02322346530854702,
0.029748324304819107,
-0.02255839668214321,
-0.018370263278484344,
-0.04590768367052078,
0.03763926774263382,
0.02065306529402733,
-0.058058660477399826,
0.007612335495650768,
-0.03763926774263382,
0.04633907973766327,
-0.002022166969254613,
0.027285773307085037,
0.04400235414505005,
-0.010119822807610035,
-0.05622522905468941,
-0.03492506965994835,
0.0035927167627960443,
0.07614132761955261,
0.018460137769579887,
-0.04680642485618591,
-0.004271266050636768,
0.017840007320046425,
0.016680631786584854,
0.015170746482908726,
0.04213297367095947,
-0.04993404448032379,
-0.034295953810214996,
-0.003482620930299163,
0.05464344844222069,
-0.027968816459178925,
-0.011647681705653667,
-0.036794453859329224,
0.006861886940896511,
-0.06859190762042999,
-0.027465522289276123,
-0.028597936034202576,
-0.06467339396476746,
-0.0028490086551755667,
0.003089421894401312,
0.010380457155406475,
-0.014173143543303013,
0.03961649909615517,
-0.04720187187194824,
0.018639886751770973,
0.03411620482802391,
0.0041005052626132965,
0.0022985299583524466,
0.03273214399814606,
0.04993404448032379,
0.03918510302901268,
0.04917910322546959,
-0.00444876728579402,
0.033289361745119095,
-0.008902028203010559,
-0.047956813126802444,
0.017201900482177734,
-0.06672252714633942,
0.013292377814650536,
-0.010074885562062263,
0.012258825823664665,
0.033397212624549866,
-0.0006858516717329621,
0.03695622459053993,
0.029280979186296463,
0.0482444129884243,
0.007863982580602169,
0.0010402925545349717,
-0.015098847448825836,
-0.033127591013908386,
0.013202504254877567,
0.012321737594902515,
-0.004659971687942743,
0.01675252988934517,
-0.06798075884580612,
0.03075491264462471,
-0.011171349324285984,
-0.013211491517722607,
-0.0974954143166542,
0.017974818125367165,
-0.02167763002216816,
0.01381364744156599,
0.0015784136485308409,
0.011198312044143677,
-0.013966433703899384,
0.01257338561117649,
0.07038938999176025,
-0.012492498382925987,
-0.004713896196335554,
0.018747735768556595,
0.00388930132612586,
-0.03253442049026489,
0.012627309188246727,
0.012618321925401688,
0.07064103335142136,
0.04130613058805466,
-0.03050326555967331,
-0.01997002214193344,
-0.023007767274975777,
0.04385855421423912,
-0.015044922940433025,
0.004082530736923218,
-0.04784896597266197,
-0.038861557841300964,
0.07628512382507324,
0.0011026427382603288,
0.055326491594314575,
0.044325899332761765,
-0.014838212169706821,
0.10518863797187805,
-0.025901712477207184,
-0.04669857770204544,
0.06560808420181274,
0.064889095723629,
-0.015862775966525078,
0.007086571771651506,
-0.000993108726106584,
0.004408324137330055,
-0.04008384421467781,
-0.01646493375301361,
-0.0016357083804905415,
0.030521240085363388,
-0.03258834406733513,
-0.029910096898674965,
-0.005823840852826834,
-0.008524557575583458,
-0.012258825823664665,
-0.0012829526094719768,
0.053672805428504944,
0.048208460211753845,
-0.004700414836406708,
-0.06075488403439522,
0.003024263074621558,
-0.021210284903645515,
0.018729761242866516,
0.02065306529402733,
0.04558413848280907,
-0.023529035970568657,
-0.06071893498301506,
-0.0370640754699707,
0.024859173223376274,
-0.018109628930687904,
-0.0005645216442644596,
-0.02424803003668785,
-0.07721982151269913,
-0.018100641667842865,
-0.015638092532753944,
0.0009122220217250288,
0.01077590323984623,
-0.030952636152505875,
-0.03129415959119797,
0.04802871495485306,
0.0232414398342371,
0.04579983651638031,
0.006443972233682871,
-0.050688985735177994,
0.0370640754699707,
-0.0589214526116848,
0.006515871733427048,
0.016321133822202682,
0.021605731919407845,
-0.049502648413181305,
-0.0065338462591171265,
0.035230644047260284,
-0.032750118523836136,
0.005954158492386341,
-0.020527241751551628,
0.026279183104634285,
0.037279773503541946,
0.005334027111530304,
-0.04479324817657471,
-0.00590472761541605,
0.018478112295269966,
0.04087473452091217,
-0.017956843599677086,
-0.04295981675386429,
-0.009162663482129574,
0.0347992479801178,
-0.000016904052245081402,
-0.005432888865470886,
-0.016195310279726982,
-0.026279183104634285,
0.011396034620702267,
-0.038609910756349564,
0.019179129973053932,
0.0068708742037415504,
0.05928095057606697,
0.05309761315584183,
-0.04349905997514725,
-0.04281601682305336,
0.00583282858133316,
-0.027591345831751823,
-0.004064555745571852,
-0.002242358634248376,
0.033415187150239944,
0.012339712120592594,
-0.057016123086214066,
0.012330724857747555,
0.009400829672813416,
-0.022234849631786346,
0.010236659087240696,
-0.029802247881889343,
0.001299804076552391,
-0.032516445964574814,
-0.03753142058849335,
0.024751324206590652,
-0.04644693061709404,
0.02038344368338585,
-0.009266018867492676,
-0.00396120036020875,
0.005064405035227537,
-0.023654861375689507,
0.020329518243670464,
-0.054427750408649445,
-0.010164759121835232,
-0.010173747316002846,
-0.06190527230501175,
0.04763326793909073,
-0.06409820169210434,
0.04971834644675255,
-0.0656440332531929,
0.007014672737568617,
0.03654280677437782,
0.014451753348112106,
-0.012636297382414341,
-0.02658475562930107,
0.06409820169210434,
-0.030035920441150665,
0.014236056245863438,
-0.022216875106096268,
0.04579983651638031,
-0.001089161611162126,
0.04292386397719383,
-0.007212395779788494,
0.008317846804857254,
0.04907125234603882,
0.001955884974449873,
0.04285196587443352,
0.008466139435768127,
0.04914315417408943,
0.026135385036468506,
0.027159949764609337,
0.04838820919394493,
0.035626091063022614,
-0.028633885085582733,
0.05615333095192909,
0.03377468138933182,
-0.009391842409968376,
-0.04511679336428642,
0.01711202599108219,
-0.0022389881778508425,
-0.031312134116888046,
0.03352303430438042,
0.04295981675386429,
-0.008920003660023212,
-0.00201093265786767,
0.012097052298486233,
0.04813656210899353,
-0.02712400071322918,
0.010982614010572433,
-0.033397212624549866,
0.02904730662703514,
-0.01725582592189312,
-0.016303159296512604,
-0.014712388627231121,
0.02789691835641861,
0.026045510545372963,
0.0236189104616642,
-0.03417012840509415,
0.03008984588086605,
-0.01264528464525938,
-0.020455343648791313,
0.04349905997514725,
0.015925688669085503,
0.030593140050768852,
-0.01726481318473816,
-0.02931692823767662,
-0.004340918734669685,
-0.050401389598846436,
0.025847788900136948,
-0.02917313016951084,
0.03230074793100357,
-0.01749848574399948,
-0.0671539232134819,
0.013606937602162361,
-0.015206696465611458,
0.018010767176747322,
-0.02489512227475643,
0.021192310377955437,
-0.012950856238603592,
-0.058310311287641525,
0.0028714772779494524,
0.04245651885867119,
0.012204901315271854,
-0.02662070468068123,
0.012429586611688137,
-0.025524241849780083,
0.055578138679265976,
-0.04982619360089302,
-0.0003732583427336067,
0.032750118523836136,
0.02191130258142948,
0.019017357379198074,
-0.022648271173238754,
0.059892091900110245,
0.01065007969737053,
-0.014559602364897728,
-0.01491909846663475,
-0.03544634208083153,
-0.07837020605802536,
0.009275006130337715,
-0.007953857071697712,
-0.037171922624111176,
0.02372675947844982,
-0.021192310377955437,
-0.037028126418590546,
-0.0051767476834356785,
0.008744749240577221,
0.0005796878831461072,
-0.05597358196973801,
0.030521240085363388,
0.0489993542432785,
0.061545778065919876,
0.0018244440434500575,
-0.02493107318878174,
-0.11022158712148666,
0.0239963810890913,
-0.05877765640616417,
-0.0008431313326582313,
0.08318746089935303,
0.04579983651638031,
-0.08462544530630112,
0.11467933654785156,
0.030916687101125717,
-0.03298379108309746,
-0.015530242584645748,
0.02529056929051876,
0.0031568272970616817,
-0.027483496814966202,
-0.08642292767763138,
0.0013166554272174835,
0.0013526050606742501,
0.015934675931930542,
0.05626118183135986,
0.00007088116399245337,
0.00437911506742239,
0.054283950477838516,
-0.027088049799203873,
0.034062281250953674,
-0.0037365152966231108,
0.04346311092376709,
-0.024086255580186844,
0.032875943928956985,
0.0420251227915287,
-0.027447547763586044,
0.0105691934004426,
-0.03578786179423332,
-0.006965241860598326,
0.004727377090603113,
0.014316942542791367,
-0.0026625199243426323,
0.01712101325392723,
-0.03864585980772972,
0.012627309188246727,
-0.040407389402389526,
0.020329518243670464,
0.011926291510462761,
0.02556019090116024,
0.008780698291957378,
0.04583578556776047,
0.012537435628473759,
-0.028220463544130325,
-0.01285199448466301,
-0.018657861277461052,
-0.0028490086551755667,
0.03609343618154526,
0.042995765805244446,
-0.019251029938459396,
0.0018806153675541282,
0.0027007164899259806,
-0.04069498926401138,
0.015215683728456497,
-0.012043127790093422,
-0.028346287086606026,
0.016150373965501785,
-0.06334325671195984,
0.016914304345846176,
0.014101244509220123,
0.0019412803230807185,
0.05201912298798561,
0.06729771941900253,
-0.023259414359927177,
-0.03958055004477501,
-0.03882560506463051,
0.03411620482802391,
-0.009319943375885487,
0.011422996409237385,
-0.06992204487323761,
0.011638694442808628,
0.030449341982603073,
-0.04802871495485306,
0.023654861375689507,
0.05920904874801636,
0.004293734673410654,
0.03113238513469696,
0.03359493613243103,
0.0005153717356733978,
0.03713597357273102,
0.07520663738250732,
-0.03596761077642441,
0.010928689502179623,
0.0314379557967186,
0.008713292889297009,
-0.051336079835891724,
0.0016166102141141891,
0.02360093593597412,
0.0360574834048748,
0.0005049800383858383,
-0.010200709104537964,
0.03785496577620506,
-0.02947870083153248,
-0.0298381969332695,
-0.01738164946436882,
-0.010380457155406475,
-0.004457755014300346,
-0.06496099382638931,
-0.03434987738728523,
-0.019808249548077583,
0.02516474574804306,
0.05881360545754433,
0.03242657333612442,
-0.033307336270809174,
-0.042492467910051346
] |
721,954
|
apprise.locale
|
__init__
|
Initializes our object, if a language is specified, then we
initialize ourselves to that, otherwise we use whatever we detect
from the local operating system. If all else fails, we resort to the
defined default_language.
|
def __init__(self, language=None):
"""
Initializes our object, if a language is specified, then we
initialize ourselves to that, otherwise we use whatever we detect
from the local operating system. If all else fails, we resort to the
defined default_language.
"""
# Cache previously loaded translations
self._gtobjs = {}
# Get our language
self.lang = AppriseLocale.detect_language(language)
# Our mapping to our _fn
self.__fn_map = None
if GETTEXT_LOADED is False:
# We're done
return
# Add language
self.add(self.lang)
|
(self, language=None)
|
[
0.02155311219394207,
-0.05396675691008568,
0.008411312475800514,
0.019929632544517517,
-0.007818834856152534,
-0.04706229642033577,
0.02007891796529293,
0.04090426117181778,
0.034428998827934265,
-0.032917480915784836,
0.03411176800727844,
0.03562328219413757,
-0.017354454845190048,
0.015031197108328342,
-0.06378228217363358,
0.028196323662996292,
-0.05493711307644844,
0.03146194666624069,
-0.007576245814561844,
-0.06960442662239075,
0.006675866898149252,
-0.034839533269405365,
0.014685973525047302,
0.0636703222990036,
0.016598695889115334,
0.04265836998820305,
0.028438912704586983,
-0.0031746523454785347,
0.0257144495844841,
-0.054190684109926224,
-0.001197783974930644,
0.0030883464496582747,
0.0071003977209329605,
-0.0014951889170333743,
-0.02203829027712345,
-0.013640974648296833,
0.01185887772589922,
-0.035697925835847855,
-0.0604233592748642,
-0.0295958761125803,
0.03616444393992424,
0.021944988518953323,
-0.003928078338503838,
-0.023531148210167885,
-0.020190881565213203,
0.018623381853103638,
-0.04370336979627609,
0.021459808573126793,
0.00507104629650712,
0.055608898401260376,
0.023867040872573853,
0.012605305761098862,
0.01897793635725975,
-0.034596946090459824,
-0.12786313891410828,
0.08330138027667999,
-0.012381376698613167,
0.04952550679445267,
-0.043740689754486084,
0.035492658615112305,
0.015786955133080482,
0.011522984132170677,
0.011896198615431786,
0.03220837563276291,
-0.011718922294676304,
0.02481873519718647,
0.011159100569784641,
-0.027972394600510597,
0.03148060664534569,
0.04500961676239967,
0.002046845853328705,
0.04362872615456581,
-0.03788122907280922,
-0.011177761480212212,
0.052921757102012634,
0.0289800725877285,
-0.06180424988269806,
0.02172105945646763,
-0.018212847411632538,
0.04045640677213669,
-0.0027734471950680017,
0.006293322425335646,
-0.0067225187085568905,
-0.00736631266772747,
0.036630962044000626,
-0.04385265335440636,
0.052063364535570145,
-0.01963105984032154,
0.05829603970050812,
-0.019985614344477654,
-0.08173388242721558,
-0.006890465039759874,
0.014891241677105427,
0.03771328181028366,
0.0009400329436175525,
-0.057661574333906174,
0.0179609265178442,
0.013948876410722733,
0.00039770625880919397,
0.013025171123445034,
0.03189114108681679,
-0.019649721682071686,
-0.015488384291529655,
-0.08688423782587051,
0.06770103424787521,
-0.04650247469544411,
-0.008607249706983566,
-0.00871454831212759,
0.034559622406959534,
0.00006895713158883154,
-0.04362872615456581,
-0.0608338937163353,
-0.015945570543408394,
0.04228515550494194,
-0.03801185265183449,
-0.008789191022515297,
-0.05090640112757683,
0.0269460566341877,
0.0019826998468488455,
0.023419182747602463,
-0.05695246905088425,
0.040307119488716125,
-0.07001496106386185,
0.009890172630548477,
0.030827483162283897,
-0.01016075350344181,
0.05736300349235535,
-0.025863735005259514,
0.04974943771958351,
-0.023456504568457603,
0.07150781899690628,
0.0117375822737813,
-0.005294974893331528,
-0.06251335889101028,
0.017214499413967133,
-0.04258372634649277,
-0.00384643767029047,
0.026684805750846863,
-0.008602584712207317,
0.09681173413991928,
-0.02424025349318981,
-0.0230646301060915,
0.03603382036089897,
-0.025341235101222992,
-0.020470792427659035,
0.028868108987808228,
0.010599279776215553,
-0.00029696759884245694,
-0.04127747565507889,
0.006130041088908911,
0.0563180036842823,
0.006176692899316549,
-0.02172105945646763,
0.010179413482546806,
-0.011504324153065681,
-0.04221051186323166,
-0.030379625037312508,
0.01254932302981615,
-0.006503255106508732,
0.013603652827441692,
0.03825444355607033,
0.04150140658020973,
-0.06445407122373581,
-0.0058221397921442986,
-0.0061720279045403,
0.010935172438621521,
0.029278643429279327,
-0.046353187412023544,
0.0023325879592448473,
0.014340750873088837,
-0.055161040276288986,
-0.07643423974514008,
-0.032954804599285126,
0.026722127571702003,
0.002845757408067584,
0.07012692838907242,
0.01538575068116188,
0.040269799530506134,
0.003634172026067972,
0.035529978573322296,
0.020377488806843758,
0.025863735005259514,
-0.10360422730445862,
0.03004373237490654,
0.048181936144828796,
0.04631586745381355,
0.03933676332235336,
0.016803963109850883,
0.020302845165133476,
0.029054716229438782,
-0.018231507390737534,
-0.00044260857976041734,
-0.00449023162946105,
-0.024221593514084816,
-0.034634266048669815,
0.027580520138144493,
0.012353385798633099,
-0.047734081745147705,
-0.09808065742254257,
0.023437844589352608,
-0.03338399901986122,
0.0002791816368699074,
0.029782483354210854,
0.0036738261114805937,
-0.0387769415974617,
-0.011765574105083942,
0.002309262054041028,
0.06057264283299446,
-0.062140144407749176,
0.005598211195319891,
-0.003034696914255619,
-0.033570606261491776,
-0.00029886284028179944,
0.05023461580276489,
0.008136066608130932,
-0.06919389218091965,
-0.051242291927337646,
0.049077652394771576,
0.00032772860140539706,
0.05478782579302788,
-0.00407036580145359,
0.004921760410070419,
0.00129575259052217,
-0.0554969348013401,
0.017317133024334908,
-0.025303915143013,
0.02498668245971203,
-0.01727048121392727,
-0.03134998306632042,
-0.002364077838137746,
-0.03280551731586456,
-0.06344639509916306,
0.006218679714947939,
-0.013874233700335026,
0.011541645042598248,
-0.06725317984819412,
0.03090212494134903,
0.04385265335440636,
-0.013771599158644676,
-0.011718922294676304,
0.0583706796169281,
0.0006560403853654861,
-0.0023430846631526947,
0.028420252725481987,
0.014751286245882511,
0.03396248072385788,
0.002231120364740491,
0.003316940041258931,
0.0017307802336290479,
-0.034559622406959534,
-0.0034055784344673157,
-0.0084719592705369,
-0.010869859717786312,
-0.04176265373826027,
-0.018809989094734192,
-0.03784390911459923,
0.04829389974474907,
0.022598112002015114,
0.0017121195560321212,
-0.018707355484366417,
0.005882787052541971,
-0.004375935066491365,
-0.02420293353497982,
0.06702924519777298,
-0.008425307460129261,
0.014340750873088837,
0.059938181191682816,
0.035903193056583405,
-0.037284087389707565,
-0.005103702656924725,
0.09763280302286148,
0.039374083280563354,
-0.029651857912540436,
0.043778009712696075,
0.02914801985025406,
-0.014928563497960567,
-0.005532898474484682,
0.012847894802689552,
-0.04135211929678917,
0.01608552597463131,
0.09084030240774155,
0.034503642469644547,
0.035529978573322296,
0.033533286303281784,
-0.017485080286860466,
-0.05762425437569618,
-0.0214224886149168,
-0.011028476059436798,
-0.06303586065769196,
-0.02543453872203827,
0.03719078376889229,
0.06262531876564026,
0.005057050846517086,
0.035697925835847855,
0.04265836998820305,
0.02379239723086357,
-0.01963105984032154,
0.02877480536699295,
0.0387769415974617,
-0.05751229077577591,
-0.01502186618745327,
0.005141024012118578,
0.07180638611316681,
0.006451938301324844,
-0.09733422845602036,
-0.01799824833869934,
-0.035492658615112305,
0.003872096072882414,
0.029707839712500572,
0.0285695381462574,
0.008052093908190727,
-0.008094080723822117,
0.08688423782587051,
0.013501019217073917,
-0.07732995599508286,
0.06542442739009857,
0.05441461130976677,
-0.052959077060222626,
0.02114257775247097,
0.01151365414261818,
-0.018875302746891975,
-0.011233743280172348,
0.003167654387652874,
-0.018847310915589333,
0.052921757102012634,
-0.03317873179912567,
0.0526605062186718,
-0.026050342246890068,
0.04881640151143074,
-0.03907551243901253,
-0.01885664090514183,
0.039000872522592545,
-0.0030043732840567827,
-0.004445912782102823,
-0.0677756741642952,
0.01751307025551796,
0.002421226352453232,
-0.029371947050094604,
-0.030715517699718475,
-0.05407872051000595,
0.027543198317289352,
-0.006946446839720011,
-0.11300922185182571,
0.004875109065324068,
0.01349168922752142,
0.03256292641162872,
-0.01938847079873085,
-0.04583068937063217,
0.03582855314016342,
-0.08248031139373779,
-0.045569438487291336,
-0.07635959982872009,
-0.013967536389827728,
0.02702069841325283,
-0.011924189515411854,
-0.06952977925539017,
-0.020377488806843758,
-0.038963548839092255,
0.044151224195957184,
-0.0069977641105651855,
0.00164797343313694,
0.029614536091685295,
-0.05396675691008568,
0.03396248072385788,
-0.015488384291529655,
-0.024258915334939957,
0.028214983642101288,
0.07064942270517349,
-0.01942579261958599,
-0.03260025009512901,
0.05385478958487511,
-0.0023197587579488754,
0.032656230032444,
0.03775060549378395,
0.01185887772589922,
-0.06822353601455688,
0.04799532890319824,
0.019332488998770714,
-0.06329710781574249,
0.0033425986766815186,
-0.013603652827441692,
0.04646515101194382,
-0.00981552992016077,
0.049898721277713776,
-0.012819903902709484,
-0.02894275076687336,
0.03579122945666313,
0.016113517805933952,
0.03804917633533478,
0.0016094857128337026,
0.019612399861216545,
-0.022299541160464287,
0.03885158523917198,
0.009428320452570915,
0.008341334760189056,
0.008415977470576763,
-0.01309981383383274,
0.012138787657022476,
0.026796771213412285,
0.026050342246890068,
0.03151793032884598,
-0.03844105079770088,
-0.054228004068136215,
-0.006773835513740778,
-0.03825444355607033,
0.062065500766038895,
0.035735249519348145,
0.018875302746891975,
0.011578966863453388,
0.04314354807138443,
-0.01595490239560604,
-0.04224783182144165,
-0.021571774035692215,
-0.12129457294940948,
-0.07240352779626846,
0.00036854890640825033,
0.015292447060346603,
0.04870443791151047,
-0.01481659896671772,
-0.02379239723086357,
-0.036556318402290344,
0.043292831629514694,
0.015805616974830627,
-0.0024328893050551414,
0.0620281808078289,
0.00769287534058094,
0.03256292641162872,
-0.02200097031891346,
-0.016542714089155197,
-0.016253473237156868,
-0.01750374026596546,
0.004945086315274239,
-0.011121779680252075,
-0.0563180036842823,
0.015936240553855896,
-0.01607619598507881,
-0.027114002034068108,
-0.0428449772298336,
-0.04150140658020973,
-0.013650304637849331,
0.005556224379688501,
-0.022075612097978592,
0.02162775583565235,
0.043740689754486084,
-0.022840701043605804,
-0.029763823375105858,
-0.04743551090359688,
0.005155019462108612,
-0.010860529728233814,
-0.039859265089035034,
-0.008094080723822117,
0.0722542479634285,
-0.0011435511987656355,
-0.014312759973108768,
0.05187675729393959,
-0.04792068898677826,
-0.021441148594021797,
-0.010785887017846107,
0.0024562152102589607,
0.06314782053232193,
-0.01263329666107893,
0.04732354357838631,
0.05624336004257202,
-0.014088830910623074,
-0.010235396213829517,
0.04172533378005028,
-0.00170395546592772,
0.014312759973108768,
-0.0395980142056942,
-0.04194926097989082,
-0.04362872615456581,
0.040232475847005844,
-0.0069044604897499084,
-0.02216891571879387,
-0.02698337845504284,
-0.02007891796529293,
-0.05840800330042839,
-0.03625774756073952,
-0.08509281277656555,
-0.030864804983139038,
-0.004506560042500496,
-0.005094372201710939,
0.020955970510840416,
0.007445620838552713,
-0.05299639701843262,
-0.057288359850645065,
0.05053318664431572,
-0.0440765805542469,
0.008042762987315655,
-0.010412672534584999,
-0.05191407725214958,
0.08770530670881271,
0.00615336699411273,
0.02870016172528267,
-0.0068204873241484165,
0.0510183647274971,
0.010375351645052433,
0.019817667081952095,
-0.0029390607960522175,
-0.03179783746600151,
-0.0017121195560321212,
-0.018016910180449486,
-0.01263329666107893,
0.012353385798633099,
0.037619978189468384,
-0.03605248034000397,
-0.05001068487763405,
0.013249099254608154,
0.01603887416422367,
-0.0015733306063339114,
-0.030678197741508484,
-0.02653552033007145,
0.027095342054963112,
-0.03420507162809372,
0.013379724696278572,
-0.008457964286208153,
-0.07363513857126236,
-0.009008455090224743,
-0.025621145963668823,
0.0408296212553978,
-0.012847894802689552,
0.02612498588860035,
0.06404353678226471,
-0.05956496670842171,
0.015563027001917362,
0.0025938379112631083,
-0.011177761480212212,
0.00016488481196574867,
0.0440765805542469,
0.010636601597070694,
-0.014891241677105427,
-0.050346579402685165,
-0.009582271799445152,
0.01395820640027523,
-0.010440663434565067,
0.04631586745381355,
-0.06971638649702072,
-0.022019630298018456,
0.030230339616537094,
-0.00014848379942122847,
0.0001051122453645803,
-0.018921954557299614,
0.009722226299345493,
-0.061169788241386414,
0.01705588400363922,
-0.03956069052219391,
-0.015507045201957226,
-0.029651857912540436,
-0.014965884387493134,
0.013678295537829399,
0.005173679906874895,
-0.04911497235298157,
-0.015161821618676186,
0.02653552033007145,
0.004982408136129379,
-0.0002385071275057271,
-0.021459808573126793,
0.029110698029398918,
0.06464067846536636,
0.0007149382145144045,
-0.013547671027481556,
-0.0034102436620742083,
-0.08755601942539215,
0.024109629914164543,
-0.04400194063782692,
0.028382930904626846,
-0.009675574488937855,
0.025079986080527306,
0.015721643343567848,
0.016841284930706024,
0.0497867576777935,
-0.048144616186618805,
0.003372922306880355,
0.02612498588860035,
-0.020172221586108208,
0.02465078979730606,
0.024874718859791756,
0.04101622849702835,
0.014760617166757584,
-0.0026078333612531424,
-0.01836213283240795,
0.039411406964063644,
-0.04146408289670944,
0.0011423849500715733,
0.002156477654352784,
0.0031816500704735518,
0.054190684109926224,
0.058146752417087555,
-0.010851198807358742,
-0.032059088349342346,
-0.025359896942973137,
0.004049372859299183,
0.03539935499429703,
-0.009190396405756474,
-0.028233645483851433,
-0.008415977470576763,
0.03956069052219391,
-0.051167648285627365,
-0.021049274131655693,
-0.03907551243901253,
-0.04833122342824936,
0.01562833972275257,
-0.04437515512108803,
-0.0035571965854614973,
0.03829176351428032,
0.03248828649520874,
-0.06807424873113632,
-0.022112933918833733,
-0.004196325782686472,
0.05004800856113434,
0.013818250969052315,
-0.03646301478147507,
-0.00588745204731822,
0.024912038818001747,
0.007930799387395382,
-0.01208280585706234,
-0.006251335609704256,
-0.0034615604672580957,
0.04545747488737106,
-0.0014193797251209617,
-0.08210709691047668,
0.024744093418121338,
-0.012502671219408512,
0.024762753397226334,
-0.027543198317289352,
-0.006237340159714222,
0.00681582186371088,
-0.03560462221503258,
-0.034298375248909,
0.02987578697502613,
0.029241323471069336,
-0.028550876304507256,
0.012969189323484898,
-0.019043248146772385,
0.03595917671918869,
0.0179609265178442,
0.017932936549186707,
-0.007109728176146746,
0.034634266048669815,
0.04702497273683548,
-0.04519622400403023,
0.006717853248119354,
0.047248903661966324,
-0.017214499413967133,
-0.013640974648296833,
0.042546406388282776,
-0.031573910266160965,
0.011364368721842766,
0.01146700233221054,
-0.026106324046850204,
-0.02599436044692993,
0.029857126995921135,
0.008667896501719952,
0.051690150052309036,
-0.05486246943473816,
0.0591917522251606,
-0.013659635558724403,
0.053369611501693726,
0.02653552033007145,
-0.004800465889275074,
-0.036388371139764786,
0.030678197741508484,
-0.008765866048634052,
-0.03851569443941116,
0.06900728493928909,
-0.013743608258664608,
0.03213373199105263,
-0.003020701464265585,
0.020228203386068344,
0.00740829948335886,
-0.010198074392974377,
0.048144616186618805,
0.05956496670842171,
0.0068251523189246655,
0.0001336135610472411,
0.03523140773177147,
0.019043248146772385,
-0.032264355570077896,
0.06258799880743027,
0.02285936288535595,
-0.04930157959461212,
0.06389424949884415,
-0.04441247507929802,
0.021235881373286247,
-0.060759250074625015,
0.07482942193746567,
0.0034615604672580957,
0.06508853286504745,
0.03829176351428032,
-0.040307119488716125,
-0.017279811203479767,
0.02216891571879387,
-0.005238992627710104,
0.037452030926942825,
0.07912138104438782,
-0.018231507390737534,
-0.04224783182144165,
-0.06594692915678024,
-0.03650033846497536,
0.0014135483652353287,
0.07516531646251678,
-0.016057536005973816,
-0.02172105945646763,
-0.000269559706794098,
-0.01866070367395878,
-0.015171152539551258,
-0.030622214078903198,
-0.01308115292340517,
-0.010058118961751461,
0.0202095415443182,
0.018558070063591003,
0.014462045393884182,
0.032637570053339005,
-0.002103994367644191,
0.013062492944300175,
-0.02784176915884018,
0.03321605175733566,
0.025639807805418968,
-0.04232247546315193,
-0.015525705181062222,
0.010319368913769722,
-0.040232475847005844,
0.07568781822919846,
-0.030062394216656685,
0.06299853324890137,
0.027561860159039497,
-0.00912508461624384,
-0.050309255719184875,
-0.018231507390737534,
-0.024258915334939957,
-0.055608898401260376,
-0.0032656232360750437,
-0.05351889878511429,
0.018315481022000313,
-0.0012700941879302263,
-0.075911745429039,
0.027860431000590324,
-0.011028476059436798,
-0.0009021284058690071,
0.0076415580697357655,
-0.0025401883758604527,
-0.03383185714483261,
-0.01342637650668621,
0.02942793071269989,
-0.028998734429478645,
0.0408296212553978,
-0.00604140292853117,
-0.0404190830886364,
-0.0007790843956172466,
0.1122627928853035,
0.024538826197385788,
-0.010310038924217224,
0.008560597896575928,
0.029315965250134468,
0.015535036101937294,
-0.006316648330539465,
-0.008154727518558502,
-0.010972494259476662,
0.0012922537280246615,
0.03330935537815094,
-0.05743764713406563,
-0.04930157959461212,
-0.007137719076126814,
0.013967536389827728,
0.09457244724035263,
-0.02392302267253399,
0.0029810473788529634,
-0.003386917756870389
] |
721,955
|
apprise.locale
|
__setstate__
|
Pickle Support loads()
|
def __setstate__(self, state):
"""
Pickle Support loads()
"""
self.__dict__.update(state)
# Our mapping to our _fn
self.__fn_map = None
self._gtobjs = {}
self.add(state['lang'], set_default=True)
|
(self, state)
|
[
-0.0054084849543869495,
-0.03816503286361694,
-0.008903402835130692,
0.028384579345583916,
-0.018046000972390175,
-0.0042191497050225735,
-0.04426009953022003,
0.025921747088432312,
0.008934409357607365,
-0.08093680441379547,
-0.019472317770123482,
0.06123414635658264,
-0.013394969515502453,
0.06520302593708038,
-0.05482015386223793,
0.012402749620378017,
-0.027746722102165222,
0.07314078509807587,
-0.05372162535786629,
-0.019879836589097977,
-0.0375271774828434,
-0.01771821454167366,
0.0783853754401207,
0.09206383675336838,
0.009939918294548988,
-0.00798205565661192,
0.024380262941122055,
-0.02202373929321766,
0.047732867300510406,
-0.015352832153439522,
-0.007791584357619286,
-0.044543590396642685,
-0.021687094122171402,
0.006064058747142553,
-0.005005395505577326,
-0.033239368349313736,
0.007202453911304474,
0.04025578126311302,
-0.04312613233923912,
-0.040858201682567596,
0.026719067245721817,
0.0026222956366837025,
-0.024025898426771164,
0.007348629180341959,
0.024911807850003242,
0.03905094414949417,
-0.02785303257405758,
0.045358628034591675,
0.04879596084356308,
-0.018249759450554848,
0.012305299751460552,
-0.002925720065832138,
0.005878017283976078,
0.018010564148426056,
-0.04022034630179405,
0.035064343363046646,
0.02987290918827057,
0.04886683449149132,
0.02700255811214447,
0.05131194740533829,
-0.02234266698360443,
0.0022790052462369204,
0.0022945087403059006,
-0.03763348609209061,
0.006781646516174078,
-0.005116134416311979,
-0.03410756215453148,
-0.029500825330615044,
-0.025461073964834213,
0.04468533396720886,
0.030138682574033737,
-0.004699756391346455,
0.02012789063155651,
0.029536262154579163,
-0.004168209619820118,
0.03254836052656174,
-0.06123414635658264,
0.01553887315094471,
-0.04589017480611801,
0.016717134043574333,
-0.00538190733641386,
-0.03678301349282265,
-0.043409623205661774,
0.029553981497883797,
-0.03944074362516403,
-0.02996150031685829,
0.0732116624712944,
-0.007153728976845741,
-0.023955024778842926,
-0.013820206746459007,
-0.046563465148210526,
0.03632233664393425,
-0.004708615131676197,
0.04138974845409393,
-0.027091149240732193,
-0.0667976662516594,
0.0025204159319400787,
0.024344826117157936,
-0.0262229572981596,
0.012748254463076591,
-0.017496736720204353,
-0.06279335170984268,
-0.04798092320561409,
-0.06282878667116165,
0.00016223239072132856,
-0.03414299711585045,
0.02944767102599144,
-0.03713737800717354,
-0.02957169897854328,
-0.06938452273607254,
-0.021492192521691322,
-0.031060028821229935,
-0.0018759159138426185,
0.04121256619691849,
0.006502584554255009,
0.009488103911280632,
-0.006431711837649345,
-0.02179340273141861,
-0.011472543701529503,
0.017417004331946373,
-0.002367596374824643,
0.06180112808942795,
-0.0596749447286129,
0.05535170063376427,
0.016034983098506927,
0.018710434436798096,
0.07696791738271713,
0.013262082822620869,
0.07048305124044418,
-0.04666977375745773,
0.009222330525517464,
0.027711287140846252,
-0.040999945253133774,
0.0017762508941814303,
0.01810801401734352,
-0.002746323123574257,
-0.014617525972425938,
-0.03563132882118225,
-0.026559602469205856,
0.04950468987226486,
0.028916124254465103,
-0.0038094159681349993,
0.07186507433652878,
-0.03375319764018059,
0.061092402786016464,
0.016380488872528076,
0.010772674344480038,
-0.0016123574459925294,
-0.06165938451886177,
0.0008155915420502424,
0.08653575927019119,
-0.008185815066099167,
-0.05800943076610565,
0.02078346535563469,
-0.044153787195682526,
0.005855869501829147,
-0.009257766418159008,
0.006343120709061623,
-0.01444920338690281,
0.003273440059274435,
0.03898007050156593,
0.01899392530322075,
-0.02843773365020752,
-0.008770516142249107,
-0.0259926188737154,
0.024663753807544708,
0.036428648978471756,
-0.06481322646141052,
-0.005031972657889128,
0.022041458636522293,
-0.05694634094834328,
-0.07760577648878098,
-0.0828503668308258,
0.06577000766992569,
0.015087058767676353,
0.05446578934788704,
-0.011605430394411087,
0.019241979345679283,
0.0015038334531709552,
0.017966268584132195,
0.01257107313722372,
0.00965642649680376,
-0.08922892808914185,
0.05538713559508324,
0.02439798042178154,
0.025939464569091797,
0.026825375854969025,
0.02824283204972744,
0.06219093129038811,
0.04550037160515785,
0.0271974578499794,
-0.017496736720204353,
-0.030085526406764984,
-0.02296280488371849,
-0.022697031497955322,
0.01977352611720562,
-0.02905787155032158,
-0.06732921302318573,
-0.03267238661646843,
0.051808055490255356,
-0.01076381467282772,
-0.04752025008201599,
0.033664606511592865,
-0.013917656615376472,
-0.03745630383491516,
0.011481402441859245,
0.017106935381889343,
0.013607588596642017,
0.020641719922423363,
-0.00934635754674673,
0.042169347405433655,
-0.061163272708654404,
-0.022909650579094887,
0.04915032535791397,
0.033859506249427795,
-0.1382729411125183,
-0.0028725655283778906,
0.03958249092102051,
0.03951161727309227,
0.041885856539011,
0.07441649585962296,
0.06584088504314423,
-0.010746096260845661,
-0.030404454097151756,
0.0021948437206447124,
-0.012748254463076591,
0.002888068789616227,
-0.041283439844846725,
-0.055812373757362366,
-0.01677914895117283,
0.0008067323942668736,
-0.030369019135832787,
0.019525472074747086,
-0.012145835906267166,
0.051382821053266525,
0.013084900565445423,
0.041318874806165695,
-0.02078346535563469,
-0.036464083939790726,
0.04553581029176712,
0.04468533396720886,
-0.0006406241445802152,
0.025709128007292747,
-0.034674543887376785,
-0.02687853015959263,
0.019755808636546135,
0.056662846356630325,
0.044224660843610764,
-0.061872001737356186,
0.004938952159136534,
0.03685388341546059,
-0.0035724348854273558,
-0.03625146672129631,
-0.0021140044555068016,
0.01421886682510376,
-0.04231109470129013,
0.05691090226173401,
-0.0009357431554235518,
-0.00039478394319303334,
-0.027569539844989777,
-0.023264015093445778,
-0.07611744850873947,
-0.018125733360648155,
0.04029121994972229,
0.0064627183601260185,
0.00006263665272854269,
0.05754875764250755,
0.027339203283190727,
-0.04479164630174637,
-0.019436880946159363,
0.0952531173825264,
0.01810801401734352,
-0.02967800758779049,
0.05159543827176094,
-0.04199216514825821,
-0.07484173774719238,
0.01623874343931675,
-0.023990461602807045,
0.007583395577967167,
0.008593333885073662,
0.06934908777475357,
0.0004440627235453576,
0.04365767911076546,
0.05039060115814209,
-0.024380262941122055,
-0.024025898426771164,
-0.025195300579071045,
0.003968880046159029,
-0.009328639134764671,
-0.03834221512079239,
0.034284744411706924,
0.04433096945285797,
-0.018426941707730293,
0.03354058042168617,
0.04971730709075928,
-0.030209554359316826,
-0.056698285043239594,
0.031254928559064865,
0.07005781680345535,
-0.012393890880048275,
-0.018639560788869858,
-0.04968187212944031,
0.02739235945045948,
0.03228258714079857,
-0.02684309333562851,
-0.04518144577741623,
0.0037872681859880686,
0.007503663655370474,
-0.01647793874144554,
0.04397660493850708,
0.017301835119724274,
0.030333582311868668,
-0.005674257874488831,
0.02560281939804554,
0.02202373929321766,
-0.032264865934848785,
-0.009780454449355602,
-0.029128743335604668,
0.004228008911013603,
0.05684002861380577,
-0.07739315927028656,
-0.04064558073878288,
-0.029943780973553658,
0.011738317087292671,
0.005009824875742197,
-0.03681844845414162,
0.038058724254369736,
-0.021261855959892273,
0.07937759906053543,
-0.043374188244342804,
-0.08915805071592331,
0.00765426829457283,
0.05800943076610565,
0.0072511788457632065,
-0.05971037968993187,
0.020429100841283798,
0.0031494125723838806,
-0.02462831698358059,
0.009753876365721226,
-0.043763987720012665,
0.03290272131562233,
0.011481402441859245,
-0.0756213366985321,
0.023246295750141144,
0.0008764978847466409,
0.017186667770147324,
-0.040078599005937576,
0.012952013872563839,
0.0563439205288887,
-0.015831224620342255,
-0.05684002861380577,
-0.0702349990606308,
0.012163553386926651,
0.05761963129043579,
0.02276790514588356,
-0.0370665043592453,
0.0012535636778920889,
-0.02443341724574566,
0.0018681641668081284,
-0.003466125577688217,
0.0414251834154129,
-0.057477883994579315,
-0.03508206456899643,
0.01627418026328087,
0.05070952698588371,
-0.01627418026328087,
0.0032380034681409597,
-0.012004089541733265,
0.01132193859666586,
-0.05924970656633377,
0.047768305987119675,
-0.05978125333786011,
-0.05606042966246605,
0.04355137050151825,
0.01286342367529869,
-0.009257766418159008,
-0.013412687927484512,
0.02817196026444435,
-0.04720132052898407,
0.01280140969902277,
0.030865129083395004,
0.002216991502791643,
0.020269636064767838,
0.07633006572723389,
0.034089844673871994,
0.019649500027298927,
0.08448044210672379,
0.021155547350645065,
0.04971730709075928,
0.004823783878237009,
-0.021190984174609184,
0.042523711919784546,
-0.010790391825139523,
-0.01771821454167366,
-0.018081437796354294,
-0.01048918254673481,
0.03277869522571564,
-0.008575615473091602,
0.04868965223431587,
0.021456757560372353,
0.06491953879594803,
-0.028774378821253777,
-0.028260551393032074,
0.02482321672141552,
0.017106935381889343,
0.028685787692666054,
0.0013255438534542918,
0.06509672105312347,
-0.025780001655220985,
-0.03130808472633362,
0.018125733360648155,
-0.0035392132122069597,
-0.02948310784995556,
-0.10375785827636719,
-0.046598903834819794,
-0.011189051903784275,
0.015175649896264076,
-0.030209554359316826,
-0.01911795325577259,
-0.005151570774614811,
0.0331684947013855,
0.05471384525299072,
0.010187973268330097,
-0.004143847152590752,
0.019684934988617897,
-0.004203646443784237,
0.0005686439108103514,
-0.018621843308210373,
0.0033819640520960093,
0.07399126142263412,
-0.011375092901289463,
0.0024340397212654352,
-0.011569993570446968,
-0.005093986634165049,
0.0640336275100708,
-0.040539272129535675,
-0.023281732574105263,
-0.03908637911081314,
-0.03286728635430336,
0.03596797585487366,
0.015583168715238571,
0.038944635540246964,
0.03492259979248047,
-0.024451134726405144,
0.042594585567712784,
-0.03703106567263603,
-0.053863368928432465,
0.07377864420413971,
0.031024591997265816,
-0.020836619660258293,
-0.00654688011854887,
0.024273952469229698,
0.016380488872528076,
-0.012633086182177067,
0.02983747236430645,
0.01358101051300764,
0.018232041969895363,
-0.04358680546283722,
-0.004414049908518791,
-0.0065778871066868305,
-0.03136123716831207,
-0.018834460526704788,
0.011419388465583324,
0.07055392861366272,
0.019986145198345184,
-0.0037761942949146032,
-0.03997229039669037,
0.008943268097937107,
0.004447271581739187,
0.009328639134764671,
-0.025354763492941856,
0.021385883912444115,
-0.026524165645241737,
-0.04124800115823746,
-0.010949856601655483,
-0.025071272626519203,
-0.04082276299595833,
-0.040999945253133774,
-0.06601806730031967,
-0.07048305124044418,
0.018745869398117065,
0.0007397354347631335,
0.01853325217962265,
0.023015959188342094,
-0.01592867448925972,
-0.05574150010943413,
0.06771901249885559,
0.020251918584108353,
0.05793856084346771,
-0.006019763182848692,
-0.07094372808933258,
0.03130808472633362,
0.016141293570399284,
0.022041458636522293,
-0.003643307602033019,
0.03215855732560158,
-0.043267879635095596,
-0.0009506929200142622,
0.03563132882118225,
-0.05311920493841171,
0.00967414490878582,
0.004690897185355425,
-0.041283439844846725,
0.02292736805975437,
0.029713444411754608,
-0.018232041969895363,
-0.04805179685354233,
0.004334317985922098,
0.005142711568623781,
-0.002657731994986534,
-0.026736784726381302,
-0.007596684154123068,
0.03302675113081932,
-0.01182690728455782,
0.01257107313722372,
-0.02579771913588047,
-0.04238196834921837,
0.03635777533054352,
-0.059462323784828186,
0.020641719922423363,
0.03596797585487366,
0.013722756877541542,
0.0519852377474308,
-0.038483958691358566,
-0.0023919588420540094,
-0.01363416574895382,
0.006794935092329979,
-0.03759805113077164,
0.02365381456911564,
0.026949403807520866,
-0.023299451917409897,
-0.06647873669862747,
0.01686774007976055,
0.032388895750045776,
-0.016929753124713898,
0.03240661323070526,
0.016194447875022888,
-0.008934409357607365,
-0.036464083939790726,
-0.04436640813946724,
0.004502641037106514,
-0.045358628034591675,
0.018852179870009422,
-0.03169788420200348,
0.02664819359779358,
0.013518997468054295,
-0.05276484042406082,
-0.01605270244181156,
-0.005851440131664276,
-0.015202227048575878,
-0.03527696430683136,
-0.06860492378473282,
-0.022395823150873184,
-0.025390200316905975,
0.03612743690609932,
-0.10241127759218216,
0.013067183084785938,
0.030085526406764984,
0.018869897350668907,
0.0008776052854955196,
-0.04518144577741623,
0.05194980278611183,
-0.04433096945285797,
0.02276790514588356,
-0.003060821443796158,
0.03997229039669037,
0.014077120460569859,
0.004068545065820217,
0.013058323413133621,
-0.005793855991214514,
0.05793856084346771,
0.03873201459646225,
0.022112330421805382,
0.024964964017271996,
0.012234427034854889,
0.021297292783856392,
0.016991766169667244,
0.014351753517985344,
0.03742086887359619,
-0.01165858469903469,
-0.0008986456668935716,
0.06272247433662415,
-0.0004794991691596806,
0.030918283388018608,
0.031644728034734726,
0.020570846274495125,
-0.018657278269529343,
0.07902323454618454,
0.00957669410854578,
-0.009727299213409424,
-0.04238196834921837,
-0.01249134074896574,
0.04351593181490898,
-0.01324436441063881,
-0.0054350621066987514,
-0.029553981497883797,
0.042523711919784546,
-0.030794255435466766,
-0.01771821454167366,
-0.03274326026439667,
-0.03237117826938629,
0.023706970736384392,
-0.011835766956210136,
-0.020269636064767838,
0.017266400158405304,
-0.01196865364909172,
-0.01911795325577259,
0.07292816787958145,
-0.010312000289559364,
0.027250612154603004,
-0.0008521353593096137,
-0.027374640107154846,
0.015441423282027245,
-0.0176739189773798,
-0.002380884950980544,
-0.062261804938316345,
0.010453745722770691,
-0.0005930064944550395,
-0.021226420998573303,
-0.02032279036939144,
-0.07484173774719238,
0.00022521510254591703,
-0.02296280488371849,
0.030138682574033737,
-0.03635777533054352,
-0.05995843559503555,
0.0125090591609478,
-0.007893464528024197,
-0.0055280826054513454,
-0.053792499005794525,
-0.01616786979138851,
-0.03251292183995247,
0.054182298481464386,
-0.06293509900569916,
0.05893078073859215,
0.007765007205307484,
0.056591976433992386,
0.030900564044713974,
-0.014112557284533978,
0.04985905438661575,
-0.023015959188342094,
-0.017301835119724274,
0.048158105462789536,
-0.05754875764250755,
-0.023051396012306213,
0.03954705223441124,
-0.008464876562356949,
-0.010825828649103642,
0.00957669410854578,
-0.018745869398117065,
-0.02062400057911873,
-0.006715203169733286,
-0.008106082677841187,
0.04433096945285797,
-0.0043586804531514645,
0.044968824833631516,
0.044189225882291794,
0.03908637911081314,
0.051418256014585495,
-0.039334435015916824,
-0.07767664641141891,
0.016309615224599838,
-0.026329265907406807,
-0.003047532867640257,
0.0504969097673893,
0.02117326483130455,
-0.05595412105321884,
0.06491953879594803,
0.01413913443684578,
-0.011481402441859245,
-0.01628303900361061,
0.01353671494871378,
-0.006006474606692791,
-0.048122670501470566,
-0.046705212444067,
-0.018834460526704788,
0.026559602469205856,
0.0012369528412818909,
0.06906560063362122,
0.018940770998597145,
-0.03231802210211754,
0.048937708139419556,
-0.007437220308929682,
0.04004316404461861,
-0.003933443687856197,
0.07005781680345535,
-0.010533478111028671,
0.02182883955538273,
0.03628690168261528,
-0.017691636458039284,
0.005483787041157484,
0.010037368163466454,
-0.022041458636522293,
-0.013740474358201027,
0.0032047820277512074,
-0.023866433650255203,
-0.0055147940292954445,
-0.11077427119016647,
-0.0004999858210794628,
-0.042133912444114685,
0.03951161727309227,
-0.0021804478019475937,
0.018586406484246254,
-0.031254928559064865,
0.025106709450483322,
-0.031875066459178925,
-0.05956863611936569,
-0.01791311427950859,
-0.026045775040984154,
-0.00011177701526321471,
0.023795561864972115,
-0.003835993353277445,
-0.01957862637937069,
0.03965336084365845,
0.004602306056767702,
-0.0390155054628849,
0.027923904359340668,
0.013456983491778374,
-0.04238196834921837,
0.018869897350668907,
-0.028933843597769737,
-0.019330570474267006,
0.03742086887359619,
-0.003714180551469326,
0.0706956759095192,
-0.007375206332653761,
-0.01328865997493267,
-0.01980896294116974,
-0.03045761026442051,
0.0009523539920337498,
-0.012145835906267166,
0.0000033610967875574715,
-0.08611051738262177,
0.0022535352036356926,
-0.004057471174746752,
-0.08171640336513519,
0.042559150606393814,
0.04691782966256142,
-0.019684934988617897,
0.033700041472911835,
0.00440962053835392,
-0.013138055801391602,
0.002631154842674732,
0.029748881235718727,
-0.044189225882291794,
0.019986145198345184,
0.017611904069781303,
-0.01638934761285782,
-0.046705212444067,
0.05372162535786629,
0.014112557284533978,
0.053438134491443634,
-0.0040109604597091675,
0.007441649679094553,
0.03802328556776047,
-0.04592560976743698,
0.013297519646584988,
-0.011197911575436592,
-0.02726833149790764,
-0.018550969660282135,
-0.06927821785211563,
-0.0568045936524868,
0.022236358374357224,
-0.012712818570435047,
0.10028509050607681,
0.0015392698114737868,
-0.024096770212054253,
-0.00769413448870182
] |
721,956
|
apprise.locale
|
add
|
Add a language to our list
|
def add(self, lang=None, set_default=True):
"""
Add a language to our list
"""
lang = lang if lang else self._default_language
if lang not in self._gtobjs:
# Load our gettext object and install our language
try:
self._gtobjs[lang] = gettext.translation(
self._domain, localedir=self._locale_dir, languages=[lang],
fallback=False)
# The non-intrusive method of applying the gettext change to
# the global namespace only
self.__fn_map = getattr(self._gtobjs[lang], self._fn)
except FileNotFoundError:
# The translation directory does not exist
logger.debug(
'Could not load translation path: %s',
join(self._locale_dir, lang))
# Fallback (handle case where self.lang does not exist)
if self.lang not in self._gtobjs:
self._gtobjs[self.lang] = gettext
self.__fn_map = getattr(self._gtobjs[self.lang], self._fn)
return False
logger.trace('Loaded language %s', lang)
if set_default:
logger.debug('Language set to %s', lang)
self.lang = lang
return True
|
(self, lang=None, set_default=True)
|
[
-0.005279005970805883,
-0.006132086273282766,
0.015153637155890465,
0.037407100200653076,
0.01257605105638504,
-0.01803392916917801,
0.016703857108950615,
0.0517718680202961,
0.02707841247320175,
-0.03159147873520851,
-0.0015238486230373383,
-0.0119706392288208,
0.018189867958426476,
0.014245519414544106,
-0.0478825569152832,
0.023647746071219444,
-0.0321602001786232,
0.012796200811862946,
-0.01756611093878746,
-0.036361388862133026,
0.003735664999112487,
-0.014621607959270477,
0.036324698477983475,
0.01590581424534321,
0.03375628590583801,
0.03414154797792435,
0.07272277772426605,
0.011897255666553974,
0.015759048983454704,
-0.02366609126329422,
-0.008576665073633194,
-0.005022164899855852,
-0.03471026569604874,
-0.01928144320845604,
-0.00992508139461279,
0.018501747399568558,
-0.02406969852745533,
-0.03190336003899574,
-0.021482940763235092,
-0.04311264678835869,
0.08343673497438431,
0.0280140470713377,
0.04689188301563263,
0.002053583739325404,
-0.0009625816019251943,
0.024858569726347923,
-0.03375628590583801,
0.08226259797811508,
-0.015749875456094742,
0.046708423644304276,
0.03870965167880058,
0.007884110324084759,
0.01722671277821064,
-0.04120468348264694,
-0.09796661138534546,
0.028766226023435593,
0.020051967352628708,
0.04259896278381348,
0.002435405971482396,
0.06989752501249313,
0.05599140375852585,
-0.014428977854549885,
0.0005589738138951361,
0.009870043955743313,
-0.0045681060291826725,
0.006622836459428072,
-0.012236653827130795,
-0.06714565306901932,
0.03294907137751579,
0.04531414434313774,
-0.029555095359683037,
0.008384034037590027,
-0.020253771916031837,
0.003751717507839203,
0.046745117753744125,
0.035645902156829834,
-0.030325619503855705,
0.0021464594174176455,
-0.026656458154320717,
0.03494876250624657,
0.0020661966409534216,
-0.02117106132209301,
0.030050432309508324,
0.035352371633052826,
0.029646825045347214,
0.02966517023742199,
0.017822951078414917,
-0.0320868156850338,
0.0052744196727871895,
-0.03748048469424248,
-0.05107472836971283,
-0.028234196826815605,
0.04648827388882637,
0.006054116412997246,
-0.002272586803883314,
-0.11719301342964172,
0.015217847190797329,
0.004870811942964792,
-0.04443354532122612,
0.0301421619951725,
0.015584763139486313,
-0.013915294781327248,
0.042195357382297516,
-0.09040813893079758,
0.08380364626646042,
-0.06732911616563797,
0.014841757714748383,
-0.0072465939447283745,
-0.02012534998357296,
0.006691633258014917,
-0.018630167469382286,
-0.05977063998579979,
0.030655844137072563,
0.01863934099674225,
-0.013612588867545128,
0.009154558181762695,
-0.03509552776813507,
0.029922012239694595,
-0.0280507393181324,
0.021427903324365616,
-0.03280230239033699,
0.04524075984954834,
-0.03645312041044235,
0.03670996055006981,
0.02104264125227928,
-0.040507543832063675,
0.06776941567659378,
-0.02157466858625412,
0.062449127435684204,
-0.05023081973195076,
0.02443661540746689,
0.03529733419418335,
-0.033664558082818985,
-0.045534294098615646,
0.03500379994511604,
-0.042158666998147964,
-0.03999385982751846,
0.03808589652180672,
-0.020033622160553932,
0.07481420040130615,
-0.014887622557580471,
-0.020749108865857124,
0.05092795938253403,
0.00009538386802887544,
-0.009411399252712727,
-0.00556336622685194,
-0.05643170326948166,
0.035682596266269684,
-0.039260026067495346,
0.032618846744298935,
0.033462751656770706,
-0.01830911636352539,
-0.0498272143304348,
0.004127806518226862,
-0.04149821773171425,
-0.01473168283700943,
-0.048359546810388565,
0.03445342555642128,
-0.005645922385156155,
0.01141109224408865,
0.0352606400847435,
0.08439071476459503,
-0.03414154797792435,
0.0791071206331253,
-0.007269526366144419,
0.032582152634859085,
0.020694071426987648,
-0.0070998272858560085,
-0.034435078501701355,
0.06674204766750336,
-0.028234196826815605,
-0.07807975262403488,
0.024858569726347923,
0.052946001291275024,
0.004448858089745045,
0.0322335846722126,
0.032141853123903275,
0.04278242215514183,
0.017483554780483246,
-0.01750189997255802,
0.007824487052857876,
0.03452681005001068,
-0.04116799309849739,
0.01638280600309372,
0.023409249261021614,
0.055514413863420486,
0.010209442116320133,
0.03581101447343826,
-0.003825100837275386,
0.026307888329029083,
-0.00875094998627901,
0.027023375034332275,
-0.0005374748143367469,
-0.02040053717792034,
-0.0664118230342865,
0.030435694381594658,
-0.002326477784663439,
-0.027628784999251366,
-0.057495761662721634,
0.03779236227273941,
0.007200729567557573,
-0.042158666998147964,
0.07187887281179428,
-0.009328843094408512,
0.02535390481352806,
-0.031132835894823074,
-0.023922933265566826,
0.04894661530852318,
-0.034398388117551804,
-0.02713344804942608,
0.03663657605648041,
-0.007420878857374191,
-0.041755057871341705,
0.05522087961435318,
-0.009090347215533257,
-0.05635831877589226,
-0.04868977144360542,
0.005939455237239599,
0.0019171368330717087,
0.05232224240899086,
0.02262037992477417,
-0.002683074213564396,
-0.012282517738640308,
-0.028399309143424034,
0.054560430347919464,
-0.05034089460968971,
0.06597152352333069,
-0.023812858387827873,
-0.036361388862133026,
0.002031798241659999,
-0.015786567702889442,
-0.021060986444354057,
-0.005237727891653776,
-0.014566571451723576,
0.02157466858625412,
-0.015456343069672585,
0.024656765162944794,
0.05676192790269852,
0.008544559590518475,
0.052175477147102356,
0.05940372496843338,
0.004705699626356363,
-0.020253771916031837,
0.04358963668346405,
0.0005569672212004662,
0.08960092067718506,
-0.004283745773136616,
-0.006632009521126747,
0.014777547679841518,
-0.003854912705719471,
-0.009081174619495869,
0.02660142071545124,
-0.02524382993578911,
-0.043846480548381805,
-0.046745117753744125,
0.012264172546565533,
0.0028642392717301846,
-0.021629706025123596,
-0.02575751394033432,
-0.05367983132600784,
-0.03164651617407799,
-0.01195229310542345,
-0.005778929218649864,
0.08240936696529388,
-0.019630013033747673,
0.02342759631574154,
0.07400698959827423,
0.037572212517261505,
-0.012144924141466618,
0.010814853012561798,
-0.013025523163378239,
0.03311418369412422,
-0.010998311452567577,
-0.0006977139855735004,
0.06399017572402954,
-0.02016204223036766,
0.011264326050877571,
0.01851091906428337,
-0.07507104426622391,
0.030820956453680992,
0.06688881665468216,
-0.000650702859275043,
0.03538906201720238,
0.03102276101708412,
-0.049570370465517044,
-0.0036393494810909033,
-0.022913914173841476,
0.019097985699772835,
-0.08651882410049438,
-0.03074757382273674,
0.02430819533765316,
0.06149514764547348,
0.027390290051698685,
0.025996008887887,
0.028949683532118797,
0.02161136083304882,
-0.06718234717845917,
0.02926156297326088,
0.04645158350467682,
-0.021226098760962486,
-0.04127806797623634,
0.006645768880844116,
0.05228555202484131,
-0.025298867374658585,
-0.09319669753313065,
-0.05929365009069443,
-0.0186760313808918,
-0.006113740149885416,
0.03461853787302971,
0.0037677702493965626,
-0.01844670996069908,
0.02652803808450699,
0.04351625591516495,
0.01390612218528986,
0.020235424861311913,
0.06674204766750336,
-0.017171675339341164,
-0.07690562307834625,
-0.001580032636411488,
-0.006508175283670425,
-0.03650815784931183,
-0.010567184537649155,
-0.011988985352218151,
-0.02559240162372589,
0.06270597130060196,
-0.03115118108689785,
0.0478091724216938,
0.0001375218853354454,
0.053789906203746796,
-0.02467511035501957,
-0.011190942488610744,
0.00503133749589324,
0.010879063978791237,
-0.0017944492865353823,
-0.04656165838241577,
-0.01655709184706211,
0.016878142952919006,
-0.03256380930542946,
-0.01009936723858118,
-0.02012534998357296,
-0.005512915086001158,
0.004192017018795013,
-0.08233598619699478,
-0.014162963256239891,
0.016538744792342186,
0.025867588818073273,
-0.019740087911486626,
0.0150527348741889,
0.04186513274908066,
0.004999232478439808,
-0.04971713945269585,
-0.08805987238883972,
0.013530032709240913,
-0.00680170813575387,
-0.02885795570909977,
-0.06564129889011383,
-0.02262037992477417,
-0.03205012530088425,
0.03654484823346138,
-0.045534294098615646,
-0.023611053824424744,
0.010658914223313332,
-0.007471329998224974,
0.0644671693444252,
-0.029756899923086166,
-0.0032288620714098215,
0.024216465651988983,
0.02983028255403042,
0.007200729567557573,
-0.05734899267554283,
0.062008827924728394,
0.014584916643798351,
0.03228862211108208,
0.0704478994011879,
0.010658914223313332,
-0.040470849722623825,
0.05019412934780121,
0.030490731820464134,
-0.0352606400847435,
0.01773122325539589,
0.03705853223800659,
0.016364460811018944,
0.0021498992573469877,
0.08637206256389618,
0.021886548027396202,
-0.017988063395023346,
0.0998011901974678,
0.0007688039913773537,
0.0022336021065711975,
-0.02008865959942341,
0.024931952357292175,
-0.00009008077904582024,
0.023280829191207886,
-0.014254692010581493,
-0.04373640567064285,
-0.06391679495573044,
-0.032783959060907364,
-0.014282210730016232,
0.033591173589229584,
0.02201496809720993,
0.0361962765455246,
-0.005297351628541946,
-0.01948324777185917,
-0.004857052583247423,
-0.040947843343019485,
0.04399324581027031,
-0.019941892474889755,
0.011741316877305508,
-0.03465522825717926,
0.05232224240899086,
-0.029811937361955643,
-0.01112673245370388,
-0.017107464373111725,
-0.08160214871168137,
-0.05613816902041435,
0.042525582015514374,
0.00628802552819252,
0.029610132798552513,
-0.036122895777225494,
0.004870811942964792,
-0.03482034057378769,
0.016428669914603233,
0.013612588867545128,
0.02966517023742199,
0.036122895777225494,
-0.023757820948958397,
0.005664268042892218,
-0.020987603813409805,
-0.05478058010339737,
-0.047185417264699936,
0.0021315535996109247,
0.0161167923361063,
0.051258184015750885,
-0.018501747399568558,
0.044213395565748215,
-0.060798004269599915,
-0.03276561200618744,
-0.07954742014408112,
-0.06989752501249313,
0.0042631071992218494,
-0.004994646180421114,
-0.03606785833835602,
-0.030931031331419945,
0.028124121949076653,
-0.028564421460032463,
-0.042121972888708115,
-0.03344440832734108,
-0.009613202884793282,
0.016034236177802086,
-0.017309268936514854,
-0.023922933265566826,
0.05474388971924782,
0.041681673377752304,
0.022510305047035217,
0.07206232845783234,
-0.05907350033521652,
-0.007113586645573378,
-0.06809964030981064,
0.03586605191230774,
0.05635831877589226,
0.019978584721684456,
0.03384801372885704,
0.039260026067495346,
0.03870965167880058,
-0.01668551191687584,
-0.006205469369888306,
-0.01854761131107807,
0.021116023883223534,
0.007370428182184696,
0.006975993048399687,
-0.045460909605026245,
0.010255306027829647,
-0.04568105936050415,
-0.029004720970988274,
-0.023996315896511078,
-0.016538744792342186,
-0.008237267844378948,
-0.006691633258014917,
-0.10126885771751404,
-0.026473000645637512,
0.02559240162372589,
0.0166213009506464,
0.019978584721684456,
0.03227027505636215,
-0.04681849852204323,
-0.005035924259573221,
0.06197213754057884,
0.012071541510522366,
0.057899367064237595,
0.016511226072907448,
-0.010695605538785458,
0.009915908798575401,
0.005953214596956968,
0.03243538737297058,
-0.03038065694272518,
0.010475455783307552,
-0.010603876784443855,
-0.0361962765455246,
0.01844670996069908,
-0.017951373010873795,
0.03603116422891617,
-0.017758741974830627,
-0.007031030487269163,
0.05316615104675293,
0.05353306606411934,
-0.03670996055006981,
-0.0645405501127243,
0.02383120357990265,
-0.012089886702597141,
-0.033022452145814896,
-0.03190336003899574,
0.022932259365916252,
-0.0005294485599733889,
-0.02656472846865654,
0.0746307447552681,
-0.004866225179284811,
-0.030013740062713623,
-0.00893440842628479,
-0.011346882209181786,
0.033701248466968536,
-0.02427150309085846,
0.014318902976810932,
0.037443794310092926,
-0.02443661540746689,
-0.015447169542312622,
0.026271196082234383,
-0.07015436887741089,
-0.035645902156829834,
0.04527745395898819,
0.048763155937194824,
0.012768682092428207,
-0.005765169858932495,
-0.005178104154765606,
-0.02797735668718815,
-0.02733525261282921,
0.07129180431365967,
-0.03520560264587402,
-0.017611974850296974,
0.0010537373600527644,
-0.028307581320405006,
-0.010438764467835426,
-0.04285580664873123,
-0.014529879204928875,
-0.06351318210363388,
-0.02052895911037922,
0.02885795570909977,
0.0030798024963587523,
-0.05232224240899086,
0.011145077645778656,
0.00011308470129733905,
0.024620072916150093,
-0.0280140470713377,
-0.05030420422554016,
0.04619474336504936,
0.036764997988939285,
-0.02153797820210457,
-0.0002771936706267297,
0.04692857339978218,
0.04241550713777542,
0.012089886702597141,
-0.02353767119348049,
0.012530186213552952,
-0.04722210764884949,
0.050524353981018066,
-0.004061303101480007,
-0.027867281809449196,
0.010301170870661736,
-0.034746959805488586,
0.0706680491566658,
0.004139272961765528,
0.031573135405778885,
-0.03509552776813507,
-0.029610132798552513,
0.0119706392288208,
-0.00346735748462379,
0.040434159338474274,
0.005600057542324066,
0.015933332964777946,
-0.030894339084625244,
0.0028802917804569006,
-0.08908724039793015,
0.05272585153579712,
-0.024363232776522636,
0.025629092007875443,
0.0478825569152832,
0.008535386994481087,
0.013539206236600876,
0.06604490429162979,
-0.009998464956879616,
-0.03164651617407799,
-0.06219228729605675,
0.07705239206552505,
0.0477357916533947,
-0.021959930658340454,
0.0026395029854029417,
-0.04447023570537567,
0.002795442473143339,
-0.03793913125991821,
-0.013713491149246693,
0.006462310440838337,
-0.04402993619441986,
0.0017749568214640021,
-0.019868509843945503,
0.02893133834004402,
0.037131913006305695,
0.008824333548545837,
-0.05430359020829201,
-0.0580461360514164,
-0.017052428796887398,
0.011163423769176006,
-0.02265707217156887,
-0.03210516273975372,
-0.00805839616805315,
0.0018724189139902592,
-0.035645902156829834,
-0.051992017775774,
-0.012539359740912914,
0.01269529853016138,
0.04703864827752113,
-0.0140253696590662,
-0.06534776836633682,
0.010466283187270164,
-0.01225499901920557,
0.03087599389255047,
-0.014759201556444168,
-0.045460909605026245,
0.004347956273704767,
-0.02636292576789856,
-0.015584763139486313,
0.0038457398768514395,
-0.008136365562677383,
-0.030655844137072563,
0.024730147793889046,
-0.03210516273975372,
0.05577125400304794,
-0.029793590307235718,
0.011521167121827602,
-0.0019091105787083507,
0.06377002596855164,
0.0050909616984426975,
-0.05654177814722061,
-0.01634611375629902,
0.029646825045347214,
-0.02197827771306038,
0.019831817597150803,
0.08336334675550461,
-0.014062060974538326,
-0.035040490329265594,
0.02379451133310795,
-0.033792976289987564,
-0.007852005772292614,
0.02201496809720993,
0.0031119075138121843,
0.034435078501701355,
0.026674803346395493,
0.0455709844827652,
0.007173210848122835,
0.07822652161121368,
0.013548378832638264,
-0.044140011072158813,
0.02551901713013649,
-0.030417349189519882,
0.008608769625425339,
-0.03903987631201744,
0.014841757714748383,
0.007952907122671604,
0.018061447888612747,
-0.016878142952919006,
0.013328229077160358,
0.005870658438652754,
-0.02773885987699032,
0.013337401673197746,
0.007379600778222084,
0.032820649445056915,
0.02628954127430916,
0.0024033007211983204,
-0.011035002768039703,
-0.03038065694272518,
0.019740087911486626,
-0.00539366714656353,
-0.0996544286608696,
0.015584763139486313,
-0.032417040318250656,
0.07103496789932251,
-0.05782598629593849,
0.09084843844175339,
-0.015658145770430565,
0.0145115340128541,
0.026344578713178635,
-0.047992631793022156,
-0.017052428796887398,
0.025665784254670143,
-0.031077798455953598,
0.026216158643364906,
0.03856288641691208,
0.024528345093131065,
-0.011631241999566555,
-0.055881328880786896,
-0.0789603516459465,
-0.007122759707272053,
0.03970032557845116,
-0.024491652846336365,
0.014520706608891487,
0.00918666273355484,
0.03038065694272518,
-0.04120468348264694,
-0.04615805298089981,
-0.005957800894975662,
-0.024161428213119507,
0.011346882209181786,
0.0015353147173300385,
0.025610746815800667,
0.01732761412858963,
-0.013493341393768787,
-0.010181923396885395,
-0.06802625209093094,
0.08152876794338226,
0.010108539834618568,
-0.061201613396406174,
-0.006040357053279877,
0.0061962963081896305,
-0.006998925469815731,
0.06479739397764206,
-0.06068792939186096,
0.06681542843580246,
-0.03560921177268028,
0.012952139601111412,
-0.04659834876656532,
-0.039296720176935196,
-0.053312916308641434,
-0.043809786438941956,
0.03307748958468437,
0.010209442116320133,
0.04469038546085358,
0.006636595819145441,
-0.057459067553281784,
0.029389983043074608,
0.01766701228916645,
-0.018721897155046463,
-0.007884110324084759,
0.03623297065496445,
-0.019373172894120216,
0.03948017582297325,
-0.025042027235031128,
-0.045534294098615646,
-0.003689800389111042,
-0.011080867610871792,
-0.03689341992139816,
-0.02322579175233841,
0.08240936696529388,
0.0074621569365262985,
-0.01571318320930004,
-0.030160507187247276,
0.03955356031656265,
0.04524075984954834,
-0.01948324777185917,
0.014438150450587273,
-0.011557858437299728,
0.011750489473342896,
0.00010513007873669267,
-0.052102092653512955,
-0.03500379994511604,
0.014951832592487335,
0.01564897410571575,
0.04806601628661156,
-0.017171675339341164,
-0.01655709184706211,
0.02761043980717659
] |
721,957
|
apprise.locale
|
detect_language
|
Returns the language (if it's retrievable)
|
@staticmethod
def detect_language(lang=None, detect_fallback=True):
"""
Returns the language (if it's retrievable)
"""
# We want to only use the 2 character version of this language
# hence en_CA becomes en, en_US becomes en.
if not isinstance(lang, str):
if detect_fallback is False:
# no detection enabled; we're done
return None
# Posix lookup
lookup = os.environ.get
localename = None
for variable in ('LC_ALL', 'LC_CTYPE', 'LANG', 'LANGUAGE'):
localename = lookup(variable, None)
if localename:
result = AppriseLocale._local_re.match(localename)
if result and result.group('lang'):
return result.group('lang').lower()
# Windows handling
if hasattr(ctypes, 'windll'):
windll = ctypes.windll.kernel32
try:
lang = locale.windows_locale[
windll.GetUserDefaultUILanguage()]
# Our detected windows language
return lang[0:2].lower()
except (TypeError, KeyError):
# Fallback to posix detection
pass
# Built in locale library check
try:
# Acquire our locale
lang = locale.getlocale()[0]
# Compatibility for Python >= 3.12
if lang == 'C':
lang = AppriseLocale._default_language
except (ValueError, TypeError) as e:
# This occurs when an invalid locale was parsed from the
# environment variable. While we still return None in this
# case, we want to better notify the end user of this. Users
# receiving this error should check their environment
# variables.
logger.warning(
'Language detection failure / {}'.format(str(e)))
return None
return None if not lang else lang[0:2].lower()
|
(lang=None, detect_fallback=True)
|
[
0.034938711673021317,
-0.08676478266716003,
0.01783888228237629,
0.04918395355343819,
0.028305716812610626,
-0.02797314152121544,
0.07257496565580368,
-0.019862039014697075,
0.03924369439482689,
-0.07612241804599762,
0.0327400304377079,
-0.00393314566463232,
-0.02928496152162552,
-0.04563650116324425,
-0.0073905265890061855,
-0.00200006109662354,
-0.03998274728655815,
0.026883039623498917,
0.03048592060804367,
-0.02834266796708107,
0.026402655988931656,
-0.03200097754597664,
-0.001175555633381009,
-0.007884767837822437,
0.00036432986962608993,
0.06429757922887802,
0.0869864970445633,
-0.02183900587260723,
-0.01772802509367466,
-0.01050378568470478,
-0.025682078674435616,
0.034236613661050797,
-0.002415778348222375,
-0.008221960626542568,
-0.0004901997745037079,
0.014328382909297943,
-0.006346614565700293,
-0.024296356365084648,
-0.0789308249950409,
-0.07312925904989243,
-0.03924369439482689,
0.019510990008711815,
0.006956332828849554,
-0.016517827287316322,
-0.08986879885196686,
-0.01234217919409275,
-0.07453345507383347,
-0.005759991705417633,
0.014189810492098331,
0.05598323792219162,
0.0662560686469078,
-0.009810923598706722,
0.007279668468981981,
-0.0614522285759449,
-0.07878301292657852,
0.022116150707006454,
-0.02431483194231987,
-0.0027945428155362606,
-0.06987742334604263,
0.03887416794896126,
0.018762698397040367,
-0.02799161896109581,
-0.0030116394627839327,
0.04282810166478157,
-0.010078830644488335,
0.019455561414361,
0.03525280952453613,
-0.04992300644516945,
0.031169544905424118,
0.004563650116324425,
-0.01661020889878273,
0.01257313322275877,
-0.06640388071537018,
-0.012665514834225178,
0.09001661092042923,
0.010420641861855984,
-0.0593089759349823,
0.03205640986561775,
-0.00010746576299425215,
0.024961503222584724,
-0.004221837967634201,
-0.00990330521017313,
0.05557675659656525,
-0.021173859015107155,
0.060787077993154526,
-0.015935823321342468,
0.02560817450284958,
0.016554778441786766,
0.045008305460214615,
0.01744164153933525,
-0.041941236704587936,
0.002351111266762018,
0.033275846391916275,
0.09895914793014526,
0.020804332569241524,
-0.012055796571075916,
0.04013055935502052,
0.03687872737646103,
0.009589208289980888,
-0.008785488083958626,
0.016517827287316322,
0.03061525523662567,
-0.0034111898858100176,
-0.10501938313245773,
0.03512347489595413,
-0.04386277496814728,
-0.01641620695590973,
0.030781542882323265,
0.01923384517431259,
-0.014143619686365128,
-0.08299560844898224,
-0.13192088901996613,
-0.031834691762924194,
-0.0002881150576286018,
-0.015067435801029205,
0.009390587918460369,
-0.03643529489636421,
0.01923384517431259,
-0.016360778361558914,
0.043604105710983276,
-0.09844180941581726,
0.061600036919116974,
-0.0331280343234539,
-0.053913891315460205,
0.008771630935370922,
-0.010115782730281353,
0.04438010975718498,
0.00717342970892787,
0.025072360411286354,
0.05886554345488548,
0.04733632132411003,
0.01691506803035736,
0.004628316964954138,
-0.08225655555725098,
-0.0029723772313445807,
-0.00949682667851448,
-0.03961322084069252,
0.05250969156622887,
0.0011640079319477081,
0.0410543754696846,
-0.04279114678502083,
-0.03652767837047577,
0.025571221485733986,
-0.04234771803021431,
-0.005039415322244167,
0.05594628304243088,
0.03059677965939045,
-0.03440289944410324,
-0.022356342524290085,
0.025312552228569984,
0.05583542585372925,
-0.014624004252254963,
-0.025903794914484024,
-0.01696125790476799,
-0.003168688155710697,
-0.039206743240356445,
-0.03471699729561806,
-0.009709304198622704,
-0.013127422891557217,
-0.020564138889312744,
0.0022206222638487816,
0.021524908021092415,
-0.06721683591604233,
-0.01405123807489872,
0.028915435075759888,
-0.016637923195958138,
0.015039721503853798,
-0.011002645827829838,
0.04685593768954277,
0.008318961597979069,
-0.05191844701766968,
-0.01860564947128296,
-0.0077277193777263165,
0.029469724744558334,
-0.01327523309737444,
0.0756789892911911,
0.012055796571075916,
-0.004060170613229275,
0.004637555219233036,
0.026070082560181618,
0.027344947680830956,
0.02420397475361824,
-0.08277389407157898,
0.005173368379473686,
0.038393784314394,
0.05003386363387108,
0.01573258265852928,
-0.027603616937994957,
-0.0073120021261274815,
0.050329484045505524,
-0.041682567447423935,
0.014596289955079556,
0.039687126874923706,
-0.017607929185032845,
-0.030800018459558487,
0.01934470236301422,
0.04460182785987854,
0.009820162318646908,
-0.09319453686475754,
-0.08905584365129471,
0.028675243258476257,
0.03214878961443901,
0.03573319688439369,
0.010060354135930538,
-0.04995995759963989,
-0.03782101720571518,
-0.0257559847086668,
0.01665639877319336,
-0.06451929360628128,
-0.0184486024081707,
0.00832819938659668,
-0.025903794914484024,
-0.03843073546886444,
0.03545605018734932,
-0.006138755939900875,
-0.02773294970393181,
-0.013164374977350235,
0.05291616916656494,
-0.011686270125210285,
0.06418672204017639,
-0.03850464150309563,
-0.016619445756077766,
0.0245550237596035,
-0.0036860250402241945,
0.05254664272069931,
-0.03711891919374466,
-0.005376608110964298,
-0.001419211970642209,
0.017940502613782883,
-0.003861550008878112,
-0.05243578553199768,
-0.07649194449186325,
-0.0000069241077653714456,
0.009986449033021927,
0.012065034359693527,
-0.005330417305231094,
0.028915435075759888,
0.029229531064629555,
0.037285204976797104,
-0.0031109496485441923,
0.04899919033050537,
0.0212108101695776,
0.007907862775027752,
0.08269999176263809,
0.014005047269165516,
-0.021192334592342377,
0.008374390192329884,
-0.0021201572380959988,
0.01641620695590973,
-0.011104266159236431,
-0.015935823321342468,
-0.0329986996948719,
0.03654615208506584,
-0.07105991244316101,
-0.011963414959609509,
-0.031243450939655304,
0.00044949413859285414,
0.047003746032714844,
0.01317361369729042,
-0.0348832830786705,
0.02385292388498783,
0.022227007895708084,
0.02420397475361824,
0.023335587233304977,
-0.08070454746484756,
0.008734677918255329,
0.07597461342811584,
0.024702833965420723,
-0.005108701530843973,
0.012665514834225178,
0.07819177210330963,
0.008508343249559402,
-0.059937167912721634,
0.006120279431343079,
0.03022725321352482,
-0.013386091217398643,
-0.01334913820028305,
0.023150824010372162,
-0.004383505787700415,
0.03224117308855057,
0.04800146818161011,
0.04497135430574417,
-0.01614830084145069,
0.041091326624155045,
0.012711705639958382,
-0.018217647448182106,
-0.030984781682491302,
-0.0923076719045639,
-0.043936681002378464,
-0.009866353124380112,
0.02002832666039467,
0.004221837967634201,
0.023815970867872238,
0.0023407181724905968,
-0.00143075967207551,
0.040869612246751785,
0.029488200321793556,
-0.02597770094871521,
0.07745271921157837,
-0.07686147093772888,
-0.0009959889575839043,
0.05306398123502731,
0.017580214887857437,
-0.010531499981880188,
-0.06621911376714706,
-0.04112827777862549,
-0.04585821554064751,
-0.04290200397372246,
-0.011224362067878246,
0.022799773141741753,
-0.045008305460214615,
-0.016878115013241768,
0.07227934896945953,
-0.06972961872816086,
-0.05487465858459473,
0.03913283720612526,
0.06485187262296677,
-0.03237050399184227,
-0.00018447446927893907,
0.008739297278225422,
0.025072360411286354,
0.036232054233551025,
0.0004633513744920492,
0.032555267214775085,
0.008332818746566772,
-0.01721992716193199,
0.05938287824392319,
0.0022933727595955133,
0.06178480014204979,
-0.013903427869081497,
-0.05173368379473686,
0.007219620514661074,
-0.0005095421220175922,
0.0033419036772102118,
0.013182851485908031,
-0.0006870880024507642,
-0.008933299221098423,
-0.03283241391181946,
-0.010051116347312927,
-0.016092870384454727,
-0.008203484117984772,
-0.020841283723711967,
-0.09193814545869827,
0.002079740399494767,
0.03013487160205841,
0.07686147093772888,
0.0056860861368477345,
0.006147994194179773,
0.0021224666852504015,
-0.06644083559513092,
-0.045008305460214615,
-0.07760052382946014,
-0.06108270213007927,
-0.03318346291780472,
-0.04197819158434868,
-0.04412144422531128,
-0.033959466964006424,
-0.023391015827655792,
0.06961876153945923,
-0.008166532032191753,
-0.021414050832390785,
-0.03200097754597664,
-0.006351233460009098,
0.046301648020744324,
-0.023058442398905754,
-0.02621789276599884,
0.010928740724921227,
0.06414976716041565,
0.009801685810089111,
-0.011824842542409897,
-0.0008118031546473503,
0.0012471512891352177,
0.052731405943632126,
-0.02004680223762989,
-0.027363423258066177,
-0.03708196431398392,
0.06274557113647461,
0.006970189977437258,
-0.03070763684809208,
0.05709181725978851,
-0.0205271877348423,
0.06466710567474365,
-0.016490111127495766,
0.009228919632732868,
-0.0019711919594556093,
-0.06980352103710175,
-0.010984170250594616,
-0.001155924517661333,
-0.00007621480472153053,
-0.0257559847086668,
0.004789984785020351,
0.000012134103599237278,
0.013533901423215866,
-0.0014642480527982116,
0.014938101172447205,
0.03578862547874451,
-0.008605344220995903,
0.002854590769857168,
0.04515611752867699,
0.02230091392993927,
-0.012619324028491974,
-0.029617534950375557,
0.006623759400099516,
-0.002116692950949073,
-0.04327153041958809,
0.07401612401008606,
0.03237050399184227,
0.01003263983875513,
-0.02394530549645424,
0.024518070742487907,
0.005325797945261002,
-0.02893391065299511,
0.0004183153505437076,
-0.10398470610380173,
-0.05044034123420715,
0.05062510445713997,
-0.0064944252371788025,
0.05720267444849014,
-0.0028707575984299183,
-0.018762698397040367,
-0.026254845783114433,
-0.01822688616812229,
0.007991006597876549,
0.0635954812169075,
0.04149780422449112,
0.01120588555932045,
0.016379253938794136,
-0.04578430950641632,
-0.03153907135128975,
-0.04364105686545372,
0.06821455806493759,
-0.017118306830525398,
0.0044042919762432575,
-0.07179896533489227,
-0.0107347397133708,
-0.003267998341470957,
0.0065590920858085155,
0.012647038325667381,
-0.04789061099290848,
-0.03783949464559555,
-0.030448969453573227,
0.019954420626163483,
-0.03272155672311783,
0.06629302352666855,
0.011797127313911915,
-0.026273321360349655,
-0.05838515982031822,
-0.021173859015107155,
-0.07098600268363953,
-0.052140165120363235,
-0.025441886857151985,
0.0011738234898075461,
-0.01726611703634262,
0.01982508786022663,
0.04031532257795334,
-0.006628378294408321,
-0.06692121922969818,
0.04877747595310211,
0.0027968522626906633,
0.04733632132411003,
0.025312552228569984,
0.030024012550711632,
0.039206743240356445,
-0.022799773141741753,
-0.011658555828034878,
0.030319634824991226,
0.0001223334256792441,
0.0023834446910768747,
-0.05539199709892273,
-0.018300790339708328,
-0.04445401579141617,
0.013367614708840847,
0.03405185043811798,
0.019862039014697075,
-0.034328993409872055,
-0.011492268182337284,
-0.07227934896945953,
-0.004233385901898146,
-0.041941236704587936,
0.02752971090376377,
-0.07575289905071259,
0.033146511763334274,
0.01923384517431259,
0.004057860933244228,
-0.021062999963760376,
-0.07117076963186264,
0.006928618531674147,
-0.025423411279916763,
-0.029950108379125595,
0.013829522766172886,
-0.0117416987195611,
0.0716511532664299,
0.025996176525950432,
0.009783209301531315,
0.02906324528157711,
-0.004395053721964359,
0.014891910366714,
-0.014697909355163574,
0.03798730671405792,
-0.008605344220995903,
0.013182851485908031,
-0.012628561817109585,
0.016554778441786766,
0.017709549516439438,
0.03370080143213272,
-0.07043171674013138,
-0.018679555505514145,
0.02882305346429348,
0.06108270213007927,
-0.0009330539614893496,
-0.03453223407268524,
-0.003598262555897236,
0.07253801822662354,
-0.046301648020744324,
-0.015751060098409653,
0.006221899297088385,
-0.005917040165513754,
-0.014439241029322147,
0.004850032739341259,
0.044306207448244095,
-0.03798730671405792,
-0.026513513177633286,
0.040500085800886154,
-0.01576029695570469,
0.02394530549645424,
0.04271724075078964,
0.007736957166343927,
-0.0237420666962862,
0.002570517361164093,
-0.012951897457242012,
-0.030079443007707596,
-0.004540554713457823,
-0.009764732792973518,
0.033756230026483536,
0.02595922350883484,
0.00587084935978055,
-0.05938287824392319,
0.0031733072828501463,
-0.01783888228237629,
-0.0009803995490074158,
0.003907741047441959,
-0.04279114678502083,
-0.029469724744558334,
-0.01600048877298832,
-0.010402166284620762,
-0.026827611029148102,
-0.029469724744558334,
-0.00465141236782074,
-0.049036141484975815,
-0.012305226176977158,
-0.022356342524290085,
-0.005533656571060419,
0.024481117725372314,
0.03438442572951317,
0.0018152979901060462,
0.00455210218206048,
0.013949618674814701,
0.0590503066778183,
0.012656276114284992,
-0.0246843583881855,
-0.02595922350883484,
-0.01721992716193199,
-0.057941727340221405,
0.009155014529824257,
-0.07054257392883301,
-0.017958978191018105,
-0.01654554158449173,
0.04042617976665497,
0.03342365473508835,
-0.015529343858361244,
0.07120772451162338,
-0.03628748282790184,
0.04197819158434868,
-0.024647405371069908,
-0.01715525984764099,
0.05631580948829651,
0.06374329328536987,
0.024739786982536316,
0.048592712730169296,
0.03133583068847656,
-0.015344580635428429,
-0.021173859015107155,
-0.02396378107368946,
-0.024222450330853462,
-0.01991746947169304,
-0.006716141011565924,
0.06363242864608765,
0.05420951172709465,
-0.05468989536166191,
0.001593582215718925,
-0.052472736686468124,
0.009450635872781277,
0.04959043115377426,
0.0016686422750353813,
-0.03377470374107361,
0.0067854272201657295,
0.011492268182337284,
-0.023335587233304977,
0.026495037600398064,
-0.016166776418685913,
-0.04153475910425186,
-0.029469724744558334,
-0.0063697099685668945,
-0.013293709605932236,
0.04127608984708786,
0.0107994070276618,
-0.07974378019571304,
-0.0363798663020134,
-0.015630964189767838,
0.02586684189736843,
-0.012065034359693527,
-0.011298267170786858,
-0.012693229131400585,
0.017866598442196846,
0.04729937016963959,
0.039797984063625336,
0.017995931208133698,
-0.01715525984764099,
0.048444900661706924,
-0.009455254301428795,
-0.019326226785779,
0.02810247614979744,
0.005141034722328186,
-0.016046680510044098,
0.00853605754673481,
0.018467077985405922,
-0.04585821554064751,
0.016222205013036728,
-0.05417255684733391,
0.017404690384864807,
0.030522873625159264,
0.008956394158303738,
0.014005047269165516,
0.026513513177633286,
0.0004607531300280243,
0.0013660925906151533,
0.01753402315080166,
-0.04571040719747543,
0.009196585975587368,
0.030024012550711632,
-0.036361388862133026,
0.02479521557688713,
0.06758636236190796,
-0.01840241067111492,
0.041239138692617416,
0.03144669160246849,
-0.016776494681835175,
0.018005169928073883,
0.028841529041528702,
-0.015797249972820282,
-0.0222824364900589,
0.025331029668450356,
0.024573499336838722,
-0.0028869244270026684,
-0.0424216203391552,
0.042975910007953644,
0.011372172273695469,
0.06577568501234055,
0.013829522766172886,
-0.010513023473322392,
-0.02501693181693554,
0.03795035183429718,
0.0015404628356918693,
-0.031964026391506195,
0.0673646479845047,
0.007159572560340166,
0.02728951908648014,
-0.013321423903107643,
0.04449097067117691,
-0.03835683315992355,
0.02300301380455494,
0.006831618025898933,
0.06414976716041565,
0.020231565460562706,
0.007275049574673176,
0.02015766128897667,
-0.01405123807489872,
-0.009021061472594738,
0.055798474699258804,
0.0256266500800848,
0.002746042562648654,
0.03026420623064041,
-0.05812649056315422,
0.06455624848604202,
-0.03987189009785652,
0.05624190717935562,
0.04837099462747574,
0.029377343133091927,
0.032795459032058716,
-0.047373272478580475,
-0.01588963158428669,
-0.01571410708129406,
0.028176382184028625,
0.050329484045505524,
0.03950236365199089,
-0.06932313740253448,
-0.028508955612778664,
0.03854159638285637,
-0.03809816390275955,
0.008720820769667625,
0.05886554345488548,
-0.031723834574222565,
-0.016102109104394913,
0.030171824619174004,
0.009579969570040703,
0.022227007895708084,
-0.036934155970811844,
-0.025109313428401947,
0.001470021903514862,
0.05140111222863197,
-0.0028130190912634134,
-0.028194857761263847,
0.03628748282790184,
-0.03684177249670029,
0.033017177134752274,
-0.005602942779660225,
-0.020471757277846336,
-0.012785610742866993,
0.004873128142207861,
0.004524387884885073,
-0.018698031082749367,
-0.0346246175467968,
0.05978935956954956,
-0.0056629907339811325,
0.010485309176146984,
0.019954420626163483,
0.03497566655278206,
-0.03643529489636421,
-0.0024827548768371344,
0.028490480035543442,
-0.07024694979190826,
-0.023427968844771385,
0.01103959884494543,
0.06880579888820648,
-0.021026046946644783,
-0.047373272478580475,
0.023686636239290237,
-0.004780746530741453,
-0.040869612246751785,
-0.04729937016963959,
0.028878482058644295,
-0.010402166284620762,
-0.01661020889878273,
0.02965448796749115,
0.024481117725372314,
0.050107769668102264,
0.0015866536414250731,
-0.03806120902299881,
0.026827611029148102,
0.04438010975718498,
0.029580581933259964,
-0.03656462952494621,
-0.011907985433936119,
0.03357146680355072,
0.014374573715031147,
-0.032906319946050644,
-0.025682078674435616,
-0.0215988140553236,
0.009182728826999664,
0.047631941735744476,
-0.0018788103479892015,
0.022263960912823677,
-0.023649685084819794,
0.04375191777944565,
0.016425445675849915,
-0.056500572711229324,
-0.014097428880631924,
-0.017035163938999176
] |
721,958
|
apprise.locale
|
lang_at
|
The syntax works as:
with at.lang_at('fr'):
# apprise works as though the french language has been
# defined. afterwards, the language falls back to whatever
# it was.
|
def __init__(self, text, *args, **kwargs):
"""
Store our text
"""
self.text = text
super().__init__(*args, **kwargs)
|
(self, lang, mapto='gettext')
|
[
-0.00851432140916586,
-0.042978666722774506,
0.04233415424823761,
0.005215445999056101,
-0.00866272859275341,
-0.0023745119106024504,
0.009302998892962933,
0.052714165300130844,
0.10685303807258606,
-0.013178541325032711,
0.017910605296492577,
0.05814162269234657,
-0.03346365690231323,
0.00904010608792305,
-0.03387071564793587,
0.02031903713941574,
0.018690800294280052,
-0.012771481648087502,
-0.04667612165212631,
-0.024949336424469948,
-0.011618147604167461,
0.005622505210340023,
0.02099747024476528,
0.042368076741695404,
0.00941324420273304,
0.06166946887969971,
-0.024525316432118416,
-0.016663985326886177,
0.019555801525712013,
0.016367170959711075,
0.025983944535255432,
-0.05661514773964882,
0.008268389850854874,
0.0504753403365612,
-0.005368093028664589,
-0.04715102165937424,
-0.06166946887969971,
-0.0015540332533419132,
-0.03402336314320564,
0.01833462528884411,
0.03514277562499046,
0.021608058363199234,
-0.030071496963500977,
-0.00431864382699132,
-0.027781790122389793,
0.012915648519992828,
0.020963547751307487,
0.007517874240875244,
-0.030902577564120293,
-0.029393065720796585,
-0.0025907622184604406,
0.022218648344278336,
-0.015417367219924927,
-0.020488645881414413,
-0.07523810863494873,
0.06411182135343552,
0.03129267692565918,
0.05407102778553963,
-0.016485897824168205,
0.03183542191982269,
-0.01231354009360075,
0.008433757349848747,
0.03197110816836357,
-0.005151842720806599,
-0.03137747943401337,
-0.014721973799169064,
0.016095798462629318,
-0.003169549396261573,
0.051832202821969986,
0.02893512323498726,
0.06458672136068344,
-0.02255786396563053,
-0.03035983070731163,
0.0038437412586063147,
0.02773090824484825,
-0.007793487515300512,
-0.05349436029791832,
0.06448496133089066,
0.017673153430223465,
0.051764361560344696,
0.025288552045822144,
0.016536779701709747,
-0.011075402610003948,
0.016256926581263542,
0.010447852313518524,
-0.08833184093236923,
-0.0283584576100111,
-0.019233547151088715,
0.01721521094441414,
0.04291082173585892,
-0.04338572546839714,
0.006487505976110697,
-0.026221396401524544,
0.06122848764061928,
-0.03965434804558754,
-0.04637082666158676,
0.025135904550552368,
-0.0754416361451149,
0.007530595175921917,
0.06278888136148453,
-0.028816398233175278,
0.07903732359409332,
0.015417367219924927,
-0.07442399114370346,
0.0010059874039143324,
-0.04396239295601845,
-0.03224248066544533,
-0.044980041682720184,
0.06574005633592606,
0.010990598239004612,
0.01374672818928957,
-0.018741684034466743,
-0.010829470120370388,
0.06017691642045975,
-0.015010307542979717,
-0.028714634478092194,
-0.056004561483860016,
-0.02349070832133293,
0.0374155230820179,
-0.025848258286714554,
0.024406591430306435,
0.017096485942602158,
-0.03541414812207222,
0.015374965034425259,
0.011898000724613667,
0.06774143129587173,
-0.02038688026368618,
-0.03941689804196358,
0.06492593884468079,
-0.06207652762532234,
0.03819572180509567,
-0.012228736653923988,
0.00866272859275341,
-0.0417574904859066,
0.0243048258125782,
0.02661149390041828,
0.033684149384498596,
-0.0004417758318595588,
-0.029087770730257034,
0.05824338644742966,
0.0455227866768837,
0.03751729056239128,
0.04321611672639847,
-0.004672700073570013,
-0.041180822998285294,
0.02313453145325184,
-0.0020183350425213575,
-0.01069378387182951,
-0.0143403559923172,
-0.007577237207442522,
0.027510417625308037,
0.009659175761044025,
0.006211892701685429,
0.04158788174390793,
0.0055885836482048035,
0.008052139542996883,
-0.030122380703687668,
0.0014225870836526155,
0.007950374856591225,
0.05223926156759262,
0.05556358024477959,
-0.034684836864471436,
0.02187943086028099,
0.021116195246577263,
-0.0028854559641331434,
0.10244323313236237,
0.05678475648164749,
-0.07069261372089386,
0.0075645167380571365,
0.011380696669220924,
-0.003669892903417349,
-0.04592984542250633,
-0.04755808040499687,
0.024169139564037323,
-0.014671091921627522,
0.06241574138402939,
0.0008522801799699664,
0.04898278787732124,
0.021404528990387917,
0.01619756408035755,
-0.02194727398455143,
-0.03348061814904213,
-0.037381600588560104,
0.034142088145017624,
0.09430204331874847,
-0.027289927005767822,
0.0386367030441761,
0.039620429277420044,
0.05013612285256386,
0.0057200295850634575,
-0.0023787522222846746,
-0.03003757633268833,
-0.04145219549536705,
-0.014068983495235443,
-0.009116429835557938,
-0.0003092695842497051,
0.009820302948355675,
-0.06628280133008957,
-0.05746318772435188,
0.05709005147218704,
-0.0037080547772347927,
-0.010753147304058075,
0.014569327235221863,
-0.03175061568617821,
0.029393065720796585,
0.034633953124284744,
0.01770707406103611,
0.03103826381266117,
-0.07523810863494873,
-0.03205591067671776,
-0.02949483133852482,
0.0008793114684522152,
0.05142514407634735,
0.032072871923446655,
0.06051613390445709,
-0.0804620310664177,
-0.008556723594665527,
-0.010871872305870056,
0.017808839678764343,
0.02357551082968712,
0.11635108292102814,
0.022829236462712288,
-0.017910605296492577,
-0.018487270921468735,
-0.005681867711246014,
-0.01814805530011654,
0.038060035556554794,
-0.054342400282621384,
-0.0064832656644284725,
0.026289239525794983,
-0.02966443821787834,
-0.017071044072508812,
-0.03247993066906929,
0.03183542191982269,
-0.009769420139491558,
-0.006754638627171516,
-0.004244440235197544,
-0.03348061814904213,
-0.08080124855041504,
-0.053324755281209946,
0.008501600474119186,
0.03259865567088127,
-0.02935914322733879,
0.010023832321166992,
0.0007664161385037005,
0.030258066952228546,
-0.0024550757370889187,
0.06451888382434845,
-0.02954571321606636,
-0.038060035556554794,
0.024220021441578865,
0.008005497045814991,
-0.06014299392700195,
-0.007301624398678541,
-0.020251194015145302,
-0.015917710959911346,
0.021981196478009224,
0.015417367219924927,
0.007891012355685234,
-0.005652186460793018,
-0.024779727682471275,
0.00742034986615181,
-0.014976385980844498,
0.06241574138402939,
0.04131650924682617,
-0.005236647091805935,
-0.03548199310898781,
0.016443494707345963,
-0.062246136367321014,
-0.0043016825802624226,
0.08711066842079163,
0.011295892298221588,
0.011245010420680046,
0.033141400665044785,
-0.030529439449310303,
-0.03595689684152603,
-0.03514277562499046,
0.04226631298661232,
-0.07618790864944458,
-0.0026056028436869383,
0.060685742646455765,
0.007929174229502678,
0.03483748063445091,
-0.04057023301720619,
0.038806308060884476,
-0.03982395678758621,
0.04138435050845146,
0.009803342632949352,
-0.010888833552598953,
-0.026136592030525208,
0.009515008889138699,
0.035448070615530014,
0.013492316007614136,
0.07557732611894608,
0.03683885559439659,
0.01474741566926241,
-0.03287002816796303,
0.07150673121213913,
-0.04219846799969673,
-0.06153378263115883,
0.00657655019313097,
-0.035380229353904724,
-0.03541414812207222,
0.014815258793532848,
-0.04538710042834282,
-0.030902577564120293,
-0.03633003309369087,
0.03789042681455612,
0.03454915061593056,
-0.05325691029429436,
0.055020835250616074,
0.039688270539045334,
-0.015994034707546234,
0.08880674839019775,
-0.08222595602273941,
0.06397613883018494,
0.048100829124450684,
-0.0523749478161335,
-0.011414618231356144,
0.03247993066906929,
-0.0077765267342329025,
-0.09158831834793091,
-0.036431796848773956,
-0.030088458210229874,
0.011991285718977451,
0.020234234631061554,
-0.00021837028907611966,
0.021336685866117477,
0.019403154030442238,
0.027781790122389793,
0.008005497045814991,
0.027103357017040253,
0.010261284187436104,
-0.05417279526591301,
-0.06838594377040863,
-0.016909917816519737,
-0.03595689684152603,
-0.017350897192955017,
0.00275825010612607,
-0.08127614855766296,
0.04172356799244881,
-0.0038437412586063147,
-0.056886520236730576,
0.023779040202498436,
0.03153012692928314,
0.006258535198867321,
-0.005368093028664589,
-0.03904376178979874,
0.07313496619462967,
-0.028765516355633736,
-0.028663750737905502,
-0.07327065616846085,
0.007585717830806971,
-0.04375886172056198,
0.021540215238928795,
-0.061432015150785446,
-0.025475120171904564,
-0.005978682078421116,
-0.014297953806817532,
-0.0860251784324646,
0.019674528390169144,
0.006071966141462326,
-0.03660140559077263,
0.013856973499059677,
-0.024542277678847313,
0.011524863541126251,
0.007259222213178873,
0.0598716214299202,
0.023151490837335587,
0.006746158003807068,
0.06397613883018494,
-0.03748336806893349,
-0.032208558171987534,
0.021981196478009224,
0.01533256284892559,
-0.047286707907915115,
-0.017656192183494568,
0.01049873512238264,
-0.016867514699697495,
-0.012474668212234974,
0.00001124646769312676,
-0.014357317239046097,
0.005673387553542852,
-0.01614668034017086,
-0.011923442594707012,
0.011278931982815266,
0.0035045251715928316,
0.029817085713148117,
0.07008202373981476,
0.02343982458114624,
-0.02486453205347061,
-0.004503092262893915,
-0.019403154030442238,
-0.031784538179636,
-0.021404528990387917,
-0.03361630439758301,
0.020403841510415077,
-0.013483835384249687,
-0.02642492577433586,
0.04352141171693802,
0.002679806435480714,
-0.008187825791537762,
-0.047286707907915115,
0.007984296418726444,
0.0030911057256162167,
0.0735420286655426,
0.02562776766717434,
0.04694749414920807,
0.016485897824168205,
0.01801236905157566,
-0.021404528990387917,
-0.030529439449310303,
0.010820990428328514,
-0.06153378263115883,
0.015849867835640907,
-0.03704238682985306,
0.014603248797357082,
-0.024966297671198845,
-0.05349436029791832,
-0.006322138011455536,
-0.061805155128240585,
0.07123535871505737,
0.01707952469587326,
0.04637082666158676,
0.016731828451156616,
0.061499860137701035,
-0.008298071101307869,
-0.041859254240989685,
0.08561811596155167,
-0.022116882726550102,
-0.08371850848197937,
0.012542511336505413,
-0.07360987365245819,
0.01047329418361187,
0.0033243168145418167,
0.002978740492835641,
-0.01882648840546608,
-0.04844004288315773,
-0.05149298906326294,
0.021472372114658356,
-0.004074831958860159,
-0.036804936826229095,
0.06339947134256363,
0.09525185078382492,
0.04172356799244881,
-0.021896392107009888,
-0.026713259518146515,
0.018690800294280052,
-0.016596142202615738,
-0.039552584290504456,
0.007123535964637995,
0.06675770878791809,
0.017121927812695503,
-0.015264719724655151,
-0.023049727082252502,
-0.057327501475811005,
-0.002516558626666665,
-0.024101296439766884,
0.0264927688986063,
0.028663750737905502,
-0.05915926769375801,
0.06692731380462646,
-0.01975933089852333,
-0.04643866792321205,
-0.0017035002820193768,
0.021404528990387917,
-0.013704326003789902,
0.02137060835957527,
-0.06882692128419876,
-0.0025865219067782164,
-0.011236529797315598,
0.03287002816796303,
-0.039688270539045334,
-0.04501396045088768,
-0.011363735422492027,
-0.008370154537260532,
-0.03103826381266117,
-0.08283654600381851,
-0.03443042188882828,
-0.006614712066948414,
0.00634333910420537,
-0.03409120813012123,
0.010329127311706543,
0.000016579844668740407,
-0.025051100179553032,
-0.010456332936882973,
0.02486453205347061,
-0.02299884520471096,
0.033192284405231476,
0.025085022673010826,
-0.031886301934719086,
0.06343339383602142,
-0.011898000724613667,
0.001579474424943328,
-0.03402336314320564,
0.01565481722354889,
-0.04911847412586212,
0.03504101186990738,
-0.02262570708990097,
-0.02593306265771389,
-0.03383679687976837,
0.00006502743781311437,
-0.003271314315497875,
-0.010820990428328514,
0.028324535116553307,
-0.02349070832133293,
-0.036194346845149994,
0.05193396657705307,
0.01982717402279377,
0.0049779945984482765,
-0.022897079586982727,
-0.005312970373779535,
0.011694471351802349,
-0.01957276277244091,
0.024406591430306435,
-0.04494611918926239,
-0.05980378016829491,
0.014230110682547092,
-0.029138654470443726,
0.002628923859447241,
0.012296579778194427,
0.0535961277782917,
-0.02218472585082054,
-0.07835889607667923,
0.028392378240823746,
-0.01378064975142479,
-0.029002968221902847,
-0.011346775107085705,
0.05200181156396866,
0.049898672848939896,
0.009760940447449684,
-0.02812100574374199,
0.016689427196979523,
0.02350766770541668,
-0.002187943086028099,
0.06533300131559372,
-0.015086631290614605,
0.02299884520471096,
0.0349053256213665,
0.027323847636580467,
0.0045285336673259735,
-0.004520053043961525,
-0.013076776638627052,
-0.06404397636651993,
-0.011830157600343227,
-0.015247758477926254,
-0.02467796392738819,
0.015586975030601025,
-0.013331188820302486,
0.03483748063445091,
-0.037178073078393936,
-0.09593028575181961,
-0.047592002898454666,
0.015035748481750488,
-0.02954571321606636,
-0.012025207281112671,
-0.0243217870593071,
-0.007997017353773117,
0.06529907882213593,
0.03129267692565918,
0.02374511957168579,
0.0033009955659508705,
-0.008997703902423382,
0.03003757633268833,
0.029528751969337463,
0.038060035556554794,
-0.020047664642333984,
0.0180802121758461,
-0.04294474422931671,
-0.03329404816031456,
0.046404749155044556,
-0.044233765453100204,
0.0025759213604032993,
0.06631672382354736,
-0.03846709430217743,
0.03003757633268833,
0.021217960864305496,
0.05379965528845787,
0.008064860478043556,
-0.01752050593495369,
-0.006758878473192453,
0.03853493556380272,
-0.049966514110565186,
-0.01053265668451786,
-0.004927112255245447,
0.005910838488489389,
0.008153904229402542,
0.013992659747600555,
-0.027900515124201775,
-0.03451522812247276,
-0.017486585304141045,
0.030766891315579414,
0.005041597876697779,
-0.016256926581263542,
0.027205122634768486,
-0.016418054699897766,
0.01378064975142479,
-0.0542406365275383,
-0.014586287550628185,
-0.058820053935050964,
-0.043792784214019775,
0.03646571934223175,
-0.06306025385856628,
0.04755808040499687,
0.016443494707345963,
0.001889009028673172,
-0.004091792739927769,
0.04012925177812576,
0.0030868654139339924,
0.020047664642333984,
0.01614668034017086,
0.001956852152943611,
-0.00333491712808609,
-0.0054232156835496426,
-0.033751990646123886,
0.015586975030601025,
0.00445645023137331,
0.007878291420638561,
0.0717102587223053,
0.02623835764825344,
0.0023681516759097576,
0.03193718567490578,
-0.03117395006120205,
0.07204947620630264,
-0.06702908128499985,
0.023100608959794044,
-0.012500109151005745,
-0.032259441912174225,
-0.05481730401515961,
-0.043419647961854935,
0.049593377858400345,
-0.009811822324991226,
0.026764141395688057,
-0.009150351397693157,
-0.0028790957294404507,
0.006733437534421682,
-0.019742371514439583,
-0.015349524095654488,
0.03334493190050125,
-0.013178541325032711,
-0.020590411499142647,
-0.006084687076508999,
-0.010787068866193295,
-0.019555801525712013,
-0.058446913957595825,
0.020607370883226395,
-0.04464082419872284,
-0.06333162635564804,
-0.021709823980927467,
-0.03164885193109512,
0.01619756408035755,
0.032327283173799515,
0.027510417625308037,
0.05000043660402298,
0.02194727398455143,
0.012805404141545296,
-0.002109499415382743,
0.027849633246660233,
0.02255786396563053,
0.007895252667367458,
-0.03003757633268833,
0.043724942952394485,
0.014450601302087307,
-0.00584299536421895,
0.03446434438228607,
-0.0014957304811105132,
0.00387342250905931,
-0.01646045595407486,
-0.026102671399712563,
0.008433757349848747,
0.021540215238928795,
0.04403023421764374,
-0.010770107619464397,
-0.012864766642451286,
0.032378166913986206,
-0.013449913822114468,
0.025509042665362358,
-0.061499860137701035,
0.07910516858100891,
-0.013203982263803482,
-0.008683929219841957,
-0.011855598539113998,
-0.01583290658891201,
-0.05312122404575348,
-0.030207183212041855,
0.06506162881851196,
-0.047524161636829376,
0.050203967839479446,
0.033192284405231476,
-0.10956676304340363,
-0.06071966141462326,
-0.007233780808746815,
-0.04135042801499367,
-0.022727470844984055,
0.02031903713941574,
-0.00937932264059782,
-0.022235607728362083,
-0.1059710755944252,
0.03707630932331085,
0.0012391983764246106,
0.04253768548369408,
0.02131972461938858,
-0.008938341401517391,
-0.05773456022143364,
-0.019097860902547836,
-0.04040062427520752,
-0.017690114676952362,
-0.014560846611857414,
0.023355020210146904,
-0.021031390875577927,
0.05254455655813217,
0.041553959250450134,
-0.01043937262147665,
-0.02661149390041828,
0.004774465225636959,
0.006445103790611029,
0.06251750886440277,
0.013178541325032711,
-0.039993565529584885,
0.009065547026693821,
0.027340808883309364,
-0.014586287550628185,
0.04345357045531273,
0.02288011834025383,
0.04823651537299156,
0.012330501340329647,
-0.069810651242733,
-0.04168964549899101,
0.05773456022143364,
-0.02798531949520111,
-0.000010782695426314604,
0.015536092221736908,
-0.055020835250616074,
0.017367858439683914,
-0.02679806388914585,
-0.03653356060385704,
0.06085534766316414,
-0.029766203835606575,
0.02600090578198433,
0.032021988183259964,
-0.030071496963500977,
-0.015807464718818665,
-0.0014883101684972644,
0.018928252160549164,
0.0058260345831513405,
0.022676588967442513,
0.022116882726550102,
0.0015826546587049961,
-0.00279641174711287,
0.05654730647802353,
0.006373020354658365,
0.028765516355633736,
-0.03609258309006691,
0.05542789399623871,
0.0024889972992241383,
0.007611158769577742,
0.022303450852632523,
0.0012031567748636007,
0.010464813560247421,
0.017605310305953026,
-0.03982395678758621,
-0.034192971885204315,
0.03819572180509567,
-0.015112072229385376,
0.046845730394124985,
0.02567865140736103,
0.030580321326851845,
0.04962730035185814
] |
721,959
|
apprise.attachment.base
|
AttachBase
|
This is the base class for all supported attachment types
|
class AttachBase(URLBase):
"""
This is the base class for all supported attachment types
"""
# For attachment type detection; this amount of data is read into memory
# 128KB (131072B)
max_detect_buffer_size = 131072
# Unknown mimetype
unknown_mimetype = 'application/octet-stream'
# Our filename when we can't otherwise determine one
unknown_filename = 'apprise-attachment'
# Our filename extension when we can't otherwise determine one
unknown_filename_extension = '.obj'
# The strict argument is a flag specifying whether the list of known MIME
# types is limited to only the official types registered with IANA. When
# strict is True, only the IANA types are supported; when strict is False
# (the default), some additional non-standard but commonly used MIME types
# are also recognized.
strict = False
# The maximum file-size we will accept for an attachment size. If this is
# set to zero (0), then no check is performed
# 1 MB = 1048576 bytes
# 5 MB = 5242880 bytes
# 1 GB = 1048576000 bytes
max_file_size = 1048576000
# By default all attachments types are inaccessible.
# Developers of items identified in the attachment plugin directory
# are requried to set a location
location = ContentLocation.INACCESSIBLE
# Here is where we define all of the arguments we accept on the url
# such as: schema://whatever/?overflow=upstream&format=text
# These act the same way as tokens except they are optional and/or
# have default values set if mandatory. This rule must be followed
template_args = {
'cache': {
'name': _('Cache Age'),
'type': 'int',
# We default to (600) which means we cache for 10 minutes
'default': 600,
},
'mime': {
'name': _('Forced Mime Type'),
'type': 'string',
},
'name': {
'name': _('Forced File Name'),
'type': 'string',
},
'verify': {
'name': _('Verify SSL'),
# SSL Certificate Authority Verification
'type': 'bool',
# Provide a default
'default': True,
},
}
def __init__(self, name=None, mimetype=None, cache=None, **kwargs):
"""
Initialize some general logging and common server arguments that will
keep things consistent when working with the configurations that
inherit this class.
Optionally provide a filename to over-ride name associated with the
actual file retrieved (from where-ever).
The mime-type is automatically detected, but you can over-ride this by
explicitly stating what it should be.
By default we cache our responses so that subsiquent calls does not
cause the content to be retrieved again. For local file references
this makes no difference at all. But for remote content, this does
mean more then one call can be made to retrieve the (same) data. This
method can be somewhat inefficient if disabled. Only disable caching
if you understand the consequences.
You can alternatively set the cache value to an int identifying the
number of seconds the previously retrieved can exist for before it
should be considered expired.
"""
super().__init__(**kwargs)
if not mimetypes.inited:
# Ensure mimetypes has been initialized
mimetypes.init()
# Attach Filename (does not have to be the same as path)
self._name = name
# The mime type of the attached content. This is detected if not
# otherwise specified.
self._mimetype = mimetype
# The detected_mimetype, this is only used as a fallback if the
# mimetype wasn't forced by the user
self.detected_mimetype = None
# The detected filename by calling child class. A detected filename
# is always used if no force naming was specified.
self.detected_name = None
# Absolute path to attachment
self.download_path = None
# Set our cache flag; it can be True, False, None, or a (positive)
# integer... nothing else
if cache is not None:
try:
self.cache = cache if isinstance(cache, bool) else int(cache)
except (TypeError, ValueError):
err = 'An invalid cache value ({}) was specified.'.format(
cache)
self.logger.warning(err)
raise TypeError(err)
# Some simple error checking
if self.cache < 0:
err = 'A negative cache value ({}) was specified.'.format(
cache)
self.logger.warning(err)
raise TypeError(err)
else:
self.cache = None
# Validate mimetype if specified
if self._mimetype:
if next((t for t in mimetypes.types_map.values()
if self._mimetype == t), None) is None:
err = 'An invalid mime-type ({}) was specified.'.format(
mimetype)
self.logger.warning(err)
raise TypeError(err)
return
@property
def path(self):
"""
Returns the absolute path to the filename. If this is not known or
is know but has been considered expired (due to cache setting), then
content is re-retrieved prior to returning.
"""
if not self.exists():
# we could not obtain our path
return None
return self.download_path
@property
def name(self):
"""
Returns the filename
"""
if self._name:
# return our fixed content
return self._name
if not self.exists():
# we could not obtain our name
return None
if not self.detected_name:
# If we get here, our download was successful but we don't have a
# filename based on our content.
extension = mimetypes.guess_extension(self.mimetype)
self.detected_name = '{}{}'.format(
self.unknown_filename,
extension if extension else self.unknown_filename_extension)
return self.detected_name
@property
def mimetype(self):
"""
Returns mime type (if one is present).
Content is cached once determied to prevent overhead of future
calls.
"""
if self._mimetype:
# return our pre-calculated cached content
return self._mimetype
if not self.exists():
# we could not obtain our attachment
return None
if not self.detected_mimetype:
# guess_type() returns: (type, encoding) and sets type to None
# if it can't otherwise determine it.
try:
# Directly reference _name and detected_name to prevent
# recursion loop (as self.name calls this function)
self.detected_mimetype, _ = mimetypes.guess_type(
self._name if self._name
else self.detected_name, strict=self.strict)
except TypeError:
# Thrown if None was specified in filename section
pass
# Return our mime type
return self.detected_mimetype \
if self.detected_mimetype else self.unknown_mimetype
def exists(self, retrieve_if_missing=True):
"""
Simply returns true if the object has downloaded and stored the
attachment AND the attachment has not expired.
"""
cache = self.template_args['cache']['default'] \
if self.cache is None else self.cache
if self.download_path and os.path.isfile(self.download_path) \
and cache:
# We have enough reason to look further into our cached content
# and verify it has not expired.
if cache is True:
# return our fixed co
|
(name=None, mimetype=None, cache=None, **kwargs)
|
[
0.06300116330385208,
-0.02913706935942173,
-0.08299415558576584,
0.0631948933005333,
0.049091313034296036,
-0.05494197458028793,
0.01870468072593212,
0.04506171867251396,
-0.02150408737361431,
0.009584817104041576,
0.02592114359140396,
0.041884537786245346,
-0.018191294744610786,
0.010858595371246338,
-0.044364288449287415,
0.014549162238836288,
-0.02561117522418499,
0.03430967405438423,
0.03607262298464775,
-0.001765369321219623,
-0.0031747587490826845,
-0.016883615404367447,
0.0032328779343515635,
0.008509612642228603,
0.008219017647206783,
0.03277920186519623,
0.02134910225868225,
-0.02324766293168068,
0.02971826121211052,
0.03603387624025345,
-0.007008201442658901,
-0.041419584304094315,
0.013473957777023315,
0.03146183490753174,
0.020051108673214912,
0.028885219246149063,
-0.01169163640588522,
0.043628111481666565,
-0.04974999651312828,
-0.008083405904471874,
-0.03665381297469139,
0.03359287232160568,
0.056724295020103455,
-0.04339563474059105,
0.00898425281047821,
0.04428679496049881,
-0.0662945806980133,
0.03254672512412071,
-0.02146534062922001,
-0.022007787600159645,
0.024836251512169838,
0.020845403894782066,
0.020244838669896126,
0.003763215383514762,
-0.031868670135736465,
0.0588553324341774,
-0.01723232865333557,
0.10833410173654556,
-0.07385007292032242,
0.02090352214872837,
0.012282514944672585,
-0.03411594405770302,
0.05920404568314552,
-0.03330227732658386,
-0.029698887839913368,
0.025824278593063354,
0.009018155746161938,
-0.02121349237859249,
-0.03105500154197216,
0.038901086896657944,
0.023925719782710075,
-0.025068728253245354,
-0.04203952103853226,
0.008688814006745815,
0.07284267246723175,
-0.010422701947391033,
-0.0026371567510068417,
-0.026114873588085175,
0.030241332948207855,
0.047076515853405,
0.07388881593942642,
-0.05548442155122757,
-0.01927618682384491,
-0.04486798867583275,
0.06598461419343948,
-0.013967970386147499,
0.03779682517051697,
-0.020690418779850006,
0.019789572805166245,
0.07388881593942642,
-0.007691101636737585,
0.03014446794986725,
0.01808474399149418,
-0.025417443364858627,
0.0010376691352576017,
-0.05920404568314552,
-0.030047602951526642,
-0.019828317686915398,
-0.01574060507118702,
-0.02634735032916069,
-0.04603037238121033,
0.032469235360622406,
-0.028652744367718697,
-0.014839757233858109,
-0.010267717763781548,
-0.05470949783921242,
-0.02001236192882061,
-0.05199727043509483,
-0.014026089571416378,
-0.008257763460278511,
-0.04048967733979225,
-0.08857358992099762,
-0.027296630665659904,
0.02915644273161888,
0.010674551129341125,
-0.06191627308726311,
-0.042465727776288986,
-0.009531541727483273,
0.03425155580043793,
-0.023886973038315773,
0.037331871688365936,
0.02809092588722706,
-0.05339213088154793,
0.009216729551553726,
0.04223325103521347,
-0.013967970386147499,
0.0019760513678193092,
-0.0338253490626812,
0.06346611678600311,
-0.023790108039975166,
-0.027877820655703545,
0.028052179142832756,
-0.031403716653585434,
0.04591413214802742,
-0.01896621845662594,
-0.005487416870892048,
-0.02249211259186268,
0.03423218056559563,
-0.030880644917488098,
0.05722799524664879,
-0.028149044141173363,
-0.001260459190234542,
0.055833134800195694,
-0.01646709442138672,
-0.009734958410263062,
-0.011352607980370522,
0.0011242424370720983,
-0.05870034545660019,
-0.0897359773516655,
-0.010635805316269398,
-0.014975368976593018,
-0.02014797367155552,
-0.06152881309390068,
0.025398069992661476,
0.05478699132800102,
-0.011556025594472885,
-0.05381833761930466,
0.06509345024824142,
-0.061296336352825165,
0.01972176693379879,
0.0060782949440181255,
0.0015328926965594292,
-0.004884430672973394,
-0.008388531394302845,
0.038610491901636124,
-0.022763336077332497,
0.008877701126039028,
-0.0005333643057383597,
0.023344527930021286,
0.05521319806575775,
-0.03740936145186424,
0.05560065805912018,
-0.02708352543413639,
-0.011526965536177158,
0.03601450473070145,
0.07908079773187637,
0.037157513201236725,
0.0015789037570357323,
0.0068725901655852795,
0.023228289559483528,
0.0005260994075797498,
-0.03442591428756714,
-0.004148254636675119,
0.03694440796971321,
0.056879278272390366,
0.029795752838253975,
-0.002617783611640334,
0.0301638413220644,
0.04161331430077553,
0.019159948453307152,
-0.03661506623029709,
-0.013735493645071983,
-0.014219819568097591,
-0.01266028918325901,
-0.006654643453657627,
-0.009110177867114544,
0.013822671957314014,
-0.06931678205728531,
-0.026095500215888023,
0.04537168890237808,
-0.05374084413051605,
-0.04843262955546379,
0.0062090628780424595,
-0.018946845084428787,
-0.024778133258223534,
0.011032952927052975,
0.028052179142832756,
-0.04045093059539795,
-0.05749921873211861,
0.07257144898176193,
-0.05579438805580139,
0.025262460112571716,
0.004140989854931831,
-0.00239378260448575,
0.01360956858843565,
-0.10252218693494797,
-0.04207826778292656,
0.039947234094142914,
-0.011614144779741764,
0.03990848734974861,
-0.00036354741314426064,
0.02543681673705578,
-0.0662945806980133,
0.024235688149929047,
0.001712093479000032,
0.002120138378813863,
0.05808040872216225,
0.006795098073780537,
-0.008281979709863663,
-0.006552934646606445,
-0.02338327281177044,
-0.003191710216924548,
0.0038407074753195047,
0.06102511286735535,
0.06695326417684555,
0.018937157467007637,
0.01574060507118702,
0.047618962824344635,
-0.028052179142832756,
-0.008059189654886723,
0.05397332087159157,
0.013812986202538013,
-0.00706632062792778,
0.03585951775312424,
-0.01973145268857479,
-0.08423402905464172,
0.008185114711523056,
0.018152549862861633,
-0.05788667872548103,
-0.06827063113451004,
0.041729554533958435,
0.01443292386829853,
-0.039385415613651276,
0.007109909784048796,
0.018472203984856606,
-0.020206093788146973,
-0.03506522253155708,
-0.07299765944480896,
0.03134559839963913,
-0.01485913060605526,
0.0005391156882978976,
-0.04079964756965637,
0.02634735032916069,
0.03808742016553879,
-0.009366870857775211,
-0.028613997623324394,
-0.025804905220866203,
-0.03423218056559563,
-0.04591413214802742,
0.022453367710113525,
0.05044742673635483,
0.034968357533216476,
0.002559664426371455,
-0.0009305119165219367,
-0.0426982045173645,
0.014587908051908016,
-0.0027267569676041603,
0.006422166712582111,
-0.01868530921638012,
0.0301638413220644,
-0.014704146422445774,
-0.01154633890837431,
0.04947877302765846,
-0.008403060957789421,
0.04076090082526207,
-0.01126542966812849,
-0.07330762594938278,
0.024971863254904747,
-0.05079613998532295,
0.005366335157305002,
-0.019314931705594063,
0.03630509972572327,
0.04978874325752258,
-0.0559106282889843,
-0.03336039558053017,
-0.007105066906660795,
-0.029350172728300095,
-0.008301353082060814,
0.08578387647867203,
0.02193029411137104,
-0.014752578921616077,
0.054515767842531204,
0.0749737098813057,
-0.02003173530101776,
-0.06571339070796967,
-0.017416372895240784,
-0.00354769011028111,
-0.03076440654695034,
0.048316389322280884,
0.03957914561033249,
0.06207125633955002,
-0.015866529196500778,
-0.013377091847360134,
0.06679828464984894,
0.055871881544589996,
0.04959501326084137,
0.03768058493733406,
0.025533681735396385,
0.003910935018211603,
0.047308992594480515,
-0.004184579011052847,
0.04397682845592499,
-0.022279009222984314,
0.022898947820067406,
0.05800291523337364,
-0.03419343754649162,
0.03415469080209732,
0.04738648608326912,
-0.008524143137037754,
0.01808474399149418,
-0.013851732015609741,
0.05250097066164017,
-0.028575250878930092,
0.004618050996214151,
-0.031132495030760765,
0.03306980058550835,
-0.007976854220032692,
-0.0631948933005333,
0.06489972025156021,
-0.012146903201937675,
0.03190741688013077,
0.004954657983034849,
-0.038649238646030426,
0.01925681345164776,
-0.011865993961691856,
-0.021969040855765343,
0.08431152254343033,
0.007008201442658901,
0.03188804164528847,
-0.03487149253487587,
-0.024681268259882927,
-0.05470949783921242,
-0.03601450473070145,
-0.04293068125844002,
0.026579827070236206,
-0.09136331081390381,
-0.012931511737406254,
-0.05618185177445412,
-0.007802496664226055,
0.04300817474722862,
0.010277403518557549,
0.01421013381332159,
-0.052307240664958954,
-0.0014626653864979744,
-0.013590196147561073,
-0.022027159109711647,
0.01778446137905121,
0.023073304444551468,
0.031248731538653374,
-0.06358235329389572,
0.0000484326301375404,
0.02150408737361431,
-0.05219100043177605,
-0.06292366981506348,
0.01794913224875927,
-0.056608058512210846,
-0.02473938651382923,
0.003986005205661058,
-0.014239192940294743,
0.00978823471814394,
-0.008267450146377087,
0.04897507652640343,
-0.06125758960843086,
0.03078377991914749,
-0.009260319173336029,
-0.055561911314725876,
0.010829536244273186,
0.01229220163077116,
0.0019155105110257864,
0.03161682188510895,
0.08074688166379929,
-0.023053931072354317,
0.04618535563349724,
0.010664865374565125,
-0.013754867017269135,
-0.04316315799951553,
-0.034387167543172836,
0.0338640958070755,
-0.012447185814380646,
-0.028459012508392334,
-0.00795263797044754,
0.011672263965010643,
-0.049207549542188644,
0.07245521247386932,
0.006630426738411188,
-0.0004032016440760344,
0.0824517086148262,
0.038494255393743515,
0.013028377667069435,
0.03399970754981041,
0.0048263114877045155,
-0.03014446794986725,
-0.047154009342193604,
-0.030435064807534218,
0.015440322458744049,
0.02179468236863613,
0.0007046947721391916,
-0.04959501326084137,
0.009613877162337303,
0.021000387147068977,
-0.016990166157484055,
0.04169080778956413,
0.015537187457084656,
-0.031868670135736465,
-0.04060591757297516,
-0.025398069992661476,
-0.03764183819293976,
0.008311038836836815,
-0.07160279899835587,
0.010732670314610004,
0.007129283156245947,
0.037157513201236725,
-0.03514271602034569,
-0.04897507652640343,
0.05459326133131981,
0.030221961438655853,
-0.03204302862286568,
-0.049362536519765854,
-0.04978874325752258,
-0.03620823472738266,
-0.030376944690942764,
-0.01825910061597824,
-0.018898412585258484,
-0.012582797557115555,
0.04486798867583275,
-0.02487499825656414,
-0.0456041619181633,
0.022259635850787163,
0.000458596448879689,
0.017300134524703026,
-0.047890182584524155,
0.019528036937117577,
0.042891938239336014,
-0.025959888473153114,
-0.11344859004020691,
0.0027703463565558195,
0.062303733080625534,
0.00503699341788888,
-0.015130353160202503,
-0.04296942800283432,
-0.02634735032916069,
0.01824941486120224,
0.010790789499878883,
-0.07098285853862762,
-0.01332865934818983,
0.05226849392056465,
0.013754867017269135,
0.00695492560043931,
-0.03150058165192604,
-0.005589125212281942,
0.051881033927202225,
-0.01899527758359909,
-0.010693924501538277,
-0.03324415534734726,
0.04959501326084137,
0.011788502335548401,
0.03986974060535431,
0.05106736347079277,
-0.0010122419334948063,
-0.060095205903053284,
0.03915293887257576,
-0.07047916203737259,
-0.030086349695920944,
-0.015169099904596806,
0.01867562159895897,
-0.04971124976873398,
0.027277257293462753,
-0.004567197058349848,
0.004867479205131531,
0.03506522253155708,
0.0027146488428115845,
0.0441318117082119,
-0.03179117664694786,
0.04665030911564827,
0.04029594734311104,
0.04223325103521347,
-0.008001070469617844,
0.03308917209506035,
0.004172470886260271,
-0.07787966728210449,
0.02072916552424431,
-0.08570638298988342,
-0.008868014439940453,
0.009022998623549938,
-0.009454049170017242,
-0.008625851012766361,
-0.019014650955796242,
0.02824590913951397,
0.028730235993862152,
-0.007109909784048796,
-0.033186037093400955,
0.02367386966943741,
0.007468311581760645,
0.007773437071591616,
-0.02280208095908165,
0.04696027562022209,
-0.01737762801349163,
0.00525978347286582,
0.007928421720862389,
-0.027412869036197662,
0.03014446794986725,
-0.0038600806146860123,
-0.006586837582290173,
-0.07474123686552048,
-0.019014650955796242,
0.029679514467716217,
-0.016389600932598114,
0.013958283700048923,
0.012234082445502281,
0.036750677973032,
0.03287607058882713,
0.016079632565379143,
0.033902838826179504,
-0.04680529236793518,
0.06137382611632347,
0.085396409034729,
-0.07570988684892654,
-0.03312791883945465,
-0.08632631599903107,
-0.0025548210833221674,
0.012108157388865948,
0.03870735689997673,
-0.03955977037549019,
-0.06207125633955002,
-0.020554807037115097,
-0.04498422518372536,
0.007894518785178661,
-0.0057005202397704124,
0.07768593728542328,
-0.05191977694630623,
0.0008100357372313738,
0.031984906643629074,
0.015537187457084656,
-0.025727413594722748,
-0.011827248148620129,
0.026986660435795784,
-0.0035113657359033823,
-0.06447351723909378,
0.048510123044252396,
-0.03337976709008217,
0.012485931627452374,
0.0011181883746758103,
-0.036556947976350784,
0.01573091745376587,
-0.005056366324424744,
0.005884564481675625,
0.061141349375247955,
0.02194966748356819,
-0.02971826121211052,
-0.0301638413220644,
-0.03690566495060921,
0.05168730020523071,
-0.026114873588085175,
-0.005366335157305002,
0.04719275236129761,
-0.00467132730409503,
-0.01956678181886673,
-0.0009450416546314955,
0.016990166157484055,
0.003835864132270217,
0.04327939823269844,
-0.06199376657605171,
0.035258952528238297,
-0.019159948453307152,
-0.055871881544589996,
-0.06710825115442276,
0.04792892932891846,
0.03372848406434059,
-0.028788354247808456,
-0.0049231769517064095,
-0.052772194147109985,
-0.005313059315085411,
0.005274313502013683,
-0.027412869036197662,
0.010693924501538277,
0.07632982730865479,
0.06389232724905014,
-0.0017907965229824185,
0.015362829901278019,
-0.026231111958622932,
0.0294276662170887,
-0.027412869036197662,
-0.04723149910569191,
0.04440303519368172,
-0.0026056754868477583,
0.00500793382525444,
-0.043511874973773956,
0.04769645258784294,
0.025223713368177414,
-0.030415691435337067,
-0.021077880635857582,
-0.016418661922216415,
0.007458624895662069,
0.04603037238121033,
-0.008930976502597332,
-0.008301353082060814,
-0.060095205903053284,
0.03159744665026665,
-0.025727413594722748,
0.0286721158772707,
-0.028633370995521545,
0.0046567972749471664,
0.009986808523535728,
0.012418125756084919,
-0.01690298691391945,
0.037874314934015274,
-0.02101976051926613,
0.003780166618525982,
-0.02768409065902233,
0.018278473988175392,
0.006921022664755583,
0.02313142456114292,
0.02869148924946785,
0.04595287889242172,
0.03299230709671974,
0.01465571392327547,
-0.003148120827972889,
-0.0005267048254609108,
0.024797506630420685,
0.013076810166239738,
0.07477997988462448,
-0.018772486597299576,
-0.05494197458028793,
0.003375754225999117,
-0.06710825115442276,
0.04358936473727226,
0.04905256628990173,
-0.06819314509630203,
0.009376556612551212,
-0.00017405475955456495,
-0.0029277524445205927,
0.021116625517606735,
0.018636874854564667,
-0.02634735032916069,
-0.010442075319588184,
0.08407904207706451,
0.01690298691391945,
-0.016961107030510902,
0.010461447760462761,
-0.011807874776422977,
0.006969455163925886,
-0.06090887635946274,
0.01404546294361353,
-0.045100465416908264,
0.0456041619181633,
-0.04389933496713638,
0.03326353058218956,
-0.046572815626859665,
0.013338346034288406,
-0.007603922858834267,
-0.025223713368177414,
0.038494255393743515,
0.01471383310854435,
-0.036285724490880966,
0.0007059055496938527,
-0.022027159109711647,
0.0010515934554859996,
-0.006969455163925886,
0.04978874325752258,
0.039792247116565704,
0.05521319806575775,
0.01606025919318199,
-0.03632447123527527,
0.06404730677604675,
0.020516062155365944,
-0.008194800466299057,
0.06063765287399292,
-0.024952489882707596,
-0.05505821481347084,
-0.025088101625442505,
0.007482841145247221,
-0.028768980875611305,
-0.0026008321437984705,
-0.012534364126622677,
-0.023460766300559044,
-0.03990848734974861,
0.023480137810111046,
0.026754183694720268,
-0.013222107663750648,
-0.04002472385764122,
0.011236369609832764,
-0.005792542360723019,
0.018801547586917877,
0.013677374459803104,
-0.016806121915578842,
-0.03076440654695034,
-0.07865458726882935,
0.02780032902956009,
0.007376289460808039,
0.027897194027900696,
0.008548359386622906,
0.016748003661632538,
0.050563663244247437,
-0.010490507818758488,
-0.014733205549418926,
-0.016389600932598114,
-0.025940516963601112,
0.025649920105934143,
0.003353959647938609,
0.0198573786765337,
0.00832072552293539,
-0.00860163476318121,
0.05513570457696915,
0.03812616690993309,
0.011197623796761036,
-0.0017992721404880285,
-0.02960202284157276,
0.009022998623549938,
0.007725004572421312,
0.009546071290969849,
0.03837801516056061,
0.04978874325752258,
-0.0023671446833759546,
0.04153582453727722,
-0.0022109495475888252,
-0.05269470065832138,
0.03483274579048157,
-0.011652890592813492,
-0.04316315799951553,
0.051261093467473984,
-0.020864777266979218,
0.010413015261292458,
-0.07981697469949722,
0.03403845056891441,
-0.012234082445502281,
-0.02016734704375267,
0.03653757646679878,
0.04727024585008621,
-0.003368489444255829,
0.0242744330316782,
0.012272828258574009,
-0.0707116425037384,
-0.04905256628990173,
0.05346962437033653,
-0.01591496169567108,
0.00839821808040142,
-0.014471669681370258,
0.014539475552737713,
-0.004417055752128363,
-0.017435746267437935,
-0.009260319173336029,
-0.04913005977869034,
-0.032314252108335495,
0.03609199449419975,
-0.027161018922924995,
0.0573829784989357,
-0.015023801475763321,
0.03754497319459915
] |
721,960
|
apprise.attachment.base
|
__bool__
|
Allows the Apprise object to be wrapped in an based 'if statement'.
True is returned if our content was downloaded correctly.
|
def __bool__(self):
"""
Allows the Apprise object to be wrapped in an based 'if statement'.
True is returned if our content was downloaded correctly.
"""
return True if self.path else False
|
(self)
|
[
0.047071609646081924,
-0.047691427171230316,
-0.03002665936946869,
0.007545403204858303,
0.06418542563915253,
-0.049447573721408844,
0.005505174398422241,
0.037567757070064545,
-0.025343602523207664,
0.01985134184360504,
0.05853821337223053,
0.028666507452726364,
0.021917395293712616,
0.010304447263479233,
-0.02622167579829693,
-0.03660359978675842,
-0.0005622465978376567,
0.02563629299402237,
0.01435907930135727,
0.0058667343109846115,
-0.030371002852916718,
0.021073756739497185,
0.02313981018960476,
0.016158267855644226,
0.0007473306613974273,
0.077339306473732,
0.03470971807837486,
-0.0014128800248727202,
-0.00008951558265835047,
0.030491521582007408,
-0.03347008302807808,
-0.005987253971397877,
0.08016292005777359,
0.0356394425034523,
0.03670690208673477,
0.07059019804000854,
0.004476451780647039,
0.06780102103948593,
-0.05333864316344261,
-0.03694794327020645,
-0.058710385113954544,
0.006977238226681948,
-0.0033594907727092505,
-0.003675855463370681,
-0.032230451703071594,
-0.011062000878155231,
-0.08897808194160461,
0.016528436914086342,
0.007450709119439125,
-0.03736115247011185,
0.04021919518709183,
0.03347008302807808,
0.016743650659918785,
0.018095195293426514,
-0.03431372344493866,
0.0352434478700161,
0.043283842504024506,
0.11673208326101303,
-0.05760848894715309,
0.028700942173600197,
-0.034382592886686325,
-0.01735485903918743,
0.04025362804532051,
-0.058228302747011185,
0.02907971851527691,
0.05010182410478592,
-0.06167173013091087,
-0.005109180696308613,
0.005509478971362114,
0.08794505894184113,
-0.03314295783638954,
0.0265832357108593,
-0.047656990587711334,
0.041975341737270355,
0.042457420378923416,
-0.05292543023824692,
-0.055507998913526535,
-0.024861523881554604,
0.0016194854397326708,
-0.004506581462919712,
0.012878406792879105,
-0.052167877554893494,
-0.00021454147645272315,
-0.049344271421432495,
-0.019283175468444824,
-0.02732357196509838,
0.06883405148983002,
-0.022761033847928047,
0.035329531878232956,
0.08395068347454071,
-0.016184093430638313,
0.05368298292160034,
-0.016881387680768967,
-0.0648396760225296,
0.03701681271195412,
0.015228543430566788,
-0.011612948030233383,
-0.03334956243634224,
-0.009977322071790695,
-0.04999852180480957,
-0.02825329639017582,
0.061809465289115906,
0.009168117307126522,
-0.019644735381007195,
0.03880739212036133,
0.002802086528390646,
-0.02160748653113842,
-0.015452366322278976,
0.004366692621260881,
-0.054784879088401794,
-0.021039322018623352,
-0.06459864228963852,
-0.042078644037246704,
0.0743090957403183,
-0.014470990747213364,
-0.06087974086403847,
-0.015056372620165348,
-0.03908286616206169,
-0.03097360208630562,
0.005888255313038826,
0.016950255259871483,
0.04407583177089691,
-0.021056540310382843,
-0.034158769994974136,
0.07444683462381363,
0.03928947076201439,
0.006452116183936596,
0.023329200223088264,
0.026927577331662178,
-0.009486634284257889,
0.017001906409859657,
0.02541247196495533,
-0.010588529519736767,
-0.010820960626006126,
-0.02754739485681057,
-0.003690920304507017,
0.025205865502357483,
0.025205865502357483,
0.0002988784690387547,
0.08877147734165192,
-0.04287063330411911,
-0.005001573823392391,
0.02291598916053772,
0.0205400250852108,
0.00656402762979269,
0.028167210519313812,
-0.030715344473719597,
-0.021917395293712616,
0.0018680576467886567,
0.005926994141191244,
0.08112707734107971,
-0.026083938777446747,
-0.03236818686127663,
0.012706235982477665,
-0.05302873253822327,
-0.013369094580411911,
-0.03570830821990967,
0.0036328125279396772,
0.01436768751591444,
-0.01981690712273121,
0.020694980397820473,
-0.02091880328953266,
-0.011948682367801666,
0.0072182780131697655,
0.002000414300709963,
-0.025481339544057846,
-0.02396623231470585,
0.004267693962901831,
0.03956494480371475,
0.06835196912288666,
0.02078106626868248,
0.0346408486366272,
-0.0292002372443676,
0.005574042908847332,
0.01936926133930683,
0.06800762563943863,
0.03612152114510536,
0.024052318185567856,
-0.008057612925767899,
0.034141551703214645,
0.0009313386399298906,
-0.03749889135360718,
-0.07320719957351685,
0.05619668588042259,
0.07582420110702515,
0.046348489820957184,
0.002096184529364109,
-0.033177394419908524,
0.05964010953903198,
0.08629221469163895,
-0.06656139343976974,
-0.00028112329891882837,
0.005066137760877609,
-0.00298501830548048,
-0.021211493760347366,
-0.07513551414012909,
0.00539756752550602,
-0.039358340203762054,
-0.013222749345004559,
0.02350137010216713,
-0.022141218185424805,
-0.04345601424574852,
-0.006452116183936596,
0.015934444963932037,
-0.005840908270329237,
0.047071609646081924,
-0.008892643265426159,
0.029751185327768326,
-0.02398345060646534,
0.06904065608978271,
-0.07506664842367172,
-0.03167950361967087,
-0.03646586462855339,
0.0074851433746516705,
0.04242298752069473,
-0.048380110412836075,
0.006990151479840279,
0.024603266268968582,
-0.06997038424015045,
0.05189240351319313,
0.023811278864741325,
0.020161248743534088,
0.017079384997487068,
0.033900510519742966,
-0.0244655292481184,
0.016356265172362328,
0.017991891130805016,
-0.018938833847641945,
-0.0439036600291729,
-0.00985680241137743,
-0.038669653236866,
-0.000008116762728604954,
0.04163099825382233,
0.03612152114510536,
0.02637662924826145,
-0.01780250295996666,
0.0042268033139407635,
0.06762885302305222,
-0.051961272954940796,
-0.0015463127056136727,
0.050652772188186646,
-0.017346249893307686,
0.001829319167882204,
-0.0028989329002797604,
-0.013679003342986107,
-0.06539062410593033,
-0.0005165136535651982,
0.016020530834794044,
-0.048621151596307755,
-0.048517849296331406,
0.02505091205239296,
-0.013988911174237728,
-0.02563629299402237,
-0.05912359431385994,
0.02196904644370079,
-0.013911434449255466,
-0.024603266268968582,
-0.02849433571100235,
0.03298800438642502,
0.01639069989323616,
0.035432834178209305,
-0.0232603307813406,
0.03550170361995697,
0.05306316912174225,
-0.07926762849092484,
-0.02907971851527691,
0.011983116157352924,
-0.0057892571203410625,
-0.0046830568462610245,
0.00259763328358531,
0.04941313713788986,
0.016967473551630974,
-0.020746631547808647,
-0.03653473034501076,
-0.01806076057255268,
-0.019885774701833725,
0.019782472401857376,
-0.024775438010692596,
-0.037223417311906815,
0.013007535599172115,
0.046589531004428864,
0.026858709752559662,
0.02529195137321949,
-0.0016657564556226134,
-0.034382592886686325,
-0.08188463002443314,
-0.016605913639068604,
0.06718120723962784,
-0.0412866584956646,
-0.02396623231470585,
0.009073423221707344,
0.047794729471206665,
0.04190647229552269,
-0.021573053672909737,
0.045556504279375076,
0.012353284284472466,
-0.0065898532047867775,
-0.048483412712812424,
0.009013162925839424,
-0.03324626013636589,
0.0017862763488665223,
-0.018198497593402863,
-0.02432779222726822,
-0.029613448306918144,
-0.003994372207671404,
0.020006295293569565,
-0.020953236147761345,
0.004429104272276163,
0.025119779631495476,
0.048380110412836075,
0.03359060361981392,
-0.04899992793798447,
0.005453523248434067,
0.006099165417253971,
-0.006852414458990097,
0.01738068461418152,
0.009374722838401794,
-0.01080374326556921,
-0.01935204491019249,
0.06184389814734459,
-0.055507998913526535,
0.037464454770088196,
-0.0265832357108593,
0.013704828917980194,
0.012671801261603832,
-0.07182983309030533,
0.05809056758880615,
0.005780648440122604,
-0.031765587627887726,
0.043628185987472534,
-0.004472147207707167,
0.030422654002904892,
0.0439036600291729,
-0.0011912095360457897,
-0.02883867733180523,
-0.017768070101737976,
0.01116530317813158,
-0.07258738577365875,
0.023845713585615158,
-0.011905639432370663,
0.024741003289818764,
-0.03229932114481926,
-0.0047304038889706135,
0.02408675290644169,
0.01583114266395569,
0.02422448992729187,
-0.006249815225601196,
0.020608894526958466,
0.08312426507472992,
-0.04559093713760376,
-0.03894512727856636,
0.006013079546391964,
-0.02802947349846363,
0.015633145347237587,
0.017905807122588158,
-0.024913175031542778,
-0.00950385071337223,
-0.00041832224815152586,
0.031765587627887726,
0.012818146497011185,
0.06545949727296829,
-0.0032432752195745707,
-0.057160843163728714,
0.05096267908811569,
-0.03303965553641319,
-0.03197219595313072,
0.016382090747356415,
0.032712530344724655,
0.03085308149456978,
-0.05030842870473862,
-0.02768513187766075,
-0.01194007322192192,
-0.037085678428411484,
-0.0821601003408432,
0.06187833473086357,
-0.02625611051917076,
0.009589936584234238,
-0.025464123114943504,
-0.013369094580411911,
0.047553688287734985,
-0.010975915007293224,
0.06873074918985367,
-0.01900770142674446,
-0.0015958119183778763,
0.015013329684734344,
-0.031145771965384483,
-0.044110264629125595,
0.008143698796629906,
-0.047209348529577255,
-0.02505091205239296,
0.060363225638866425,
-0.011578514240682125,
-0.03429650515317917,
0.007407666649669409,
-0.024878740310668945,
-0.041734300553798676,
-0.013773697428405285,
0.03550170361995697,
0.025739597156643867,
0.031868889927864075,
0.034726932644844055,
0.027151400223374367,
-0.02253721095621586,
0.04528103023767471,
-0.02100488729774952,
0.014574293047189713,
0.052787695080041885,
-0.027358006685972214,
-0.003983611240983009,
-0.03252314403653145,
-0.002916150027886033,
-0.038187574595212936,
-0.06814536452293396,
-0.009400548413395882,
-0.01323135755956173,
0.06160286068916321,
0.0217452235519886,
-0.0030280612409114838,
0.026428280398249626,
0.04287063330411911,
0.012671801261603832,
0.07816573232412338,
0.06284249573945999,
-0.010140884667634964,
-0.01663173921406269,
-0.020161248743534088,
0.024723786860704422,
0.0036155954003334045,
0.0015710623702034354,
0.014255776070058346,
-0.014333253726363182,
-0.024913175031542778,
-0.05151362717151642,
-0.03743002191185951,
0.007252712268382311,
0.01683834381401539,
-0.041872039437294006,
-0.0571952760219574,
-0.04200977459549904,
-0.004769142717123032,
-0.019661951810121536,
-0.0292002372443676,
-0.04417913407087326,
0.018370669335126877,
0.029114151373505592,
-0.04961974546313286,
-0.04242298752069473,
-0.00048826681450009346,
0.05344194546341896,
-0.03773992881178856,
-0.058710385113954544,
0.02753017656505108,
-0.00792418047785759,
-0.0003639807109721005,
-0.06897179037332535,
-0.002421157667413354,
0.004271998070180416,
-0.009348897263407707,
-0.026738189160823822,
-0.0024512875825166702,
0.013575700111687183,
0.002748283091932535,
-0.049447573721408844,
-0.07021141797304153,
0.05320090427994728,
-0.00733018945902586,
-0.03619039058685303,
0.032592009752988815,
-0.01948978193104267,
-0.012680409476161003,
-0.011914247646927834,
-0.06229154393076897,
0.02835659869015217,
-0.01947256363928318,
0.061189647763967514,
0.03014717996120453,
-0.0009216540493071079,
0.07196756452322006,
-0.021400881931185722,
-0.029286323115229607,
-0.0930413231253624,
-0.03539840131998062,
-0.0412866584956646,
0.0007209669565781951,
0.006460724864155054,
-0.07596193999052048,
-0.02539525367319584,
-0.000852247525472194,
0.05757405236363411,
-0.000874306948389858,
0.05357968062162399,
0.021056540310382843,
-0.02883867733180523,
-0.03550170361995697,
0.029544580727815628,
0.028769809752702713,
-0.007562620565295219,
0.0747223049402237,
0.022984856739640236,
-0.020815499126911163,
0.0013709132326766849,
-0.05333864316344261,
-0.002373810624703765,
0.039737116545438766,
0.008212567307054996,
-0.005221092142164707,
-0.022347822785377502,
-0.03822201117873192,
-0.03147289901971817,
0.017122427001595497,
-0.013644568622112274,
0.04686500504612923,
-0.0007699281559325755,
0.052787695080041885,
0.06339344382286072,
0.02396623231470585,
-0.017974674701690674,
0.009314462542533875,
0.02315702848136425,
-0.003079712623730302,
0.04259515926241875,
-0.012912840582430363,
0.051823534071445465,
-0.05072163790464401,
-0.05506035313010216,
-0.008023178204894066,
0.006391856353729963,
0.014014736749231815,
0.009116466157138348,
0.02291598916053772,
0.013558482751250267,
-0.03410711884498596,
0.015185501426458359,
0.0036672467831522226,
0.030371002852916718,
0.08119594305753708,
-0.05402732640504837,
0.008785036392509937,
-0.0350368432700634,
0.008909860625863075,
0.04500555619597435,
-0.030921949073672295,
-0.005031703505665064,
-0.05533582717180252,
-0.01595166325569153,
0.005264135077595711,
0.013885607942938805,
-0.011303040198981762,
0.08870261162519455,
-0.013153880834579468,
-0.0199374258518219,
0.021676355972886086,
0.04989521950483322,
-0.0298028364777565,
0.06828310340642929,
0.03469249978661537,
0.011810945346951485,
-0.016537044197320938,
0.0018594490829855204,
-0.02091880328953266,
-0.0005880722892470658,
-0.0763062834739685,
-0.058710385113954544,
0.027271920815110207,
-0.04562536999583244,
-0.007106367032974958,
0.03656916692852974,
-0.024190055206418037,
0.02422448992729187,
-0.034985192120075226,
0.0326264463365078,
-0.011371908709406853,
-0.013902825303375721,
-0.0006171261775307357,
0.053717419505119324,
0.01923152431845665,
0.007605663500726223,
0.016425134614109993,
-0.024517180398106575,
-0.013369094580411911,
0.0023178549017757177,
-0.07155435532331467,
0.02635941281914711,
-0.058125000447034836,
-0.0410800501704216,
-0.10385367274284363,
0.006916978396475315,
0.032109931111335754,
0.005858125630766153,
-0.0356394425034523,
-0.01607218198478222,
0.030422654002904892,
-0.010063407011330128,
-0.056919801980257034,
0.026393847540020943,
-0.015736449509859085,
0.059192463755607605,
-0.06459864228963852,
0.029114151373505592,
0.0026471323799341917,
-0.009271419607102871,
0.006555418949574232,
-0.055507998913526535,
-0.023811278864741325,
-0.027340788394212723,
0.025705162435770035,
-0.07458456605672836,
0.01995464414358139,
-0.04183760657906532,
-0.03694794327020645,
0.023949015885591507,
-0.012732061557471752,
0.017905807122588158,
0.03880739212036133,
0.008419171907007694,
0.03736115247011185,
-0.004358083941042423,
0.010468009859323502,
-0.04190647229552269,
0.036741338670253754,
0.013885607942938805,
0.008578430861234665,
0.03333234786987305,
0.007334493566304445,
-0.07272511720657349,
-0.012499630451202393,
0.03956494480371475,
0.02529195137321949,
-0.00558265158906579,
-0.01092426385730505,
0.05506035313010216,
-0.007467926479876041,
0.07795912772417068,
-0.010192535817623138,
0.01756146363914013,
-0.012577107176184654,
-0.01145799458026886,
0.032350972294807434,
0.04917209967970848,
-0.0199374258518219,
0.012189721688628197,
-0.011544079519808292,
-0.028528770431876183,
-0.009288636967539787,
-0.05068720504641533,
-0.02019568346440792,
0.021917395293712616,
0.004192369058728218,
0.038049839437007904,
-0.054440539330244064,
-0.06139625608921051,
0.046348489820957184,
0.04335271194577217,
0.006383247673511505,
-0.02587733417749405,
0.031524550169706345,
0.07231190800666809,
0.013627351261675358,
-0.01604635640978813,
-0.029957791790366173,
-0.021573053672909737,
-0.036638032644987106,
0.002419005613774061,
-0.04583197832107544,
0.08319313079118729,
0.020488373935222626,
0.009701848030090332,
-0.0408734455704689,
-0.020109597593545914,
-0.029475711286067963,
-0.02932075783610344,
0.09235263615846634,
0.01187120471149683,
-0.016321830451488495,
0.03169672191143036,
-0.03753332421183586,
-0.046245187520980835,
-0.07355154305696487,
0.01252545602619648,
-0.0155556695535779,
-0.048483412712812424,
0.00569886714220047,
-0.044110264629125595,
0.039255037903785706,
-0.009546893648803234,
0.017346249893307686,
0.021194275468587875,
-0.009417765773832798,
-0.02374240942299366,
-0.05058390274643898,
-0.0626358911395073,
-0.04318054020404816,
-0.0030194525606930256,
0.06311796605587006,
0.06601044535636902,
-0.010907046496868134,
-0.016537044197320938,
0.07541099190711975,
-0.022227304056286812,
-0.006865327246487141,
0.06349674612283707,
0.004773446824401617,
-0.005565434694290161,
0.01806076057255268,
-0.05664432793855667,
-0.028649289160966873,
-0.03694794327020645,
-0.027254702523350716,
0.0034003814216703176,
0.012921449728310108,
-0.007145105395466089,
0.0531664714217186,
0.021400881931185722,
-0.04528103023767471,
0.00311629893258214,
-0.06408212333917618,
-0.022296171635389328,
0.0055223917588591576,
0.05843491107225418,
-0.02660045213997364,
-0.023776844143867493,
-0.03427928686141968,
0.0005038698436692357,
0.005952819716185331,
0.005371741950511932,
-0.012887015007436275,
-0.05110041797161102,
-0.030439870432019234,
0.015082198195159435,
0.03500240668654442,
-0.01830179989337921,
-0.008543996140360832,
-0.02789173647761345,
0.05234004929661751,
-0.020023511722683907,
-0.0005017176736146212,
0.025223081931471825,
0.020161248743534088,
0.008978729136288166,
0.02789173647761345,
0.06876518577337265,
-0.001774439588189125,
0.0043064323253929615,
-0.029871705919504166,
-0.015004721470177174,
-0.02756461128592491,
0.02611837349832058,
0.03763662651181221,
0.007554011885076761,
0.04307723790407181,
0.025326386094093323,
-0.03216158226132393,
0.035914916545152664,
0.017552854493260384,
0.051823534071445465,
0.03291913494467735,
-0.04714047908782959,
0.004497972782701254,
0.04242298752069473,
0.006185250822454691,
-0.019644735381007195,
0.006409073248505592,
-0.037120115011930466,
0.05092824622988701,
0.01826736517250538,
0.051341455429792404,
-0.023949015885591507,
0.04200977459549904
] |
721,961
|
apprise.url
|
__contains__
|
Returns true if the tag specified is associated with this notification.
tag can also be a tuple, set, and/or list
|
def __contains__(self, tags):
"""
Returns true if the tag specified is associated with this notification.
tag can also be a tuple, set, and/or list
"""
if isinstance(tags, (tuple, set, list)):
return bool(set(tags) & self.tags)
# return any match
return tags in self.tags
|
(self, tags)
|
[
0.03173494711518288,
-0.05277068540453911,
-0.04341340810060501,
0.004388489760458469,
-0.01809798739850521,
-0.016148554161190987,
0.006124844774603844,
-0.02121707983314991,
0.03316755220293999,
-0.02908734604716301,
-0.0010721879079937935,
-0.005095725879073143,
0.04885368421673775,
-0.044936686754226685,
-0.06952673941850662,
-0.03938760235905647,
-0.024118559435009956,
0.0008149081259034574,
0.01155152078717947,
-0.02382841147482395,
-0.02225073240697384,
0.05240799859166145,
0.030937040224671364,
0.05752185732126236,
0.019113505259156227,
0.02526101842522621,
-0.0031258922535926104,
-0.03967775031924248,
-0.009611155837774277,
0.061402589082717896,
-0.06093109771609306,
-0.030211670324206352,
0.026276536285877228,
-0.008976456709206104,
0.025424227118492126,
0.021706704050302505,
-0.00896285567432642,
0.09422559291124344,
-0.005784827750176191,
0.03202509507536888,
-0.030411146581172943,
-0.04308699071407318,
0.026838697493076324,
-0.009973840788006783,
0.048454731702804565,
0.014171920716762543,
0.020219694823026657,
0.08711696416139603,
0.04613354802131653,
0.025732507929205894,
0.06336108595132828,
0.000809241144452244,
-0.03938760235905647,
-0.04587966576218605,
-0.11054642498493195,
0.04388489946722984,
0.015459452755749226,
0.11286760866641998,
0.024680722504854202,
0.07155777513980865,
-0.012376629747450352,
0.04134610295295715,
0.08000833541154861,
-0.04823711887001991,
-0.03260539099574089,
-0.00556268310174346,
0.0009356142254546285,
-0.030701294541358948,
-0.012186219915747643,
0.03013913333415985,
-0.03782805800437927,
-0.04464653879404068,
-0.003023887053132057,
0.041019685566425323,
0.0146434111520648,
-0.022613417357206345,
0.000472340703709051,
0.028924137353897095,
0.005204531364142895,
-0.027346458286046982,
0.019965816289186478,
-0.04294191673398018,
0.02883346565067768,
0.03463642671704292,
-0.0020401037763804197,
0.05161008983850479,
0.003901131683960557,
-0.011633125133812428,
0.016103219240903854,
-0.0005445943679660559,
-0.014951693825423717,
0.05142875015735626,
0.04809204488992691,
-0.0020401037763804197,
0.027038175612688065,
0.02076372317969799,
0.022468343377113342,
-0.0067323422990739346,
-0.03623224422335625,
-0.02109013870358467,
-0.01689205877482891,
-0.013364946469664574,
0.03411053493618965,
-0.01102562714368105,
-0.0011866603745147586,
-0.006528331898152828,
-0.02966764196753502,
0.00842336192727089,
0.02596825361251831,
0.023320652544498444,
-0.016175756230950356,
-0.05465664714574814,
-0.0035543141420930624,
0.018288396298885345,
0.002511594444513321,
-0.057957082986831665,
-0.007081426680088043,
-0.008314556442201138,
-0.05030442401766777,
-0.07979072630405426,
0.012684911489486694,
0.029450030997395515,
0.011107231490314007,
0.04000416770577431,
0.022286999970674515,
-0.019965816289186478,
-0.008228418417274952,
0.03059248998761177,
0.01835186593234539,
-0.04827338829636574,
-0.03164427727460861,
0.01686485856771469,
0.02727392129600048,
0.04062073305249214,
0.054692916572093964,
-0.02225073240697384,
0.009928504936397076,
-0.012857187539339066,
-0.014915425330400467,
0.022867295891046524,
-0.00017921744438353926,
0.034074265509843826,
0.03684880584478378,
0.005408541765064001,
-0.03652239218354225,
-0.024172963574528694,
-0.02270408719778061,
-0.0028062760829925537,
0.013555356301367283,
-0.024299902841448784,
-0.032315243035554886,
-0.06956300139427185,
-0.021815510466694832,
0.041092224419116974,
-0.04671384394168854,
0.04094715043902397,
0.015531989745795727,
-0.0003632518055383116,
-0.003178028389811516,
-0.018768955022096634,
0.031916290521621704,
0.06394138187170029,
-0.09038113057613373,
0.06227303296327591,
-0.025043407455086708,
0.013718564063310623,
-0.003930599894374609,
0.026004523038864136,
0.02069118618965149,
0.0292868223041296,
-0.01684672385454178,
0.02493460103869438,
-0.020346634089946747,
0.06053214520215988,
-0.027038175612688065,
0.03873477131128311,
-0.00697715487331152,
0.033548373728990555,
-0.003393372520804405,
0.012331293895840645,
-0.009234869852662086,
-0.00681848032400012,
-0.020854394882917404,
0.0033027012832462788,
0.02720138430595398,
0.04421131685376167,
0.05012308433651924,
-0.023012369871139526,
-0.04072953760623932,
0.006220049690455198,
-0.021325884386897087,
-0.07514835894107819,
0.010046377778053284,
0.029649507254362106,
-0.019276713952422142,
0.012159018777310848,
0.0015414117369800806,
0.005422142334282398,
-0.05726797878742218,
0.020020218566060066,
0.018823357298970222,
-0.06263571977615356,
-0.02589571662247181,
0.009556752629578114,
0.018841492012143135,
0.017127804458141327,
0.036939479410648346,
-0.0005389273865148425,
0.008038008585572243,
-0.07003449648618698,
-0.004304619040340185,
-0.03704828396439552,
0.021833643317222595,
0.03782805800437927,
0.07442298531532288,
0.059190209954977036,
-0.03572448343038559,
-0.009819699451327324,
-0.07950057834386826,
-0.02270408719778061,
0.06916405260562897,
-0.016601910814642906,
0.020854394882917404,
0.03169867768883705,
0.00610217684879899,
0.03345770016312599,
0.038299549371004105,
0.018469739705324173,
0.000036445602745516226,
0.010953090153634548,
0.061475127935409546,
0.0409834161400795,
0.03840835392475128,
-0.006025106646120548,
-0.028869735077023506,
0.035434335470199585,
0.0033412366174161434,
0.02303050458431244,
0.0285795871168375,
0.04983293637633324,
0.04910756275057793,
0.01689205877482891,
0.03391105681657791,
0.012712113559246063,
0.02986711822450161,
-0.05044949799776077,
-0.0014235391281545162,
0.01802545040845871,
0.026766160503029823,
-0.008115079253911972,
-0.002117174444720149,
-0.01792571134865284,
-0.015205573290586472,
-0.030556220561265945,
0.005689622834324837,
-0.04791070520877838,
-0.03349396958947182,
-0.0026612021028995514,
0.04399370402097702,
-0.01158778928220272,
-0.021235212683677673,
0.03229710832238197,
0.09451574087142944,
0.08029848337173462,
-0.03567007929086685,
0.017009932547807693,
0.029051078483462334,
0.03226084262132645,
-0.05440276861190796,
-0.022921700030565262,
0.10837031155824661,
-0.02237767167389393,
0.05298829451203346,
0.006256318185478449,
0.008124146610498428,
-0.020455440506339073,
0.02194244973361492,
-0.012712113559246063,
-0.05802961811423302,
0.0017782904906198382,
-0.010726411826908588,
0.016728850081562996,
0.062055423855781555,
-0.008056143298745155,
0.03300434350967407,
-0.038553427904844284,
0.007131296209990978,
0.07373388111591339,
-0.017780637368559837,
-0.05610738694667816,
-0.002001568442210555,
-0.026657355949282646,
0.032387781888246536,
-0.02270408719778061,
-0.045263100415468216,
0.04587966576218605,
0.016384299844503403,
0.03084636852145195,
0.056651413440704346,
-0.008110545575618744,
0.032170169055461884,
0.01945805549621582,
-0.02375587448477745,
-0.0628170594573021,
-0.048200853168964386,
0.0032550988253206015,
0.04036685451865196,
0.024898333474993706,
0.027672873809933662,
0.00329590099863708,
0.0005003921105526388,
0.022994237020611763,
-0.00952955149114132,
0.00858656968921423,
-0.012032078579068184,
0.019494324922561646,
-0.028815332800149918,
-0.01421725656837225,
-0.03300434350967407,
0.060350801795721054,
0.008291888050734997,
0.0018258928321301937,
-0.05005054548382759,
0.028996674343943596,
-0.0074577126652002335,
-0.04562578722834587,
-0.028525184839963913,
-0.005154662299901247,
-0.019240444526076317,
0.006700607482343912,
0.02245020866394043,
-0.06575480848550797,
0.052806951105594635,
-0.006587268318980932,
-0.03331262618303299,
-0.020546112209558487,
0.011080030351877213,
0.03331262618303299,
0.0536048598587513,
-0.01399057824164629,
-0.013083865866065025,
-0.013555356301367283,
-0.013355879113078117,
0.032387781888246536,
0.034255608916282654,
-0.012975060380995274,
-0.06397765129804611,
0.03663119673728943,
0.03782805800437927,
-0.0015674796886742115,
0.021634167060256004,
0.021452823653817177,
0.05737678334116936,
-0.000928813882637769,
0.05055830627679825,
-0.05505559965968132,
0.017780637368559837,
0.05773947015404701,
0.02694750390946865,
0.028452647849917412,
0.04671384394168854,
-0.043631020933389664,
0.018215859308838844,
-0.015604526735842228,
-0.006578201428055763,
0.02069118618965149,
-0.015958145260810852,
0.03703014925122261,
-0.04250669479370117,
-0.05491052567958832,
0.007289970759302378,
0.028488915413618088,
-0.09241216629743576,
0.013555356301367283,
0.03519859164953232,
-0.04432012140750885,
-0.041237298399209976,
0.03117278590798378,
-0.06270825862884521,
0.0032845670357346535,
-0.015042365528643131,
0.0489262230694294,
0.017408885061740875,
0.03728403151035309,
0.004415691364556551,
-0.007734260056167841,
-0.0064104595221579075,
0.003848995780572295,
0.02556930109858513,
0.050014276057481766,
0.021307749673724174,
-0.05527321249246597,
-0.10982105135917664,
-0.004977853037416935,
-0.13622452318668365,
-0.08711696416139603,
-0.01138831302523613,
-0.04965159296989441,
-0.004257016349583864,
0.0072265006601810455,
0.023538263514637947,
-0.03753791004419327,
-0.025823179632425308,
0.0059344349429011345,
0.024517513811588287,
0.07877520471811295,
0.0005227765650488436,
0.022758491337299347,
-0.016928328201174736,
0.010653874836862087,
-0.03207949921488762,
-0.04664130508899689,
-0.02003835327923298,
-0.050667110830545425,
-0.08755218982696533,
-0.04678637906908989,
0.044610269367694855,
-0.002352919662371278,
-0.0010092846350744367,
-0.006528331898152828,
-0.014661545865237713,
-0.004778376314789057,
-0.015423184260725975,
0.01913163997232914,
-0.0284345131367445,
-0.02948630042374134,
0.018261196091771126,
-0.016130421310663223,
0.02569624036550522,
-0.006872883066534996,
-0.042144011706113815,
-0.02317557856440544,
0.015087700448930264,
-0.038952380418777466,
0.04696772247552872,
-0.030610622838139534,
-0.05973423644900322,
-0.08232951909303665,
-0.021452823653817177,
0.031843751668930054,
-0.02109013870358467,
0.014652478508651257,
-0.004043939057737589,
-0.05015935003757477,
0.0025931985583156347,
-0.04471907392144203,
-0.06687913835048676,
0.04199893772602081,
0.08341757953166962,
-0.03338516503572464,
-0.014407666400074959,
0.03131785988807678,
0.0025591969024389982,
0.008028942160308361,
0.025732507929205894,
-0.04315952956676483,
-0.033929191529750824,
0.00003382463546586223,
-0.024644453078508377,
0.007448645308613777,
-0.04392116889357567,
-0.005549082066863775,
-0.08537607640028,
-0.004628768656402826,
-0.03314942121505737,
-0.014969827607274055,
-0.0005893633351661265,
-0.02232326939702034,
-0.02272222191095352,
0.03246031701564789,
0.07565611600875854,
-0.06945420056581497,
-0.015495721250772476,
-0.017028065398335457,
-0.03188002109527588,
-0.0019414987182244658,
0.002033303491771221,
0.0599881187081337,
-0.03909745439887047,
-0.004377156030386686,
0.004513162653893232,
-0.007416910491883755,
-0.01920417696237564,
-0.016656313091516495,
0.01102562714368105,
-0.06858375668525696,
0.048454731702804565,
0.0035271127708256245,
-0.041092224419116974,
-0.018170524388551712,
-0.00769799156114459,
-0.028507050126791,
0.004127809777855873,
0.02564183808863163,
0.06223676726222038,
-0.02712884731590748,
-0.012784650549292564,
0.04983293637633324,
-0.028361976146697998,
0.023375054821372032,
-0.00717209791764617,
-0.017363550141453743,
0.013210805132985115,
-0.004678638186305761,
0.04163625091314316,
-0.055599626153707504,
0.007199299521744251,
0.008749778382480145,
-0.027636606246232986,
-0.0027337390929460526,
-0.020147157832980156,
-0.047729361802339554,
0.02264968492090702,
-0.03721149265766144,
0.05831976607441902,
0.0011594590032473207,
-0.009198601357638836,
-0.018696418032050133,
-0.02310304157435894,
0.0038535292260348797,
0.0601331926882267,
0.017980113625526428,
0.01887775957584381,
-0.03632291406393051,
0.0065464661456644535,
-0.02778168022632599,
-0.01965753361582756,
-0.03637731820344925,
-0.045843400061130524,
-0.020854394882917404,
0.00883591640740633,
-0.011896071955561638,
-0.049433980137109756,
-0.03967775031924248,
-0.030755696818232536,
0.05146501585841179,
-0.028361976146697998,
-0.0019925013184547424,
-0.011243238113820553,
0.049760397523641586,
0.021434690803289413,
-0.010463465936481953,
0.013419348746538162,
0.011506184935569763,
-0.01357349008321762,
0.0849408507347107,
-0.0553094781935215,
-0.011896071955561638,
0.056071117520332336,
0.017816906794905663,
-0.02818063274025917,
-0.008500432595610619,
-0.013192671351134777,
-0.007883867248892784,
0.0631072074174881,
-0.02069118618965149,
-0.01900470070540905,
0.01925857923924923,
0.019621264189481735,
0.07971818745136261,
0.001146991620771587,
-0.0008035742212086916,
0.004723973572254181,
0.040910881012678146,
-0.060822293162345886,
-0.045118026435375214,
0.023375054821372032,
-0.029431896284222603,
0.04910756275057793,
0.025333555415272713,
0.01044533122330904,
-0.011732863262295723,
-0.08436055481433868,
0.006813946645706892,
-0.0028720127884298563,
0.04620608314871788,
0.0014972095377743244,
0.010826150886714458,
-0.0645216852426529,
-0.01767183281481266,
-0.09821512550115585,
0.004238882102072239,
0.0293593592941761,
-0.0246081855148077,
0.025877583771944046,
0.028670258820056915,
-0.009021792560815811,
0.02602265775203705,
-0.04678637906908989,
0.049542784690856934,
0.016456836834549904,
-0.030937040224671364,
-0.00214324239641428,
-0.018188659101724625,
0.016484038904309273,
0.01860574632883072,
0.057812005281448364,
-0.02526101842522621,
-0.04867234081029892,
-0.003951000981032848,
0.023647069931030273,
-0.01945805549621582,
0.0003065822529606521,
-0.06463048607110977,
0.02335692197084427,
-0.028597721830010414,
0.003463642904534936,
-0.0010744546307250857,
-0.04635115712881088,
-0.04729413986206055,
-0.0253879576921463,
0.035434335470199585,
0.04867234081029892,
0.06405019015073776,
0.04602473974227905,
0.006201915442943573,
-0.018333733081817627,
0.07141269743442535,
-0.00266800238750875,
-0.0003369004698470235,
0.015604526735842228,
0.0030556221026927233,
-0.01490635797381401,
0.0052544004283845425,
-0.041019685566425323,
-0.09009098261594772,
0.010735479183495045,
-0.08559368550777435,
0.0012161284685134888,
-0.03168054297566414,
0.055599626153707504,
-0.003744723740965128,
0.04758428782224655,
0.008631905540823936,
-0.0027609404642134905,
-0.04885368421673775,
0.028126230463385582,
-0.02760033681988716,
-0.02707444317638874,
0.013011328876018524,
-0.06053214520215988,
-0.05556336045265198,
-0.05581723898649216,
-0.0008183082682080567,
0.020654916763305664,
0.05647007375955582,
-0.021398421376943588,
-0.023574532940983772,
0.03307688236236572,
-0.006623536814004183,
0.0010965557303279638,
0.03182561695575714,
-0.011406446807086468,
0.039278797805309296,
-0.01684672385454178,
0.05044949799776077,
0.007802263367921114,
0.04490041732788086,
-0.014434867538511753,
-0.006455794908106327,
-0.015423184260725975,
-0.0002013185730902478,
-0.02576877735555172,
-0.010817083530128002,
0.02662108652293682,
0.00995570607483387,
-0.02564183808863163,
-0.0628170594573021,
0.007616387214511633,
0.09277485311031342,
0.03708455339074135,
0.02310304157435894,
0.001135657774284482,
-0.036993879824876785,
0.0038263278547674417,
-0.00909886322915554,
-0.003805927000939846,
-0.027545934543013573,
-0.016701649874448776,
-0.01797104813158512,
0.025605568662285805,
0.0034137736074626446,
-0.007203833200037479,
0.014153786934912205,
0.010853352025151253,
0.040511928498744965,
0.025533031672239304,
-0.04548071324825287,
0.003960067871958017,
-0.03782805800437927,
-0.02089066244661808,
-0.08639159053564072,
-0.00026167163741774857,
0.06582734733819962,
0.03207949921488762,
0.03316755220293999,
-0.06434033811092377,
-0.005018655210733414,
0.024970870465040207,
-0.03443695232272148,
0.029178017750382423,
0.014153786934912205,
0.018569476902484894,
0.00969275925308466,
-0.00606590835377574,
0.007688924204558134,
-0.020002083852887154,
0.003461376065388322,
0.046169813722372055,
0.02838011085987091,
-0.05113860219717026,
0.04925263673067093,
0.05284322053194046,
-0.07181165367364883,
0.05802961811423302,
-0.03858969733119011,
0.0252428837120533,
-0.012349427677690983,
0.03064689226448536,
0.02179737575352192,
0.008228418417274952,
-0.003948734141886234,
-0.0006006972398608923,
-0.011451782658696175,
-0.03746537119150162,
-0.011270440183579922,
0.054366499185562134,
-0.028361976146697998,
-0.05759439617395401,
-0.018859626725316048,
0.032696064561605453,
0.05904513597488403,
-0.03548873960971832,
0.035633813589811325,
-0.020527977496385574,
-0.04326833412051201,
-0.07003449648618698,
-0.03240591660141945,
0.009656490758061409,
0.047729361802339554,
0.048055779188871384,
-0.016302695497870445,
0.052226655185222626,
-0.0214165560901165,
-0.03349396958947182,
-0.0792829692363739,
0.008527633734047413,
0.01819772645831108,
-0.033294495195150375,
-0.016964595764875412,
0.005390407517552376,
0.05850110948085785,
-0.015368781983852386,
-0.06307093799114227,
0.07028837502002716,
0.035760752856731415,
-0.01323800627142191,
-0.031789351254701614,
-0.032115768641233444,
0.009234869852662086,
-0.04997801035642624,
0.02674802765250206,
0.004495028406381607,
0.000830208882689476,
-0.04025804623961449,
0.049760397523641586,
-0.008595637045800686,
0.06687913835048676
] |
721,962
|
apprise.attachment.base
|
__init__
|
Initialize some general logging and common server arguments that will
keep things consistent when working with the configurations that
inherit this class.
Optionally provide a filename to over-ride name associated with the
actual file retrieved (from where-ever).
The mime-type is automatically detected, but you can over-ride this by
explicitly stating what it should be.
By default we cache our responses so that subsiquent calls does not
cause the content to be retrieved again. For local file references
this makes no difference at all. But for remote content, this does
mean more then one call can be made to retrieve the (same) data. This
method can be somewhat inefficient if disabled. Only disable caching
if you understand the consequences.
You can alternatively set the cache value to an int identifying the
number of seconds the previously retrieved can exist for before it
should be considered expired.
|
def __init__(self, name=None, mimetype=None, cache=None, **kwargs):
"""
Initialize some general logging and common server arguments that will
keep things consistent when working with the configurations that
inherit this class.
Optionally provide a filename to over-ride name associated with the
actual file retrieved (from where-ever).
The mime-type is automatically detected, but you can over-ride this by
explicitly stating what it should be.
By default we cache our responses so that subsiquent calls does not
cause the content to be retrieved again. For local file references
this makes no difference at all. But for remote content, this does
mean more then one call can be made to retrieve the (same) data. This
method can be somewhat inefficient if disabled. Only disable caching
if you understand the consequences.
You can alternatively set the cache value to an int identifying the
number of seconds the previously retrieved can exist for before it
should be considered expired.
"""
super().__init__(**kwargs)
if not mimetypes.inited:
# Ensure mimetypes has been initialized
mimetypes.init()
# Attach Filename (does not have to be the same as path)
self._name = name
# The mime type of the attached content. This is detected if not
# otherwise specified.
self._mimetype = mimetype
# The detected_mimetype, this is only used as a fallback if the
# mimetype wasn't forced by the user
self.detected_mimetype = None
# The detected filename by calling child class. A detected filename
# is always used if no force naming was specified.
self.detected_name = None
# Absolute path to attachment
self.download_path = None
# Set our cache flag; it can be True, False, None, or a (positive)
# integer... nothing else
if cache is not None:
try:
self.cache = cache if isinstance(cache, bool) else int(cache)
except (TypeError, ValueError):
err = 'An invalid cache value ({}) was specified.'.format(
cache)
self.logger.warning(err)
raise TypeError(err)
# Some simple error checking
if self.cache < 0:
err = 'A negative cache value ({}) was specified.'.format(
cache)
self.logger.warning(err)
raise TypeError(err)
else:
self.cache = None
# Validate mimetype if specified
if self._mimetype:
if next((t for t in mimetypes.types_map.values()
if self._mimetype == t), None) is None:
err = 'An invalid mime-type ({}) was specified.'.format(
mimetype)
self.logger.warning(err)
raise TypeError(err)
return
|
(self, name=None, mimetype=None, cache=None, **kwargs)
|
[
0.04454990476369858,
-0.015719590708613396,
-0.06602796912193298,
0.04614368453621864,
0.04523295536637306,
-0.032786302268505096,
0.010786465369164944,
0.05494741350412369,
-0.0042951381765306,
0.02136422134935856,
0.033810872584581375,
0.045422688126564026,
-0.020377596840262413,
0.005601942073553801,
-0.008737321943044662,
-0.0012332809856161475,
-0.02606966346502304,
0.012636386789381504,
0.017683353275060654,
-0.01379377394914627,
0.011981799267232418,
-0.004764733836054802,
0.0006729682791046798,
0.014438875019550323,
0.013281487859785557,
0.04773746430873871,
-0.012674334459006786,
-0.03612564876675606,
0.03221709653735161,
0.03764353320002556,
0.009538954123854637,
-0.041058771312236786,
-0.00046900255256332457,
0.03789018839597702,
0.015273711644113064,
0.04261460155248642,
-0.020358623936772346,
0.03379189968109131,
-0.07240308076143265,
0.0019222581759095192,
-0.03500620648264885,
0.029636692255735397,
0.042424868792295456,
-0.03276732936501503,
0.006071537267416716,
0.04394275322556496,
-0.035841044038534164,
0.04898971691727638,
-0.03942704573273659,
-0.030964840203523636,
0.014230165630578995,
0.051000915467739105,
0.023299524560570717,
-0.002566173207014799,
-0.03445597365498543,
0.04614368453621864,
-0.005393232684582472,
0.08029608428478241,
-0.08811318874359131,
0.012086153961718082,
-0.01912534236907959,
-0.019770443439483643,
0.08090323954820633,
-0.029086459428071976,
-0.035385679453611374,
0.025234827771782875,
-0.010416481643915176,
-0.007300075143575668,
-0.023830784484744072,
0.02961771935224533,
0.036543067544698715,
-0.037567637860774994,
-0.0464472621679306,
-0.0017479386879131198,
0.05726218596100807,
0.017835140228271484,
-0.020719122141599655,
0.0036524091847240925,
0.029788481071591377,
0.05487151816487312,
0.05855238810181618,
-0.031420204788446426,
-0.041058771312236786,
-0.04454990476369858,
0.0483066700398922,
-0.025576351210474968,
0.01694338396191597,
-0.020055046305060387,
0.023147735744714737,
0.05107680708169937,
-0.033905740827322006,
0.0218195877969265,
0.016506992280483246,
-0.03491134196519852,
-0.008841676637530327,
-0.04367712140083313,
-0.02064322680234909,
-0.017436696216464043,
-0.0000451363084721379,
-0.026240425184369087,
-0.050241973251104355,
0.027208076789975166,
-0.01110901590436697,
-0.03231196478009224,
-0.010084443725645542,
-0.04891382157802582,
-0.019381485879421234,
-0.05525099113583565,
-0.04174181818962097,
0.002926670713350177,
-0.033753953874111176,
-0.05859033763408661,
-0.04003420099616051,
0.028498278930783272,
0.027663443237543106,
-0.0403757244348526,
-0.03821273893117905,
-0.012446652166545391,
0.05012813210487366,
-0.0105018625035882,
0.020965777337551117,
0.04591600224375725,
-0.016876976937055588,
0.015453959815204144,
0.025234827771782875,
0.007537244353443384,
-0.011042608879506588,
-0.06029795482754707,
0.06306809186935425,
-0.026487082242965698,
-0.008647197857499123,
0.02094680443406105,
-0.027075262740254402,
0.07289639860391617,
-0.005236701108515263,
0.03179967775940895,
-0.029503876343369484,
0.0341334231197834,
0.0054738703183829784,
0.06007027253508568,
-0.03561336174607277,
-0.027208076789975166,
0.04914150759577751,
-0.010568269528448582,
-0.004520449321717024,
-0.006783045828342438,
-0.003806569380685687,
-0.06466187536716461,
-0.09198379516601562,
-0.010587243363261223,
-0.016990818083286285,
-0.013129699975252151,
-0.05130448937416077,
0.030661264434456825,
0.03995830565690994,
-0.012807149440050125,
-0.05194959044456482,
0.0681530088186264,
-0.04155208542943001,
0.02698039449751377,
-0.024134362116456032,
0.006773558910936117,
0.017436696216464043,
-0.010558783076703548,
0.014543229714035988,
-0.024381017312407494,
-0.006360884290188551,
-0.005625658668577671,
0.030111031606793404,
0.057186294347047806,
-0.04306996986269951,
0.042994074523448944,
0.0026562975253909826,
-0.026259399950504303,
0.03013000451028347,
0.05179780349135399,
0.03185659646987915,
0.004456413444131613,
-0.004620060324668884,
0.016193928197026253,
0.008604506962001324,
-0.04003420099616051,
-0.00007481954526156187,
0.044056594371795654,
0.053998734802007675,
0.06192968040704727,
0.012408704496920109,
0.015311658382415771,
0.04291817918419838,
0.029845401644706726,
-0.009648052044212818,
-0.005369516089558601,
-0.02891569770872593,
-0.021990349516272545,
0.0006279060617089272,
-0.002187887905165553,
0.03362113982439041,
-0.09274273365736008,
-0.022597502917051315,
0.02506406605243683,
-0.059576962143182755,
-0.028782881796360016,
-0.010871846228837967,
-0.009363449178636074,
-0.005782190710306168,
0.026373241096735,
0.029295168817043304,
-0.023337472230196,
-0.05065939202904701,
0.08166217803955078,
-0.06128457933664322,
0.02303389459848404,
0.004114889539778233,
-0.016137007623910904,
0.004223987460136414,
-0.10048394650220871,
-0.05179780349135399,
0.05289826914668083,
-0.0004870867123827338,
0.028422385454177856,
0.014600150287151337,
0.03439905494451523,
-0.07194771617650986,
0.06735611706972122,
-0.019087396562099457,
0.020320676267147064,
0.05680682137608528,
-0.001350679900497198,
-0.024475885555148125,
0.002774882363155484,
-0.03616359457373619,
0.015425499528646469,
0.022597502917051315,
0.03648614510893822,
0.04792719706892967,
0.04439811781048775,
0.039085522294044495,
0.04747183248400688,
-0.03252067044377327,
-0.0005991492653265595,
0.057603709399700165,
0.02104167267680168,
0.004036623518913984,
0.018527675420045853,
-0.016924411058425903,
-0.0887962356209755,
0.0017431953456252813,
0.024229228496551514,
-0.04124850779771805,
-0.05654119327664375,
0.03200838714838028,
0.03333653509616852,
-0.018983041867613792,
-0.007916715927422047,
0.01854665018618107,
-0.012010259553790092,
-0.030111031606793404,
-0.06758379936218262,
0.027663443237543106,
-0.022901080548763275,
0.003355947323143482,
-0.043145861476659775,
0.03003513626754284,
0.017967956140637398,
-0.019077908247709274,
-0.031002787873148918,
-0.03458879142999649,
-0.035841044038534164,
-0.049938395619392395,
0.026904501020908356,
0.07699468731880188,
0.02931414172053337,
0.036543067544698715,
-0.01815769076347351,
-0.03606872633099556,
0.007902485318481922,
-0.018897660076618195,
0.008950774557888508,
-0.02794804610311985,
0.03301398456096649,
-0.015738563612103462,
-0.005194010678678751,
0.06929142028093338,
-0.002786740893498063,
0.03379189968109131,
-0.01830947957932949,
-0.06910168379545212,
0.04003420099616051,
-0.03783326596021652,
-0.0011241830652579665,
0.0027274484746158123,
0.041058771312236786,
0.021383196115493774,
-0.0528603233397007,
-0.04439811781048775,
-0.02836546301841736,
-0.04386685788631439,
-0.0017325227381661534,
0.06280246376991272,
0.03483544662594795,
-0.035328757017850876,
0.039540886878967285,
0.048572298139333725,
0.004276164807379246,
-0.03529081121087074,
-0.0131866205483675,
-0.004015278536826372,
-0.027720363810658455,
0.04838256537914276,
0.0303387138992548,
0.07244103401899338,
-0.004157579969614744,
-0.02176266722381115,
0.053391583263874054,
0.056389402598142624,
0.09342578053474426,
0.029845401644706726,
0.024779461324214935,
-0.015027055516839027,
0.04523295536637306,
-0.012968424707651138,
0.06113279238343239,
-0.034323159605264664,
0.025026118382811546,
0.06128457933664322,
-0.021876508370041847,
0.04936918988823891,
0.0513424389064312,
-0.001701690605841577,
0.05168396234512329,
-0.021421143785119057,
0.05130448937416077,
-0.04914150759577751,
0.003880091942846775,
-0.024988170713186264,
0.005288878455758095,
-0.006579080130904913,
-0.057755500078201294,
0.08128270506858826,
-0.03356421738862991,
0.015226277522742748,
-0.017294395714998245,
-0.046029843389987946,
0.0011419708607718349,
-0.023527206853032112,
-0.011099529452621937,
0.0805237665772438,
0.011289265006780624,
0.01882176660001278,
-0.019618654623627663,
-0.012816635891795158,
-0.06796327233314514,
-0.026752712205052376,
-0.053695157170295715,
0.02476048842072487,
-0.08796139806509018,
-0.04052751138806343,
-0.04124850779771805,
-0.013907615095376968,
0.037757374346256256,
0.010264692828059196,
0.05043170601129532,
-0.02551943063735962,
0.004420838318765163,
-0.012408704496920109,
-0.016715701669454575,
0.024627674371004105,
0.02836546301841736,
0.03561336174607277,
-0.055782251060009,
-0.009586388245224953,
0.012171534821391106,
-0.053391583263874054,
-0.03362113982439041,
0.03828863427042961,
-0.05547867342829704,
-0.03179967775940895,
-0.020719122141599655,
-0.022502634674310684,
0.012949450872838497,
-0.02155395783483982,
0.04284228757023811,
-0.05608582869172096,
0.013338408432900906,
-0.026259399950504303,
-0.05380900204181671,
0.023014921694993973,
0.012114614248275757,
0.014192218892276287,
0.034114450216293335,
0.06561055034399033,
-0.04413248598575592,
0.0434114933013916,
0.028820829465985298,
-0.029257221147418022,
-0.03807992488145828,
-0.04284228757023811,
0.050241973251104355,
-0.022199058905243874,
-0.010720058344304562,
-0.005032735411077738,
0.01509346254169941,
-0.06451008468866348,
0.058210864663124084,
0.023868732154369354,
0.015624722465872765,
0.057755500078201294,
0.028725961223244667,
0.020965777337551117,
0.014799372293055058,
0.02825162187218666,
-0.035480547696352005,
-0.020832963287830353,
-0.02369796857237816,
0.008808472193777561,
0.04071724787354469,
-0.011023635044693947,
-0.0731620267033577,
0.03164788708090782,
0.027929071336984634,
-0.004741016775369644,
0.035385679453611374,
0.01126080472022295,
-0.05027991905808449,
0.00015156608424149454,
-0.01645955815911293,
-0.04064135253429413,
0.0029598744586110115,
-0.06591413170099258,
-0.012939964421093464,
0.004705441650003195,
0.07984071969985962,
-0.03160994127392769,
-0.03274835646152496,
0.06447213888168335,
0.02364104799926281,
-0.026714764535427094,
-0.03840247541666031,
-0.05141833424568176,
-0.02546251006424427,
-0.056275561451911926,
-0.03191351890563965,
-0.04409454017877579,
-0.013205593451857567,
0.048420511186122894,
-0.007281101308763027,
-0.04485348239541054,
0.03713124617934227,
0.01627930998802185,
0.00801632646471262,
-0.03622051700949669,
0.007394942920655012,
0.03546157479286194,
-0.0372830331325531,
-0.07779157161712646,
-0.0002973511873278767,
0.04033777490258217,
0.01070108450949192,
-0.009733433835208416,
-0.039389099925756454,
-0.01200077310204506,
0.009562671184539795,
0.0019009129609912634,
-0.10200183093547821,
-0.029086459428071976,
0.050393760204315186,
0.038478367030620575,
0.017360802739858627,
-0.028118807822465897,
-0.013879154808819294,
0.07031599432229996,
0.008381567895412445,
-0.017265934497117996,
-0.024988170713186264,
0.020358623936772346,
0.015434986911714077,
0.02794804610311985,
0.01673467457294464,
-0.00709136575460434,
-0.04530884698033333,
0.02246468886733055,
-0.03927525877952576,
-0.03889578580856323,
-0.030964840203523636,
0.024779461324214935,
-0.06306809186935425,
0.046599049121141434,
-0.012304349802434444,
0.0256712194532156,
0.04732004553079605,
0.013736853376030922,
0.05289826914668083,
-0.05073528364300728,
0.0280049666762352,
0.04170387238264084,
0.03870604932308197,
-0.0131866205483675,
0.023660022765398026,
0.01534960512071848,
-0.05380900204181671,
0.0218195877969265,
-0.09168021380901337,
-0.015330632217228413,
0.031628914177417755,
-0.02151601016521454,
-0.0008603321039117873,
-0.02946593053638935,
0.023982573300600052,
0.002020683605223894,
0.00467698136344552,
-0.023565154522657394,
0.03741585090756416,
0.0028721217531710863,
0.0065126726403832436,
-0.02115551382303238,
0.023963598534464836,
-0.04094493016600609,
0.004850114695727825,
0.008742065168917179,
-0.03324166685342789,
0.02307184226810932,
0.020472465083003044,
0.007831334136426449,
-0.036960482597351074,
-0.027663443237543106,
0.02297697402536869,
0.013376356102526188,
0.024210255593061447,
0.01262690033763647,
0.043145861476659775,
0.03555643931031227,
0.009875735267996788,
0.010255206376314163,
-0.02992129512131214,
0.04652315378189087,
0.07031599432229996,
-0.07593216747045517,
-0.010103417560458183,
-0.08439437299966812,
-0.02540558949112892,
0.017417723312973976,
0.029636692255735397,
-0.014315546490252018,
-0.07547680288553238,
-0.04219718649983406,
-0.05817291885614395,
0.01209564134478569,
0.0128356097266078,
0.09714459627866745,
-0.06257478147745132,
-0.000717437535058707,
0.00044261745642870665,
0.01885022595524788,
-0.029750533401966095,
-0.042424868792295456,
0.012465625070035458,
0.01227588951587677,
-0.08613993972539902,
0.03176173195242882,
-0.043639175593853,
0.02591787464916706,
0.018726898357272148,
-0.029598744586110115,
0.020168887451291084,
-0.018527675420045853,
0.0001461556676076725,
0.07289639860391617,
0.037055350840091705,
-0.03935115039348602,
-0.06007027253508568,
-0.04458785429596901,
0.05532688647508621,
-0.03307090699672699,
0.002216348424553871,
0.035480547696352005,
0.017778219655156136,
0.015216791070997715,
0.018043849617242813,
0.02460869960486889,
0.023773863911628723,
0.02627837285399437,
-0.052215222269296646,
0.0241533350199461,
-0.00842900201678276,
-0.06253683567047119,
-0.055364832282066345,
0.061512261629104614,
0.010606217198073864,
-0.04306996986269951,
0.0023799953050911427,
-0.04686468094587326,
-0.006299220025539398,
0.0151693569496274,
-0.03155302256345749,
0.014894240535795689,
0.04849640652537346,
0.0575278177857399,
-0.006128458306193352,
0.008993464522063732,
-0.007048675324767828,
0.013509171083569527,
-0.04322175681591034,
-0.05999438092112541,
0.018983041867613792,
-0.01534960512071848,
-0.024134362116456032,
-0.037662506103515625,
0.05403668433427811,
0.014334520325064659,
-0.021269354969263077,
-0.049179453402757645,
-0.005336312111467123,
-0.0006190122221596539,
0.059425171464681625,
0.013290975242853165,
-0.015046028420329094,
-0.07198566198348999,
0.03957883268594742,
-0.026923473924398422,
0.01494167372584343,
-0.014334520325064659,
0.0015048399800434709,
0.01806282438337803,
0.017901549115777016,
-0.02079501561820507,
0.03234991058707237,
-0.030528448522090912,
0.00833413377404213,
-0.056275561451911926,
0.02973156049847603,
0.03663793206214905,
0.0280049666762352,
0.022711344063282013,
0.04398069903254509,
0.024627674371004105,
0.004838256165385246,
-0.025652244687080383,
0.006882656831294298,
0.04398069903254509,
0.023109789937734604,
0.08333185315132141,
-0.03764353320002556,
-0.046485207974910736,
-0.019362512975931168,
-0.07915766537189484,
0.022445714101195335,
0.04986250028014183,
-0.06936731189489365,
0.023318497464060783,
-0.028175728395581245,
0.016895949840545654,
0.011564381420612335,
0.028669040650129318,
-0.004368660971522331,
-0.0140024833381176,
0.07437632977962494,
0.012560493312776089,
-0.008661427535116673,
0.008286699652671814,
-0.016165468841791153,
0.026999367401003838,
-0.038819894194602966,
0.013129699975252151,
-0.04671289026737213,
0.047965146601200104,
-0.05832470580935478,
0.024874329566955566,
-0.05802112817764282,
0.01627930998802185,
0.005497587379068136,
-0.027151156216859818,
0.009387166239321232,
-0.006678691133856773,
-0.0151693569496274,
-0.014391440898180008,
-0.001749124494381249,
-0.016782108694314957,
-0.006963294465094805,
0.025955822318792343,
0.033393457531929016,
0.031325336545705795,
0.020965777337551117,
-0.024665620177984238,
0.05969080328941345,
0.008993464522063732,
-0.0019412317778915167,
0.07862640917301178,
-0.008632967248558998,
-0.05673092603683472,
-0.024115387350320816,
0.008447974920272827,
-0.007323792204260826,
-0.016231875866651535,
0.003465045476332307,
-0.02840341068804264,
-0.03043358214199543,
0.023337472230196,
-0.024969197809696198,
-0.0325586199760437,
-0.01648801937699318,
0.012171534821391106,
0.005782190710306168,
0.016601860523223877,
0.011346185579895973,
-0.03504415601491928,
-0.04439811781048775,
-0.07490759342908859,
0.03453186899423599,
-0.00535054225474596,
0.023052869364619255,
0.004693583119660616,
0.028574172407388687,
0.07430043816566467,
-0.0002304990339325741,
-0.02197137661278248,
-0.0041196332313120365,
0.004145721439272165,
-0.007129312958568335,
0.0007192163029685616,
0.032387856394052505,
-0.01418273150920868,
-0.011630788445472717,
0.045422688126564026,
0.04473964124917984,
0.021534984931349754,
-0.021876508370041847,
-0.025139959529042244,
0.011773090809583664,
0.027321917936205864,
-0.02694244682788849,
0.02267339825630188,
0.032330937683582306,
0.0005475649377331138,
0.026145558804273605,
-0.02079501561820507,
-0.05043170601129532,
0.014846806414425373,
-0.012968424707651138,
-0.0302248727530241,
0.05711039900779724,
-0.02125038020312786,
0.006692921277135611,
-0.05487151816487312,
0.04303202033042908,
-0.014438875019550323,
-0.03965472802519798,
0.03513902425765991,
0.05771755427122116,
0.00313775148242712,
0.0358789898455143,
-0.0051086293533444405,
-0.0837872177362442,
-0.044511958956718445,
0.06910168379545212,
-0.010008550249040127,
-0.007527757901698351,
-0.035841044038534164,
0.005236701108515263,
0.007594164926558733,
-0.013660958968102932,
-0.034323159605264664,
-0.045270901173353195,
-0.02992129512131214,
0.02846033126115799,
-0.028232648968696594,
0.05650324374437332,
0.009401395916938782,
0.02836546301841736
] |
721,963
|
apprise.attachment.base
|
__len__
|
Returns the filesize of the attachment.
|
def __len__(self):
"""
Returns the filesize of the attachment.
"""
return os.path.getsize(self.path) if self.path else 0
|
(self)
|
[
0.027163682505488396,
-0.013136264868080616,
-0.044293634593486786,
0.0751209482550621,
0.03732943534851074,
-0.03462296724319458,
0.025166837498545647,
0.010999145917594433,
-0.0031376034021377563,
0.0022051925770938396,
0.016931919381022453,
-0.027807293459773064,
0.010297775268554688,
-0.012715442106127739,
-0.021866269409656525,
0.04237930476665497,
-0.0017874643672257662,
-0.025166837498545647,
0.021998291835188866,
0.0505647175014019,
0.012723693624138832,
0.018631711602211,
0.027444230392575264,
-0.01957237347960472,
-0.010792860761284828,
0.046240970492362976,
0.04082803800702095,
-0.028021831065416336,
0.09551846235990524,
0.008597982116043568,
-0.03511805459856987,
-0.010116243734955788,
0.0491124652326107,
0.056538745760917664,
0.0012944418704137206,
0.048650387674570084,
0.010165752843022346,
-0.007562428712844849,
-0.05660475790500641,
0.012459647841751575,
-0.04482172802090645,
0.04432664066553116,
0.05904717743396759,
-0.0016853529959917068,
0.02868194505572319,
0.01754252426326275,
-0.019093791022896767,
-0.015372400172054768,
-0.03317071869969368,
-0.008102896623313427,
0.031338904052972794,
0.0736686959862709,
0.0011665448546409607,
0.006766166538000107,
-0.011370460502803326,
0.05686880275607109,
0.01780656911432743,
0.0560106560587883,
-0.08581479638814926,
0.0369003601372242,
-0.0028488035313785076,
-0.05396430194377899,
0.06300786137580872,
-0.11895250529050827,
-0.006927069276571274,
-0.011659259907901287,
-0.005561458878219128,
0.019143300130963326,
0.01522387471050024,
0.03703238442540169,
0.004884841851890087,
0.030414743348956108,
-0.03521706908941269,
0.03996989130973816,
0.0014553446089848876,
0.003352140309289098,
-0.0031252261251211166,
0.018697723746299744,
0.05442638322710991,
-0.018153129145503044,
0.05577961355447769,
-0.03478799760341644,
0.027675271034240723,
0.027394723147153854,
0.06950998306274414,
-0.01065258588641882,
0.06251277774572372,
-0.01429971493780613,
-0.023302016779780388,
0.06924593448638916,
-0.018367666751146317,
0.0852866992354393,
0.018598705530166626,
-0.04363352060317993,
0.01377162430435419,
-0.055350542068481445,
-0.042115259915590286,
-0.015925245359539986,
-0.007401525974273682,
-0.028516916558146477,
-0.06102751940488815,
0.036273252218961716,
0.05330418795347214,
-0.021008120849728584,
-0.004575413651764393,
-0.017658043652772903,
0.015314639545977116,
-0.07036813348531723,
0.013400309719145298,
0.008944542147219181,
0.017113450914621353,
-0.04640600085258484,
-0.00800800509750843,
0.05053171142935753,
0.02229534275829792,
-0.04716512933373451,
-0.00169051019474864,
-0.017922088503837585,
0.041983235627412796,
-0.010174003429710865,
0.05822203680872917,
0.022146817296743393,
-0.051092807203531265,
-0.03987087309360504,
0.060433417558670044,
0.02229534275829792,
0.0024197297170758247,
-0.043072424829006195,
0.03855064511299133,
-0.03538209944963455,
0.030117692425847054,
0.018648214638233185,
0.01461326889693737,
0.03127289190888405,
0.013334298506379128,
0.0025269980542361736,
0.03189999982714653,
0.03176797553896904,
-0.025480391457676888,
0.037362441420555115,
-0.006914691999554634,
0.026041489094495773,
0.05610967054963112,
-0.0164533369243145,
0.016370821744203568,
0.05053171142935753,
0.00761193735525012,
-0.03442493453621864,
-0.04373253881931305,
0.0007911050925031304,
-0.013301292434334755,
-0.03095933608710766,
0.012014071457087994,
-0.008144154213368893,
0.04082803800702095,
-0.02987014874815941,
-0.03584417700767517,
-0.006704280618578196,
-0.03013419546186924,
-0.0716223493218422,
-0.012987738475203514,
0.008895033039152622,
-0.02175075002014637,
-0.05974029749631882,
0.012657681480050087,
-0.021684737876057625,
-0.01816963218152523,
0.03171846643090248,
-0.04043196886777878,
0.06419606506824493,
0.012162596918642521,
0.019275322556495667,
0.009324107319116592,
-0.0036265000235289335,
0.03719741106033325,
0.07413078099489212,
0.006889937911182642,
0.013878892175853252,
0.015760216861963272,
0.015760216861963272,
-0.02519984357059002,
-0.022938953712582588,
0.01830165460705757,
0.048419345170259476,
0.062380753457546234,
0.04917847737669945,
0.01278145331889391,
0.03303869441151619,
0.025760941207408905,
-0.012674184516072273,
-0.04191722720861435,
-0.008597982116043568,
-0.029655611142516136,
0.013326046988368034,
-0.01920931041240692,
-0.00839582271873951,
0.040266942232847214,
-0.029606103897094727,
-0.029655611142516136,
0.03013419546186924,
-0.051323845982551575,
-0.046736057847738266,
-0.0057759955525398254,
-0.03173496946692467,
-0.032824158668518066,
0.029012000188231468,
0.014134686440229416,
0.034226901829242706,
-0.09644262492656708,
0.042940400540828705,
-0.03970584273338318,
-0.04376554489135742,
0.016651369631290436,
0.021222658455371857,
0.025892963632941246,
-0.09499037265777588,
-0.027444230392575264,
0.027196688577532768,
-0.012129590846598148,
0.03914474695920944,
0.05980630964040756,
0.032329071313142776,
-0.050498705357313156,
0.00018243379599880427,
0.009918210096657276,
-0.01577671989798546,
0.024176668375730515,
0.011023900471627712,
-0.011766528710722923,
-0.007067343220114708,
-0.014043920673429966,
0.02660258486866951,
0.02515033632516861,
0.07498892396688461,
0.032824158668518066,
0.01578497141599655,
-0.016164535656571388,
0.01429971493780613,
-0.03610822558403015,
-0.05584562569856644,
-0.007913114503026009,
-0.02990315482020378,
0.003954494372010231,
0.05138985812664032,
-0.029028503224253654,
-0.07769539207220078,
-0.001961775589734316,
0.020199481397867203,
-0.029622606933116913,
-0.03330273926258087,
-0.0038699170108884573,
-0.0064031039364635944,
-0.07505493611097336,
-0.029391566291451454,
0.03371531143784523,
-0.028401395305991173,
-0.04957454651594162,
-0.06554929912090302,
-0.007310760207474232,
0.021107139065861702,
0.04251132905483246,
-0.06346993893384933,
0.013293041847646236,
0.006370097864419222,
-0.02061205357313156,
0.015141360461711884,
0.0035109801683574915,
-0.01930832862854004,
-0.040266942232847214,
0.033335745334625244,
0.043072424829006195,
-0.004934350494295359,
-0.005953401327133179,
-0.047693222761154175,
-0.029028503224253654,
-0.03155343979597092,
-0.031520433723926544,
0.026817122474312782,
-0.017922088503837585,
0.02772478014230728,
-0.008028633892536163,
-0.007867731153964996,
0.0018926700577139854,
-0.029754629358649254,
-0.02470475807785988,
0.041983235627412796,
-0.015586936846375465,
-0.007950245402753353,
-0.0910957008600235,
0.014068675227463245,
-0.008131776936352253,
0.017327986657619476,
0.0011861419770866632,
-0.032197050750255585,
-0.0022031296975910664,
-0.021833263337612152,
-0.03285716474056244,
0.009711924009025097,
0.08667293936014175,
0.023087479174137115,
-0.08838924020528793,
0.022047800943255424,
-0.03561313822865486,
-0.0050704991444945335,
-0.05904717743396759,
0.02411065623164177,
0.03203202039003372,
-0.016857655718922615,
0.03008468635380268,
0.028269372880458832,
0.007781091146171093,
0.03163595497608185,
-0.030596274882555008,
0.07531898468732834,
0.11571794748306274,
0.07617713510990143,
-0.003020020667463541,
0.029391566291451454,
-0.05294112488627434,
0.04881541430950165,
-0.02704816311597824,
0.05135685205459595,
-0.0018039671704173088,
-0.008239044807851315,
0.020182978361845016,
-0.0260084830224514,
0.043072424829006195,
0.05370025709271431,
0.0034160888753831387,
0.013515830039978027,
-0.010372037999331951,
0.010726849548518658,
0.04412860795855522,
-0.01957237347960472,
-0.07327263057231903,
0.005252030212432146,
0.038220588117837906,
-0.017691049724817276,
-0.013532333076000214,
0.017245473340153694,
0.06733160465955734,
-0.019456854090094566,
-0.005103504750877619,
0.03779151290655136,
0.023136988282203674,
-0.03171846643090248,
0.04901345074176788,
-0.06838779151439667,
0.04327045753598213,
-0.04369953274726868,
-0.010099740698933601,
-0.0003609997220337391,
-0.03416088968515396,
-0.022856440395116806,
-0.001657504471950233,
-0.04630698263645172,
0.022872943431138992,
0.003733768593519926,
0.02665209397673607,
0.0838344544172287,
-0.02678411640226841,
0.014489497989416122,
-0.0509277805685997,
-0.026041489094495773,
0.014803051948547363,
0.011337454430758953,
-0.03425990417599678,
-0.00983569584786892,
0.0031706090085208416,
0.015504422597587109,
-0.026949144899845123,
-0.02483678050339222,
-0.04142213985323906,
-0.056802790611982346,
0.03567915037274361,
-0.01588398776948452,
-0.06267780810594559,
0.01793859153985977,
-0.04383155703544617,
0.01650284416973591,
-0.03475499153137207,
0.03970584273338318,
-0.038814689964056015,
0.01653585024178028,
-0.018186135217547417,
0.006819800473749638,
-0.060829486697912216,
-0.030068183317780495,
-0.010916631668806076,
0.028170356526970863,
0.01726197637617588,
0.0025125581305474043,
-0.03109136037528515,
-0.009109570644795895,
-0.02696564793586731,
-0.0077604628168046474,
-0.002601261017844081,
0.013854138553142548,
0.020265493541955948,
-0.012814459390938282,
0.04412860795855522,
-0.01105690561234951,
-0.04812229424715042,
0.10997495800256729,
-0.017691049724817276,
0.010982642881572247,
0.015446662902832031,
0.03439192846417427,
-0.024143662303686142,
0.004298991058021784,
0.04591091349720955,
0.0009308636072091758,
-0.02437470108270645,
0.005309790372848511,
-0.010545318014919758,
-0.029919657856225967,
0.015017588622868061,
-0.07043413817882538,
0.054393377155065536,
0.013235281221568584,
-0.00244654668495059,
0.07135830074548721,
0.024770770221948624,
0.02488628961145878,
-0.03180098161101341,
-0.024341696873307228,
-0.016181038692593575,
0.0036161858588457108,
-0.0037110771518200636,
0.02379710227251053,
-0.020562544465065002,
0.037593480199575424,
-0.016412079334259033,
0.0008535064989700913,
0.018417173996567726,
-0.00006369066977640614,
-0.02161872573196888,
-0.04736316576600075,
-0.04607594385743141,
0.026586083695292473,
0.03117387369275093,
0.004851836245507002,
-0.0007823379710316658,
0.003956557251513004,
0.034821003675460815,
-0.0714903250336647,
-0.017476512119174004,
-0.035415105521678925,
0.02764226496219635,
-0.012368882074952126,
-0.03825359418988228,
-0.02170124091207981,
0.03295617923140526,
-0.02727920189499855,
-0.06964200735092163,
-0.01148597989231348,
-0.025760941207408905,
-0.011518985964357853,
-0.05634071305394173,
-0.0874650776386261,
-0.056934814900159836,
0.08469259738922119,
-0.006139058154076338,
-0.06723258644342422,
-0.004369128029793501,
-0.016123279929161072,
-0.011494231410324574,
0.01785607822239399,
-0.020017949864268303,
0.0022485125809907913,
0.0816560760140419,
-0.03848463296890259,
-0.041257113218307495,
-0.02452322654426098,
0.06891588121652603,
0.012047076597809792,
0.03130589798092842,
0.07769539207220078,
-0.00854022242128849,
-0.016832901164889336,
0.03934278339147568,
-0.017691049724817276,
-0.022493377327919006,
0.009753181599080563,
0.021833263337612152,
-0.016981426626443863,
-0.05908018350601196,
-0.005536704324185848,
0.0487494021654129,
0.004103019833564758,
0.009266347624361515,
0.008853776380419731,
-0.04201624169945717,
-0.020017949864268303,
0.07558302581310272,
0.02678411640226841,
0.016164535656571388,
0.007698576897382736,
-0.044887736439704895,
-0.009942963719367981,
-0.035547126084566116,
-0.03449094668030739,
0.020826589316129684,
0.005169515963643789,
-0.045976925641298294,
0.023714587092399597,
-0.012764950282871723,
-0.021041126921772957,
0.01944035105407238,
-0.022625399753451347,
-0.028170356526970863,
0.035052042454481125,
-0.0369003601372242,
0.0631398856639862,
0.0258269514888525,
0.04231329262256622,
-0.021503206342458725,
0.0022959583438932896,
0.004092705436050892,
-0.015949999913573265,
0.027889806777238846,
-0.007649068720638752,
-0.00953864399343729,
-0.0679917186498642,
-0.049871597439050674,
0.015463165938854218,
-0.01952286623418331,
-0.01948986016213894,
0.0454818420112133,
0.04521779343485832,
0.02206430397927761,
0.00938186701387167,
0.042478322982788086,
-0.010735100135207176,
0.029012000188231468,
0.0607304684817791,
-0.07822348177433014,
-0.05393129587173462,
-0.08251422643661499,
0.00956339854747057,
0.011560242623090744,
-0.02546389028429985,
0.011700516566634178,
-0.030843816697597504,
-0.04303941875696182,
0.04422762244939804,
-0.005738864187151194,
-0.05016864836215973,
0.07558302581310272,
-0.03957382217049599,
-0.03538209944963455,
0.0063123381696641445,
0.0016049016267061234,
-0.032015517354011536,
0.07056616246700287,
0.03534909337759018,
0.005223150365054607,
-0.08568277209997177,
0.03521706908941269,
-0.03049725666642189,
0.00974493008106947,
-0.027345214039087296,
0.003766774432733655,
0.03696637228131294,
-0.013532333076000214,
0.0018565700156614184,
0.008404073305428028,
0.020628556609153748,
-0.003306757425889373,
-0.010050232522189617,
-0.06772767752408981,
0.06548328697681427,
-0.04251132905483246,
-0.008206039667129517,
0.0343589223921299,
-0.032329071313142776,
-0.04435964673757553,
0.015867484733462334,
0.014786548912525177,
-0.01396140642464161,
0.012137842364609241,
-0.05016864836215973,
0.032741643488407135,
0.02587646059691906,
-0.05676978453993797,
-0.05320516973733902,
-0.032015517354011536,
-0.018747230991721153,
-0.04812229424715042,
0.028566423803567886,
-0.031652458012104034,
-0.027840299531817436,
-0.007702702656388283,
-0.03143791854381561,
0.006419606506824493,
0.03538209944963455,
0.048155300319194794,
-0.030464250594377518,
-0.0019040156621485949,
0.0016502845101058483,
0.030035177245736122,
-0.0013604533160105348,
-0.036405276507139206,
0.10218561440706253,
-0.0012119276216253638,
0.016412079334259033,
-0.0361742340028286,
0.08337236940860748,
0.00960465520620346,
0.009159078821539879,
-0.027493739500641823,
-0.018862752243876457,
0.03095933608710766,
-0.013268287293612957,
-0.02519984357059002,
0.023450542241334915,
-0.01429971493780613,
-0.003645065939053893,
0.013449818827211857,
0.07459285855293274,
-0.040663011372089386,
0.01538065169006586,
-0.009035307914018631,
0.02447371929883957,
-0.03307170048356056,
0.033830832690000534,
-0.020067458972334862,
0.020182978361845016,
-0.031470924615859985,
-0.028219863772392273,
-0.008036885410547256,
-0.027213191613554955,
0.06614340096712112,
0.02307097613811493,
0.04604293778538704,
-0.029078012332320213,
-0.07327263057231903,
0.016049016267061234,
0.0020865784026682377,
0.024028142914175987,
0.04297340661287308,
-0.009365363977849483,
-0.06310687959194183,
-0.024407707154750824,
-0.037494461983442307,
0.017245473340153694,
0.014349223114550114,
-0.04399658367037773,
0.014596765860915184,
-0.025678426027297974,
-0.00718286307528615,
0.0036904485896229744,
0.022938953712582588,
-0.009687169454991817,
0.01160150021314621,
-0.013350801542401314,
0.06089549884200096,
-0.015595188364386559,
-0.037593480199575424,
-0.04386456310749054,
-0.025232849642634392,
-0.07347066700458527,
0.010528814978897572,
-0.03911174088716507,
0.08588080108165741,
-0.04158717021346092,
0.019176306203007698,
-0.029985668137669563,
0.008300931192934513,
-0.05333719402551651,
-0.004818830639123917,
0.11690615117549896,
-0.001657504471950233,
-0.025034815073013306,
-0.03812156990170479,
0.008197788149118423,
0.02881396748125553,
-0.003114911960437894,
0.05211598426103592,
0.03081081062555313,
0.004554785322397947,
0.03180098161101341,
-0.05016864836215973,
-0.009167330339550972,
0.05551556870341301,
0.007826474495232105,
-0.007405651733279228,
-0.016313062980771065,
0.01619754172861576,
-0.004959105048328638,
-0.027345214039087296,
-0.07254650443792343,
0.006873434875160456,
0.010281272232532501,
-0.019918933510780334,
-0.02772478014230728,
0.024308690801262856,
0.06650646775960922,
0.005936898291110992,
-0.04884842038154602,
0.021602224558591843,
0.03049725666642189,
0.010603077709674835,
-0.036273252218961716,
-0.0347219854593277,
-0.05914619565010071,
-0.06541727483272552,
0.008969295769929886,
-0.02792281284928322,
0.020133471116423607,
0.004402133636176586,
0.04518478736281395,
0.023037971928715706,
-0.056934814900159836,
0.0018586328951641917,
0.03732943534851074,
-0.001441936008632183,
0.04350150004029274,
0.01427496038377285,
0.012014071457087994,
-0.015570433810353279,
0.005994658451527357,
0.04046497493982315,
0.04175219684839249,
-0.04201624169945717,
-0.03325323387980461,
-0.01361484732478857,
0.003145854687318206,
-0.012467899359762669,
0.00854022242128849,
0.019060784950852394,
-0.04010191187262535,
-0.004897219128906727,
-0.018433677032589912,
-0.023945627734065056,
0.02180025726556778,
0.013194024562835693,
-0.01912679709494114,
0.0015161988558247685,
0.04369953274726868,
0.05686880275607109,
0.03135540336370468,
-0.010495808906853199,
0.025628918781876564,
0.05115881934762001,
-0.06997206062078476,
0.02288944646716118,
0.08614484965801239,
-0.011114666238427162,
-0.014918571338057518,
0.02665209397673607,
-0.014555509202182293,
-0.0024362325202673674,
-0.015636445954442024,
0.005305664613842964,
-0.00574298994615674,
-0.018054112792015076,
-0.029523588716983795,
0.004476396832615137,
0.012896973639726639,
-0.011106414720416069,
-0.07762937992811203,
-0.005610967054963112,
0.07677123695611954,
0.003083969233557582,
0.07314060628414154,
-0.01039679255336523,
0.05138985812664032
] |
721,964
|
apprise.url
|
__str__
|
Returns the url path
|
def __str__(self):
"""
Returns the url path
"""
return self.url(privacy=True)
|
(self)
|
[
-0.056701987981796265,
-0.02408490888774395,
0.02326192334294319,
0.00017701000615488738,
0.06069934368133545,
-0.007776368409395218,
0.04148516431450844,
-0.029274752363562584,
0.07161649316549301,
0.021061697974801064,
0.001152598881162703,
-0.001580887008458376,
0.01813926175236702,
0.012017260305583477,
0.007902335375547409,
0.010211732238531113,
0.010102560743689537,
-0.03698393702507019,
0.044441189616918564,
0.0019724348094314337,
-0.02512623555958271,
0.0007269351044669747,
0.042761627584695816,
-0.05697071552276611,
-0.028334198519587517,
0.05159611999988556,
0.0002905116125475615,
-0.019482910633087158,
-0.03973842039704323,
-0.006134597584605217,
0.01829042099416256,
-0.0027439831756055355,
0.05791127309203148,
0.05979238077998161,
0.007360677234828472,
0.020137939602136612,
-0.04145156964659691,
0.038932230323553085,
-0.10090804100036621,
-0.030097737908363342,
-0.054585739970207214,
0.04470992088317871,
-0.03140779584646225,
-0.05854950472712517,
0.022791646420955658,
0.009304769337177277,
-0.05310772731900215,
0.08176103979349136,
-0.03973842039704323,
-0.0411156602203846,
-0.006861007772386074,
0.04249290004372597,
-0.028149446472525597,
-0.028451766818761826,
-0.026251541450619698,
-0.0030756965279579163,
0.045549701899290085,
0.0629163607954979,
0.011379027739167213,
0.0741022452712059,
0.0010990628506988287,
-0.03584183752536774,
0.022254185751080513,
-0.030870335176587105,
0.01499848160892725,
0.035069238394498825,
-0.04363499954342842,
0.03809244930744171,
0.022506119683384895,
0.0643271952867508,
0.0419890321791172,
-0.043802957981824875,
-0.016988761723041534,
0.04699412360787392,
0.019650867208838463,
-0.06939946860074997,
-0.00959029421210289,
-0.0009814936202019453,
0.009808637201786041,
0.015099255368113518,
0.006890399847179651,
-0.03253310173749924,
-0.008561563678085804,
-0.05969160795211792,
-0.015393178910017014,
-0.03234834969043732,
-0.0029707239009439945,
-0.1039312481880188,
0.00615979079157114,
0.08263441175222397,
-0.039301734417676926,
0.01887826807796955,
-0.05031965300440788,
-0.022254185751080513,
-0.0020039265509694815,
0.01219361461699009,
0.004387853667140007,
-0.019113406538963318,
0.04454196244478226,
-0.039939966052770615,
-0.002154037356376648,
0.026738615706562996,
-0.02586524374783039,
-0.0005568795022554696,
0.0025949222035706043,
-0.06069934368133545,
-0.004041444044560194,
0.024504797533154488,
-0.025025462731719017,
-0.011026319116353989,
-0.005987635813653469,
-0.01902942918241024,
0.004669180139899254,
0.04605356976389885,
0.04434041678905487,
-0.01976843550801277,
-0.04638948291540146,
-0.041048478335142136,
0.04813622683286667,
-0.03886504843831062,
-0.01921418122947216,
0.025512535125017166,
-0.07961120456457138,
-0.025361374020576477,
0.035741064697504044,
0.10574517399072647,
-0.07390069216489792,
-0.035438742488622665,
0.012915825471282005,
-0.021498383954167366,
-0.012999803759157658,
0.032465919852256775,
-0.05616452917456627,
-0.0009547256049700081,
0.048001859337091446,
-0.01973484456539154,
0.010740794241428375,
0.002037517726421356,
0.02877088449895382,
0.16177533566951752,
-0.07846909761428833,
0.03496846556663513,
0.05445137619972229,
0.03296978771686554,
0.049043189734220505,
0.01187449786812067,
0.01835760474205017,
0.02742723561823368,
0.014368646778166294,
-0.02512623555958271,
0.09499598294496536,
0.04672539234161377,
0.05162971094250679,
-0.007066753692924976,
0.0049589043483138084,
-0.00692399125546217,
-0.027645578607916832,
-0.020759377628564835,
0.017165115103125572,
-0.04178748279809952,
0.011227866634726524,
-0.043467044830322266,
-0.004043543711304665,
0.014796934090554714,
0.004732163622975349,
0.0040708365850150585,
0.10776064544916153,
-0.007516036741435528,
0.03244912251830101,
0.028418175876140594,
-0.023329105228185654,
-0.05307413637638092,
-0.05502242594957352,
0.03018171526491642,
-0.017971305176615715,
0.03392713516950607,
0.02709132246673107,
0.05263745039701462,
0.018340809270739555,
-0.033288903534412384,
-0.0019356943666934967,
-0.02564690075814724,
-0.06557007133960724,
0.04947987571358681,
0.079409658908844,
-0.004912716802209616,
0.015493952669203281,
0.00848598312586546,
-0.023362696170806885,
0.0629163607954979,
-0.046221524477005005,
-0.0011630961671471596,
0.0007059405907057226,
0.011832509189844131,
-0.009800239466130733,
-0.08196258544921875,
0.008553165942430496,
-0.03587542846798897,
-0.03842836245894432,
0.05834795907139778,
0.01988600566983223,
-0.012773063033819199,
-0.044474780559539795,
-0.0014538702089339495,
0.06506620347499847,
0.04279521852731705,
0.0031932657584547997,
0.019230976700782776,
0.019382135942578316,
0.0018139261519536376,
0.007961120456457138,
0.015796273946762085,
-0.022539712488651276,
0.02175031788647175,
0.0009972394909709692,
-0.04457555338740349,
-0.04161952808499336,
0.028267014771699905,
-0.02025550790131092,
0.03407829627394676,
0.06342022866010666,
-0.01672842912375927,
0.013075384311378002,
-0.02709132246673107,
-0.0027124914340674877,
-0.002109948778524995,
0.047330036759376526,
-0.035741064697504044,
-0.05119302496314049,
0.00023448248975910246,
-0.010648418217897415,
-0.04037665203213692,
0.01035449467599392,
0.06886201351881027,
0.025143031030893326,
0.01887826807796955,
-0.05139457434415817,
0.01740025356411934,
-0.05586220696568489,
0.012957815080881119,
-0.003833598457276821,
-0.016190970316529274,
0.021716726943850517,
0.028938839212059975,
0.03145818039774895,
-0.0062017799355089664,
-0.02564690075814724,
0.009279576130211353,
0.028720496222376823,
-0.061270393431186676,
0.03977201133966446,
-0.038193222135305405,
-0.06207658350467682,
-0.018189648166298866,
-0.0010318803833797574,
-0.0552239716053009,
-0.04685975983738899,
0.017719371244311333,
0.003909178543835878,
-0.019113406538963318,
-0.031239839270710945,
-0.016518484801054,
-0.008968857116997242,
0.004648185800760984,
-0.03476691618561745,
-0.043802957981824875,
0.01005217432975769,
0.01213482953608036,
-0.009120017290115356,
0.013360909186303616,
0.08155949413776398,
0.010085765272378922,
-0.04528097063302994,
0.016753623262047768,
-0.03809244930744171,
-0.07893937826156616,
0.0043248701840639114,
0.020070755854249,
-0.0774613618850708,
-0.041653119027614594,
-0.0031974646262824535,
-0.021196063607931137,
0.026520272716879845,
0.00720951659604907,
-0.0046943738125264645,
-0.05203280597925186,
0.046187933534383774,
0.03480050712823868,
-0.018004896119236946,
-0.0019881806802004576,
0.05646684765815735,
0.006709847133606672,
0.0011704441858455539,
0.004904318600893021,
0.02646988444030285,
0.02497507631778717,
0.03799167647957802,
0.006042221561074257,
0.010715601034462452,
-0.017265889793634415,
-0.03668161854147911,
-0.005886862054467201,
0.00701636727899313,
-0.0034976862370967865,
0.012865439057350159,
-0.0025235407520085573,
-0.028149446472525597,
-0.020137939602136612,
0.03597620129585266,
0.027259279042482376,
0.0055089606903493404,
-0.020322691649198532,
-0.00888487882912159,
0.10735755413770676,
-0.02861972339451313,
0.0435006357729435,
-0.03204602748155594,
-0.010152948088943958,
0.01040488202124834,
0.08102203160524368,
-0.026453088968992233,
0.039906375110149384,
-0.007696589455008507,
0.0049547054804861546,
0.0009751952602528036,
-0.02665463648736477,
-0.004950506612658501,
0.044474780559539795,
-0.01037129107862711,
0.024336842820048332,
-0.0010387036018073559,
0.008015706203877926,
0.019533297047019005,
-0.013360909186303616,
-0.06701449304819107,
0.019499706104397774,
0.01776975765824318,
-0.07067593932151794,
0.002229617442935705,
-0.038898639380931854,
0.040141511708498,
-0.03802526742219925,
-0.03654725104570389,
0.012294388376176357,
-0.048976004123687744,
0.020053960382938385,
-0.027595190331339836,
-0.013780799694359303,
0.029308343306183815,
-0.026033198460936546,
-0.008767309598624706,
0.01792091876268387,
0.0075286333449184895,
0.03564028814435005,
0.017265889793634415,
0.01174853090196848,
-0.027830328792333603,
0.028418175876140594,
-0.0051016672514379025,
0.00622697314247489,
0.05519038066267967,
-0.08841210603713989,
0.004635589197278023,
-0.016938375309109688,
0.045213788747787476,
0.010875158943235874,
0.057105083018541336,
-0.010329301469027996,
0.0538131408393383,
-0.06355459988117218,
-0.03809244930744171,
-0.008339021354913712,
0.005584541242569685,
-0.026419498026371002,
0.021733522415161133,
0.008544768206775188,
0.04175389185547829,
0.017198707908391953,
-0.027528008446097374,
0.037454213947057724,
-0.0052780210971832275,
0.05280540511012077,
0.0765879899263382,
0.06271481513977051,
0.01713152416050434,
-0.005693712737411261,
0.02114567533135414,
0.05156252905726433,
-0.0250086672604084,
0.00685680890455842,
0.0373198501765728,
-0.041653119027614594,
-0.03236514329910278,
0.0008266590302810073,
-0.039973556995391846,
-0.07678954303264618,
-0.013915164396166801,
-0.005996033549308777,
-0.01780334860086441,
0.038562726229429245,
0.06822377443313599,
-0.019969983026385307,
-0.04303035885095596,
0.01746743731200695,
-0.011437811888754368,
0.036782391369342804,
0.018609538674354553,
0.04565047472715378,
-0.02482391521334648,
-0.043769367039203644,
-0.017366662621498108,
-0.04776672273874283,
-0.053880322724580765,
-0.02803187631070614,
0.10278914868831635,
-0.012663891538977623,
0.0029203370213508606,
-0.01802169159054756,
-0.02285882830619812,
0.030282489955425262,
0.030232101678848267,
0.005445977207273245,
0.06153912469744682,
0.04820340871810913,
0.01170654222369194,
0.007440456189215183,
0.030786357820034027,
0.0030484036542475224,
0.08370932936668396,
0.029577072709798813,
0.002785972086712718,
-0.029745029285550117,
-0.04598638787865639,
-0.0259828120470047,
0.007759572938084602,
0.021464793011546135,
0.031206248328089714,
-0.021364018321037292,
-0.023026784881949425,
-0.0016533180605620146,
-0.009791841730475426,
-0.050722748041152954,
-0.023245127871632576,
0.0339607298374176,
0.04823699966073036,
-0.04544892534613609,
-0.059993926435709,
0.016375722363591194,
0.02772955596446991,
-0.012034056708216667,
-0.03342326730489731,
0.055593475699424744,
0.013990744948387146,
-0.039939966052770615,
-0.04790108650922775,
-0.01228599064052105,
0.033036969602108,
-0.022422142326831818,
-0.0013499472988769412,
0.026083586737513542,
0.026033198460936546,
0.02561330795288086,
-0.04061179235577583,
-0.026301929727196693,
0.037185486406087875,
-0.010556042194366455,
-0.03553951531648636,
0.02218700386583805,
-0.05767613276839256,
-0.03977201133966446,
-0.005403988063335419,
0.00014000717783346772,
-0.04511301591992378,
0.00045164450420998037,
-0.029157182201743126,
0.06106884777545929,
-0.03627852350473404,
0.0013887871755287051,
-0.020070755854249,
-0.04212339594960213,
-0.06829095631837845,
-0.04175389185547829,
-0.010732396505773067,
0.07000411301851273,
-0.023362696170806885,
-0.04366859048604965,
-0.037151895463466644,
0.06876123696565628,
-0.0010759689612314105,
0.01914699748158455,
0.0373198501765728,
0.02880447544157505,
-0.05801204591989517,
-0.015107653103768826,
-0.025042258203029633,
0.05613093823194504,
-0.03040005825459957,
0.01694677211344242,
-0.03725266829133034,
0.0067476374097168446,
0.014603785239160061,
-0.040712565183639526,
0.03936891630291939,
0.021716726943850517,
0.0477331317961216,
0.01575428433716297,
-0.01761859655380249,
0.007604213431477547,
-0.019079815596342087,
-0.025512535125017166,
0.014956492930650711,
0.0016186771681532264,
0.03137420490384102,
0.03446459770202637,
0.007427859585732222,
-0.00615979079157114,
-0.022758055478334427,
0.0126386983320117,
0.007944324985146523,
-0.008410402573645115,
0.02534457854926586,
-0.005462773144245148,
0.016199368983507156,
-0.01219361461699009,
0.0006219625356607139,
-0.0023954741191118956,
-0.04991656169295311,
0.02494148351252079,
-0.052503082901239395,
0.10278914868831635,
0.043836548924446106,
0.018458377569913864,
-0.0038210018537938595,
0.023463470861315727,
0.01397394947707653,
0.08626226335763931,
-0.11004485189914703,
0.009850626811385155,
0.024958280846476555,
0.04017510637640953,
-0.014276270754635334,
-0.0547872893512249,
-0.03906659409403801,
-0.01887826807796955,
-0.011572176590561867,
-0.04084692895412445,
0.0027292869053781033,
0.020121144130825996,
0.0245719812810421,
-0.004308074712753296,
0.0031449783127754927,
-0.0033171335235238075,
-0.0031659728847444057,
-0.043433453887701035,
0.04128361493349075,
0.04037665203213692,
-0.024622367694973946,
0.021280040964484215,
0.00923758652061224,
0.004702771548181772,
-0.03496846556663513,
-0.05115943402051926,
-0.013562456704676151,
0.022170208394527435,
-0.04544892534613609,
0.02211982198059559,
0.003556470852345228,
-0.01627494767308235,
-0.019348544999957085,
-0.051864851266145706,
-0.0011536485981196165,
-0.054652921855449677,
-0.004138018935918808,
0.0552239716053009,
-0.03248271346092224,
0.03453177958726883,
0.05297335982322693,
-0.006025426089763641,
0.04178748279809952,
0.0205578301101923,
-0.007956921122968197,
0.0339607298374176,
0.05787767842411995,
-0.0391673669219017,
-0.05525756627321243,
-0.04931191727519035,
0.04628870636224747,
0.0044676330871880054,
0.06046420335769653,
-0.036076974123716354,
-0.009220791049301624,
-0.021095288917422295,
-0.03604338318109512,
-0.02631872519850731,
0.04850572720170021,
-0.0707431212067604,
-0.025361374020576477,
-0.0929805114865303,
0.00685680890455842,
0.013822789303958416,
0.02000357396900654,
0.03691675513982773,
0.015947433188557625,
0.01955009251832962,
-0.003426305018365383,
0.04000714793801308,
0.015048868954181671,
0.013041793368756771,
-0.04571765661239624,
-0.025227010250091553,
-0.031424589455127716,
0.013898368924856186,
-0.0019283462315797806,
0.0041212234646081924,
0.0005595038528554142,
0.0068316152319312096,
-0.025445353239774704,
0.0035648688208311796,
-0.024857506155967712,
0.01976843550801277,
-0.014099916443228722,
0.028703700751066208,
0.0003566443338058889,
0.05119302496314049,
-0.07806600630283356,
-0.020356282591819763,
0.010841568000614643,
-0.02178390882909298,
-0.009203995577991009,
-0.0172490943223238,
0.009808637201786041,
-0.018760699778795242,
-0.00844399444758892,
-0.0083936071023345,
-0.011446209624409676,
-0.030601605772972107,
0.020457055419683456,
0.0000686914281686768,
-0.01022012997418642,
0.004614594392478466,
-0.06533493101596832,
0.007553826551884413,
-0.03839477151632309,
0.022220594808459282,
-0.0746397003531456,
0.07296013832092285,
-0.09042757749557495,
-0.04702771455049515,
-0.010975932702422142,
-0.07477406412363052,
-0.01906302012503147,
0.046255115419626236,
0.08915110677480698,
0.015493952669203281,
-0.015603124164044857,
0.012084443122148514,
0.03530437871813774,
0.03496846556663513,
-0.029425913468003273,
-0.03846195340156555,
-0.00736907497048378,
-0.06002751737833023,
0.012126431800425053,
-0.0419890321791172,
0.01715671829879284,
0.036815982311964035,
-0.008024103939533234,
-0.04780031368136406,
-0.033322494477033615,
-0.01639251783490181,
-0.0049589043483138084,
0.07900656014680862,
0.003508183639496565,
-0.008234049193561077,
0.01562831737101078,
0.008901674300432205,
-0.0029140387196093798,
-0.03379277139902115,
0.011345435865223408,
0.013243339955806732,
-0.0035921616945415735,
-0.05549270287156105,
-0.00592045346274972,
-0.004375257063657045,
-0.0073018926195800304,
0.08270159363746643,
-0.01081637479364872,
0.005513159558176994,
-0.007919130846858025,
-0.048001859337091446,
-0.05418264493346214,
-0.05455214902758598,
-0.05693712458014488,
-0.015796273946762085,
0.08525452762842178,
0.008313828147947788,
-0.00906963087618351,
-0.02524380572140217,
0.043802957981824875,
0.005483767483383417,
0.017853735014796257,
0.03137420490384102,
0.02393374778330326,
-0.02962746098637581,
0.013218146748840809,
-0.028199832886457443,
0.05542552098631859,
-0.03453177958726883,
-0.03088713064789772,
-0.021313631907105446,
0.0019892302807420492,
0.01371361780911684,
-0.03033287636935711,
-0.038562726229429245,
0.033356085419654846,
-0.043769367039203644,
0.0055089606903493404,
0.023883361369371414,
0.005403988063335419,
-0.00566851906478405,
0.060161884874105453,
-0.04319831356406212,
-0.01817285269498825,
-0.02803187631070614,
0.05132739245891571,
0.03392713516950607,
-0.05015169829130173,
0.005412386264652014,
-0.007222113199532032,
-0.043467044830322266,
0.0022905017249286175,
0.044508371502161026,
0.007427859585732222,
0.03530437871813774,
0.01018653903156519,
-0.0007579019875265658,
-0.023110762238502502,
-0.021397609263658524,
0.03725266829133034,
0.03290260583162308,
0.03621134161949158,
0.05482088029384613,
-0.012462344020605087,
-0.013663230463862419,
-0.0016270749038085341,
-0.008217253722250462,
0.043769367039203644,
-0.011395823210477829,
0.01215162593871355,
0.020524239167571068,
0.02393374778330326,
0.034733325242996216,
-0.019113406538963318,
-0.011269856244325638,
-0.0009563001804053783,
-0.05616452917456627,
0.010178141295909882,
0.025143031030893326,
-0.022875623777508736,
0.02175031788647175,
-0.035808246582746506,
0.009976593777537346,
0.01750102825462818,
0.012915825471282005,
0.02635231614112854,
0.07067593932151794,
-0.006063215900212526,
0.002582325367256999
] |
721,965
|
apprise.attachment.base
|
download
|
This function must be over-ridden by inheriting classes.
Inherited classes MUST populate:
- detected_name: Should identify a human readable filename
- download_path: Must contain a absolute path to content
- detected_mimetype: Should identify mimetype of content
If a download fails, you should ensure these values are set to None.
|
def download(self):
"""
This function must be over-ridden by inheriting classes.
Inherited classes MUST populate:
- detected_name: Should identify a human readable filename
- download_path: Must contain a absolute path to content
- detected_mimetype: Should identify mimetype of content
If a download fails, you should ensure these values are set to None.
"""
raise NotImplementedError(
"download() is implimented by the child class.")
|
(self)
|
[
0.01323011890053749,
-0.03373201936483383,
-0.07946769893169403,
0.04074285179376602,
0.00874614343047142,
-0.06134043261408806,
0.01235159020870924,
0.05890490859746933,
0.035280317068099976,
0.02870439924299717,
0.05535599961876869,
0.03195756673812866,
0.027938948944211006,
0.014908891171216965,
-0.00009439017594559118,
0.024320455268025398,
0.008750492706894875,
0.05873094126582146,
-0.011125129647552967,
0.01303875632584095,
-0.04644893854856491,
0.026164496317505836,
0.009037536568939686,
-0.025381648913025856,
-0.008885316550731659,
0.09637719392776489,
0.002726918086409569,
-0.03834211826324463,
0.012168926186859608,
0.022441621869802475,
-0.024477025493979454,
-0.014221725054085255,
0.017083467915654182,
0.07668423652648926,
0.009933462366461754,
0.06388033926486969,
-0.03213153034448624,
0.0718131884932518,
-0.1145392507314682,
-0.0009818209800869226,
-0.07466623187065125,
-0.00714130699634552,
0.016526775434613228,
-0.03608056157827377,
0.0342017263174057,
0.022911330685019493,
-0.07278739660978317,
-0.003966426011174917,
-0.04133433476090431,
-0.050415363162755966,
-0.03795939311385155,
0.053894683718681335,
0.011847089044749737,
-0.02910452149808407,
-0.0128386951982975,
0.05810466408729553,
0.04004698619246483,
0.052050646394491196,
-0.03917715698480606,
0.0745270624756813,
0.003401036374270916,
-0.03213153034448624,
0.04227375239133835,
-0.026181891560554504,
-0.020754151046276093,
0.028147708624601364,
0.00032890457077883184,
-0.032270703464746475,
-0.036672044545412064,
0.08607840538024902,
0.05072850361466408,
-0.015700437128543854,
-0.022372035309672356,
0.025920942425727844,
0.08308619260787964,
0.018266435712575912,
-0.023276658728718758,
-0.05577351897954941,
0.046483732759952545,
0.024320455268025398,
0.047666702419519424,
-0.05483410134911537,
-0.037507083266973495,
-0.06534165143966675,
0.03740270435810089,
-0.055529966950416565,
0.032201118767261505,
-0.06809031963348389,
0.001808159751817584,
0.08002439141273499,
-0.04001219570636749,
0.0402209535241127,
-0.0009964993223547935,
-0.016465887427330017,
-0.03000914491713047,
-0.047075215727090836,
-0.048640910536050797,
-0.009663814678788185,
-0.008098119869828224,
-0.015587358735501766,
-0.019571181386709213,
0.059009287506341934,
0.023763764649629593,
-0.003190102521330118,
-0.014326104894280434,
-0.07438788563013077,
-0.02595573663711548,
-0.0169008020311594,
-0.03827253356575966,
-0.030513647943735123,
-0.0393163301050663,
-0.01925804279744625,
-0.02489454299211502,
0.03962946683168411,
0.02004089020192623,
-0.07543168216943741,
-0.01683121547102928,
-0.0002504839503671974,
-0.006275825668126345,
-0.021728361025452614,
-0.01802288368344307,
0.05949639156460762,
-0.055460378527641296,
-0.013804206624627113,
0.027625810354948044,
-0.01625712774693966,
-0.0059496392495930195,
-0.00029492683825083077,
0.05608665943145752,
-0.0037489687092602253,
0.004901493899524212,
0.007950249128043652,
-0.041055988520383835,
0.028947953134775162,
0.042169373482465744,
0.005305964965373278,
0.01146436296403408,
0.023868143558502197,
-0.008994045667350292,
0.020162666216492653,
-0.02339843474328518,
-0.022319845855236053,
0.08955772966146469,
-0.0015569962561130524,
-0.0062279850244522095,
0.008050279691815376,
0.010759800672531128,
-0.0759187862277031,
-0.029504643753170967,
-0.01202105451375246,
0.03955988213419914,
0.010307488963007927,
-0.038237739354372025,
-0.009629021398723125,
0.001082938746549189,
-0.028130311518907547,
-0.005810466594994068,
0.03882922604680061,
-0.05490368977189064,
0.03976863995194435,
0.021328238770365715,
-0.03228810057044029,
0.012081942521035671,
0.005201585125178099,
0.028008535504341125,
-0.00884182471781969,
0.02595573663711548,
-0.021084686741232872,
0.051006849855184555,
0.020354028791189194,
-0.026234081014990807,
0.06095770746469498,
-0.024390041828155518,
-0.03275780752301216,
0.05424261838197708,
0.029765592887997627,
0.04495282843708992,
0.007241337094455957,
0.013508464209735394,
0.04404820501804352,
0.020214855670928955,
-0.056121449917554855,
-0.03955988213419914,
0.028078122064471245,
0.059844326227903366,
0.023241866379976273,
-0.02280694991350174,
0.05006743222475052,
0.023798556998372078,
0.02974819578230381,
-0.05918325483798981,
-0.044256966561079025,
-0.029991749674081802,
-0.0070238797925412655,
0.0359065942466259,
-0.07626672089099884,
-0.0019397215219214559,
-0.02174575813114643,
-0.009716004133224487,
0.05598227679729462,
-0.002970470581203699,
0.0027203941717743874,
-0.002248511416837573,
0.0003897926944773644,
-0.038759637624025345,
0.048327770084142685,
0.03621973469853401,
-0.03040926717221737,
-0.06015746295452118,
0.035802215337753296,
-0.02044101245701313,
0.0252250786870718,
-0.020127873867750168,
0.004836256615817547,
0.04303920269012451,
-0.09101904183626175,
-0.053233616054058075,
0.015395996160805225,
-0.0016070115379989147,
0.040847230702638626,
0.015952687710523605,
0.04109078273177147,
-0.02705172263085842,
0.046762075275182724,
0.0222154650837183,
0.004858002066612244,
0.06541123986244202,
-0.053442373871803284,
-0.02385074645280838,
-0.028791382908821106,
-0.0615839846432209,
-0.026721186935901642,
0.01958857849240303,
0.07257863879203796,
0.04370027408003807,
0.048466943204402924,
0.01353455986827612,
0.01946680247783661,
-0.06217547133564949,
0.004196931142359972,
0.0012416827958077192,
-0.01196016650646925,
-0.02456400729715824,
0.04512679576873779,
-0.006932547315955162,
-0.05873094126582146,
0.001080764108337462,
0.07209153473377228,
-0.019710354506969452,
-0.03910756856203079,
0.06520248204469681,
-0.017805425450205803,
-0.055669140070676804,
-0.01835341937839985,
0.022198069840669632,
0.0045318156480789185,
-0.056121449917554855,
-0.06311488896608353,
0.0589744932949543,
0.01868395507335663,
-0.03715915232896805,
-0.004103424493223429,
0.0006420434801839292,
0.04672728478908539,
-0.03531511127948761,
-0.06443703174591064,
-0.007315272931009531,
-0.028600020334124565,
-0.03955988213419914,
0.007293527014553547,
0.05024139955639839,
0.05820904299616814,
-0.01866655796766281,
-0.03230549767613411,
-0.02646023780107498,
-0.013317101635038853,
-0.0315922349691391,
0.0045274668373167515,
-0.02752143144607544,
0.004157789051532745,
0.0402209535241127,
-0.0029835179448127747,
0.021797947585582733,
-0.012882187031209469,
0.014030362479388714,
-0.04850173741579056,
-0.04467448592185974,
0.006314968224614859,
-0.05859176814556122,
-0.03618494048714638,
0.0074761915020644665,
0.027295274659991264,
-0.008820079267024994,
0.002422477351501584,
0.032670825719833374,
-0.018492592498660088,
-0.01880573108792305,
0.008802683092653751,
0.0529552698135376,
0.012673427350819111,
-0.0350019708275795,
0.0071326084434986115,
0.0051537444815039635,
-0.02174575813114643,
-0.07403995841741562,
-0.01925804279744625,
0.012769108638167381,
-0.034427884966135025,
0.009307184256613255,
0.014995874837040901,
0.048397358506917953,
-0.0008904887945391238,
-0.022128483280539513,
0.08740054816007614,
0.02444223128259182,
0.04122995585203171,
0.018162056803703308,
0.02247641421854496,
0.005945289973169565,
0.06426306068897247,
-0.04161268100142479,
0.052642129361629486,
-0.01490019354969263,
0.018196849152445793,
0.038098566234111786,
-0.029261091724038124,
0.012534254230558872,
0.034288711845874786,
-0.009681210853159428,
0.027538826689124107,
0.00628887303173542,
0.03472362458705902,
0.037576667964458466,
-0.024424834176898003,
-0.08934897184371948,
0.02877398580312729,
0.004475276917219162,
-0.034375693649053574,
0.11029448360204697,
0.010524946264922619,
-0.004457880277186632,
-0.006971689872443676,
-0.01398687157779932,
0.032462067902088165,
-0.0040795039385557175,
0.01802288368344307,
0.038028981536626816,
-0.02378115989267826,
0.05072850361466408,
-0.029174108058214188,
-0.03795939311385155,
-0.029991749674081802,
-0.054033856838941574,
-0.043143581598997116,
0.015900498256087303,
-0.017335718497633934,
0.01340408530086279,
-0.046344559639692307,
-0.02680817060172558,
-0.017935900017619133,
0.026547221466898918,
-0.0029443756211549044,
-0.020719358697533607,
-0.008132913149893284,
-0.015752626582980156,
-0.044465724378824234,
0.031800996512174606,
0.061827536672353745,
0.03910756856203079,
-0.057617560029029846,
-0.021015100181102753,
-0.0023898587096482515,
-0.05563434585928917,
-0.04711000993847847,
0.019623370841145515,
-0.045509520918130875,
-0.005014571826905012,
-0.032601241022348404,
-0.008967950008809566,
0.0235202107578516,
-0.016013575717806816,
0.028408657759428024,
-0.06555040925741196,
-0.0017831521108746529,
0.016413697972893715,
-0.03477581590414047,
0.01670943945646286,
0.06711610406637192,
0.003661985509097576,
0.0239203330129385,
0.06516768783330917,
-0.004401341546326876,
0.0007556650671176612,
-0.0035097652580589056,
0.009376770816743374,
-0.06516768783330917,
-0.023294055834412575,
0.009768194518983364,
-0.030513647943735123,
-0.007063021883368492,
-0.025312062352895737,
0.024720577523112297,
-0.07160443067550659,
0.04467448592185974,
0.01887531764805317,
0.019484199583530426,
0.06443703174591064,
-0.010281394235789776,
0.00844605267047882,
-0.048466943204402924,
-0.003403211012482643,
-0.037193942815065384,
-0.06986477226018906,
-0.010568438097834587,
0.03307094797492027,
0.03924674168229103,
0.014821908436715603,
-0.04317837581038475,
0.027347464114427567,
0.018857920542359352,
-0.02122385986149311,
0.05699128285050392,
0.06301050633192062,
0.00310529419220984,
0.010664119385182858,
-0.008872268721461296,
-0.008154659532010555,
-0.008137262426316738,
-0.003164007794111967,
-0.015317711979150772,
-0.0006175794987939298,
0.017379209399223328,
-0.08099859952926636,
0.0018494767136871815,
0.04429176077246666,
0.036324113607406616,
-0.03827253356575966,
-0.03474102169275284,
-0.06165357306599617,
-0.005166791845113039,
-0.07083898037672043,
-0.036672044545412064,
-0.0027812824118882418,
0.03785501420497894,
0.046762075275182724,
-0.030235301703214645,
-0.009063631296157837,
0.01123820710927248,
-0.014630545862019062,
-0.025781769305467606,
-0.06363678723573685,
0.04672728478908539,
0.04140392318367958,
-0.021850137040019035,
-0.06666379421949387,
0.003735921112820506,
0.037193942815065384,
-0.008228594437241554,
-0.024807559326291084,
-0.04331754893064499,
0.009237597696483135,
0.03378421068191528,
-0.002024529967457056,
-0.08322536200284958,
0.007210893090814352,
0.014587054029107094,
-0.014830606989562511,
-0.0023920333478599787,
0.005040666554123163,
-0.03663725405931473,
0.05643459036946297,
-0.0010421654442325234,
0.0018690478755161166,
-0.04450051859021187,
0.01307354960590601,
0.025207681581377983,
0.013317101635038853,
0.006915150675922632,
0.009498546831309795,
-0.03813336044549942,
0.021328238770365715,
-0.04029053822159767,
-0.028878366574645042,
-0.023868143558502197,
0.031870581209659576,
-0.07661465555429459,
-0.012081942521035671,
0.0018723097164183855,
0.0402209535241127,
0.01677032746374607,
0.022180672734975815,
0.042760856449604034,
-0.026094909757375717,
-0.02089332416653633,
0.036324113607406616,
0.03152265027165413,
0.004514419473707676,
0.05706086754798889,
-0.014039061032235622,
-0.06527206301689148,
0.028286881744861603,
-0.09373291581869125,
0.016692044213414192,
0.026025323197245598,
-0.030322283506393433,
-0.016744233667850494,
-0.001387379365041852,
0.018057677894830704,
0.026094909757375717,
0.030357077717781067,
-0.008585224859416485,
0.056260623037815094,
0.010455360636115074,
0.015639549121260643,
0.01802288368344307,
-0.002208281774073839,
-0.04853653162717819,
0.03615014627575874,
0.043282754719257355,
0.048640910536050797,
0.04154309630393982,
-0.012803901918232441,
0.005410344339907169,
-0.054277412593364716,
-0.048049427568912506,
0.03917715698480606,
-0.02024964988231659,
0.04088202491402626,
0.010968560352921486,
0.06047060340642929,
-0.012212417088449001,
-0.02358979731798172,
0.016787724569439888,
-0.009272390976548195,
0.03244467079639435,
0.08573047816753387,
-0.06294091790914536,
0.04961511865258217,
-0.045439936220645905,
0.02345062419772148,
0.04512679576873779,
0.03538469597697258,
-0.04286523908376694,
-0.07668423652648926,
-0.03119211457669735,
-0.03903798386454582,
-0.013551956042647362,
-0.0014221725286915898,
0.11078158766031265,
-0.009707306511700153,
-0.004627497401088476,
-0.0040795039385557175,
-0.011003353632986546,
-0.03536729887127876,
0.029974352568387985,
0.04717959463596344,
-0.012690824456512928,
-0.025781769305467606,
0.04495282843708992,
-0.015439487993717194,
0.002979168901219964,
0.010568438097834587,
0.005545168183743954,
0.009898669086396694,
0.030287491157650948,
0.03896839916706085,
0.06812510639429092,
0.02515549212694168,
-0.02115427330136299,
-0.07758886367082596,
0.012395082041621208,
0.08065066486597061,
-0.025781769305467606,
-0.0047666700556874275,
0.04383944720029831,
0.027608413249254227,
0.0256252009421587,
-0.010933767072856426,
0.0013232294004410505,
-0.029261091724038124,
-0.013804206624627113,
-0.05681731551885605,
0.04644893854856491,
0.010237902402877808,
-0.059844326227903366,
-0.06795114278793335,
0.0044035157188773155,
-0.002487714635208249,
-0.023433228954672813,
0.006267127115279436,
-0.03830732777714729,
-0.009141916409134865,
-0.019814733415842056,
-0.05138957500457764,
-0.004849303979426622,
0.006071415729820728,
0.036393698304891586,
-0.03677642345428467,
0.012795203365385532,
-0.058800529688596725,
0.003159658517688513,
0.02117167040705681,
-0.03334929421544075,
0.05601707100868225,
0.009437658824026585,
0.019275439903140068,
-0.04672728478908539,
0.0597747378051281,
-0.010481455363333225,
0.002544253598898649,
-0.02757362090051174,
0.0030009145848453045,
0.03775063529610634,
0.017579270526766777,
-0.02136303298175335,
0.02536425180733204,
-0.009985651820898056,
-0.028721796348690987,
-0.03715915232896805,
0.01749228686094284,
-0.013117040507495403,
-0.031105130910873413,
0.0061236051842570305,
0.04074285179376602,
-0.07146526128053665,
0.04411779344081879,
-0.014160837046802044,
0.02799113839864731,
-0.01768364943563938,
-0.012803901918232441,
0.009411564096808434,
0.015378599986433983,
0.008337323553860188,
0.01866655796766281,
0.04463969171047211,
-0.018318627029657364,
-0.02011047676205635,
0.0026203638408333063,
0.02818250097334385,
-0.027016928419470787,
0.054033856838941574,
0.06074894964694977,
-0.017013881355524063,
-0.01638760231435299,
-0.08183363825082779,
-0.0017690174281597137,
0.008572177961468697,
-0.011916675604879856,
0.03362764045596123,
-0.037715841084718704,
-0.004138217773288488,
0.03138347715139389,
0.042621683329343796,
0.022563397884368896,
0.006923849228769541,
0.03441048786044121,
0.01807507313787937,
-0.029713403433561325,
0.04161268100142479,
0.009211502969264984,
0.007976343855261803,
-0.03301875665783882,
0.03952508792281151,
-0.03218372166156769,
0.02948724664747715,
0.007393557578325272,
0.002948724664747715,
-0.08593923598527908,
-0.04244771972298622,
-0.05754797160625458,
-0.02915671095252037,
0.07995480298995972,
0.03529771417379379,
-0.0623842291533947,
0.0020538868848234415,
-0.023937730118632317,
-0.0035162889398634434,
-0.056260623037815094,
0.070003941655159,
0.008707000873982906,
0.045509520918130875,
-0.017779331654310226,
-0.0368112176656723,
0.015082857571542263,
0.006693344097584486,
0.016152748838067055,
-0.003298831405118108,
-0.011203414760529995,
-0.04999784752726555,
-0.04526596888899803,
0.008528686128556728,
0.009446357376873493,
-0.02411169558763504,
-0.0023420180659741163,
-0.009689909406006336,
0.0290871262550354,
0.0008209023508243263,
-0.03674163296818733,
0.025868752971291542,
-0.008124214597046375,
0.01840560883283615,
0.008350370451807976,
0.009359373711049557,
0.018718747422099113,
-0.01591789536178112,
-0.03788980841636658,
-0.07668423652648926,
0.014465278014540672,
0.006628106813877821,
-0.01199495978653431,
0.007323971018195152,
-0.020928116515278816,
-0.01610925793647766,
-0.022980917245149612,
-0.011003353632986546,
-0.04672728478908539,
-0.0037772380746901035,
0.02863481268286705,
0.0071978457272052765,
0.021450014784932137,
0.0031683568377047777,
-0.044326551258563995,
0.04791025444865227,
0.052120231091976166,
-0.015691738575696945,
-0.0020886799320578575,
-0.07076939195394516,
-0.008872268721461296,
0.06033143028616905,
0.06763800233602524,
0.04178664833307266,
0.037193942815065384,
-0.014830606989562511,
0.013908586464822292,
-0.02136303298175335,
-0.04422217234969139,
0.010307488963007927,
-0.016805121675133705,
-0.011420872062444687,
0.030304888263344765,
-0.014108647592365742,
-0.002158266492187977,
-0.02844345010817051,
0.024911940097808838,
0.0066368053667247295,
-0.01847519539296627,
0.023868143558502197,
0.06269736588001251,
0.006127954460680485,
0.03251425549387932,
0.001214500516653061,
-0.05942680686712265,
-0.018979696556925774,
0.03820294514298439,
-0.009611625224351883,
0.012203719466924667,
0.018509989604353905,
-0.013569353148341179,
0.023868143558502197,
0.012212417088449001,
-0.014160837046802044,
-0.019710354506969452,
-0.020145269110798836,
0.0028639163356274366,
-0.010507550090551376,
0.06996914744377136,
0.01597878336906433,
0.014517467468976974
] |
721,966
|
apprise.url
|
escape_html
|
Takes html text as input and escapes it so that it won't
conflict with any xml/html wrapping characters.
Args:
html (str): The HTML code to escape
convert_new_lines (:obj:`bool`, optional): escape new lines (
)
whitespace (:obj:`bool`, optional): escape whitespace
Returns:
str: The escaped html
|
@staticmethod
def escape_html(html, convert_new_lines=False, whitespace=True):
"""
Takes html text as input and escapes it so that it won't
conflict with any xml/html wrapping characters.
Args:
html (str): The HTML code to escape
convert_new_lines (:obj:`bool`, optional): escape new lines (\n)
whitespace (:obj:`bool`, optional): escape whitespace
Returns:
str: The escaped html
"""
if not isinstance(html, str) or not html:
return ''
# Escape HTML
escaped = sax_escape(html, {"'": "'", "\"": """})
if whitespace:
# Tidy up whitespace too
escaped = escaped\
.replace(u'\t', u' ')\
.replace(u' ', u' ')
if convert_new_lines:
return escaped.replace(u'\n', u'<br/>')
return escaped
|
(html, convert_new_lines=False, whitespace=True)
|
[
-0.01275679748505354,
-0.11311336606740952,
0.07388737052679062,
-0.013461900874972343,
0.007686550263315439,
-0.01786879450082779,
-0.051398295909166336,
0.00398939847946167,
-0.009495696052908897,
0.025921812281012535,
0.028185565024614334,
-0.03378927707672119,
0.02477138116955757,
0.041897963732481,
-0.009769387543201447,
-0.03833533823490143,
-0.0028575225733220577,
-0.02581048011779785,
0.046907905489206314,
-0.04416171461343765,
-0.02150564081966877,
-0.0072551388293504715,
0.023342620581388474,
-0.025068266317248344,
0.020540762692689896,
0.05266005918383598,
-0.030467871576547623,
0.00824784953147173,
-0.03952287882566452,
0.007663356140255928,
0.03748179227113724,
-0.029076220467686653,
0.051732294261455536,
0.0062253172509372234,
0.025105377659201622,
-0.03102453239262104,
-0.026385696604847908,
0.011216703802347183,
-0.027981456369161606,
-0.005195495672523975,
-0.03328828513622284,
0.00264645554125309,
0.029373105615377426,
-0.03764878958463669,
-0.009500334970653057,
-0.04980253800749779,
-0.008804509416222572,
0.03219351917505264,
-0.023880725726485252,
-0.030913200229406357,
0.03185952082276344,
0.04746456444263458,
0.03299139812588692,
0.017961570993065834,
-0.052771393209695816,
0.03417893871665001,
0.0128217414021492,
0.05425582081079483,
0.04226906970143318,
-0.03863222151994705,
-0.011151760816574097,
0.024010611698031425,
0.021616972982883453,
0.016412200406193733,
0.018119292333722115,
0.04334527999162674,
-0.03347383812069893,
-0.02009543590247631,
0.004420810379087925,
-0.014491721987724304,
-0.03826111555099487,
0.008113323710858822,
0.024660049006342888,
-0.00402418989688158,
-0.007041752338409424,
0.06442414969205856,
-0.025198154151439667,
-0.0058588492684066296,
0.004539100453257561,
0.011819752864539623,
0.06665078550577164,
-0.00480583356693387,
0.07719022035598755,
0.00160387740470469,
0.05685356631875038,
-0.055220697075128555,
-0.028501005843281746,
0.011541422456502914,
0.00361597235314548,
0.04226906970143318,
0.02944732829928398,
-0.039077550172805786,
-0.043271057307720184,
-0.010502323508262634,
-0.004893971607089043,
0.023101400583982468,
0.027981456369161606,
-0.035811811685562134,
-0.008280321024358273,
-0.023509617894887924,
-0.016003983095288277,
0.10784364491701126,
-0.009908552281558514,
-0.038409557193517685,
-0.013851562514901161,
-0.0693969801068306,
-0.002825050847604871,
-0.019019225612282753,
-0.0031776023097336292,
-0.04531214386224747,
-0.04108152538537979,
-0.0512869656085968,
-0.003240226535126567,
-0.006457258947193623,
0.04605435952544212,
-0.09032740443944931,
-0.03490259870886803,
-0.007626245729625225,
0.0492829866707325,
-0.03087608888745308,
-0.0019796229898929596,
-0.006443342659622431,
-0.023286953568458557,
0.006554674357175827,
0.02100464701652527,
0.04824388772249222,
0.04000531882047653,
-0.0055480473674833775,
0.0056872121058404446,
0.014185559004545212,
0.01204241719096899,
0.00119334040209651,
0.03345528244972229,
-0.012459912337362766,
0.046202801167964935,
-0.02167263999581337,
-0.050396308302879333,
0.03837244585156441,
0.029855545610189438,
0.002440027426928282,
0.007909214124083519,
-0.07704178243875504,
0.023157067596912384,
0.012200137600302696,
-0.05065608397126198,
-0.0310059767216444,
0.03035653941333294,
-0.04019087180495262,
-0.0028644809499382973,
0.0071252514608204365,
0.0395599901676178,
-0.002725315745919943,
-0.01890789344906807,
0.0367952436208725,
-0.007858186960220337,
0.03575614467263222,
0.05533203110098839,
-0.0055062975734472275,
0.0703989639878273,
0.03018954209983349,
-0.007380387280136347,
0.0023391328286379576,
0.021635528653860092,
0.002507290570065379,
0.008730288594961166,
0.03143274784088135,
0.014009282924234867,
-0.06126973778009415,
0.03584891930222511,
0.006990725174546242,
0.04590591415762901,
0.01940888725221157,
-0.04802122339606285,
0.0590059868991375,
-0.010177604854106903,
0.03777867555618286,
0.013072238303720951,
0.0440874919295311,
0.0011544901644811034,
-0.022915847599506378,
0.024511607363820076,
-0.021950969472527504,
0.02011399157345295,
-0.005487742368131876,
0.019909881055355072,
0.007807160262018442,
0.023453952744603157,
-0.02581048011779785,
0.01039099134504795,
0.026942357420921326,
0.06438703835010529,
-0.0593399852514267,
-0.010678599588572979,
-0.05859776958823204,
-0.05073030665516853,
-0.038595110177993774,
-0.03781578689813614,
-0.011021872982382774,
-0.019000669941306114,
0.01301657222211361,
-0.020021213218569756,
0.030078209936618805,
0.035811811685562134,
0.016857529059052467,
0.058337993919849396,
-0.03276873379945755,
-0.04906032234430313,
-0.05266005918383598,
-0.03985687345266342,
-0.03837244585156441,
-0.02480849251151085,
-0.009732277132570744,
-0.050359196960926056,
0.020039768889546394,
0.036646801978349686,
-0.0037922479677945375,
0.05225184187293053,
0.039448656141757965,
-0.04868921637535095,
-0.04902321472764015,
0.03538503870368004,
-0.04004242643713951,
-0.017265746369957924,
0.030634868890047073,
0.030634868890047073,
-0.032935731112957,
0.03742612525820732,
0.02827834151685238,
0.050878748297691345,
0.02167263999581337,
-0.00040241898386739194,
-0.047241900116205215,
0.04798411577939987,
0.014176281169056892,
0.010353880934417248,
-0.015827706083655357,
0.005019220057874918,
-0.07154940068721771,
-0.023713726550340652,
-0.010956929065287113,
0.01786879450082779,
0.03985687345266342,
0.011587810702621937,
0.01803579181432724,
0.024363163858652115,
-0.022600406780838966,
-0.018072903156280518,
0.052622951567173004,
0.0024794575292617083,
-0.007695828098803759,
-0.037871453911066055,
-0.026998022571206093,
-0.024196166545152664,
-0.01117031555622816,
-0.037017907947301865,
-0.01803579181432724,
-0.013684564270079136,
0.05863488093018532,
-0.015382378362119198,
-0.012394968420267105,
0.04683368280529976,
-0.05874621123075485,
-0.014194836840033531,
-0.017210079357028008,
0.009268393740057945,
-0.013591787777841091,
-0.06768988817930222,
0.013127904385328293,
0.02011399157345295,
0.04824388772249222,
0.09032740443944931,
0.006285622250288725,
0.04453282058238983,
-0.012265080586075783,
-0.04453282058238983,
-0.03605302795767784,
-0.05770711228251457,
-0.01039099134504795,
-0.03332539275288582,
-0.054367151111364365,
-0.019891327247023582,
-0.008600400760769844,
-0.009500334970653057,
-0.005487742368131876,
0.0350324846804142,
-0.05202917754650116,
-0.021802525967359543,
-0.015911206603050232,
0.06394170969724655,
0.006791254971176386,
-0.03705501928925514,
0.01924188993871212,
-0.012645465321838856,
-0.031302861869335175,
-0.012163026258349419,
-0.009217366576194763,
-0.019037781283259392,
-0.0590059868991375,
0.009166338481009007,
-0.06383037567138672,
-0.0025838313158601522,
-0.0030384373385459185,
0.04453282058238983,
0.003799206344410777,
-0.006280983332544565,
0.00506560830399394,
-0.047056347131729126,
0.04278861731290817,
-0.010261104442179203,
0.02601458877325058,
0.0030268400441855192,
0.007264416199177504,
-0.005831016227602959,
0.002978132339194417,
0.003778331447392702,
0.0033538781572133303,
0.010307492688298225,
-0.029744213446974754,
-0.01257124450057745,
0.0028644809499382973,
-0.02722068689763546,
-0.04315972700715065,
0.01787807233631611,
0.026385696604847908,
0.03781578689813614,
-0.04520081356167793,
0.07021341472864151,
-0.03586747497320175,
0.07552023977041245,
0.01854606345295906,
0.016226647421717644,
0.00822465494275093,
0.03451293706893921,
-0.012552688829600811,
-0.021932413801550865,
-0.02360239438712597,
-0.013981450349092484,
-0.022414853796362877,
-0.05110141262412071,
-0.05336516350507736,
0.012654743157327175,
0.0690629854798317,
0.001708251191303134,
-0.06438703835010529,
-0.05770711228251457,
-0.027480460703372955,
-0.025791924446821213,
-0.0031404916662722826,
-0.028371118009090424,
0.0042422148399055,
0.016560642048716545,
-0.016848251223564148,
0.03514381870627403,
0.00529291108250618,
-0.017590465024113655,
-0.002866800408810377,
0.010455935262143612,
0.04872632771730423,
-0.00937044806778431,
-0.09040162712335587,
0.04427304491400719,
-0.021208755671977997,
-0.009602389298379421,
0.016384366899728775,
0.005251161754131317,
0.0164678655564785,
-0.023658061400055885,
0.09181182831525803,
0.0066660065203905106,
0.08839765191078186,
0.04661101847887039,
0.010205438360571861,
-0.026923801749944687,
-0.06312527507543564,
0.03106164187192917,
0.03870644420385361,
0.00857720710337162,
0.004379060585051775,
-0.06995364278554916,
-0.029725657775998116,
-0.014593776315450668,
0.051398295909166336,
-0.03085753321647644,
-0.03863222151994705,
-0.002917827572673559,
-0.05692778900265694,
0.06464681029319763,
0.03518093004822731,
0.014946327544748783,
-0.05217762291431427,
-0.021357199177145958,
-0.014352557249367237,
0.0558144673705101,
0.028519561514258385,
-0.04661101847887039,
-0.03863222151994705,
0.08156928420066833,
0.04059908911585808,
-0.0022324395831674337,
0.023194177076220512,
0.035088151693344116,
0.01275679748505354,
0.059711091220378876,
-0.05963686853647232,
-0.0029387022368609905,
0.0978979840874672,
-0.020392321050167084,
0.0038641500286757946,
-0.0027601071633398533,
0.012998017482459545,
-0.024196166545152664,
-0.03490259870886803,
-0.055888690054416656,
-0.01100331824272871,
-0.007236583158373833,
0.0367952436208725,
0.019817104563117027,
-0.0025652761105448008,
-0.061789289116859436,
-0.0251424890011549,
-0.06483236700296402,
-0.029039110988378525,
-0.07518624514341354,
0.065871462225914,
0.006768060848116875,
-0.0440874919295311,
0.04538636654615402,
0.002866800408810377,
0.008368459530174732,
0.03555203601717949,
0.06498080492019653,
-0.07436981052160263,
-0.0953744575381279,
-0.048132557421922684,
0.05047053098678589,
-0.014825718477368355,
-0.02046654187142849,
-0.0033561973832547665,
0.014593776315450668,
0.024752825498580933,
0.01662558689713478,
0.002491054590791464,
0.026793913915753365,
-0.0030639509204775095,
0.03017098642885685,
-0.0856514573097229,
-0.01666269637644291,
0.031098753213882446,
-0.0149184949696064,
0.030894644558429718,
0.05425582081079483,
0.06691056489944458,
0.018778005614876747,
0.004492712207138538,
-0.02219218946993351,
-0.058189552277326584,
0.04397616162896156,
-0.05882043391466141,
-0.04664812982082367,
0.07808087766170502,
0.019538775086402893,
0.03132141754031181,
-0.016903916373848915,
0.07147517800331116,
0.004392977338284254,
-0.0346984900534153,
-0.04141552373766899,
0.009319420903921127,
-0.060787301510572433,
-0.010483767837285995,
0.03223063051700592,
-0.027499016374349594,
-0.0005984097952023149,
0.013990728184580803,
0.03985687345266342,
0.03814978152513504,
-0.057632893323898315,
-0.06765277683734894,
-0.0155029883608222,
-0.005204773508012295,
-0.027666015550494194,
-0.022600406780838966,
0.01890789344906807,
-0.034253161400556564,
-0.01783168315887451,
-0.035978808999061584,
0.1174924224615097,
-0.021635528653860092,
0.02599603496491909,
0.04085886478424072,
0.004038106184452772,
0.009602389298379421,
0.005223328713327646,
-0.01770179532468319,
0.026664026081562042,
-0.009945663623511791,
-0.012144471518695354,
0.024214720353484154,
0.00034095440059900284,
-0.07355337589979172,
0.013582509942352772,
-0.04401327297091484,
-0.025086821988224983,
0.02150564081966877,
0.057298894971609116,
0.012107360176742077,
0.015085493214428425,
0.0729224905371666,
0.017070913687348366,
0.026905246078968048,
-0.0444214902818203,
-0.009472502395510674,
0.01871306262910366,
-0.010817764326930046,
0.008966868743300438,
-0.06279128044843674,
-0.04045064374804497,
0.02722068689763546,
0.026812469586730003,
0.018666673451662064,
-0.0024794575292617083,
0.032527513802051544,
-0.035440701991319656,
-0.06880320608615875,
-0.027851568534970284,
0.04304839298129082,
0.010075550526380539,
0.041897963732481,
-0.015595764853060246,
-0.0026696498971432447,
-0.04816966876387596,
-0.007737577427178621,
-0.006137179210782051,
-0.04753878712654114,
-0.04753878712654114,
0.008772037923336029,
-0.05232606455683708,
0.04416171461343765,
0.05013653263449669,
-0.0021361836697906256,
-0.019204778596758842,
0.01499271672219038,
-0.0685434341430664,
-0.004341950174421072,
-0.0310059767216444,
0.045534808188676834,
-0.013415512628853321,
0.03571903333067894,
-0.021023202687501907,
0.03549636900424957,
-0.022767404094338417,
0.032360516488552094,
0.04772434011101723,
0.0628654956817627,
0.048652105033397675,
-0.018648117780685425,
-0.04538636654615402,
0.022767404094338417,
0.01465872023254633,
0.04226906970143318,
0.02825978584587574,
-0.014491721987724304,
0.020355209708213806,
-0.050173643976449966,
-0.0305049829185009,
0.0010576545028015971,
0.01872234046459198,
0.04397616162896156,
-0.04616568982601166,
-0.0006105867214500904,
-0.002952618757262826,
0.008039101958274841,
0.01715441420674324,
-0.037890009582042694,
-0.0506189726293087,
-0.009310143068432808,
-0.000020621073417714797,
0.016013260930776596,
-0.000025368632122990675,
0.020670650526881218,
-0.01578131876885891,
-0.008168988861143589,
-0.036665353924036026,
-0.02360239438712597,
0.007204111665487289,
-0.041192859411239624,
-0.029076220467686653,
0.025420818477869034,
-0.02146853134036064,
0.07414714992046356,
-0.029707102105021477,
0.0013383040204644203,
0.021245867013931274,
-0.028872111812233925,
0.0655374675989151,
-0.0655374675989151,
-0.00901325698941946,
0.009463224560022354,
-0.013183570466935635,
-0.051732294261455536,
0.055554695427417755,
0.027795901522040367,
0.0032263100147247314,
-0.0037412208039313555,
0.03156263753771782,
0.0444214902818203,
0.01889861561357975,
-0.03941154479980469,
-0.05184362456202507,
-0.015335990116000175,
-0.02738768421113491,
0.0371292382478714,
0.06011930853128433,
0.03634991496801376,
-0.0006146457162685692,
0.048652105033397675,
-0.08787810057401657,
-0.012515578418970108,
-0.004483434371650219,
-0.004689862485975027,
0.03622002899646759,
0.03952287882566452,
-0.039819762110710144,
-0.007445330731570721,
0.018648117780685425,
-0.047056347131729126,
0.019650107249617577,
0.0034582519438117743,
-0.05310538783669472,
-0.040821753442287445,
0.022860180586576462,
-0.02182108163833618,
0.02080053836107254,
-0.012766075320541859,
-0.029428772628307343,
0.03751889988780022,
-0.010103384032845497,
0.02963288128376007,
0.002613983815535903,
0.007663356140255928,
0.03497682139277458,
0.002428430365398526,
-0.06768988817930222,
0.005483103450387716,
0.054552704095840454,
-0.010029162280261517,
-0.0606759674847126,
-0.0662054568529129,
0.00589132122695446,
-0.05804111063480377,
0.00636912090703845,
0.062345948070287704,
-0.003312128596007824,
-0.0012234929017722607,
-0.028371118009090424,
0.10673032701015472,
-0.029558660462498665,
0.00028862254112027586,
-0.0012756797950714827,
-0.0019100405042991042,
0.02668258175253868,
0.029614325612783432,
-0.009217366576194763,
-0.02323128841817379,
0.0028389673680067062,
0.021041758358478546,
0.022841626778244972,
0.027499016374349594,
0.00832207128405571,
-0.041526854038238525,
0.007074224296957254,
0.014083504676818848,
-0.051546741276979446,
-0.0012281317031010985,
-0.053142499178647995,
-0.014102060347795486,
-0.021097423508763313,
-0.050025202333927155,
0.00428860355168581,
0.05073030665516853,
-0.007245860993862152,
0.035644810646772385,
-0.029224663972854614,
-0.017469855025410652,
-0.031803857535123825,
-0.011754808947443962,
0.004838305525481701,
0.025253821164369583,
-0.02150564081966877,
-0.0717349499464035,
-0.022303521633148193,
0.00012778541713487357,
-0.0675414428114891,
0.007927769795060158,
0.06665078550577164,
-0.05767000466585159,
-0.0026000672951340675,
-0.06030486151576042,
0.042231958359479904,
-0.00510735809803009,
0.025179598480463028,
0.007565940730273724,
-0.026923801749944687,
-0.019984103739261627,
0.01731213368475437,
-0.02499404549598694,
0.02185819298028946,
0.019204778596758842,
0.04460704326629639,
0.00849370751529932,
-0.007691189181059599,
0.03974554315209389,
0.05978531017899513,
0.041675299406051636,
-0.029168996959924698,
-0.04616568982601166,
0.05266005918383598,
-0.037556011229753494,
0.015484432689845562,
0.02478993684053421,
-0.01576276309788227,
-0.023509617894887924,
0.05926576256752014,
-0.0128217414021492,
-0.0343644917011261,
0.007913853041827679,
-0.03312128409743309,
-0.01353612169623375,
0.060082197189331055,
-0.02464149333536625,
-0.03451293706893921,
0.07199472934007645,
-0.02894633263349533,
0.05132407695055008,
-0.005223328713327646,
-0.06037908419966698,
-0.054701149463653564,
-0.03744468092918396,
-0.016365811228752136,
-0.018601730465888977,
0.07770977169275284,
-0.043271057307720184,
0.025031156837940216,
-0.038038451224565506,
0.05993375554680824,
-0.0024261109065264463,
0.05362493917346001,
-0.010752820409834385,
-0.01275679748505354,
-0.005789266899228096,
0.005803183186799288,
0.052103400230407715,
-0.039634209126234055,
0.06498080492019653,
0.08862031251192093,
0.03952287882566452,
0.03245329484343529,
0.024919824674725533,
-0.025754814967513084,
0.042231958359479904,
0.056111354380846024,
0.05566602572798729,
-0.0029665352776646614,
0.022303521633148193,
-0.019149113446474075,
0.022489074617624283,
0.02306428924202919,
0.032675955444574356
] |
721,967
|
apprise.attachment.base
|
exists
|
Simply returns true if the object has downloaded and stored the
attachment AND the attachment has not expired.
|
def exists(self, retrieve_if_missing=True):
"""
Simply returns true if the object has downloaded and stored the
attachment AND the attachment has not expired.
"""
cache = self.template_args['cache']['default'] \
if self.cache is None else self.cache
if self.download_path and os.path.isfile(self.download_path) \
and cache:
# We have enough reason to look further into our cached content
# and verify it has not expired.
if cache is True:
# return our fixed content as is; we will always cache it
return True
# Verify our cache time to determine whether we will get our
# content again.
try:
age_in_sec = time.time() - os.stat(self.download_path).st_mtime
if age_in_sec <= cache:
return True
except (OSError, IOError):
# The file is not present
pass
return False if not retrieve_if_missing else self.download()
|
(self, retrieve_if_missing=True)
|
[
0.08537743985652924,
-0.009048903360962868,
-0.11093541234731674,
0.037128131836652756,
0.09035088121891022,
-0.03315628692507744,
0.002577383304014802,
0.03370889276266098,
-0.027008557692170143,
0.022950368002057076,
0.02369293011724949,
0.0037732545752078295,
0.03177477419376373,
-0.051254093647003174,
-0.02911536395549774,
0.007270206697285175,
-0.008163872174918652,
0.016129152849316597,
0.005254062823951244,
-0.04065098986029625,
0.006251341663300991,
0.016552239656448364,
0.016483163461089134,
0.02186242677271366,
0.037300821393728256,
-0.02165520004928112,
0.03155028074979782,
-0.029478011652827263,
0.015887387096881866,
0.08441037684679031,
0.017614277079701424,
-0.030375994741916656,
0.049112748354673386,
0.05294644460082054,
0.013478375971317291,
0.08068029582500458,
-0.006389492657035589,
0.020878098905086517,
-0.05028703436255455,
-0.025609778240323067,
0.017717890441417694,
0.025143517181277275,
0.0583343431353569,
-0.003149415599182248,
0.013841022737324238,
0.016258668154478073,
-0.07384181022644043,
0.01697532832622528,
-0.025937886908650398,
-0.04089275375008583,
0.07681206613779068,
0.06386038661003113,
0.03324263170361519,
-0.003289725398644805,
-0.018166882917284966,
-0.012079594656825066,
-0.002784610027447343,
0.14547321200370789,
-0.04144535958766937,
0.029650699347257614,
0.02403830736875534,
-0.025281667709350586,
0.01560245081782341,
-0.02352024056017399,
0.007822811603546143,
0.03629922494292259,
0.006203852128237486,
-0.0474894717335701,
0.02840733900666237,
0.03989115729928017,
0.02153431810438633,
0.034434184432029724,
-0.009109344333410263,
0.020031923428177834,
0.03612653911113739,
-0.030704103410243988,
0.02355477772653103,
-0.03149847313761711,
0.025523433461785316,
0.022674065083265305,
0.012606296688318253,
-0.11487271636724472,
-0.010784427635371685,
-0.032102882862091064,
0.01552474033087492,
0.007015490438789129,
0.08019676804542542,
-0.04462283477187157,
0.05267014354467392,
0.10499490797519684,
-0.0076587568037211895,
0.05066695064306259,
0.01944478042423725,
-0.06800492852926254,
0.042101576924324036,
-0.0714932456612587,
0.0009891841327771544,
-0.004960491321980953,
-0.022535912692546844,
-0.0483529195189476,
-0.007891886867582798,
-0.005215207580476999,
-0.002590334974229336,
0.022207804024219513,
0.01714801788330078,
0.014756274409592152,
-0.014013711363077164,
-0.04804207757115364,
0.04130720719695091,
-0.02139616571366787,
-0.014635392464697361,
-0.05905963480472565,
0.012252284213900566,
0.0284764152020216,
0.0024888801854103804,
-0.08820953965187073,
-0.01320207305252552,
0.011406107805669308,
-0.03868233412504196,
-0.0681430771946907,
0.04113451763987541,
-0.009955520741641521,
-0.025609778240323067,
-0.01882310025393963,
0.04983804374933243,
-0.053878966718912125,
0.006531961262226105,
-0.016517702490091324,
0.06403307616710663,
0.002078743651509285,
-0.006665795110166073,
-0.0007884331862442195,
-0.008030038326978683,
0.03850964456796646,
-0.04237787798047066,
-0.010698082856833935,
0.025661583989858627,
0.03647191449999809,
-0.04299955815076828,
0.0653800517320633,
-0.02856275998055935,
-0.022207804024219513,
0.02398650161921978,
0.019859233871102333,
0.012891232967376709,
0.013866926543414593,
-0.03591931238770485,
-0.026974020525813103,
-0.009290668182075024,
-0.0383714959025383,
0.03510767221450806,
-0.03110128827393055,
-0.041963424533605576,
0.0037754131481051445,
-0.018028730526566505,
-0.02433187887072563,
-0.034606873989105225,
0.07701928913593292,
-0.024901753291487694,
-0.029149901121854782,
0.042067039757966995,
0.06486198306083679,
-0.015472933650016785,
-0.00721840001642704,
0.004073301795870066,
0.007516288198530674,
-0.04704048112034798,
0.04313771054148674,
0.025281667709350586,
0.07791727036237717,
-0.032154690474271774,
0.05363720282912254,
-0.00658808508887887,
-0.01711347885429859,
-0.0008531915373168886,
0.02134435996413231,
0.029892465099692345,
0.005966404918581247,
0.037438973784446716,
0.006424030754715204,
-0.03626468777656555,
-0.0732201337814331,
-0.03353620320558548,
0.019807428121566772,
0.0190994031727314,
0.034814100712537766,
-0.006389492657035589,
-0.00009309015877079219,
0.03099767491221428,
0.025557970628142357,
-0.03799157962203026,
0.011837830767035484,
-0.01640545390546322,
0.007775322068482637,
-0.014928963035345078,
-0.01642272248864174,
-0.012260918505489826,
-0.022984905168414116,
-0.039165861904621124,
0.07342735677957535,
-0.01549883745610714,
-0.09339020401239395,
-0.004045239649713039,
-0.0015110287349671125,
-0.010050499811768532,
0.0021165194921195507,
0.027526626363396645,
-0.011181612499058247,
-0.044311996549367905,
0.07584500312805176,
-0.056227535009384155,
0.024556374177336693,
0.02149977907538414,
0.005331772845238447,
0.012329993769526482,
0.01065491046756506,
-0.029184440150856972,
0.046936869621276855,
-0.026956751942634583,
0.013495644554495811,
-0.00477485079318285,
-0.025747928768396378,
-0.03795704245567322,
0.0429304838180542,
0.0034602556843310595,
0.0024759285151958466,
0.053084596991539,
0.02863183431327343,
-0.04997619614005089,
-0.01327978353947401,
-0.005094325169920921,
0.06765954941511154,
0.04558989405632019,
0.03155028074979782,
0.06662341207265854,
-0.03799157962203026,
-0.018097806721925735,
0.0708024874329567,
-0.001299484632909298,
0.01946204900741577,
0.024470029398798943,
0.03567754477262497,
-0.003099767491221428,
0.016094613820314407,
0.012511317618191242,
-0.06610534340143204,
0.009143882431089878,
0.01309845969080925,
-0.06430938094854355,
-0.08123290538787842,
0.04016745835542679,
0.03255187347531319,
-0.02647322230041027,
-0.023485703393816948,
0.019928310066461563,
-0.06164997071027756,
-0.03528036177158356,
-0.06448207050561905,
0.022535912692546844,
0.034779563546180725,
0.0009427739423699677,
-0.02402103878557682,
0.0059577701613307,
0.04161804914474487,
-0.03123943880200386,
-0.0520484633743763,
-0.016724929213523865,
-0.020722679793834686,
-0.05443156883120537,
0.022017845883965492,
0.03540124371647835,
-0.009636045433580875,
0.021983308717608452,
-0.036713678389787674,
0.0001830773107940331,
-0.005042518489062786,
0.02433187887072563,
-0.00882009044289589,
-0.037231747061014175,
0.034917715936899185,
-0.01960020139813423,
0.008219996467232704,
0.03199927136301994,
-0.02136162854731083,
-0.027353936806321144,
0.0012735812924802303,
-0.04386300593614578,
0.05346451327204704,
-0.030548682436347008,
0.0018531687092036009,
-0.004410045221447945,
0.030186036601662636,
0.03754258528351784,
-0.05543316528201103,
-0.03747351095080376,
0.013918733224272728,
-0.018460452556610107,
0.008634449914097786,
0.07266753166913986,
0.043966617435216904,
-0.01932389847934246,
0.030704103410243988,
-0.011837830767035484,
-0.024798139929771423,
-0.011786024086177349,
-0.002374473726376891,
-0.016569508239626884,
0.019617469981312752,
0.009826003573834896,
0.03830241784453392,
0.037404436618089676,
-0.0242628026753664,
0.009601508267223835,
0.04562443122267723,
0.07204584777355194,
0.015749236568808556,
-0.026835869997739792,
-0.010283629409968853,
-0.024470029398798943,
0.020636335015296936,
-0.018045999109745026,
0.042067039757966995,
-0.014514509588479996,
0.027215784415602684,
0.00000547241961612599,
-0.07978231459856033,
0.012960309162735939,
0.02431461028754711,
-0.025005366653203964,
0.061304591596126556,
-0.017346609383821487,
0.011397473514080048,
0.04234334081411362,
0.029374398291110992,
-0.052739217877388,
0.037404436618089676,
-0.009325205348432064,
-0.04075460135936737,
0.07950600981712341,
0.0432758629322052,
0.01706167310476303,
-0.020670872181653976,
-0.02854549139738083,
0.020066460594534874,
0.0028580029029399157,
-0.015049845911562443,
0.06178812310099602,
0.02136162854731083,
0.044726449996232986,
-0.06372223794460297,
-0.03395065665245056,
-0.018080538138747215,
0.001015087473206222,
0.027112171053886414,
0.04320678487420082,
-0.020860830321907997,
0.0618571974337101,
0.0068255322985351086,
0.010154113173484802,
0.041825275868177414,
0.0005752702127210796,
0.004278369713574648,
-0.039131324738264084,
-0.012252284213900566,
-0.022345956414937973,
-0.03182658180594444,
0.02842460758984089,
0.036851830780506134,
-0.0383714959025383,
-0.05194484815001488,
-0.04510636627674103,
0.016327744349837303,
-0.017346609383821487,
-0.046384263783693314,
0.02414192073047161,
-0.07066433876752853,
-0.03282817825675011,
-0.01061173900961876,
0.01918574795126915,
-0.009437453001737595,
-0.027129441499710083,
0.03906225040555,
-0.05902509763836861,
0.004956174176186323,
0.029305322095751762,
-0.020239150151610374,
-0.030704103410243988,
0.02179335057735443,
0.0016211179317906499,
-0.030341455712914467,
0.06037207320332527,
-0.009273398667573929,
0.0028752717189490795,
-0.014799446798861027,
-0.011846465058624744,
-0.06147728115320206,
0.018011461943387985,
0.03298359736800194,
0.027992885559797287,
-0.011112536303699017,
0.0583343431353569,
0.02124074660241604,
-0.02431461028754711,
0.036920905113220215,
-0.03388157859444618,
-0.018270496279001236,
0.030255110934376717,
-0.0121314013376832,
0.005595123395323753,
0.0021812778431922197,
-0.022933097556233406,
-0.034624144434928894,
-0.046591490507125854,
-0.026974020525813103,
-0.01444543432444334,
0.02889086864888668,
0.006851435638964176,
-0.016206862404942513,
-0.027958348393440247,
0.02642141655087471,
-0.005094325169920921,
0.028269188478589058,
-0.013633796013891697,
-0.005374944768846035,
-0.044104769825935364,
-0.04558989405632019,
-0.027837466448545456,
0.002592493547126651,
-0.03864779695868492,
0.030082423239946365,
0.016180958598852158,
-0.04704048112034798,
0.001012928900308907,
0.005033884197473526,
0.058645181357860565,
0.016914887353777885,
-0.034658681601285934,
-0.05287737026810646,
-0.08206181228160858,
-0.011362935416400433,
-0.010007327422499657,
-0.006838484201580286,
-0.017268899828195572,
-0.0029227612540125847,
-0.013236611150205135,
-0.02402103878557682,
-0.030116960406303406,
-0.021016251295804977,
0.0625479519367218,
0.012390435673296452,
-0.027612969279289246,
0.041928887367248535,
0.020014654844999313,
0.0024241218343377113,
-0.10437322407960892,
-0.020342763513326645,
0.028251919895410538,
0.000873158744070679,
-0.03393338620662689,
-0.018045999109745026,
-0.06983543187379837,
0.034485992044210434,
-0.013530182652175426,
-0.0665888786315918,
0.01416049711406231,
-0.016483163461089134,
-0.014799446798861027,
0.015179362148046494,
-0.008099113591015339,
0.008302023634314537,
0.015101652592420578,
-0.04842199385166168,
-0.05705644190311432,
-0.03436511009931564,
0.03654099255800247,
-0.022397762164473534,
0.03420969098806381,
0.06700333207845688,
-0.016077345237135887,
-0.01918574795126915,
0.0047662160359323025,
-0.02911536395549774,
-0.04541720449924469,
-0.01446270290762186,
0.03647191449999809,
-0.06569088995456696,
-0.008055941201746464,
0.027975616976618767,
0.015749236568808556,
-0.004265418276190758,
-0.0043042730540037155,
-0.0022028640378266573,
-0.009843272157013416,
-0.01927209086716175,
0.029927002266049385,
0.002203943207859993,
-0.00477485079318285,
0.0711478665471077,
0.015326147899031639,
-0.08012769371271133,
0.005258379969745874,
-0.037162672728300095,
0.03844057023525238,
0.04945812746882439,
-0.04061645269393921,
-0.042239729315042496,
0.006402444560080767,
-0.002378790872171521,
0.03754258528351784,
0.01549883745610714,
0.005905963480472565,
0.02612784504890442,
-0.004399252124130726,
0.03847510740160942,
0.03123943880200386,
0.05930139869451523,
-0.053809888660907745,
-0.05688375607132912,
-0.01198461651802063,
0.0013469741679728031,
0.053395435214042664,
-0.003486159024760127,
0.04824930429458618,
-0.0677976980805397,
-0.05073602497577667,
0.024625450372695923,
-0.02402103878557682,
0.004109998233616352,
-0.0027932445518672466,
0.0011473024496808648,
0.01896125078201294,
-0.02410738356411457,
0.0070672971196472645,
-0.046833254396915436,
0.012813523411750793,
0.06631257385015488,
-0.05446610972285271,
-0.044519223272800446,
-0.10485675930976868,
-0.036851830780506134,
0.05964677780866623,
0.005724640097469091,
0.011008922941982746,
-0.04579712077975273,
-0.01584421470761299,
0.0016373074613511562,
-0.02635234035551548,
-0.04500275105237961,
0.07943693548440933,
-0.009817369282245636,
0.0004881162312813103,
0.02384834922850132,
0.05235930159687996,
-0.0520484633743763,
0.04255056753754616,
0.056020308285951614,
-0.06451661139726639,
-0.05519140139222145,
0.013573355041444302,
0.00595345301553607,
0.020791754126548767,
-0.037231747061014175,
0.0030803398694843054,
0.07577592879533768,
0.0012735812924802303,
-0.02410738356411457,
0.06154635548591614,
-0.034934982657432556,
0.03840603306889534,
-0.020653603598475456,
0.0071924966759979725,
0.029495280236005783,
-0.03522855415940285,
-0.018374109640717506,
0.04365577921271324,
-0.03522855415940285,
-0.019772889092564583,
-0.0378534272313118,
0.049423590302467346,
-0.009506529197096825,
0.003468890208750963,
-0.09083440899848938,
0.07087156176567078,
-0.013780581764876842,
-0.034537799656391144,
-0.07508517056703568,
0.004947539418935776,
0.043828465044498444,
-0.01877129264175892,
-0.0023701563477516174,
-0.0077796392142772675,
0.03540124371647835,
0.015257072634994984,
-0.02388288825750351,
0.0429304838180542,
0.06510374695062637,
0.09387373924255371,
-0.026870407164096832,
-0.022086922079324722,
-0.029788851737976074,
0.03902771323919296,
0.013038018718361855,
-0.034537799656391144,
0.027319397777318954,
-0.020204612985253334,
0.005284283310174942,
-0.06430938094854355,
0.003984798677265644,
0.002174801891669631,
-0.0432758629322052,
0.0019546234980225563,
-0.05294644460082054,
0.006005259696394205,
0.05691829323768616,
0.018339570611715317,
0.030013347044587135,
-0.029771583154797554,
0.0002800799557007849,
-0.06303147971630096,
0.0214652419090271,
-0.014272745698690414,
-0.01897852122783661,
0.00964468065649271,
0.03806065395474434,
-0.04220518842339516,
0.011665141209959984,
0.038716871291399,
0.018322302028536797,
-0.006747822277247906,
0.023192131891846657,
-0.0027371204923838377,
0.005910280626267195,
0.05446610972285271,
0.041721660643815994,
0.008474712260067463,
0.0024824042338877916,
0.017294801771640778,
0.013685602694749832,
0.036955446004867554,
0.01082760002464056,
-0.022846754640340805,
-0.023140324279665947,
-0.08144012838602066,
0.03155028074979782,
-0.02642141655087471,
0.02901175059378147,
0.06914467364549637,
-0.022846754640340805,
0.06683064252138138,
0.0017689828528091311,
-0.020929906517267227,
0.010689448565244675,
0.024849945679306984,
-0.010240457020699978,
-0.013392031192779541,
0.0050511532463133335,
0.029633430764079094,
-0.008103431202471256,
-0.0037624614778906107,
-0.041928887367248535,
0.0003931372775696218,
-0.07176954299211502,
-0.039165861904621124,
-0.0332944393157959,
0.07239122688770294,
-0.039614856243133545,
0.0015930559020489454,
-0.020446376875042915,
-0.037438973784446716,
0.00968785211443901,
-0.0383714959025383,
0.06603626906871796,
0.008189775049686432,
-0.03623015061020851,
-0.0013059604680165648,
-0.030341455712914467,
-0.036920905113220215,
-0.012761716730892658,
0.026922214776277542,
0.03360527753829956,
0.055985771119594574,
-0.007503336761146784,
-0.03747351095080376,
0.048801910132169724,
-0.0007808780646882951,
0.0021003298461437225,
0.06334232538938522,
-0.046280648559331894,
-0.030410531908273697,
-0.0383714959025383,
-0.03674821928143501,
-0.05740182101726532,
-0.016932155936956406,
0.03595384955406189,
-0.01650906726717949,
-0.04614249989390373,
0.01305528823286295,
0.1156325489282608,
0.007037076633423567,
-0.05225569009780884,
-0.002103567821905017,
0.01897852122783661,
0.018546797335147858,
0.030341455712914467,
-0.04866375774145126,
-0.022000577300786972,
-0.06907559931278229,
-0.0037948405370116234,
-0.022397762164473534,
0.034624144434928894,
-0.039683930575847626,
0.014972135424613953,
0.058265265077352524,
-0.030272381380200386,
-0.006091604009270668,
-0.028010154142975807,
-0.012321359477937222,
0.007140689995139837,
0.028044693171977997,
0.01211413275450468,
0.012070960365235806,
-0.022829484194517136,
-0.013322955928742886,
-0.012442242354154587,
-0.012908502481877804,
-0.012235014699399471,
-0.025903349742293358,
-0.029909733682870865,
-0.0018056792905554175,
0.03320809453725815,
0.04268871992826462,
0.02882179245352745,
0.01873675547540188,
0.05080510303378105,
0.007632853463292122,
-0.008928020484745502,
0.00775805301964283,
0.0009422342991456389,
-0.0485256053507328,
0.0287354476749897,
0.01211413275450468,
0.02352024056017399,
0.005202256143093109,
0.0009362981072627008,
0.007688977289944887,
-0.03591931238770485,
0.009299302473664284,
0.011708313599228859,
-0.007429943885654211,
0.0024241218343377113,
0.04372485354542732,
-0.04237787798047066,
0.004090570379048586,
0.03327716886997223,
0.022535912692546844,
0.034382376819849014,
-0.04047830030322075,
0.029771583154797554,
-0.00043523023487068713,
0.01084486860781908,
-0.034434184432029724,
-0.04341401159763336,
-0.03155028074979782,
0.044311996549367905,
-0.01637091673910618,
0.015783773735165596,
0.0009481704910285771,
0.06244434043765068
] |
721,968
|
apprise.url
|
http_response_code_lookup
|
Parses the interger response code returned by a remote call from
a web request into it's human readable string version.
You can over-ride codes or add new ones by providing your own
response_mask that contains a dictionary of integer -> string mapped
variables
|
@staticmethod
def http_response_code_lookup(code, response_mask=None):
"""Parses the interger response code returned by a remote call from
a web request into it's human readable string version.
You can over-ride codes or add new ones by providing your own
response_mask that contains a dictionary of integer -> string mapped
variables
"""
if isinstance(response_mask, dict):
# Apply any/all header over-rides defined
HTML_LOOKUP.update(response_mask)
# Look up our response
try:
response = HTML_LOOKUP[code]
except KeyError:
response = ''
return response
|
(code, response_mask=None)
|
[
0.028179066255688667,
-0.05467097833752632,
-0.024050923064351082,
-0.03769174590706825,
-0.009979338385164738,
0.009997286833822727,
-0.0388045497238636,
-0.029094437137246132,
0.011271626688539982,
-0.062065739184617996,
0.02957904525101185,
0.037943024188280106,
0.025648334994912148,
-0.047671083360910416,
0.009970364160835743,
-0.01675487868487835,
0.04609161987900734,
0.041891682893037796,
0.003890326479449868,
-0.11271626502275467,
0.002454450586810708,
0.024302201345562935,
0.030117498710751534,
0.0362379215657711,
-0.00287848268635571,
0.03412000462412834,
-0.014942084439098835,
-0.06960409134626389,
0.035466138273477554,
-0.013757486827671528,
0.001856542774476111,
-0.05933757498860359,
-0.038660962134599686,
0.02593551017343998,
-0.042250651866197586,
0.0053800479508936405,
0.0007723442395217717,
0.007919753901660442,
-0.03153542801737785,
-0.013219033367931843,
-0.07904497534036636,
-0.032522592693567276,
-0.018935615196824074,
-0.061706770211458206,
-0.02234582044184208,
0.006129395682364702,
-0.054886359721422195,
-0.031104663386940956,
-0.01023061666637659,
-0.0553889162838459,
0.016575394198298454,
0.011110090650618076,
-0.00721078971400857,
-0.07875780016183853,
-0.04146092012524605,
0.03787123039364815,
0.00044983302359469235,
0.08407054096460342,
-0.009467807598412037,
0.009404988028109074,
-0.058906812220811844,
0.026904726400971413,
-0.07305019348859787,
0.0025823332834988832,
-0.03126620128750801,
0.014627986587584019,
0.011549827642738819,
-0.026168840005993843,
-0.0034371281508356333,
-0.010167797096073627,
0.031427737325429916,
0.026168840005993843,
-0.05879912152886391,
0.014735677279531956,
0.103598453104496,
0.0034012312535196543,
-0.045122403651475906,
-0.048783887177705765,
-0.0029457893688231707,
0.035825107246637344,
0.07229635864496231,
-0.018253574147820473,
0.08306542783975601,
-0.036507148295640945,
0.017768966034054756,
-0.07610142976045609,
0.026886777952313423,
-0.024194510653614998,
0.05980423465371132,
0.04243013635277748,
-0.01168444100767374,
-0.06109652295708656,
-0.016835646703839302,
0.0017387560801580548,
-0.017804862931370735,
0.02153814025223255,
0.053414586931467056,
-0.004527496639639139,
0.01045497227460146,
-0.011774183250963688,
0.021125325933098793,
0.07373223453760147,
-0.044081393629312515,
-0.011298549361526966,
0.0031566836405545473,
0.0008553558145649731,
-0.026725241914391518,
0.009054993279278278,
0.009369091130793095,
0.004574611317366362,
0.004675571341067553,
-0.08177313953638077,
-0.012536992318928242,
-0.034694354981184006,
0.05154794827103615,
0.024768861010670662,
0.0006646535475738347,
-0.011370343156158924,
-0.008130648173391819,
0.015893353149294853,
-0.01793050207197666,
-0.02376374788582325,
-0.006533235777169466,
-0.05255306139588356,
0.015301053412258625,
0.0126087861135602,
0.002858290681615472,
-0.03528665378689766,
0.07121945172548294,
0.018029218539595604,
0.021663779392838478,
0.011128039099276066,
-0.012088281102478504,
0.04939413443207741,
0.011756234802305698,
0.04745570197701454,
-0.09720880538225174,
0.060665760189294815,
-0.004401857499033213,
0.057758111506700516,
-0.011980590410530567,
0.011774183250963688,
-0.0036951371002942324,
0.0030265573877841234,
-0.015022852458059788,
0.011289575137197971,
0.08931148797273636,
0.016467703506350517,
0.04609161987900734,
-0.006106960121542215,
0.04451215639710426,
-0.0453018881380558,
0.0035291139502078295,
0.07567066699266434,
-0.005074924323707819,
0.0002403409598628059,
0.019886882975697517,
-0.05844015255570412,
-0.004018209408968687,
-0.015938224270939827,
0.041173744946718216,
-0.0547068752348423,
0.01529207918792963,
-0.09842929989099503,
0.032163623720407486,
-0.022902222350239754,
0.024553479626774788,
-0.026725241914391518,
0.026797035709023476,
-0.01636001281440258,
-0.030422622337937355,
-0.0014930866891518235,
-0.05585557594895363,
0.039378900080919266,
0.06500928848981857,
0.019007408991456032,
0.008135135285556316,
0.006277470383793116,
-0.05187102034687996,
0.0066588749177753925,
0.022776583209633827,
-0.0042021810077130795,
-0.09670624881982803,
0.06544005125761032,
-0.02229197509586811,
0.026043200865387917,
0.03483794257044792,
-0.021071480587124825,
0.011729312129318714,
0.08148596435785294,
0.0051287696696817875,
-0.028520086780190468,
-0.006281957495957613,
-0.008754356764256954,
-0.0037444953341037035,
-0.025720128789544106,
0.009539601393043995,
-0.022956067696213722,
0.019725346937775612,
-0.044081393629312515,
-0.00971908587962389,
0.07753730565309525,
-0.01875613071024418,
0.09397808462381363,
-0.0023579776752740145,
0.040455807000398636,
0.018504852429032326,
0.022130439057946205,
-0.04932234063744545,
-0.009952415712177753,
-0.04637879505753517,
-0.027945736423134804,
-0.027102159336209297,
0.018253574147820473,
-0.0003267178835812956,
0.039378900080919266,
-0.05172743275761604,
0.010069080628454685,
-0.001364082214422524,
-0.01532797608524561,
0.030709797516465187,
-0.029973911121487617,
0.02308170683681965,
-0.009279348887503147,
0.02370990253984928,
0.008803714998066425,
-0.016108734533190727,
0.015902327373623848,
-0.00971908587962389,
0.018056141212582588,
0.009333194233477116,
0.021663779392838478,
0.026348324492573738,
-0.010257539339363575,
-0.0036278304178267717,
-0.03194824233651161,
0.025720128789544106,
-0.009611395187675953,
0.02198685146868229,
0.02591756172478199,
-0.011029322631657124,
0.05836835876107216,
0.0497531034052372,
0.0878756120800972,
-0.01149598229676485,
-0.03887634351849556,
-0.030135447159409523,
0.06946050375699997,
-0.030889282003045082,
-0.015175414271652699,
-0.05617864802479744,
-0.03790712729096413,
0.007946676574647427,
-0.03591484948992729,
0.036471251398324966,
-0.00007256502431118861,
-0.03239695355296135,
0.011038296855986118,
0.022597098723053932,
0.0357353650033474,
-0.01425106916576624,
-0.058476049453020096,
0.043040383607149124,
-0.03912762179970741,
-0.04426087811589241,
-0.04670186713337898,
0.00342591037042439,
0.07107586413621902,
-0.05330689623951912,
0.03284566476941109,
0.0928293839097023,
-0.0006349264294840395,
-0.013622873462736607,
-0.018217677250504494,
0.010876760818064213,
-0.003661483759060502,
0.06569132953882217,
0.013901074416935444,
-0.018092038109898567,
-0.039378900080919266,
0.03245079889893532,
0.008691537193953991,
-0.019976625218987465,
-0.024015026167035103,
0.02344067580997944,
0.0010724199237301946,
0.03358155116438866,
0.06088114157319069,
0.023979129269719124,
-0.025809871032834053,
0.010140874423086643,
-0.0180381927639246,
0.013757486827671528,
-0.014439527876675129,
0.013658770360052586,
0.00843577180057764,
0.03060210682451725,
-0.010329333133995533,
0.036525096744298935,
-0.000056123961257981136,
-0.056717101484537125,
0.00137081288266927,
0.08220390230417252,
-0.018809976056218147,
-0.021394552662968636,
-0.017724094912409782,
0.013712615706026554,
-0.01603694073855877,
-0.02733548916876316,
0.033635396510362625,
-0.012886987067759037,
0.024373995140194893,
-0.02053302712738514,
-0.053091514855623245,
0.00881268922239542,
0.021771470084786415,
0.02699446864426136,
0.07473734766244888,
-0.001834107213653624,
0.03998914733529091,
0.009476781822741032,
-0.034766148775815964,
0.005043514538556337,
0.021071480587124825,
0.02877136506140232,
-0.04243013635277748,
0.005994782317429781,
0.019168945029377937,
0.05686068907380104,
0.012824167497456074,
-0.031248250976204872,
-0.023548366501927376,
0.017481790855526924,
-0.039378900080919266,
0.04433267191052437,
-0.032145675271749496,
0.016270270571112633,
-0.05294792726635933,
-0.02984827198088169,
-0.03342001512646675,
-0.06296316534280777,
-0.03153542801737785,
-0.02055097557604313,
0.02442784048616886,
0.02225607819855213,
-0.020407387986779213,
0.0008850829326547682,
0.09211144596338272,
-0.010769070126116276,
-0.06185035780072212,
-0.025845767930150032,
-0.050614628940820694,
0.028879055753350258,
0.039378900080919266,
0.021466346457600594,
0.002575602615252137,
0.005433893296867609,
-0.0647939071059227,
0.04164040461182594,
0.06637337058782578,
0.04544547572731972,
-0.043363455682992935,
-0.002304132329300046,
-0.01113701332360506,
-0.057111967355012894,
-0.042681414633989334,
-0.027568819001317024,
0.04670186713337898,
0.08313722163438797,
-0.033312324434518814,
-0.011504956521093845,
-0.01677282713353634,
-0.04892747476696968,
-0.057758111506700516,
-0.010194719769060612,
-0.00906845461577177,
0.0005376121844165027,
0.0048415944911539555,
-0.08062443882226944,
0.0009063967154361308,
0.02338683046400547,
0.011181884445250034,
-0.04828133061528206,
0.00853897538036108,
0.04181988909840584,
-0.03952248767018318,
0.023548366501927376,
0.02774830348789692,
-0.05768631771206856,
0.028250860050320625,
0.009207555092871189,
-0.041891682893037796,
0.05100949481129646,
0.0255585927516222,
-0.015067723579704762,
-0.0020180789288133383,
-0.061060626059770584,
0.02198685146868229,
0.012366482056677341,
0.006259521935135126,
0.028232911601662636,
0.01943817175924778,
-0.02227402664721012,
0.03840968385338783,
0.02015610970556736,
0.02805342711508274,
0.043327558785676956,
0.010858812369406223,
-0.03377898409962654,
-0.02808932401239872,
-0.07753730565309525,
-0.03679432347416878,
-0.001716320519335568,
-0.09706521779298782,
-0.03097902424633503,
0.04210706427693367,
-0.020676614716649055,
0.04174809530377388,
-0.021825315430760384,
-0.019653553143143654,
0.027497025206685066,
-0.0719732865691185,
0.022830428555607796,
0.0018116716528311372,
-0.018074089661240578,
-0.01943817175924778,
0.01730230636894703,
-0.01368569303303957,
0.01132547203451395,
0.04067118838429451,
0.030476467683911324,
-0.0030130960512906313,
-0.06780924648046494,
-0.07940394431352615,
0.06228112056851387,
-0.009324220009148121,
-0.05187102034687996,
0.021484294906258583,
0.00951267872005701,
-0.022435562685132027,
0.015767714008688927,
0.051296669989824295,
-0.004168527666479349,
0.004177501890808344,
0.030709797516465187,
-0.02625858224928379,
-0.04871209338307381,
0.012554940767586231,
-0.047312114387750626,
-0.08421412855386734,
0.030404673889279366,
0.017257435247302055,
-0.006510800216346979,
0.03598664328455925,
0.01909715123474598,
-0.005025566089898348,
-0.06472211331129074,
0.05682479217648506,
-0.04400959983468056,
0.021394552662968636,
-0.021753521636128426,
0.034407179802656174,
0.023117603734135628,
0.011056245304644108,
-0.00729604484513402,
0.0453018881380558,
0.011289575137197971,
-0.007856934331357479,
-0.031230302527546883,
-0.005532609764486551,
-0.06192215159535408,
-0.027514973655343056,
-0.011020348407328129,
-0.001902535674162209,
-0.00037831967347301543,
0.03428154066205025,
-0.003917249385267496,
-0.0062999059446156025,
-0.05140436068177223,
0.0020214442629367113,
0.008467181585729122,
-0.015722842887043953,
0.041209641844034195,
-0.037296880036592484,
-0.000982677680440247,
-0.06443493813276291,
0.060342688113451004,
0.02053302712738514,
-0.033958468586206436,
-0.024212459102272987,
0.02516372688114643,
0.03315078839659691,
-0.013398517854511738,
-0.033258479088544846,
0.010392152704298496,
-0.01495105866342783,
-0.01262673456221819,
0.003919492941349745,
-0.010715224780142307,
-0.02480475790798664,
0.022507356479763985,
-0.08730126172304153,
0.03525075688958168,
-0.017140770331025124,
0.0724758431315422,
-0.023315036669373512,
0.05793759599328041,
0.06902974098920822,
0.023674005642533302,
-0.006403109524399042,
-0.009476781822741032,
0.03812250867486,
0.030799539759755135,
-0.033312324434518814,
-0.035825107246637344,
0.043327558785676956,
-0.03273797407746315,
0.01579463668167591,
0.015911301597952843,
0.037978921085596085,
0.00879474077373743,
0.005438380409032106,
0.04458395019173622,
-0.006524261552840471,
0.016727956011891365,
0.020371491089463234,
-0.007502452004700899,
0.024032974615693092,
-0.041963476687669754,
0.0326482318341732,
-0.04943003132939339,
-0.0025307314936071634,
0.007448606658726931,
0.011540853418409824,
0.019868934527039528,
0.059552956372499466,
-0.06766565889120102,
-0.03193029388785362,
-0.03733277693390846,
0.0360763855278492,
0.010975477285683155,
0.019671501591801643,
-0.04831722751259804,
-0.007524887565523386,
0.0046262131072580814,
-0.028304705396294594,
-0.06504518538713455,
0.02769445814192295,
0.0073633515276014805,
-0.031481582671403885,
-0.014627986587584019,
-0.014798496849834919,
0.0719732865691185,
-0.03194824233651161,
0.006349264178425074,
0.04099426046013832,
-0.009665240533649921,
0.011181884445250034,
0.036902014166116714,
0.004240321461111307,
-0.0018329854356124997,
-0.037978921085596085,
-0.05222998932003975,
-0.017912553623318672,
-0.07990650087594986,
0.0316251702606678,
-0.01758948154747486,
0.003064697841182351,
-0.030404673889279366,
-0.11099321395158768,
0.020335594192147255,
0.03270207718014717,
0.027461128309369087,
-0.0011436528293415904,
-0.015938224270939827,
0.05222998932003975,
0.03157132491469383,
-0.02306375838816166,
0.10639841109514236,
0.07990650087594986,
0.007026818115264177,
-0.022597098723053932,
0.05251716449856758,
-0.05574788525700569,
-0.01531002763658762,
-0.002223364310339093,
-0.0352148599922657,
-0.04106605425477028,
0.02013816125690937,
0.018522800877690315,
-0.0468454547226429,
-0.06145549193024635,
0.02372785098850727,
-0.025002190843224525,
0.019725346937775612,
0.06960409134626389,
-0.03193029388785362,
0.021322758868336678,
-0.02414066530764103,
-0.0036637273151427507,
0.03858916833996773,
0.016315141692757607,
-0.03209182992577553,
-0.0216278824955225,
0.0612042136490345,
0.03345591202378273,
-0.021502243354916573,
-0.03029698319733143,
-0.04788646474480629,
-0.02810727246105671,
-0.013380569405853748,
-0.04505060985684395,
0.00026614186936058104,
-0.013263904489576817,
0.02699446864426136,
-0.0016456485027447343,
0.008274235762655735,
-0.018917666748166084,
-0.04286089912056923,
-0.0668400302529335,
0.007556297350674868,
-0.0058332462795078754,
-0.01136136893182993,
0.008619743399322033,
0.028663674369454384,
0.032576438039541245,
0.038660962134599686,
0.017158718779683113,
-0.017957424744963646,
0.011711363680660725,
0.02810727246105671,
0.07926035672426224,
0.011388291604816914,
-0.061383698135614395,
-0.009494730271399021,
0.048101846128702164,
0.05790169909596443,
0.019186893478035927,
-0.027156004682183266,
0.051296669989824295,
0.013228007592260838,
-0.03160722181200981,
-0.05689658597111702,
-0.0070043825544416904,
-0.0021986851934343576,
0.05007617548108101,
-0.012097255326807499,
-0.01653052307665348,
0.047024939209222794,
-0.024930397048592567,
-0.051619742065668106,
-0.012294688262045383,
0.009054993279278278,
0.06152728572487831,
-0.03054826147854328,
0.027281643822789192,
-0.0029188666958361864,
0.01459208969026804,
0.02300991304218769,
-0.014349785633385181,
-0.06016320362687111,
-0.0124382758513093,
0.02659960277378559,
-0.07276301831007004,
-0.006546697113662958,
-0.006412083748728037,
0.006465929094702005,
-0.06185035780072212,
0.0811987891793251,
-0.03700970485806465,
0.05251716449856758,
-0.030045704916119576,
0.015507460571825504,
-0.011298549361526966,
-0.03309694305062294,
0.027263695374131203,
-0.0033989876974374056,
0.001220494625158608,
0.01079599279910326,
0.023566314950585365,
0.043722424656152725,
-0.007762704510241747,
-0.03991735354065895,
0.02988416887819767,
0.04458395019173622,
0.028681622818112373,
0.04002504423260689,
-0.011980590410530567,
-0.00748450355604291,
-0.01136136893182993,
-0.014242094941437244,
-0.07495272904634476,
-0.028986746445298195,
0.05840425565838814,
-0.01945612020790577,
0.040455807000398636,
-0.011316497810184956,
-0.05251716449856758,
-0.014439527876675129,
0.04357883706688881,
0.011074193753302097,
-0.046271104365587234,
0.015740791335701942,
-0.042250651866197586,
-0.03374308720231056,
-0.002719190204516053,
-0.001938432571478188,
-0.01423312071710825,
-0.006950537208467722,
0.013613899238407612,
-0.0255585927516222,
-0.003524626838043332,
0.06016320362687111,
0.0017466085264459252,
-0.014771574176847935,
-0.014843367971479893,
-0.028609829023480415,
0.05190691724419594,
0.022076593711972237,
0.05499405041337013,
0.027173953130841255,
0.011630595661699772,
0.04724032059311867,
0.03826609626412392,
-0.04580444470047951,
0.007897318340837955,
0.0072915577329695225,
-0.037619952112436295,
-0.015283104963600636,
0.05517353489995003,
-0.012563914991915226,
0.020945841446518898,
-0.03489178791642189,
-0.030853385105729103,
-0.015283104963600636,
-0.05011207237839699,
-0.021663779392838478,
0.026420118287205696,
0.026832932606339455,
0.026886777952313423,
0.0021751278545707464,
0.01836126483976841,
-0.009198580868542194,
-0.0047339037992060184,
0.003762443782761693,
-0.02085609920322895,
0.030422622337937355,
-0.01656641997396946,
0.025073984637856483,
0.05373765900731087,
0.019258687272667885,
-0.01877407915890217,
0.013613899238407612,
0.008651153184473515,
0.047348011285066605,
-0.018881769850850105,
-0.03643535450100899,
0.03139184042811394,
0.024391943588852882,
0.06877846270799637,
0.014663883484899998,
0.0582965649664402,
-0.012447250075638294,
-0.011235729791224003,
0.015157465822994709,
0.005043514538556337,
-0.009611395187675953,
0.007143483031541109
] |
721,969
|
apprise.attachment.base
|
invalidate
|
Release any temporary data that may be open by child classes.
Externally fetched content should be automatically cleaned up when
this function is called.
This function should also reset the following entries to None:
- detected_name : Should identify a human readable filename
- download_path: Must contain a absolute path to content
- detected_mimetype: Should identify mimetype of content
|
def invalidate(self):
"""
Release any temporary data that may be open by child classes.
Externally fetched content should be automatically cleaned up when
this function is called.
This function should also reset the following entries to None:
- detected_name : Should identify a human readable filename
- download_path: Must contain a absolute path to content
- detected_mimetype: Should identify mimetype of content
"""
self.detected_name = None
self.download_path = None
self.detected_mimetype = None
return
|
(self)
|
[
0.04965415224432945,
-0.013327248394489288,
-0.049617234617471695,
0.021615246310830116,
-0.013705654069781303,
-0.03525629639625549,
-0.04736526310443878,
0.029737114906311035,
0.021984422579407692,
0.023571878671646118,
0.0302908793091774,
-0.004476257134228945,
0.03379805013537407,
0.0327274389564991,
-0.012367391027510166,
0.0027342087123543024,
-0.017166677862405777,
0.024273313581943512,
0.010964523069560528,
-0.03544088453054428,
-0.0671900063753128,
0.036474574357271194,
-0.034610237926244736,
-0.024845534935593605,
-0.020249295979738235,
0.03835737332701683,
-0.013078055344522,
-0.01923406310379505,
0.004215526860207319,
-0.005034635774791241,
-0.0050069475546479225,
0.01637294888496399,
0.04419035091996193,
0.03302277997136116,
0.020526178181171417,
0.002611919306218624,
-0.015182357281446457,
0.014314793981611729,
-0.03222905471920967,
0.01232124399393797,
-0.040129415690898895,
-0.007692702114582062,
-0.0032695138361305,
-0.05131544545292854,
0.01879105158150196,
0.023590337485074997,
-0.03525629639625549,
-0.014683970250189304,
-0.0038232775405049324,
-0.05301365256309509,
-0.010982981882989407,
0.05659465864300728,
-0.01773890107870102,
0.052312221378088,
0.012561208568513393,
0.05855129286646843,
0.02523317001760006,
0.08446744084358215,
0.031582996249198914,
-0.0026488369330763817,
0.01414866466075182,
-0.037212926894426346,
0.01139830518513918,
-0.04780827462673187,
0.013114972971379757,
0.04123694449663162,
0.024051807820796967,
0.03713909164071083,
-0.005177691578865051,
0.027097508311271667,
-0.004460105672478676,
-0.03557009622454643,
-0.019455568864941597,
0.03184141963720322,
0.048989638686180115,
-0.037212926894426346,
-0.006308292504400015,
-0.030013997107744217,
0.02479015849530697,
0.0015805341536179185,
0.08454127609729767,
0.01093683484941721,
-0.02340574935078621,
-0.04112619161605835,
0.04108927398920059,
-0.0657133013010025,
0.07062334567308426,
-0.035846974700689316,
-0.02754051983356476,
0.06375667452812195,
0.030050914734601974,
0.04928497597575188,
-0.014803952537477016,
-0.06467960774898529,
0.044264186173677444,
-0.01836649887263775,
-0.016769813373684883,
-0.006049869582056999,
-0.01772044226527214,
-0.06947889924049377,
-0.004238600376993418,
0.03457332029938698,
-0.03010629117488861,
0.019455568864941597,
-0.005269985646009445,
-0.029294105246663094,
0.01975090801715851,
-0.0987914577126503,
-0.02309194952249527,
0.012284327298402786,
-0.05485953390598297,
-0.048694297671318054,
-0.0627598986029625,
0.07390900701284409,
0.05670541152358055,
-0.023147325962781906,
-0.07796994596719742,
-0.0019658615346997976,
0.01682518981397152,
-0.012791943736374378,
-0.02613765187561512,
0.03961256891489029,
-0.10100651532411575,
-0.013659507036209106,
0.04337816312909126,
0.022888904437422752,
0.004427803214639425,
0.021135319024324417,
0.052681393921375275,
-0.009215552359819412,
-0.03132457286119461,
0.01413943525403738,
-0.0057268403470516205,
0.04467028006911278,
0.008311071433126926,
0.00485466280952096,
0.030087832361459732,
-0.033244285732507706,
-0.0072312322445213795,
-0.015957627445459366,
-0.08210471272468567,
0.01790502853691578,
0.02229822240769863,
0.0057729873806238174,
0.06552871316671371,
0.0038048187270760536,
0.02447636052966118,
-0.02949715219438076,
-0.10181870311498642,
-0.05777602270245552,
0.021910587325692177,
-0.015708433464169502,
-0.0035117852967232466,
-0.014582446776330471,
0.0036525337491184473,
0.01377025991678238,
-0.05607781186699867,
0.0610986053943634,
-0.060914017260074615,
0.025325464084744453,
0.03625306859612465,
-0.01956631988286972,
0.012736567296087742,
-0.029460234567523003,
0.015043916180729866,
-0.025583887472748756,
0.05293981730937958,
-0.026193028315901756,
0.03313353285193443,
-0.006682083010673523,
-0.04049859195947647,
0.03464715555310249,
-0.0018747211433947086,
-0.015394633635878563,
-0.005865281447768211,
0.050060246139764786,
0.028924928978085518,
-0.039538733661174774,
0.043931927531957626,
0.05548713356256485,
-0.03560701385140419,
-0.05751759931445122,
-0.04252905771136284,
0.02091381326317787,
0.044411856681108475,
0.003781745210289955,
-0.006889744661748409,
0.01232124399393797,
0.04171687364578247,
0.025731557980179787,
-0.01091837603598833,
0.015523845329880714,
-0.022113634273409843,
0.016705207526683807,
0.06364592164754868,
-0.05050325766205788,
-0.050060246139764786,
-0.006266760174185038,
-0.00893867015838623,
0.015090063214302063,
-0.03178604319691658,
0.0080295754596591,
0.03605002164840698,
-0.0394279807806015,
-0.030069373548030853,
0.05430576950311661,
0.004372426774352789,
-0.024494819343090057,
-0.03987099230289459,
0.09738859534263611,
-0.03010629117488861,
0.06264914572238922,
-0.0045270188711583614,
-0.016917483881115913,
0.05245989188551903,
-0.07774844020605087,
0.01093683484941721,
0.039243392646312714,
-0.024181019514799118,
0.03665916249155998,
-0.015856103971600533,
0.0053069028072059155,
-0.03802511468529701,
-0.01139830518513918,
-0.007771152071654797,
0.00955242570489645,
0.00336411502212286,
-0.001619759132154286,
0.0024573267437517643,
-0.043931927531957626,
-0.017988093197345734,
0.016695978119969368,
0.018883345648646355,
0.003221059450879693,
0.075902558863163,
0.01954786106944084,
-0.01053997129201889,
0.01866183988749981,
-0.05980648845434189,
-0.0154500100761652,
-0.012681190855801105,
-0.05515487492084503,
-0.0008542960276827216,
-0.0030295494943857193,
0.02141219936311245,
0.013742571696639061,
0.0376005619764328,
0.052349139004945755,
0.013179577887058258,
-0.08099718391895294,
0.04297206923365593,
-0.025750016793608665,
-0.0015136210713535547,
-0.03440719097852707,
0.040277086198329926,
-0.07782227545976639,
-0.06578713655471802,
-0.06855595856904984,
0.04142153263092041,
0.007388132158666849,
0.026636037975549698,
0.01604992151260376,
0.003643304342404008,
0.06287065148353577,
0.013253413140773773,
-0.011287552304565907,
0.010613805614411831,
0.007092791143804789,
-0.0476975217461586,
-0.01756354235112667,
-0.005648390855640173,
-0.04046167433261871,
0.01637294888496399,
-0.05050325766205788,
-0.025565428659319878,
0.023461125791072845,
-0.009150946512818336,
0.00787729024887085,
-0.03025396168231964,
0.04729142785072327,
0.04371042177081108,
-0.0050484798848629,
0.07582872360944748,
-0.020120084285736084,
0.03623460978269577,
-0.04880505055189133,
-0.05873588100075722,
-0.004111696034669876,
-0.01988011971116066,
-0.018292663618922234,
-0.02947869338095188,
0.0104015301913023,
0.0010175409261137247,
0.01755431294441223,
0.022648939862847328,
-0.04252905771136284,
-0.039686404168605804,
-0.013816406950354576,
0.02032313123345375,
0.0479559451341629,
-0.04068318009376526,
0.0038532731123268604,
-0.02552851103246212,
0.03104769065976143,
0.001820498495362699,
-0.027134425938129425,
-0.008546421304345131,
-0.014314793981611729,
0.05102010443806648,
0.025325464084744453,
0.07184161990880966,
-0.024236395955085754,
-0.026506826281547546,
0.04876813292503357,
0.03184141963720322,
-0.026026898995041847,
0.004298591520637274,
0.021282987669110298,
-0.009298617020249367,
0.06253839284181595,
0.009017120115458965,
-0.0007654631044715643,
-0.019658613950014114,
0.0071250940673053265,
0.013170348480343819,
0.000278468185570091,
0.043636586517095566,
0.06766993552446365,
-0.003098769811913371,
0.019935496151447296,
-0.0026742175687104464,
-0.02947869338095188,
0.0017524316208437085,
-0.04252905771136284,
-0.04230755567550659,
-0.021449116989970207,
-0.017203595489263535,
-0.06766993552446365,
0.09118644148111343,
-0.021615246310830116,
-0.022851986810564995,
-0.009321690537035465,
-0.03213676065206528,
-0.0029372554272413254,
-0.0559670627117157,
0.028832634910941124,
0.08395059406757355,
-0.03979715704917908,
0.05958498269319534,
-0.024033349007368088,
-0.016179131343960762,
0.030383173376321793,
-0.0000773682986618951,
0.005676079075783491,
0.06829753518104553,
-0.048214368522167206,
-0.010992211289703846,
0.019455568864941597,
-0.009903142228722572,
-0.031546078622341156,
0.0047231437638401985,
0.011841315776109695,
-0.05615164712071419,
-0.04156920313835144,
0.013114972971379757,
-0.04876813292503357,
0.0014963159337639809,
0.023590337485074997,
0.013548754155635834,
-0.04754985123872757,
-0.05253372713923454,
-0.03894805535674095,
-0.023184243589639664,
-0.0022473579738289118,
0.0754595473408699,
-0.004623927641659975,
0.006165236700326204,
0.026026898995041847,
-0.006266760174185038,
0.07021725177764893,
-0.008384906686842442,
0.04459644481539726,
-0.007489655166864395,
-0.03267206251621246,
-0.010613805614411831,
-0.026506826281547546,
-0.020064707845449448,
0.043193574994802475,
0.017618918791413307,
0.050355587154626846,
0.07752693444490433,
-0.02646990865468979,
0.00910941418260336,
0.01291192602366209,
0.03409339115023613,
0.02630377933382988,
0.0017466633580625057,
0.008228006772696972,
-0.02722672000527382,
-0.007466581650078297,
-0.0008987124892883003,
0.050355587154626846,
-0.0676330178976059,
0.017858881503343582,
0.002925718668848276,
0.03964948654174805,
0.04662691056728363,
-0.015090063214302063,
0.02768819034099579,
-0.015819186344742775,
-0.013502607122063637,
-0.05194304510951042,
0.02947869338095188,
-0.019437110051512718,
0.06785452365875244,
0.004462413024157286,
0.019972413778305054,
-0.03665916249155998,
0.08409826457500458,
0.05958498269319534,
-0.04651615768671036,
0.09620723128318787,
0.004965415224432945,
0.015366945415735245,
-0.055560968816280365,
-0.019603237509727478,
-0.01620681956410408,
-0.048066698014736176,
-0.031269196420907974,
0.029072599485516548,
0.008232621476054192,
0.0018170374678447843,
-0.054785698652267456,
-0.010069271549582481,
-0.024254854768514633,
0.04873121529817581,
-0.03651149198412895,
-0.024199478328227997,
-0.07900363206863403,
-0.003982484806329012,
-0.05382584035396576,
-0.013687195256352425,
0.07184161990880966,
0.039354145526885986,
0.037397515028715134,
-0.026174569502472878,
-0.026802167296409607,
0.08970973640680313,
-0.02168908156454563,
-0.027152884751558304,
-0.0292018111795187,
0.02829732932150364,
-0.015560762956738472,
-0.045334797352552414,
-0.07228463143110275,
0.018680298700928688,
0.04175379127264023,
0.004720836412161589,
-0.011647498235106468,
0.021984422579407692,
-0.021153777837753296,
0.03684375062584877,
-0.015330027788877487,
-0.061984628438949585,
0.0015170820988714695,
0.003437950275838375,
-0.0016416789731010795,
0.00031754892552271485,
0.007415820378810167,
-0.035514719784259796,
0.005906813777983189,
-0.03544088453054428,
-0.006479036528617144,
-0.037526726722717285,
-0.056816164404153824,
-0.00756349042057991,
-0.007946510799229145,
0.03361346200108528,
0.054195016622543335,
-0.05338282883167267,
0.0305493026971817,
-0.017951175570487976,
0.006760532967746258,
-0.02292582020163536,
0.01893872208893299,
-0.05899430438876152,
0.022095175459980965,
-0.04230755567550659,
-0.017840422689914703,
0.005823749117553234,
-0.028094282373785973,
0.010567659512162209,
-0.057406846433877945,
-0.03713909164071083,
0.03149070218205452,
0.02538084052503109,
-0.03684375062584877,
0.037840526551008224,
0.007794225588440895,
-0.11717642098665237,
0.026229945942759514,
-0.0978316068649292,
-0.012635043822228909,
0.032173678278923035,
0.01941865123808384,
-0.00435396796092391,
0.03161991387605667,
-0.01376103051006794,
0.0033710370771586895,
0.0032256741542369127,
-0.06925739347934723,
-0.002586538437753916,
0.05825595185160637,
0.0394279807806015,
0.014379399828612804,
-0.0011755943996831775,
-0.05600397661328316,
-0.018597234040498734,
0.03470253199338913,
0.017665065824985504,
0.01315188966691494,
0.04614698141813278,
0.017923487350344658,
-0.056668493896722794,
-0.03549626097083092,
-0.03950181603431702,
-0.045002538710832596,
0.037674397230148315,
0.02017546072602272,
0.026359155774116516,
0.012542749755084515,
-0.06408893316984177,
0.03350270912051201,
-0.014093288220465183,
0.04219680279493332,
0.007812684401869774,
0.0009500510059297085,
-0.07280147820711136,
-0.02000933140516281,
0.019492486491799355,
0.005560711491852999,
0.022981196641921997,
0.008075721561908722,
-0.04175379127264023,
-0.009755471721291542,
-0.025030123069882393,
0.027023673057556152,
0.03315199166536331,
0.06312907487154007,
-0.006400586571544409,
-0.01802501082420349,
-0.01804346963763237,
0.04138461500406265,
-0.07686241716146469,
-0.020101625472307205,
-0.01261658500880003,
0.029570987448096275,
-0.022408975288271904,
0.052201468497514725,
-0.03990790992975235,
0.0047000702470541,
0.020747683942317963,
0.010826081968843937,
0.006548257078975439,
0.029847867786884308,
0.01315188966691494,
0.048509709537029266,
0.024051807820796967,
-0.00886483583599329,
-0.023664172738790512,
0.028408082202076912,
-0.010835311375558376,
0.07575488835573196,
-0.02063693106174469,
0.03344733268022537,
0.006469807121902704,
-0.013650277629494667,
0.012708879075944424,
0.008675632998347282,
-0.049617234617471695,
0.0327274389564991,
-0.033871885389089584,
-0.03136149048805237,
-0.0749427005648613,
-0.0100969597697258,
-0.055007204413414,
0.03224750980734825,
0.031103067100048065,
0.012533520348370075,
-0.018237287178635597,
-0.02722672000527382,
0.02765127271413803,
-0.0017339729238301516,
-0.029294105246663094,
0.00841720961034298,
0.034776367247104645,
0.037692856043577194,
0.0008825610275380313,
-0.043784257024526596,
0.0009194786543957889,
0.051130857318639755,
0.027485143393278122,
-0.03549626097083092,
0.04452260956168175,
-0.033687297254800797,
0.027632813900709152,
-0.04422726854681969,
0.04219680279493332,
0.012801173143088818,
-0.0002062193234451115,
-0.007692702114582062,
0.000038107311411295086,
0.04651615768671036,
0.041052356362342834,
0.009312461130321026,
0.03276435658335686,
-0.02794661372900009,
-0.025953063741326332,
-0.08638714998960495,
0.040609344840049744,
-0.01988011971116066,
-0.020821519196033478,
0.0014028683071956038,
0.009570884518325329,
-0.04692225158214569,
0.032007548958063126,
-0.0016647523734718561,
0.056668493896722794,
-0.06305523961782455,
0.05186920985579491,
0.013253413140773773,
-0.04049859195947647,
-0.00311492127366364,
0.05670541152358055,
0.02399643138051033,
0.021006107330322266,
-0.014176352880895138,
0.00519615039229393,
0.03964948654174805,
-0.0062067690305411816,
0.05644698813557625,
0.002413487294688821,
-0.006663624197244644,
-0.0160591509193182,
-0.12108968198299408,
-0.03898497298359871,
0.02582385204732418,
-0.05209071561694145,
0.03352116793394089,
0.0047392952255904675,
-0.012838090769946575,
0.030383173376321793,
0.10085884481668472,
-0.035551637411117554,
-0.009386296384036541,
0.007641940377652645,
0.02464248798787594,
-0.02416256070137024,
0.013419542461633682,
0.016723666340112686,
-0.049617234617471695,
-0.0014132513897493482,
0.018615692853927612,
0.008924826048314571,
0.04965415224432945,
0.005828363820910454,
-0.02231668122112751,
0.03390880301594734,
-0.04433802142739296,
-0.018920263275504112,
-0.05581939220428467,
0.04474411532282829,
0.02611919306218624,
-0.019769366830587387,
-0.013797948136925697,
-0.018689528107643127,
0.013401083648204803,
-0.038726549595594406,
-0.007586563937366009,
0.0769362524151802,
-0.004217834211885929,
0.025731557980179787,
-0.02704213187098503,
-0.02065538987517357,
-0.016123754903674126,
0.036474574357271194,
-0.0302908793091774,
-0.017452789470553398,
-0.01712053082883358,
-0.04359966889023781,
0.0005462649278342724,
0.019307898357510567,
0.04167995601892471,
-0.038135867565870285,
-0.09746243059635162,
0.014157894067466259,
0.019363274797797203,
-0.013364166021347046,
0.036474574357271194,
-0.02861112914979458,
0.02429177239537239,
0.010955293662846088,
-0.009875454008579254,
-0.023959513753652573,
-0.0003210099530406296,
0.009764701128005981,
-0.03557009622454643,
-0.0012805787846446037,
-0.05792369320988655,
0.003583313198760152,
0.05884663388133049,
0.014268646948039532,
-0.018311122432351112,
0.02584231086075306,
0.05264447629451752,
-0.005556096788495779,
-0.042270638048648834,
-0.043821174651384354,
0.027485143393278122,
0.024863993749022484,
0.05194304510951042,
0.048989638686180115,
0.037526726722717285,
0.038135867565870285,
-0.012570437975227833,
0.023313455283641815,
-0.0754595473408699,
-0.04204913228750229,
0.05973265320062637,
0.02659912034869194,
0.00035446652327664196,
0.011638268828392029,
-0.01724974252283573,
0.02737439051270485,
-0.0384681262075901,
-0.04607314616441727,
0.049617234617471695,
0.02091381326317787,
0.014767034910619259,
0.03322582691907883,
-0.05519179254770279,
0.0053207469172775745,
-0.05629931762814522,
0.03174912557005882,
-0.009067881852388382,
-0.009201708249747753,
0.061061687767505646,
0.059068139642477036,
0.00569453788921237,
-0.006188310217112303,
0.0033364268019795418,
-0.03488712012767792,
-0.0035256294067949057,
0.06146778166294098,
0.039834074676036835,
0.02004624903202057,
-0.014471693895757198,
0.0065574864856898785,
0.01622527837753296,
0.02309194952249527,
-0.011066046543419361,
-0.010069271549582481,
-0.037360597401857376,
-0.012727337889373302,
-0.030383173376321793,
0.03931722790002823,
0.04330432787537575,
0.02183675207197666
] |
721,970
|
apprise.url
|
parse_list
|
A wrapper to utils.parse_list() with unquoting support
Parses a specified set of data and breaks it into a list.
Args:
content (str): The path to split up into a list. If a list is
provided, then it's individual entries are processed.
allow_whitespace (:obj:`bool`, optional): whitespace is to be
treated as a delimiter
unquote (:obj:`bool`, optional): call unquote on each element
added to the returned list.
Returns:
list: A unique list containing all of the elements in the path
|
@staticmethod
def parse_list(content, allow_whitespace=True, unquote=True):
"""A wrapper to utils.parse_list() with unquoting support
Parses a specified set of data and breaks it into a list.
Args:
content (str): The path to split up into a list. If a list is
provided, then it's individual entries are processed.
allow_whitespace (:obj:`bool`, optional): whitespace is to be
treated as a delimiter
unquote (:obj:`bool`, optional): call unquote on each element
added to the returned list.
Returns:
list: A unique list containing all of the elements in the path
"""
content = parse_list(content, allow_whitespace=allow_whitespace)
if unquote:
content = \
[URLBase.unquote(x) for x in filter(bool, content)]
return content
|
(content, allow_whitespace=True, unquote=True)
|
[
-0.026190251111984253,
-0.01962096430361271,
-0.03618321195244789,
-0.007108037360012531,
-0.02280133217573166,
0.06635326892137527,
0.030361225828528404,
-0.02977033704519272,
0.012799681164324284,
0.013529601506888866,
0.0421963706612587,
0.013164641335606575,
-0.018612978979945183,
0.0086764981970191,
0.0033346079289913177,
0.001633632113225758,
0.01670128107070923,
0.033541593700647354,
0.036843616515398026,
0.021775968372821808,
-0.038094907999038696,
-0.011565767228603363,
0.009323867969214916,
0.06412874907255173,
0.005200685001909733,
-0.03394131362438202,
0.030587153509259224,
-0.029596546664834023,
-0.01443331316113472,
-0.011313770897686481,
0.06065293401479721,
0.043586693704128265,
-0.01629287376999855,
0.015363093465566635,
0.03326353058218956,
-0.02299250289797783,
-0.01250423677265644,
0.05863696336746216,
-0.05015597864985466,
-0.013069056905806065,
-0.009254352189600468,
-0.030587153509259224,
0.046124037355184555,
-0.022036653012037277,
0.012469478882849216,
0.03076094388961792,
-0.03515784814953804,
0.01651880145072937,
-0.06141761317849159,
-0.04803573340177536,
0.022905606776475906,
0.010748951695859432,
-0.06270366162061691,
-0.01539785135537386,
0.0006761542172171175,
0.028362633660435677,
0.029822474345564842,
0.08918935805559158,
0.0839756429195404,
0.025668878108263016,
0.028362633660435677,
-0.00384511798620224,
-0.017987331375479698,
-0.06649230420589447,
0.02890138514339924,
0.044073306024074554,
-0.003445399459451437,
-0.02860593982040882,
-0.032186027616262436,
-0.012095828540623188,
-0.0358356311917305,
-0.0012491202214732766,
-0.049843158572912216,
0.042300641536712646,
0.07017666101455688,
0.024070004001259804,
0.014268212020397186,
0.035175226628780365,
-0.02587742730975151,
0.0029088209848850965,
-0.0017856989288702607,
0.0527975969016552,
0.006230394821614027,
-0.008663463406264782,
-0.0016075634630396962,
-0.058324139565229416,
0.03550542891025543,
-0.008003058843314648,
-0.00987130869179964,
0.09836550801992416,
-0.022627541795372963,
-0.023305324837565422,
-0.051650580018758774,
0.02420903742313385,
-0.046610649675130844,
-0.005600403528660536,
-0.049843158572912216,
-0.044907502830028534,
-0.0252344012260437,
-0.014137868769466877,
0.013425327837467194,
0.0843232199549675,
-0.0718102976679802,
-0.03121279925107956,
0.0042730774730443954,
-0.06850827485322952,
-0.03632224351167679,
-0.051928646862506866,
-0.013460085727274418,
-0.008850288577377796,
-0.07076755166053772,
-0.0010894500883296132,
0.006843006704002619,
0.040979836136102676,
0.028501665219664574,
-0.0016868554521352053,
-0.011105222627520561,
-0.056690510362386703,
0.03534901887178421,
-0.03136921301484108,
-0.003336780471727252,
0.006869075354188681,
-0.0484180748462677,
0.01913435012102127,
0.05095541849732399,
0.032724779099226,
-0.02045515924692154,
-0.022332098335027695,
-0.000007959747563290875,
0.00046570462291128933,
0.0008293072460219264,
0.05109445005655289,
-0.0465063750743866,
-0.04139693081378937,
0.05523066595196724,
-0.03955475240945816,
-0.04754912108182907,
0.013225467875599861,
0.002163693541660905,
0.001580408657900989,
0.006916867569088936,
-0.035627081990242004,
0.04786194488406181,
-0.012174034491181374,
-0.08334999531507492,
-0.018508704379200935,
0.0651019737124443,
0.010766330175101757,
0.0023157603573054075,
0.0482790432870388,
-0.02700706571340561,
0.010618608444929123,
0.041014593094587326,
-0.034184619784355164,
0.010983568616211414,
0.009914756752550602,
-0.052415259182453156,
0.01647535338997841,
0.032672639936208725,
-0.027215614914894104,
-0.007898785173892975,
-0.022714437916874886,
-0.016927208751440048,
0.014016215689480305,
0.012399962171912193,
0.010470886714756489,
0.04087556153535843,
-0.07257497310638428,
-0.04754912108182907,
0.010523024015128613,
0.07764966040849686,
0.001518495730124414,
-0.049912672489881516,
0.03694789111614227,
0.03969378396868706,
0.03326353058218956,
-0.017222652211785316,
0.06489342451095581,
0.014737446792423725,
0.017405133694410324,
-0.02777174487709999,
-0.01894318126142025,
0.0316646546125412,
-0.02996150776743889,
0.020298747345805168,
0.03284643217921257,
-0.03129969537258148,
-0.002023574896156788,
0.02299250289797783,
0.04080604389309883,
-0.05867172032594681,
-0.05474405363202095,
0.02697230875492096,
-0.055022116750478745,
-0.04344766214489937,
-0.03235981985926628,
-0.08119498938322067,
-0.009628001600503922,
-0.04077128693461418,
0.01629287376999855,
-0.0378168448805809,
-0.0611395500600338,
0.008207263424992561,
-0.019116971641778946,
0.023062018677592278,
0.03628748655319214,
-0.041084107011556625,
-0.005526542663574219,
-0.029179450124502182,
0.01038399152457714,
-0.013155952095985413,
-0.004064528737217188,
-0.034271515905857086,
-0.001150276861153543,
0.014911237172782421,
-0.053770825266838074,
-0.030621912330389023,
0.05630816891789436,
0.0379558764398098,
-0.07007239013910294,
0.06670085340738297,
0.02996150776743889,
-0.007234035525470972,
-0.008958907797932625,
0.022297339513897896,
-0.009688828140497208,
0.02022923156619072,
-0.0011524491710588336,
-0.006069638300687075,
0.007990024983882904,
0.00696031516417861,
-0.09725324809551239,
0.05147678777575493,
0.04296104609966278,
0.036774102598428726,
-0.03091735579073429,
0.05533494055271149,
-0.018734632059931755,
0.06916867941617966,
-0.012660648673772812,
-0.04031943157315254,
-0.0047792429104447365,
0.0035931216552853584,
-0.050746869295835495,
-0.028240980580449104,
0.03529687970876694,
-0.019881650805473328,
0.01441593375056982,
0.003912461921572685,
-0.023705044761300087,
0.000051594099204521626,
0.08077789098024368,
0.008737324737012386,
-0.005730746779590845,
-0.00827677920460701,
0.024000488221645355,
-0.03211650997400284,
-0.00491393031552434,
-0.01345139555633068,
-0.018404429778456688,
0.03303760290145874,
-0.09516775608062744,
0.05436171591281891,
0.005617782473564148,
-0.029075175523757935,
-0.02844952791929245,
0.017292169854044914,
0.022332098335027695,
-0.029978886246681213,
0.0484180748462677,
0.015363093465566635,
-0.02488682046532631,
0.012573753483593464,
-0.030934734269976616,
-0.04591548815369606,
0.07333965599536896,
0.01689244993031025,
-0.021497903391718864,
0.010748951695859432,
0.021237216889858246,
-0.04153596609830856,
0.009706207551062107,
-0.029752958565950394,
-0.024921579286456108,
0.02302725985646248,
-0.015901844948530197,
0.006786524783819914,
0.053701311349868774,
-0.10420487076044083,
0.027702229097485542,
-0.0021137287840247154,
-0.007346999365836382,
0.0029653029050678015,
-0.02273181639611721,
0.04852234944701195,
0.016875071451067924,
-0.0032911603339016438,
-0.03913765400648117,
0.03341994062066078,
-0.026763759553432465,
-0.027441542595624924,
0.01189596951007843,
0.04167499765753746,
0.016014808788895607,
-0.018960559740662575,
-0.04052797704935074,
-0.015814948827028275,
-0.005630816798657179,
-0.009923445992171764,
-0.023652907460927963,
0.003462778637185693,
0.03274215757846832,
-0.04556790739297867,
-0.004312180448323488,
-0.04462943971157074,
0.01859559863805771,
-0.046158794313669205,
0.03493192046880722,
-0.032255545258522034,
0.012756233103573322,
-0.018178502097725868,
0.008915459737181664,
0.022019274532794952,
0.016544869169592857,
0.03046550042927265,
0.008984976448118687,
0.05043404549360275,
0.05064259469509125,
0.014806963503360748,
0.07208836078643799,
-0.015971360728144646,
0.013929320499300957,
-0.052415259182453156,
0.0013881528284400702,
0.022453751415014267,
-0.061730436980724335,
-0.012156656011939049,
-0.03442792594432831,
-0.018804147839546204,
-0.054570261389017105,
-0.021984517574310303,
-0.01795257441699505,
-0.018317533656954765,
0.0035279500298202038,
-0.004305663052946329,
-0.017969952896237373,
0.06388544291257858,
0.08703435212373734,
0.04713202267885208,
-0.0024048280902206898,
0.043621450662612915,
-0.04365621134638786,
0.002532998565584421,
0.0017455097986385226,
0.024000488221645355,
-0.002787167439237237,
-0.055821556597948074,
-0.016736039891839027,
0.005000825971364975,
-0.0011958968825638294,
0.11935941874980927,
-0.02587742730975151,
0.025773152709007263,
-0.007268793880939484,
0.06398971378803253,
-0.05220670998096466,
0.008502707816660404,
-0.01791781559586525,
0.04511605203151703,
0.0054396470077335835,
-0.02799767255783081,
0.015354403294622898,
0.022453751415014267,
-0.10177180171012878,
0.04247443377971649,
-0.009219593368470669,
0.04556790739297867,
-0.0028284427244216204,
-0.05474405363202095,
0.0884246826171875,
-0.0378863625228405,
0.05766373500227928,
0.07799724489450455,
-0.0400761216878891,
0.0025395157281309366,
-0.006929901894181967,
0.012330446392297745,
0.0462978295981884,
-0.01081846747547388,
0.012582442723214626,
0.007277483120560646,
-0.0028371321968734264,
0.004601107444614172,
0.03757353872060776,
-0.07625933736562729,
-0.0610005185008049,
0.04372572526335716,
-0.018891043961048126,
0.03500143438577652,
-0.002263623056933284,
0.022036653012037277,
0.009054492227733135,
-0.016736039891839027,
0.050746869295835495,
-0.028275737538933754,
-0.015693295747041702,
0.01445069257169962,
0.011331150308251381,
-0.05182437226176262,
-0.003530122572556138,
0.07695449888706207,
-0.06291221082210541,
0.038616281002759933,
-0.017031483352184296,
0.0036257074680179358,
0.02610335499048233,
-0.049565091729164124,
0.0695510134100914,
-0.00998427253216505,
0.0038842209614813328,
-0.010705503635108471,
-0.018734632059931755,
-0.008063886314630508,
0.056169137358665466,
0.0037473607808351517,
0.007507755886763334,
0.01647535338997841,
-0.02931848168373108,
-0.010375301353633404,
-0.01202631276100874,
0.014598414301872253,
0.012573753483593464,
-0.07062851637601852,
-0.0802912786602974,
0.022905606776475906,
0.006947281304746866,
0.018039468675851822,
-0.01488516852259636,
0.03501881659030914,
-0.02485206164419651,
-0.058741237968206406,
0.07966563105583191,
0.018248017877340317,
0.015467367134988308,
0.05557825043797493,
-0.05189388617873192,
-0.06402447074651718,
0.04247443377971649,
0.011965486221015453,
-0.03948523476719856,
-0.08564402908086777,
-0.0014261695323511958,
0.04810525104403496,
-0.003106507705524564,
-0.05926261097192764,
0.025442950427532196,
0.07375674694776535,
0.027302511036396027,
0.04886993020772934,
0.05766373500227928,
0.10705503821372986,
0.03295070677995682,
0.06291221082210541,
-0.0325857475399971,
-0.022453751415014267,
0.01742251217365265,
-0.019030075520277023,
0.06875158101320267,
0.0325162298977375,
-0.019881650805473328,
-0.019933786243200302,
0.0029261999297887087,
-0.014581034891307354,
0.003630052087828517,
0.018734632059931755,
0.030830461531877518,
0.02318367175757885,
-0.032029617577791214,
0.019481930881738663,
-0.06875158101320267,
-0.044003792107105255,
-0.10309261083602905,
0.03150824457406998,
-0.008228987455368042,
-0.03698264807462692,
-0.03362848982214928,
0.038164425641298294,
-0.04132741689682007,
0.026416178792715073,
-0.0231141559779644,
0.018804147839546204,
0.008537465706467628,
-0.0003193403244949877,
-0.03913765400648117,
0.02485206164419651,
0.02269705757498741,
-0.022227823734283447,
0.011748247779905796,
0.04959984868764877,
-0.021080804988741875,
0.03465385362505913,
-0.06228656694293022,
0.032255545258522034,
0.006291221361607313,
0.0242785532027483,
0.06871682405471802,
0.03997184708714485,
0.00988868810236454,
-0.03990233317017555,
-0.06784787029027939,
-0.07215787470340729,
0.03189058229327202,
0.02996150776743889,
0.012147965840995312,
-0.020246610045433044,
0.028936142101883888,
-0.04250919073820114,
0.031994856894016266,
0.02193238027393818,
0.03955475240945816,
-0.02655521035194397,
-0.008046506904065609,
-0.020663708448410034,
-0.03764305263757706,
0.0018139398889616132,
-0.03573135659098625,
-0.0609310008585453,
0.021584797650575638,
-0.0036713273730129004,
0.050329770892858505,
0.01814374327659607,
-0.03830345720052719,
0.0038168770261108875,
0.011166049167513847,
0.03712168335914612,
0.1140066608786583,
-0.02340959943830967,
-0.01833491399884224,
0.020298747345805168,
0.06145237386226654,
-0.01337319053709507,
0.03442792594432831,
-0.031091146171092987,
-0.018508704379200935,
-0.06576237827539444,
0.02697230875492096,
-0.008589603006839752,
0.06200850382447243,
0.029457515105605125,
0.0027024445589631796,
0.0027372026816010475,
-0.007494721561670303,
-0.015971360728144646,
0.01746596023440361,
0.04789670184254646,
-0.1137285977602005,
-0.0009466159390285611,
-0.0199685450643301,
-0.05745518580079079,
-0.01890842244029045,
-0.011009637266397476,
0.008680842816829681,
-0.06753504276275635,
0.02655521035194397,
-0.012061070650815964,
0.02295774407684803,
-0.06228656694293022,
0.012469478882849216,
-0.026242388412356377,
-0.017074931412935257,
0.031421348452568054,
-0.04049322009086609,
0.05436171591281891,
0.006069638300687075,
0.032220784574747086,
-0.004147079307585955,
0.04452516511082649,
-0.028171462938189507,
0.05804607644677162,
-0.0419878214597702,
0.03875531256198883,
-0.030639290809631348,
-0.04129265621304512,
-0.01689244993031025,
0.014103110879659653,
-0.013816356658935547,
0.05189388617873192,
0.026311904191970825,
-0.0015391333727166057,
-0.012330446392297745,
-0.00020854877948295325,
0.0305350162088871,
0.0421268530189991,
0.03315925598144531,
-0.014685309492051601,
-0.03906813636422157,
-0.028015052899718285,
-0.01814374327659607,
-0.03882483020424843,
-0.019603585824370384,
0.0008999097044579685,
0.0014370314311236143,
0.023844076320528984,
0.027059203013777733,
0.028936142101883888,
-0.04327386990189552,
0.03129969537258148,
-0.04786194488406181,
-0.008719945326447487,
-0.01178300566971302,
0.022019274532794952,
0.0031347486656159163,
0.03281167522072792,
0.018022090196609497,
-0.035175226628780365,
0.042265884578228,
-0.038477249443531036,
-0.000779342430178076,
0.061695680022239685,
-0.03368062898516655,
0.02269705757498741,
-0.016336319968104362,
0.008732980117201805,
0.03317663446068764,
-0.04132741689682007,
-0.03545329347252846,
-0.0241395216435194,
-0.0036952237132936716,
-0.023166293278336525,
-0.02500847354531288,
0.048626624047756195,
-0.06711794435977936,
0.015345714055001736,
0.03072618693113327,
0.004425144288688898,
-0.022975122556090355,
-0.028136705979704857,
-0.06179995462298393,
0.0049530332908034325,
-0.00827677920460701,
-0.004457729868590832,
-0.04977364093065262,
-0.038477249443531036,
-0.00758596183732152,
-0.04264822602272034,
-0.0020952634513378143,
-0.0241395216435194,
-0.038616281002759933,
0.030656669288873672,
0.04452516511082649,
-0.0037821189034730196,
0.06795214116573334,
0.029909370467066765,
0.023722423240542412,
-0.04216160997748375,
0.050295013934373856,
0.0038733589462935925,
-0.025581983849406242,
0.011452803388237953,
0.002387448912486434,
0.015389162115752697,
0.016944587230682373,
0.021428385749459267,
0.01878676936030388,
-0.06155664846301079,
-0.04473371058702469,
-0.0020300920587033033,
0.04511605203151703,
0.03208175301551819,
0.002357035642489791,
0.04087556153535843,
0.015328334644436836,
-0.0008770996937528253,
0.023583389818668365,
0.012356515042483807,
-0.0380253940820694,
0.002050729701295495,
-0.007572927512228489,
-0.0008271348779089749,
0.03348945826292038,
-0.011548388749361038,
-0.013990147039294243,
-0.006886454299092293,
0.04709726572036743,
0.018230639398097992,
0.033472079783678055,
0.0005887158331461251,
0.0037126026581972837,
0.04160548001527786,
0.018873663619160652,
-0.021132942289114,
0.004609796684235334,
-0.018995318561792374,
0.003947220277041197,
-0.03072618693113327,
0.04810525104403496,
0.012130587361752987,
-0.03149086609482765,
0.0759117528796196,
0.02944013476371765,
0.0018823699792847037,
-0.0011013982584699988,
0.010314474813640118,
-0.004223112482577562,
0.027476301416754723,
-0.06200850382447243,
-0.036808859556913376,
0.024122141301631927,
-0.03524474427103996,
0.049426060169935226,
-0.005587369203567505,
0.014763515442609787,
0.0040102191269397736,
-0.05512639135122299,
0.06777834892272949,
-0.06273842602968216,
0.010288406163454056,
-0.0168229341506958,
0.03550542891025543,
0.03095211461186409,
0.023844076320528984,
-0.012573753483593464,
0.06461536139249802,
0.0006962487823329866,
-0.05349276214838028,
-0.016362389549613,
0.00915007758885622,
0.023461736738681793,
0.02996150776743889,
-0.008667808026075363,
-0.038616281002759933,
0.07285303622484207,
-0.006660526618361473,
0.01072288304567337,
0.0015782363479956985,
-0.06392019987106323,
-0.04118838161230087,
-0.006525838747620583,
0.0038624971639364958,
0.027406785637140274,
0.03743450343608856,
-0.014137868769466877,
-0.025182263925671577,
0.0026698587462306023,
-0.04845283180475235,
-0.053353726863861084,
0.057038091123104095,
0.011487561278045177,
-0.03467123210430145,
0.014181316830217838,
-0.033246152102947235,
-0.01505895983427763,
-0.031351830810308456,
-0.010688125155866146,
0.037712570279836655,
0.0064519778825342655,
0.011148669756948948,
0.0005376648041419685,
-0.04772290959954262,
-0.015728052705526352,
-0.008693876676261425,
0.023357462137937546,
-0.030830461531877518,
0.03098687157034874,
-0.011948106810450554,
0.0012241378426551819,
0.013520912267267704,
0.010757640935480595
] |
721,971
|
apprise.url
|
parse_phone_no
|
A wrapper to utils.parse_phone_no() with unquoting support
Parses a specified set of data and breaks it into a list.
Args:
content (str): The path to split up into a list. If a list is
provided, then it's individual entries are processed.
unquote (:obj:`bool`, optional): call unquote on each element
added to the returned list.
Returns:
list: A unique list containing all of the elements in the path
|
@staticmethod
def parse_phone_no(content, unquote=True):
"""A wrapper to utils.parse_phone_no() with unquoting support
Parses a specified set of data and breaks it into a list.
Args:
content (str): The path to split up into a list. If a list is
provided, then it's individual entries are processed.
unquote (:obj:`bool`, optional): call unquote on each element
added to the returned list.
Returns:
list: A unique list containing all of the elements in the path
"""
if unquote:
try:
content = URLBase.unquote(content)
except TypeError:
# Nothing further to do
return []
content = parse_phone_no(content)
return content
|
(content, unquote=True)
|
[
-0.028887007385492325,
0.035087231546640396,
0.004579105880111456,
0.018653972074389458,
-0.030077308416366577,
0.03819622844457626,
-0.005889325402677059,
-0.04732779040932655,
0.05400769039988518,
-0.06090077757835388,
0.054824911057949066,
0.04924648627638817,
-0.016593152657151222,
-0.0049877166748046875,
0.010792654938995838,
0.007541534025222063,
0.00733278738334775,
0.03713028505444527,
0.026630764827132225,
0.0019420116441324353,
-0.03673944249749184,
0.02721703238785267,
-0.0009443573071621358,
0.050454553216695786,
-0.018129883334040642,
0.01722383312880993,
0.025547057390213013,
-0.025191744789481163,
-0.011041374877095222,
-0.02220710925757885,
0.05642382428050041,
0.03023719973862171,
-0.03236908093094826,
0.005263085011392832,
0.022295936942100525,
-0.010384044609963894,
-0.007159572094678879,
0.06527113169431686,
-0.07781370729207993,
0.03185387700796127,
0.0012191702844575047,
-0.059905897825956345,
0.03546031191945076,
-0.005178697872906923,
-0.005454066209495068,
0.015145248733460903,
-0.029384447261691093,
0.006453386042267084,
-0.05429194122552872,
-0.02826520800590515,
0.03222695738077164,
0.018671737983822823,
-0.04913989081978798,
-0.042211271822452545,
-0.04398784041404724,
0.018902691081166267,
0.018902691081166267,
0.10197504609823227,
0.07660564035177231,
0.05425640940666199,
-0.005231994669884443,
-0.019364599138498306,
-0.046155255287885666,
-0.05834251642227173,
0.04523143917322159,
0.04004386067390442,
0.0433482751250267,
-0.011245680041611195,
-0.017499202862381935,
-0.02055490016937256,
-0.016300018876791,
0.006164693273603916,
-0.06551985442638397,
0.035513609647750854,
0.11924329400062561,
0.015491679310798645,
0.031178781762719154,
0.035904452204704285,
-0.027625644579529762,
0.028087550774216652,
0.04551568999886513,
0.04889117181301117,
0.03375480696558952,
0.016317782923579216,
-0.024623243138194084,
-0.022082749754190445,
0.08371191471815109,
-0.002880261978134513,
-0.008065622299909592,
0.121375173330307,
-0.042815305292606354,
-0.04015045240521431,
-0.046475037932395935,
-0.0002914683136623353,
-0.03865813463926315,
-0.0347319170832634,
-0.04047023504972458,
-0.004019486717879772,
-0.03238684684038162,
-0.023379644379019737,
0.011005843058228493,
0.07305250316858292,
-0.10517286509275436,
-0.041998084634542465,
0.014416854828596115,
-0.041500646620988846,
-0.02069702558219433,
-0.029206790030002594,
0.01255145762115717,
0.029277851805090904,
-0.05876889452338219,
-0.028851475566625595,
-0.02041277475655079,
0.009611236862838268,
0.055748727172613144,
-0.0019453427521511912,
0.033612679690122604,
-0.018280891701579094,
0.004556898958981037,
-0.0229177363216877,
0.01117461733520031,
0.03119654767215252,
-0.06722535938024521,
0.008718511089682579,
0.009486877359449863,
0.03306194394826889,
-0.030077308416366577,
-0.011005843058228493,
0.042317867279052734,
-0.045977599918842316,
0.02160307578742504,
0.030183902010321617,
-0.005720551125705242,
-0.032600037753582,
0.004028369672596455,
0.009433579631149769,
-0.059479519724845886,
0.01447015255689621,
-0.027057141065597534,
-0.021087870001792908,
-0.05265749618411064,
-0.030166136100888252,
0.03691709786653519,
-0.017277130857110023,
-0.0673319548368454,
-0.004528029356151819,
0.06999681144952774,
0.01980874128639698,
-0.032902054488658905,
-0.008709628134965897,
-0.0475054495036602,
0.03181834518909454,
0.06925065070390701,
-0.03236908093094826,
0.0040616802871227264,
0.0060980720445513725,
-0.012373801320791245,
0.0011353384470567107,
0.023397410288453102,
-0.01776568777859211,
-0.006102513521909714,
0.012586989440023899,
0.006142486352473497,
-0.01927577145397663,
0.0035975517239421606,
-0.0031245402060449123,
0.07390525937080383,
-0.07987453043460846,
-0.036988161504268646,
0.03302641212940216,
0.05883995443582535,
0.037592194974422455,
-0.011565462686121464,
-0.00148676591925323,
0.05223112180829048,
0.015305139124393463,
-0.003919554874300957,
0.03652625158429146,
0.0019186942372471094,
0.06687004864215851,
-0.00019958638586103916,
0.03380810096859932,
0.03428777679800987,
0.016211189329624176,
0.042140211910009384,
0.01471887156367302,
-0.012062901630997658,
-0.04416549950838089,
0.03908451274037361,
0.03212036192417145,
-0.03306194394826889,
-0.02012852393090725,
0.025991199538111687,
-0.027163736522197723,
-0.017330428585410118,
-0.02593790367245674,
-0.02234923467040062,
-0.0015667115803807974,
-0.07688989490270615,
-0.025920137763023376,
-0.03638412803411484,
-0.03247567638754845,
-0.013226553797721863,
-0.005120959132909775,
-0.028993600979447365,
0.014958708547055721,
-0.00791461393237114,
0.0530838742852211,
-0.06583963334560394,
0.01339532807469368,
0.03638412803411484,
0.010295215994119644,
-0.01325320266187191,
0.02446335181593895,
0.01434579212218523,
-0.05294174700975418,
-0.010037613101303577,
0.05820039287209511,
0.04832267016172409,
-0.03323959931731224,
-0.00415494991466403,
0.00811003614217043,
0.009477994404733181,
-0.025653652846813202,
0.006426737178117037,
0.01773015595972538,
0.01085483469069004,
0.007252841722220182,
0.018813863396644592,
0.004281530622392893,
0.03077016957104206,
-0.06363669037818909,
0.010508404113352299,
0.025671418756246567,
0.01099696010351181,
-0.03441213443875313,
0.0360998772084713,
-0.025014087557792664,
0.11171063780784607,
-0.03185387700796127,
-0.0011547696776688099,
0.01027745008468628,
-0.015571624971926212,
-0.027874363586306572,
0.016770808026194572,
0.01637108065187931,
-0.0009859956335276365,
0.018183181062340736,
0.002631542505696416,
-0.04459187388420105,
0.002402809215709567,
0.03620646893978119,
0.01952449046075344,
-0.01224944181740284,
-0.0002732862485572696,
-0.02668406255543232,
-0.03993726521730423,
-0.000830545905046165,
-0.020004164427518845,
-0.0020896890200674534,
0.007501561660319567,
-0.10417798906564713,
0.050916459411382675,
-0.02234923467040062,
-0.07610820233821869,
-0.035087231546640396,
-0.004756762646138668,
0.011920776218175888,
-0.005072103813290596,
0.04558675363659859,
-0.046475037932395935,
-0.05027689412236214,
-0.0030357118230313063,
-0.04114533215761185,
-0.01651320606470108,
0.08044303208589554,
-0.01690405048429966,
0.017072824761271477,
0.020927978679537773,
-0.0021307722199708223,
-0.06321031600236893,
0.03112548403441906,
0.00990437064319849,
-0.0492820180952549,
0.029544338583946228,
-0.0339679941534996,
0.029419977217912674,
0.05368790775537491,
-0.09728490561246872,
0.00956682302057743,
-0.022082749754190445,
-0.007732515223324299,
-0.0346786230802536,
-0.002993518253788352,
0.006817582529038191,
-0.021976154297590256,
-0.007372760213911533,
-0.03901344910264015,
0.020910214632749557,
-0.04313508793711662,
-0.03045038878917694,
0.042566586285829544,
-0.009629002772271633,
0.004112756811082363,
-0.03965301439166069,
-0.029952948912978172,
-0.018796097487211227,
-0.021087870001792908,
-0.016957348212599754,
0.0023295257706195116,
-0.020288415253162384,
0.00493441941216588,
-0.030112840235233307,
-0.03338172659277916,
-0.023912614211440086,
0.07362100481987,
-0.01619342342019081,
0.059479519724845886,
-0.030965592712163925,
0.016566503793001175,
0.0081500094383955,
-0.0015400630654767156,
0.031356438994407654,
0.028460631147027016,
0.018138766288757324,
-0.001558939111419022,
0.01307554543018341,
0.015012005344033241,
-0.03563796728849411,
0.05009923875331879,
0.003131202422082424,
0.033932462334632874,
-0.04810947924852371,
-0.02368166111409664,
0.06214437261223793,
-0.051094114780426025,
0.007195103447884321,
-0.05766741931438446,
-0.035407014191150665,
-0.029970714822411537,
-0.018689503893256187,
-0.04007938876748085,
-0.03553137555718422,
0.0037241321988403797,
-0.0017488098237663507,
-0.00606254069134593,
0.07475801557302475,
0.06466709822416306,
0.042459990829229355,
-0.02449888363480568,
0.015544976107776165,
-0.014043775387108326,
-0.00787908211350441,
0.00891837477684021,
0.022757844999432564,
0.0022495801094919443,
-0.041465114802122116,
-0.027732238173484802,
0.026986079290509224,
0.03457202762365341,
0.1054571196436882,
-0.022367000579833984,
0.011885244399309158,
-0.0021141166798770428,
0.025813544169068336,
-0.06225096806883812,
0.014017127454280853,
0.02302432991564274,
0.0444142185151577,
0.005249760579317808,
-0.04100320488214493,
0.013084428384900093,
-0.005098752211779356,
-0.07276825606822968,
0.023770488798618317,
-0.032600037753582,
0.055144693702459335,
0.005196463316679001,
-0.04942414164543152,
0.06203778088092804,
-0.03901344910264015,
0.03274216130375862,
0.03419894725084305,
-0.050383489578962326,
0.0026426459662616253,
-0.018796097487211227,
0.01622007228434086,
0.05642382428050041,
-0.04530250281095505,
0.01556274201720953,
0.037983037531375885,
0.0067642852663993835,
-0.008349873125553131,
0.005889325402677059,
-0.05692126229405403,
-0.03023719973862171,
0.0237527247518301,
-0.014896528795361519,
0.010259684175252914,
-0.0032444586977362633,
0.02199392020702362,
-0.0113700395449996,
-0.005836028140038252,
0.06772279739379883,
-0.003746339352801442,
-0.003064580960199237,
0.02403697557747364,
-0.037734318524599075,
-0.028567224740982056,
-0.004352593328803778,
0.047221194952726364,
-0.037805382162332535,
0.0628194734454155,
-0.04558675363659859,
0.008989437483251095,
-0.001459007035009563,
-0.032795459032058716,
0.045942068099975586,
-0.02005746029317379,
0.021656373515725136,
0.01683298870921135,
-0.021212231367826462,
-0.04110980033874512,
0.07681883126497269,
0.035797860473394394,
0.032600037753582,
0.016246721148490906,
-0.04839373379945755,
0.003437660401687026,
0.014336909167468548,
0.013244319707155228,
0.01704617775976658,
-0.06392094492912292,
-0.06974808871746063,
0.027572346851229668,
0.004092770162969828,
0.03244014456868172,
-0.005005482584238052,
-0.020981276407837868,
-0.03023719973862171,
-0.029846355319023132,
0.09216838330030441,
-0.0024450027849525213,
-0.010108675807714462,
0.0725550651550293,
-0.06615941971540451,
-0.006324584595859051,
0.007728073745965958,
-0.03268886357545853,
-0.04953073710203171,
-0.07966133952140808,
-0.01212508138269186,
0.07625032961368561,
0.013528570532798767,
-0.03615317493677139,
0.030112840235233307,
0.06086524575948715,
0.04427209123969078,
0.020856916904449463,
0.03652625158429146,
0.04448528215289116,
0.06402754038572311,
0.022935502231121063,
-0.05375897139310837,
-0.016699746251106262,
0.05471831560134888,
0.007439381442964077,
0.03281322494149208,
-0.004814501386135817,
0.0007755832630209625,
-0.014425737783312798,
0.01151216495782137,
0.020466072484850883,
0.013155491091310978,
-0.011325625702738762,
0.06054546311497688,
-0.0021707448177039623,
-0.01970214769244194,
0.0496373288333416,
-0.04778970032930374,
0.0001740482111927122,
-0.09842190891504288,
0.012169496156275272,
-0.006395647302269936,
-0.007705866824835539,
-0.032582271844148636,
0.0008927257731556892,
-0.04491165652871132,
0.0017254924168810248,
-0.002187400357797742,
0.021265527233481407,
0.04981498792767525,
0.009029410779476166,
-0.0184052512049675,
0.05198239907622337,
0.02721703238785267,
0.0029912975151091814,
0.015855876728892326,
0.05738316848874092,
-0.010401809588074684,
0.0038196227978914976,
-0.04913989081978798,
0.035264890640974045,
-0.023699427023530006,
0.017632445320487022,
0.06129162013530731,
0.011938542127609253,
0.042069148272275925,
-0.04352593421936035,
-0.016637565568089485,
-0.09174200892448425,
0.015305139124393463,
0.06953489780426025,
0.018129883334040642,
-0.047292258590459824,
0.014905411750078201,
-0.008905050344765186,
0.03615317493677139,
-0.013910532929003239,
0.04860692098736763,
0.008958348073065281,
-0.0019864258356392384,
-0.01367957890033722,
-0.026062263175845146,
0.02188732661306858,
-0.01608682982623577,
-0.10957875847816467,
0.019862039014697075,
-0.013208788819611073,
0.013599633239209652,
0.0516626201570034,
-0.03521159291267395,
0.033719275146722794,
0.006804258096963167,
0.04711460322141647,
0.042815305292606354,
-0.017810100689530373,
-0.059372927993535995,
0.06164693459868431,
0.08499104529619217,
-0.017312662675976753,
0.027661174535751343,
-0.04711460322141647,
-0.019115880131721497,
-0.07774264365434647,
0.027519049122929573,
0.005387444514781237,
0.07262612879276276,
0.03274216130375862,
0.007985676638782024,
0.018209829926490784,
-0.03112548403441906,
0.02647087350487709,
0.005103193689137697,
0.08136684447526932,
-0.07241293787956238,
-0.019613318145275116,
-0.009824424982070923,
-0.05454066023230553,
-0.04015045240521431,
0.0014201445737853646,
-0.009655650705099106,
-0.08030090481042862,
0.02453441359102726,
-0.06186012178659439,
0.03316853940486908,
-0.07234188169240952,
0.0012380463303998113,
-0.05411428213119507,
-0.031072186306118965,
0.04036363959312439,
-0.038018569350242615,
0.03631306439638138,
0.03951088711619377,
0.014256964437663555,
0.010197504423558712,
0.016566503793001175,
-0.05162708833813667,
0.041536178439855576,
0.00083387695485726,
0.04420103132724762,
-0.013697344809770584,
-0.04825160652399063,
-0.0291534923017025,
0.038018569350242615,
-0.0357445627450943,
0.03482074663043022,
-0.006853113882243633,
0.025600355118513107,
-0.025404931977391243,
0.010845951735973358,
0.012809060513973236,
0.042104680091142654,
0.013786173425614834,
-0.0097089484333992,
0.021212231367826462,
-0.046155255287885666,
-0.023237518966197968,
-0.04047023504972458,
0.01816541515290737,
0.016699746251106262,
0.037450067698955536,
0.03684603422880173,
-0.01658426970243454,
0.021141167730093002,
-0.046794820576906204,
-0.02192285843193531,
-0.03876473009586334,
-0.03045038878917694,
-0.03231578692793846,
0.02302432991564274,
-0.013102194294333458,
0.01198295596987009,
0.03620646893978119,
-0.03201377019286156,
0.024800898507237434,
-0.04754097759723663,
-0.026559703052043915,
0.025404931977391243,
-0.02174520120024681,
0.01305778045207262,
-0.020927978679537773,
-0.010588349774479866,
0.027980957180261612,
-0.028780413791537285,
-0.028744881972670555,
-0.04416549950838089,
0.010739358142018318,
-0.046084191650152206,
-0.010055379010736942,
0.055002566426992416,
-0.04029257968068123,
0.042353399097919464,
0.02478313446044922,
-0.023877084255218506,
-0.05670807510614395,
-0.033079709857702255,
-0.041998084634542465,
-0.014683340676128864,
0.015544976107776165,
-0.047221194952726364,
-0.04530250281095505,
-0.07251953333616257,
-0.07653458416461945,
-0.02883370965719223,
-0.004459187388420105,
-0.03887132182717323,
-0.03979513794183731,
0.007741398178040981,
0.037307944148778915,
-0.006502241361886263,
0.056210633367300034,
0.03894238546490669,
0.031356438994407654,
-0.02819414623081684,
0.03553137555718422,
0.023042095825076103,
0.016646448522806168,
-0.014550098218023777,
-0.000050035392632707953,
-0.0013846132205799222,
0.007781371008604765,
0.03242237865924835,
-0.009238157421350479,
-0.055535539984703064,
-0.04267318174242973,
0.013937181793153286,
0.025511527433991432,
0.03890685364603996,
-0.033008646219968796,
0.029331149533391,
0.06122055649757385,
0.01854737661778927,
0.007146247662603855,
-0.012595872394740582,
-0.01429249532520771,
-0.009167094714939594,
-0.0026604116428643465,
0.014949825592339039,
0.06143374741077423,
0.015056420117616653,
-0.04356146603822708,
-0.004499160218983889,
0.0206614937633276,
0.00976224523037672,
0.031605158001184464,
0.028211912140250206,
0.041855957359075546,
0.007252841722220182,
0.02149648219347,
-0.003157850820571184,
0.013155491091310978,
-0.001258032745681703,
0.019258005544543266,
-0.011911893263459206,
0.05706338584423065,
-0.009175977669656277,
-0.002502741292119026,
0.06303265690803528,
0.02675512433052063,
0.01307554543018341,
-0.01619342342019081,
0.012284972704946995,
-0.02016405574977398,
-0.01027745008468628,
-0.0641341283917427,
-0.0520179308950901,
0.04047023504972458,
-0.06537772715091705,
0.054611723870038986,
-0.030166136100888252,
0.028638288378715515,
-0.005187580827623606,
-0.04835820198059082,
0.019542256370186806,
-0.0527285598218441,
0.014985357411205769,
0.03499840572476387,
0.05919526889920235,
0.0350339338183403,
0.04789629206061363,
0.003810739843174815,
0.08612804859876633,
0.025085151195526123,
-0.03499840572476387,
0.015402850694954395,
0.02513844706118107,
-0.006520007271319628,
0.025298338383436203,
-0.038054101169109344,
-0.04320615157485008,
0.05727657675743103,
-0.01311107724905014,
-0.035264890640974045,
-0.0002978528500534594,
-0.03663284704089165,
-0.004912212491035461,
-0.011387805454432964,
-0.01669086329638958,
-0.036046579480171204,
0.01600688509643078,
-0.0024427820462733507,
-0.006435620132833719,
0.03876473009586334,
-0.007506002672016621,
-0.047043539583683014,
0.05780954658985138,
0.021976154297590256,
-0.023237518966197968,
-0.013084428384900093,
-0.04047023504972458,
-0.001531180227175355,
-0.012986717745661736,
-0.008278810419142246,
0.010961429215967655,
0.005471831653267145,
0.00802564900368452,
0.015749281272292137,
-0.020999042317271233,
-0.014425737783312798,
-0.041855957359075546,
0.02270454913377762,
-0.021123401820659637,
0.03302641212940216,
-0.011476634070277214,
0.007728073745965958,
-0.0044125523418188095,
0.005058779381215572
] |
721,972
|
apprise.attachment.base
|
parse_url
|
Parses the URL and returns it broken apart into a dictionary.
This is very specific and customized for Apprise.
Args:
url (str): The URL you want to fully parse.
verify_host (:obj:`bool`, optional): a flag kept with the parsed
URL which some child classes will later use to verify SSL
keys (if SSL transactions take place). Unless under very
specific circumstances, it is strongly recomended that
you leave this default value set to True.
Returns:
A dictionary is returned containing the URL fully parsed if
successful, otherwise None is returned.
|
@staticmethod
def parse_url(url, verify_host=True, mimetype_db=None, sanitize=True):
"""Parses the URL and returns it broken apart into a dictionary.
This is very specific and customized for Apprise.
Args:
url (str): The URL you want to fully parse.
verify_host (:obj:`bool`, optional): a flag kept with the parsed
URL which some child classes will later use to verify SSL
keys (if SSL transactions take place). Unless under very
specific circumstances, it is strongly recomended that
you leave this default value set to True.
Returns:
A dictionary is returned containing the URL fully parsed if
successful, otherwise None is returned.
"""
results = URLBase.parse_url(
url, verify_host=verify_host, sanitize=sanitize)
if not results:
# We're done; we failed to parse our url
return results
# Allow overriding the default config mime type
if 'mime' in results['qsd']:
results['mimetype'] = results['qsd'].get('mime', '') \
.strip().lower()
# Allow overriding the default file name
if 'name' in results['qsd']:
results['name'] = results['qsd'].get('name', '') \
.strip().lower()
# Our cache value
if 'cache' in results['qsd']:
# First try to get it's integer value
try:
results['cache'] = int(results['qsd']['cache'])
except (ValueError, TypeError):
# No problem, it just isn't an integer; now treat it as a bool
# instead:
results['cache'] = parse_bool(results['qsd']['cache'])
return results
|
(url, verify_host=True, mimetype_db=None, sanitize=True)
|
[
-0.004196477588266134,
-0.03827797248959541,
-0.042603056877851486,
0.022959161549806595,
0.007278339937329292,
0.008245292119681835,
0.010479285381734371,
-0.007983310148119926,
-0.00801665335893631,
-0.011365260928869247,
0.008912155404686928,
0.07415523380041122,
-0.0019065154483541846,
0.045384831726551056,
0.0046347021125257015,
-0.032714422792196274,
0.012565615586936474,
0.03616306185722351,
0.0549495592713356,
-0.06828683614730835,
-0.03785879909992218,
-0.012698988430202007,
0.011670112609863281,
0.0526631698012352,
-0.0010687679750844836,
0.04488944634795189,
0.0564357154071331,
-0.02798921801149845,
0.02071087807416916,
0.027398567646741867,
0.0269031822681427,
0.04363193362951279,
0.02968495711684227,
0.052244000136852264,
0.022292297333478928,
-0.022787682712078094,
0.018376855179667473,
0.01441378053277731,
-0.07407902181148529,
-0.003936877008527517,
-0.07244043797254562,
-0.01754803955554962,
0.03427678719162941,
-0.028008271008729935,
0.027341406792402267,
0.05936991423368454,
-0.059446126222610474,
0.045765895396471024,
-0.033400338143110275,
-0.06520020961761475,
0.018110109493136406,
0.03219998627901077,
0.03574388846755028,
0.015899933874607086,
-0.03301927447319031,
0.012556089088320732,
-0.028694188222289085,
0.11317627876996994,
-0.03553430363535881,
0.04374625161290169,
0.007740381173789501,
-0.0017147921025753021,
0.009326564148068428,
-0.0053349086083471775,
-0.005696920678019524,
0.021301528438925743,
-0.039135366678237915,
-0.006435233633965254,
-0.04900494962930679,
-0.01148910727351904,
0.009983900934457779,
-0.02644590474665165,
-0.07083996385335922,
-0.016252418980002403,
0.07137345522642136,
-0.023073481395840645,
-0.050834059715270996,
-0.0012277435744181275,
-0.03534376993775368,
0.04054530709981918,
0.057464588433504105,
0.0005718950997106731,
0.04546104371547699,
-0.07880422472953796,
0.005239642690867186,
-0.013966029509902,
0.0772799625992775,
0.007959493435919285,
0.02509312517940998,
0.09214149415493011,
-0.025016911327838898,
-0.01787194423377514,
-0.007726090960204601,
0.0073736063204705715,
0.01858644187450409,
0.017690937966108322,
-0.03002791479229927,
-0.02865608222782612,
-0.0017147921025753021,
-0.07244043797254562,
-0.0008710905676707625,
0.05384447053074837,
-0.10273510217666626,
-0.08886434137821198,
-0.011365260928869247,
-0.07141156494617462,
-0.01669064350426197,
-0.018624547868967056,
-0.011050882749259472,
0.03258104994893074,
-0.04927169159054756,
-0.09023617208003998,
-0.053615834563970566,
0.04500376805663109,
0.017633778974413872,
-0.03132353723049164,
-0.019062772393226624,
-0.024673953652381897,
0.030523300170898438,
0.018262535333633423,
-0.0509483776986599,
0.08078575879335403,
-0.012813307344913483,
0.028846614062786102,
0.05365394055843353,
0.028179749846458435,
-0.00960759911686182,
-0.013242005370557308,
0.04961465299129486,
0.020024960860610008,
0.03429584205150604,
0.007445055991411209,
-0.031094897538423538,
0.02294010855257511,
0.010946089401841164,
-0.01981537602841854,
-0.005677867215126753,
0.05113891139626503,
-0.026769809424877167,
0.054568495601415634,
-0.030618565157055855,
0.014194668270647526,
0.0025698065292090178,
-0.04683287814259529,
-0.02911335974931717,
-0.036067795008420944,
0.023244960233569145,
-0.06424754112958908,
-0.05422553792595863,
0.023054426535964012,
0.04847145825624466,
-0.005582600831985474,
0.009217008017003536,
0.01441378053277731,
0.002503120107576251,
-0.013242005370557308,
-0.00282464362680912,
-0.032504837960004807,
-0.03290495648980141,
-0.012956206686794758,
-0.04046909511089325,
0.013232478871941566,
0.010374492034316063,
-0.07552706450223923,
-0.025512296706438065,
-0.027855845168232918,
0.029361052438616753,
-0.023054426535964012,
0.01518543716520071,
0.017328927293419838,
-0.019605789333581924,
0.015194963663816452,
-0.08124303817749023,
0.027665313333272934,
0.03745868057012558,
0.03827797248959541,
0.004472749307751656,
-0.014451886527240276,
0.013975556008517742,
-0.003231906797736883,
0.026769809424877167,
-0.03263821080327034,
-0.025359870865941048,
0.056054648011922836,
0.04126932844519615,
0.03730625659227371,
-0.01649058423936367,
-0.004108356311917305,
0.02271146886050701,
0.07270718365907669,
-0.024140462279319763,
-0.04382246360182762,
-0.021606380119919777,
-0.0532347671687603,
0.0016290524508804083,
-0.007664168253540993,
-0.0019779650028795004,
0.0051967729814350605,
-0.04527051001787186,
0.010517391376197338,
-0.05110080540180206,
-0.019605789333581924,
-0.0567786730825901,
0.000621016719378531,
-0.018262535333633423,
-0.04652802646160126,
-0.044698912650346756,
-0.006611476186662912,
-0.038849569857120514,
0.08916918933391571,
-0.02684602327644825,
0.02865608222782612,
-0.05708352476358414,
-0.01767188496887684,
-0.003565338673070073,
-0.04317465424537659,
-0.014813898131251335,
0.07941392809152603,
-0.0019684385042637587,
-0.0033152648247778416,
0.02417856827378273,
-0.014842478558421135,
0.04107879847288132,
-0.0074212392792105675,
-0.027779631316661835,
0.013184846378862858,
0.033114541321992874,
0.018738867715001106,
-0.029837382957339287,
-0.014289934188127518,
-0.010136326774954796,
-0.05052920803427696,
0.05811239778995514,
0.03522945195436478,
0.09999143332242966,
-0.041231222450733185,
0.049462225288152695,
0.05613086000084877,
0.04012613371014595,
-0.009650468826293945,
0.0538063645362854,
0.016157152131199837,
-0.049690864980220795,
0.011955911293625832,
-0.05693109706044197,
-0.0563213936984539,
0.02758909948170185,
0.015347389504313469,
-0.06352352350950241,
-0.055711690336465836,
0.03997370973229408,
-0.009378960356116295,
0.03376235067844391,
-0.02366413176059723,
0.02457868680357933,
-0.012222656980156898,
-0.025855254381895065,
0.017281293869018555,
0.010679344646632671,
-0.06500967592000961,
0.0532347671687603,
-0.05308234319090843,
0.056511927396059036,
0.004663282074034214,
-0.07404091209173203,
-0.001571892760694027,
0.031018683686852455,
0.016452478244900703,
-0.005401595029979944,
0.027855845168232918,
0.09214149415493011,
0.008597777225077152,
-0.00045698019675910473,
0.013718336820602417,
-0.02798921801149845,
0.02337833307683468,
-0.00035308045335114,
-0.011365260928869247,
0.004627557005733252,
-0.03412436321377754,
-0.0020970478653907776,
0.029780223965644836,
0.04001181572675705,
-0.006849641911685467,
0.055140092968940735,
-0.06843926012516022,
-0.046566132456064224,
0.06100849434733391,
-0.02292105369269848,
0.03707761690020561,
-0.008049996569752693,
-0.009659995324909687,
-0.016900228336453438,
-0.04976707696914673,
-0.02604578621685505,
0.01944383792579174,
-0.022882947698235512,
-0.014880584552884102,
0.05399689823389053,
0.0065971864387393,
-0.05319666117429733,
-0.007278339937329292,
0.03501986712217331,
0.018081530928611755,
-0.0033819510135799646,
0.029475370422005653,
-0.014775792136788368,
-0.043670039623975754,
0.00630186079069972,
0.025626614689826965,
0.045994535088539124,
-0.00857396051287651,
0.0003655841574072838,
0.01580466702580452,
-0.0273604616522789,
0.039592646062374115,
-0.016395317390561104,
0.025283657014369965,
-0.007745144423097372,
0.026998449116945267,
-0.031647440046072006,
0.04671856015920639,
0.008716859854757786,
0.01932951807975769,
0.07164020091295242,
-0.03928779438138008,
0.024845432490110397,
0.016966914758086205,
-0.026579277589917183,
0.030504247173666954,
-0.02219703048467636,
0.06561937928199768,
-0.011555793695151806,
0.042031459510326385,
-0.0021125285420566797,
-0.028465548530220985,
-0.020120227709412575,
-0.058036185801029205,
-0.0024626320227980614,
-0.04405110329389572,
0.020977623760700226,
-0.048890627920627594,
-0.046680450439453125,
-0.04184092581272125,
-0.020901409909129143,
-0.023073481395840645,
0.010612658224999905,
-0.025074072182178497,
0.03309548646211624,
-0.08855948597192764,
-0.02303537353873253,
-0.08787357062101364,
-0.035610515624284744,
0.025721881538629532,
0.07289771735668182,
-0.044584594666957855,
-0.062189795076847076,
-0.10052492469549179,
0.01035543903708458,
-0.0037153828889131546,
0.0784231573343277,
0.0056445240043103695,
-0.0548352412879467,
0.01591898687183857,
-0.007540321908891201,
-0.040278561413288116,
0.029989808797836304,
0.023816557601094246,
0.08947404474020004,
-0.02015833370387554,
-0.0063066245056688786,
-0.0010318523272871971,
-0.0024959752336144447,
-0.07217369228601456,
0.049233585596084595,
-0.019424784928560257,
0.03978317603468895,
-0.006930618081241846,
-0.06398079544305801,
0.03157122805714607,
-0.027836792171001434,
0.07777535170316696,
-0.035381875932216644,
-0.020977623760700226,
0.028027324005961418,
-0.08680658787488937,
-0.012422716245055199,
0.04431784898042679,
-0.0022173214238137007,
0.01055549830198288,
0.030275607481598854,
0.0013611161848530173,
0.04961465299129486,
0.056283287703990936,
-0.023854663595557213,
0.009297983720898628,
-0.027036555111408234,
0.03608684614300728,
-0.03734436258673668,
0.0011455763597041368,
-0.006959198042750359,
-0.0527774915099144,
-0.017595672979950905,
0.029761169105768204,
-0.001963675022125244,
-0.03540093079209328,
0.06813440471887589,
0.014623366296291351,
-0.004163134377449751,
-0.013785023242235184,
0.025397976860404015,
-0.06828683614730835,
-0.034810278564691544,
-0.055864118039608,
-0.031209217384457588,
0.04195524752140045,
-0.01007916685193777,
-0.004939553793519735,
0.005777896847575903,
0.05136755108833313,
0.03574388846755028,
-0.0015111605171114206,
-0.01606188528239727,
0.0021756424102932215,
-0.01432804111391306,
0.023187799379229546,
0.03008507564663887,
-0.0002771651779767126,
-0.04317465424537659,
0.021492060273885727,
0.05079595372080803,
0.034429214894771576,
-0.023816557601094246,
-0.07255475968122482,
-0.006925854831933975,
0.02429288811981678,
-0.0008311978308483958,
0.019396204501390457,
-0.0044870395213365555,
-0.038563769310712814,
-0.07110670953989029,
-0.02116815559566021,
-0.02377844974398613,
0.029646851122379303,
0.07994741946458817,
-0.028332175686955452,
-0.04363193362951279,
0.01781478524208069,
-0.013156265951693058,
-0.03444826975464821,
-0.10753651708364487,
-0.005601654294878244,
0.021777858957648277,
-0.03541998192667961,
-0.037325307726860046,
0.03309548646211624,
0.0020601321011781693,
0.05704541876912117,
-0.0137373898178339,
0.044584594666957855,
0.03806838393211365,
-0.004089302849024534,
0.022292297333478928,
-0.07857558876276016,
-0.033914778381586075,
0.06531452387571335,
-0.0011658205185085535,
0.021015729755163193,
-0.02985643595457077,
-0.040888264775276184,
-0.04984328895807266,
-0.0009353953064419329,
0.022235138341784477,
0.02031075954437256,
-0.017071709036827087,
0.02566472254693508,
0.011717746034264565,
-0.00868828035891056,
-0.011612953618168831,
-0.04507998004555702,
-0.020787091925740242,
-0.024731112644076347,
0.00613038195297122,
0.01234650332480669,
0.0039726016111671925,
-0.08612067252397537,
0.019110405817627907,
-0.05856967717409134,
0.003134259022772312,
0.01606188528239727,
-0.00395116675645113,
0.0516342967748642,
0.0067829554900527,
0.034086257219314575,
0.019091352820396423,
0.008669226430356503,
0.0278748981654644,
0.039935603737831116,
0.044127315282821655,
-0.03486743941903114,
0.040164243429899216,
-0.08566339313983917,
0.002491211984306574,
0.04081205278635025,
0.012946680188179016,
0.03648696467280388,
-0.03740151971578598,
0.06756281107664108,
0.00641618063673377,
0.01892939954996109,
-0.06737227737903595,
0.035381875932216644,
0.06375215947628021,
-0.0004900256753899157,
-0.021606380119919777,
-0.013794549740850925,
0.001893416279926896,
0.006397127173841,
-0.034810278564691544,
0.0032199984416365623,
0.004758547991514206,
0.02292105369269848,
0.04614696279168129,
-0.022692415863275528,
-0.02928483858704567,
0.016652537509799004,
0.006268518045544624,
0.03608684614300728,
-0.03951643034815788,
-0.004367956425994635,
0.04126932844519615,
0.012070231139659882,
0.016442950814962387,
-0.01844354160130024,
0.05216778814792633,
0.06123713031411171,
-0.04252684488892555,
-0.02497880533337593,
-0.02951347827911377,
-0.012927627190947533,
0.051786720752716064,
0.0269031822681427,
-0.03254294395446777,
-0.029837382957339287,
-0.011927331797778606,
-0.009683812037110329,
0.01166058611124754,
0.046680450439453125,
0.012794254347682,
-0.03128543123602867,
-0.026026733219623566,
0.028522709384560585,
0.09701912850141525,
-0.05719784274697304,
0.02684602327644825,
-0.016395317390561104,
0.049347907304763794,
-0.04881441593170166,
-0.0027412858325988054,
-0.019548630341887474,
-0.01044117845594883,
-0.05365394055843353,
-0.06535263359546661,
0.03059951215982437,
-0.08200517296791077,
-0.0009907687781378627,
-0.014156561344861984,
0.038449451327323914,
-0.027627205476164818,
-0.026464957743883133,
0.031876079738140106,
-0.012889520265161991,
0.01910087838768959,
0.021587327122688293,
0.024540580809116364,
-0.008054759353399277,
-0.0012408426264300942,
0.00883594248443842,
0.03989749774336815,
0.003729672869667411,
0.03614400699734688,
-0.020634664222598076,
0.01129857450723648,
-0.020253600552678108,
-0.029322944581508636,
-0.046680450439453125,
0.06859168410301208,
0.0567786730825901,
-0.026979396119713783,
0.023511705920100212,
-0.0517486147582531,
-0.020977623760700226,
-0.004772838205099106,
0.00451085576787591,
-0.011822539381682873,
-0.034886494278907776,
0.029094306752085686,
-0.04229820519685745,
-0.011851118877530098,
0.012422716245055199,
0.0008913346682675183,
-0.012927627190947533,
-0.00263887457549572,
-0.07987120747566223,
-0.02274957485496998,
-0.00017162806761916727,
-0.029132412746548653,
0.06119902431964874,
-0.02071087807416916,
-0.05171050876379013,
0.028027324005961418,
-0.01754803955554962,
-0.012241709977388382,
0.06638150662183762,
0.02587430737912655,
0.017414666712284088,
-0.050719741731882095,
0.012298869900405407,
-0.04149796813726425,
-0.023740343749523163,
0.006158961448818445,
0.04012613371014595,
0.05102459341287613,
0.015347389504313469,
-0.038220811635255814,
-0.016824016347527504,
-0.012765674851834774,
0.030447086319327354,
-0.06862979382276535,
-0.011841592378914356,
0.08078575879335403,
0.02015833370387554,
0.03509607911109924,
-0.00858825072646141,
0.003546285443007946,
0.011451000347733498,
0.05102459341287613,
0.031094897538423538,
0.011584373190999031,
0.04290790855884552,
0.0834532156586647,
-0.0137373898178339,
-0.022444723173975945,
0.01580466702580452,
-0.008426297456026077,
0.017709990963339806,
0.008531090803444386,
-0.013156265951693058,
0.036582231521606445,
-0.016814488917589188,
-0.005468281451612711,
-0.012136917561292648,
0.06683878600597382,
0.012336976826190948,
-0.042984120547771454,
0.05125322937965393,
0.03280968964099884,
0.0037701609544456005,
-0.03267631679773331,
-0.03511513024568558,
-0.021149102598428726,
0.0008192895911633968,
-0.03263821080327034,
-0.0536920465528965,
0.019281884655356407,
-0.02093951776623726,
0.016185732558369637,
0.03568672761321068,
0.010879402980208397,
-0.012394136749207973,
0.03782069310545921,
0.017195554450154305,
0.015080643817782402,
0.04904305562376976,
0.026236319914460182,
-0.0564357154071331,
-0.054111216217279434,
-0.02219703048467636,
0.011108042672276497,
0.010746030136942863,
0.021930286660790443,
0.008421534672379494,
-0.027951112017035484,
0.07758481800556183,
-0.016785910353064537,
0.01932951807975769,
0.07548896223306656,
-0.01703360117971897,
-0.05132944509387016,
-0.007687984500080347,
-0.032085664570331573,
-0.025969574227929115,
0.008512037806212902,
0.008512037806212902,
0.02111099660396576,
-0.04519429802894592,
-0.005935085937380791,
0.02263525500893593,
0.02196839265525341,
0.015585554763674736,
0.048738203942775726,
-0.01654774323105812,
-0.005163429770618677,
0.004891920834779739,
-0.0028460784815251827,
0.002736522350460291,
-0.035781994462013245,
0.006744849029928446,
-0.03545809164643288,
0.04267926886677742,
-0.018291115760803223,
0.00035486670094542205,
0.014813898131251335,
-0.01663348264992237,
-0.0005159261636435986,
0.005144376307725906,
-0.013442064635455608,
-0.02372129075229168,
0.005101506598293781,
0.03496270626783371,
-0.01109851524233818,
-0.03829702362418175,
0.03456258773803711,
0.020291706547141075,
-0.005825529806315899,
0.01283236127346754,
-0.012679935432970524,
-0.003143785521388054,
0.031171109527349472,
-0.007130677346140146,
-0.05708352476358414,
0.04313654825091362,
-0.010117273777723312,
0.02282578870654106,
-0.028808508068323135,
-0.050033822655677795,
0.01007916685193777,
-0.03553430363535881,
0.012460822239518166,
0.018548334017395973,
0.022330403327941895,
0.021720699965953827,
-0.03372424468398094,
0.009955320507287979,
-0.019462890923023224,
-0.0008026179857552052,
0.01881507970392704,
-0.006225647870451212,
0.006254227831959724,
0.04885252192616463,
0.007083043921738863,
0.018948452547192574,
0.00962188933044672,
0.04908116161823273,
0.014775792136788368,
-0.029265785589814186,
-0.016528690233826637,
0.027951112017035484,
0.027322353795170784,
0.005087216384708881,
0.029646851122379303,
0.0027055609971284866,
-0.026141053065657616,
0.04629938676953316,
0.005601654294878244,
0.017224134877324104,
0.0009258686332032084,
-0.01507111731916666
] |
721,973
|
apprise.url
|
post_process_parse_url_results
|
After parsing the URL, this function applies a bit of extra logic to
support extra entries like `pass` becoming `password`, etc
This function assumes that parse_url() was called previously setting
up the basics to be checked
|
@staticmethod
def post_process_parse_url_results(results):
"""
After parsing the URL, this function applies a bit of extra logic to
support extra entries like `pass` becoming `password`, etc
This function assumes that parse_url() was called previously setting
up the basics to be checked
"""
# if our URL ends with an 's', then assume our secure flag is set.
results['secure'] = (results['schema'][-1] == 's')
# QSD Checking (over-rides all)
qsd_exists = True if isinstance(results.get('qsd'), dict) else False
if qsd_exists and 'verify' in results['qsd']:
# Pulled from URL String
results['verify'] = parse_bool(
results['qsd'].get('verify', True))
elif 'verify' in results:
# Pulled from YAML Configuratoin
results['verify'] = parse_bool(results.get('verify', True))
else:
# Support SSL Certificate 'verify' keyword. Default to being
# enabled
results['verify'] = True
# Password overrides
if 'pass' in results:
results['password'] = results['pass']
del results['pass']
if qsd_exists:
if 'password' in results['qsd']:
results['password'] = results['qsd']['password']
if 'pass' in results['qsd']:
results['password'] = results['qsd']['pass']
# User overrides
if 'user' in results['qsd']:
results['user'] = results['qsd']['user']
# parse_url() always creates a 'password' and 'user' entry in the
# results returned. Entries are set to None if they weren't
# specified
if results['password'] is None and 'user' in results['qsd']:
# Handle cases where the user= provided in 2 locations, we want
# the original to fall back as a being a password (if one
# wasn't otherwise defined) e.g.
# mailtos://PASSWORD@hostname?user=admin@mail-domain.com
# - in the above, the PASSWORD gets lost in the parse url()
# since a user= over-ride is specified.
presults = parse_url(results['url'])
if presults:
# Store our Password
results['password'] = presults['user']
# Store our socket read timeout if specified
if 'rto' in results['qsd']:
results['rto'] = results['qsd']['rto']
# Store our socket connect timeout if specified
if 'cto' in results['qsd']:
results['cto'] = results['qsd']['cto']
if 'port' in results['qsd']:
results['port'] = results['qsd']['port']
return results
|
(results)
|
[
0.016886290162801743,
0.008230769075453281,
-0.014554868452250957,
0.03339502215385437,
-0.01396965328603983,
0.0018146390793845057,
0.002921356586739421,
-0.03313073143362999,
0.03735938295722008,
-0.035811394453048706,
0.019595270976424217,
0.05546329915523529,
0.020369265228509903,
0.0065459152683615685,
0.014403845183551311,
0.00835819449275732,
0.01756589487195015,
0.06675229221582413,
0.032130204141139984,
-0.019595270976424217,
-0.004551935940980911,
-0.018708009272813797,
0.02846788801252842,
0.08623429387807846,
-0.0030228253453969955,
0.0032375615555793047,
0.033243998885154724,
-0.03862420469522476,
0.03158274292945862,
0.04730804264545441,
0.016216125339269638,
0.025730591267347336,
0.03309297561645508,
0.08193013072013855,
0.02131316065788269,
-0.04281510040163994,
0.014705891720950603,
0.09295482933521271,
-0.06716760247945786,
0.0105055570602417,
-0.08714043349027634,
0.001196977449581027,
-0.0041295429691672325,
-0.014592624269425869,
0.026164783164858818,
0.017584772780537605,
-0.09990189969539642,
0.07989131659269333,
-0.051763229072093964,
-0.09469159692525864,
0.0066969385370612144,
0.018953422084450722,
0.01858530193567276,
0.03169601038098335,
0.038076743483543396,
-0.021822864189743996,
-0.02705204486846924,
0.06724311411380768,
-0.010552751831710339,
0.017754673957824707,
0.021369794383645058,
0.029694952070713043,
-0.03628334403038025,
0.031186308711767197,
-0.034527696669101715,
-0.00835819449275732,
-0.02958168461918831,
-0.025164254009723663,
-0.012176251970231533,
-0.027656137943267822,
0.022087154909968376,
-0.01802840456366539,
-0.06018277630209923,
-0.02899646945297718,
0.0679604783654213,
0.0015043334569782019,
-0.021162137389183044,
-0.010250705294311047,
-0.000596423982642591,
0.032790929079055786,
-0.017093947157263756,
0.014904109761118889,
-0.007787138223648071,
-0.05972970649600029,
-0.0030086669139564037,
0.014904109761118889,
0.06407162547111511,
0.005441557615995407,
0.03214908018708229,
0.093256875872612,
-0.005144230555742979,
-0.03228122740983963,
0.0077446624636650085,
0.035773638635873795,
-0.02695765532553196,
0.007046179845929146,
-0.003216323908418417,
-0.0037590637803077698,
-0.03586803004145622,
-0.04783662408590317,
0.004315962083637714,
0.02574946917593479,
-0.08223217725753784,
-0.040247704833745956,
0.024182602763175964,
-0.050781577825546265,
-0.031148552894592285,
-0.040700774639844894,
0.0420222282409668,
0.016659755259752274,
-0.05119689181447029,
-0.09529569000005722,
-0.027467358857393265,
0.04277734458446503,
0.007843771949410439,
-0.025202009826898575,
-0.013318365439772606,
-0.03785020858049393,
-0.027391847223043442,
0.0022924861405044794,
-0.00898116547614336,
0.057049043476581573,
0.017509261146187782,
0.031148552894592285,
0.009103871881961823,
0.014554868452250957,
-0.02505098655819893,
-0.017216654494404793,
0.05414184555411339,
0.010118559934198856,
0.015158961527049541,
0.03915278613567352,
0.005441557615995407,
0.003305993974208832,
-0.012997440993785858,
-0.0394170768558979,
-0.0297138299793005,
0.05572758987545967,
-0.025296399369835854,
0.037718065083026886,
0.012006350792944431,
0.0071500083431601524,
-0.033017463982105255,
-0.08434650301933289,
-0.029694952070713043,
-0.021464183926582336,
0.020086096599698067,
-0.039228297770023346,
-0.032923076301813126,
-0.024899963289499283,
0.06947071105241776,
-0.008329877629876137,
-0.013186220079660416,
-0.011279551312327385,
0.008806545287370682,
0.008485620841383934,
0.009637173265218735,
-0.05470818281173706,
-0.022408079355955124,
-0.014215066097676754,
-0.01858530193567276,
-0.05950317159295082,
0.004776111338287592,
-0.0495733916759491,
0.020086096599698067,
0.0005719416658394039,
0.08298729360103607,
-0.07875864207744598,
0.016961801797151566,
0.0223325677216053,
-0.03379146009683609,
0.0646757185459137,
-0.05512349680066109,
0.03667977824807167,
0.019557515159249306,
0.04239978641271591,
0.04643965885043144,
-0.07362385094165802,
-0.02984597533941269,
-0.043268170207738876,
-0.036830801516771317,
-0.018755203112959862,
-0.01228008046746254,
0.03303634375333786,
0.0666767805814743,
0.03726499527692795,
-0.02482445165514946,
0.014281138777732849,
-0.0053377291187644005,
0.06297671049833298,
-0.04534474015235901,
-0.03228122740983963,
0.0030417032539844513,
0.0016647956799715757,
0.015838567167520523,
-0.007862649857997894,
-0.014158432371914387,
0.026051515713334084,
0.0009669029386714101,
-0.014753086492419243,
-0.02571171335875988,
-0.03930380940437317,
-0.03233785927295685,
0.0005353657179512084,
-0.030129143968224525,
-0.03707621619105339,
-0.04304163530468941,
0.019557515159249306,
-0.043721240013837814,
0.028977591544389725,
0.0034924133215099573,
0.0015975431306287646,
-0.017688602209091187,
0.029808219522237778,
-0.03001587651669979,
-0.00835819449275732,
0.09869371354579926,
0.041493646800518036,
-0.012110179290175438,
0.03815225511789322,
0.08102399110794067,
-0.03796347603201866,
0.03571700677275658,
0.011402257718145847,
-0.0007810735260136425,
0.03937932103872299,
0.03471647575497627,
-0.03552822768688202,
-0.02176623046398163,
-0.04013443738222122,
0.038265522569417953,
-0.025768347084522247,
0.021029992029070854,
0.05923888087272644,
0.06025828793644905,
-0.05112138018012047,
0.031186308711767197,
-0.024125969037413597,
0.024276992306113243,
0.015451569110155106,
0.010892554186284542,
-0.01454542949795723,
-0.024409137666225433,
0.0006613167934119701,
-0.03556598350405693,
-0.003810978028923273,
0.02895871363580227,
-0.002619310049340129,
-0.011326746083796024,
-0.04617536813020706,
0.004695880226790905,
0.005819115787744522,
0.02926076017320156,
0.0009344565332867205,
0.0032352018170058727,
-0.017292166128754616,
-0.01467757485806942,
0.02055804431438446,
0.04262632131576538,
-0.03596241772174835,
0.05463267117738724,
-0.017292166128754616,
0.00014910599566064775,
0.007244397886097431,
-0.015772493556141853,
-0.02810920774936676,
0.029185248538851738,
-0.013648728840053082,
-0.007168886251747608,
-0.005399082321673632,
0.030827626585960388,
0.01210074033588171,
-0.017679162323474884,
0.002595712663605809,
-0.036113440990448,
0.05621841549873352,
0.01589520089328289,
0.01845315657556057,
0.029921486973762512,
-0.04341919347643852,
0.05138567090034485,
0.02038814313709736,
0.02344636432826519,
-0.0200294628739357,
0.042475298047065735,
-0.010977504774928093,
-0.04670394957065582,
0.06237261742353439,
-0.02518313191831112,
0.024012701585888863,
-0.023314218968153,
-0.04998870566487312,
0.0456467866897583,
-0.0210111141204834,
-0.026183661073446274,
0.011978033930063248,
-0.053575508296489716,
-0.041946716606616974,
0.016867412254214287,
-0.05032850801944733,
-0.0633920207619667,
-0.01085479836910963,
0.011817571707069874,
0.017443189397454262,
0.062448129057884216,
0.03154498711228371,
-0.003992678131908178,
-0.04455186799168587,
0.017839625477790833,
-0.03911503031849861,
0.011326746083796024,
0.0020801096688956022,
0.0031880070455372334,
-0.015914078801870346,
-0.019689660519361496,
-0.020803457126021385,
0.020104974508285522,
-0.016640877351164818,
0.002384515944868326,
0.03028016723692417,
-0.05470818281173706,
-0.011694865301251411,
0.017244970425963402,
-0.01898173801600933,
0.07252892851829529,
-0.011553280986845493,
0.021483061835169792,
0.016065102070569992,
0.01530054584145546,
0.04243754222989082,
-0.04307939112186432,
0.04708150774240494,
-0.00765027292072773,
0.020369265228509903,
-0.03507515788078308,
-0.08540366590023041,
-0.0394170768558979,
-0.06169300898909569,
0.024654550477862358,
-0.06679004430770874,
0.0046534049324691296,
-0.07694636285305023,
-0.011288990266621113,
-0.036528754979372025,
0.03139396384358406,
-0.05693577602505684,
-0.021860620006918907,
0.02801481820642948,
0.017754673957824707,
-0.051536694169044495,
0.011449452489614487,
-0.04719477519392967,
-0.03237561509013176,
0.06478898972272873,
0.0692819282412529,
-0.030431190505623817,
-0.04961114749312401,
-0.06648799777030945,
0.026901021599769592,
-0.028656667098402977,
0.045269228518009186,
0.0027136995922774076,
-0.017480945214629173,
0.027901550754904747,
0.05323570594191551,
-0.02420148067176342,
0.02167184092104435,
0.00788152776658535,
0.06773394346237183,
-0.020633555948734283,
0.008320438675582409,
-0.037416018545627594,
0.030450068414211273,
-0.09318136423826218,
0.026674486696720123,
-0.0015798450913280249,
-0.0004920055507682264,
-0.01907612755894661,
-0.032621029764413834,
0.023163195699453354,
0.004750153981149197,
0.021124381572008133,
-0.021860620006918907,
0.02637244015932083,
0.05414184555411339,
-0.08328934013843536,
-0.038567569106817245,
0.05776640400290489,
0.05195200815796852,
0.043721240013837814,
-0.038265522569417953,
0.032979708164930344,
0.04862949624657631,
0.009368162602186203,
0.009995853528380394,
0.047761112451553345,
-0.039228297770023346,
0.0005831504240632057,
-0.0564827062189579,
-0.006050370167940855,
-0.001114976592361927,
-0.06833803653717041,
0.026127027347683907,
0.029298515990376472,
-0.011666548438370228,
-0.011307868175208569,
0.033376146107912064,
0.030261289328336716,
-0.021256526932120323,
0.022974416613578796,
0.005734165199100971,
-0.039454832673072815,
0.034131262451410294,
-0.05946541577577591,
-0.05512349680066109,
0.006508159451186657,
-0.014432162046432495,
0.06595941632986069,
0.032979708164930344,
0.0403987281024456,
0.03356492519378662,
-0.05470818281173706,
-0.012298958376049995,
0.0169146079570055,
-0.01723553240299225,
0.031771522015333176,
-0.006040931213647127,
-0.0027821320109069347,
-0.03503740206360817,
-0.0010996382916346192,
0.05198976397514343,
0.040209949016571045,
-0.016839096322655678,
-0.005427399184554815,
0.009613575413823128,
0.021785108372569084,
0.00881598424166441,
0.024446893483400345,
0.006673341151326895,
-0.018236061558127403,
-0.027391847223043442,
0.019227150827646255,
-0.01572529971599579,
0.01793401502072811,
0.11372052878141403,
-0.020312631502747536,
-0.05168771743774414,
0.007154727820307016,
-0.01835876703262329,
-0.016470976173877716,
-0.07445447891950607,
0.0058663105592131615,
0.0022606297861784697,
-0.02357850968837738,
-0.08419547975063324,
0.058332741260528564,
0.014441601000726223,
0.0377558209002018,
-0.0008353475132025778,
0.05066831037402153,
0.06003175303339958,
-0.03090313822031021,
-0.015158961527049541,
0.029808219522237778,
-0.04560903087258339,
0.0169146079570055,
-0.022804515436291695,
0.025428544729948044,
-0.03511291369795799,
0.012298958376049995,
-0.06327875703573227,
-0.024050457403063774,
-0.012006350792944431,
0.03263990581035614,
0.002449408872053027,
-0.00013605368440039456,
0.020123852416872978,
-0.030846504494547844,
-0.05236732214689255,
-0.017386555671691895,
-0.06656350940465927,
-0.024125969037413597,
0.015111766755580902,
-0.0007061518263071775,
0.007480371743440628,
-0.08019336313009262,
0.04832744970917702,
-0.04840296134352684,
0.035679250955581665,
0.01930266246199608,
-0.003355548484250903,
0.008136379532516003,
0.04609985649585724,
-0.0031620499212294817,
-0.03112967498600483,
-0.009613575413823128,
0.021369794383645058,
0.02469230629503727,
0.05969195067882538,
-0.06460020691156387,
0.03796347603201866,
-0.029468417167663574,
0.027656137943267822,
0.009188822470605373,
0.04209773987531662,
0.016367148607969284,
-0.07562490552663803,
0.08676287531852722,
0.02272900380194187,
0.04311714693903923,
-0.070943184196949,
0.012950246222317219,
0.07502081245183945,
-0.03796347603201866,
-0.004379675257951021,
0.006224990822374821,
-0.0021202252246439457,
0.0201993640512228,
-0.02718419022858143,
-0.02788267284631729,
-0.010222388431429863,
0.07653104513883591,
0.015102327801287174,
-0.03333839029073715,
-0.012327275238931179,
0.05871029943227768,
0.0021391031332314014,
0.023597387596964836,
-0.019057249650359154,
-0.04357021674513817,
0.0265989750623703,
-0.006154198665171862,
0.01785850338637829,
-0.02571171335875988,
0.04866725206375122,
0.032790929079055786,
-0.03309297561645508,
-0.020369265228509903,
-0.07283097505569458,
-0.009873147122561932,
0.06694106757640839,
0.04036097228527069,
-0.047270286828279495,
-0.03845430165529251,
-0.042475298047065735,
0.026844387874007225,
-0.016338830813765526,
0.05753986909985542,
-0.034131262451410294,
-0.03129957616329193,
-0.03145059943199158,
0.0384165458381176,
0.07132074236869812,
-0.025164254009723663,
0.0071500083431601524,
-0.03486749902367592,
0.023635143414139748,
-0.01694292388856411,
0.016489854082465172,
-0.008957568556070328,
0.0030322642996907234,
-0.04311714693903923,
-0.1119837611913681,
-0.014167871326208115,
-0.05240507796406746,
-0.04311714693903923,
0.0005793158779852092,
0.02997812069952488,
-0.07335955649614334,
-0.004197975154966116,
0.020935602486133575,
-0.0160934180021286,
-0.02646682970225811,
0.008707435801625252,
0.01931210234761238,
-0.049309100955724716,
0.007192483637481928,
0.007725784555077553,
0.03592466190457344,
0.026901021599769592,
0.029279638081789017,
0.025787224993109703,
0.02518313191831112,
-0.02055804431438446,
-0.013950775377452374,
-0.0321868360042572,
0.04730804264545441,
0.01957639306783676,
0.016197247430682182,
0.004370236303657293,
-0.08487508445978165,
-0.01940649189054966,
-0.022804515436291695,
-0.018103916198015213,
-0.011402257718145847,
0.022408079355955124,
0.016272759065032005,
-0.03558485954999924,
0.03139396384358406,
0.011005821637809277,
-0.05750211328268051,
0.014026287011802197,
0.005139511078596115,
-0.05036626383662224,
-0.013384438119828701,
-0.014035725966095924,
-0.03148835524916649,
0.018462596461176872,
-0.02731633558869362,
-0.03398023918271065,
0.048251938074827194,
-0.0160934180021286,
0.02669336460530758,
0.05300917103886604,
0.006031492259353399,
0.012487737461924553,
-0.07494530081748962,
0.014262260869145393,
-0.0020553325302898884,
-0.022615736350417137,
0.0015940035227686167,
0.027863794937729836,
0.010345094837248325,
0.04217325150966644,
-0.06875334680080414,
-0.008211891166865826,
-0.02406933531165123,
0.031847033649683,
-0.09869371354579926,
-0.009910902939736843,
0.011940278112888336,
0.027693893760442734,
0.06025828793644905,
-0.015262790024280548,
-0.025164254009723663,
0.007414299063384533,
0.049799926578998566,
-0.02478669583797455,
0.008221330121159554,
-0.0009350464679300785,
0.023200951516628265,
-0.02410709112882614,
-0.008485620841383934,
-0.004301803652197123,
-0.03060109168291092,
0.020237119868397713,
0.00988258607685566,
-0.037906844168901443,
0.06954622268676758,
0.009892025031149387,
-0.013733679428696632,
0.032526638358831406,
0.0656951293349266,
0.01783018559217453,
-0.028543399646878242,
0.008797106333076954,
0.020595800131559372,
0.06256139278411865,
0.025371911004185677,
-0.04153140261769295,
-0.032035812735557556,
0.007499249652028084,
0.013535461388528347,
-0.01700899749994278,
-0.014649257995188236,
0.0192082729190588,
0.016046224161982536,
0.025126498192548752,
0.019916195422410965,
-0.013290048576891422,
0.07679533958435059,
-0.024050457403063774,
0.030129143968224525,
0.06875334680080414,
0.03099752776324749,
-0.053802043199539185,
-0.022181544452905655,
-0.0578041598200798,
-0.00929265096783638,
-0.020614678040146828,
0.0321868360042572,
-0.02180398628115654,
-0.03622670844197273,
0.04621312394738197,
-0.005743604153394699,
0.02522088773548603,
0.11802469193935394,
-0.008310999721288681,
-0.06494001299142838,
-0.030129143968224525,
-0.036472123116254807,
-0.030185777693986893,
0.011515525169670582,
0.02926076017320156,
-0.0297138299793005,
-0.022106032818555832,
-0.028977591544389725,
0.00507343839854002,
0.07007480412721634,
0.007692748215049505,
0.03011026605963707,
-0.024767817929387093,
0.02482445165514946,
0.005502910818904638,
-0.0066922190599143505,
-0.02735409140586853,
-0.031054163351655006,
-0.030978649854660034,
0.00868383888155222,
0.04013443738222122,
-0.025390788912773132,
-0.008882056921720505,
0.04036097228527069,
-0.05512349680066109,
-0.02006721869111061,
0.015017377212643623,
-0.047798868268728256,
-0.03433891758322716,
-0.02006721869111061,
0.0028080891352146864,
0.02197388745844364,
-0.01773579604923725,
0.013799752108752728,
0.016112295910716057,
0.00814581848680973,
-0.0007315190159715712,
-0.034924134612083435,
-0.022483590990304947,
0.08608327060937881,
-0.01023182738572359,
-0.06716760247945786,
0.0528581477701664,
-0.01472476962953806,
0.06905539333820343,
-0.059616439044475555,
-0.015574276447296143,
0.011572158895432949,
-0.007664431352168322,
-0.019595270976424217,
0.06248588487505913,
-0.0027231385465711355,
0.03398023918271065,
-0.0038723312318325043,
0.021785108372569084,
-0.009155786596238613,
0.005054560489952564,
0.02184174209833145,
0.0071500083431601524,
-0.0058663105592131615,
0.008759350515902042,
0.023106561973690987,
0.023823922500014305,
-0.023635143414139748,
0.027165312319993973,
-0.008546973578631878,
0.023068806156516075,
0.021369794383645058,
0.006814925465732813,
-0.003211604431271553,
0.006852681282907724,
-0.0015420892741531134,
0.01785850338637829,
-0.008952848613262177,
0.06686555594205856,
0.0287321787327528,
0.021879497915506363,
-0.007385982200503349,
0.041229356080293655
] |
721,974
|
apprise.url
|
pprint
|
Privacy Print is used to mainpulate the string before passing it into
part of the URL. It is used to mask/hide private details such as
tokens, passwords, apikeys, etc from on-lookers. If the privacy=False
is set, then the quote variable is the next flag checked.
Quoting is never done if the privacy flag is set to true to avoid
skewing the expected output.
|
@staticmethod
def pprint(content, privacy=True, mode=PrivacyMode.Outer,
# privacy print; quoting is ignored when privacy is set to True
quote=True, safe='/', encoding=None, errors=None):
"""
Privacy Print is used to mainpulate the string before passing it into
part of the URL. It is used to mask/hide private details such as
tokens, passwords, apikeys, etc from on-lookers. If the privacy=False
is set, then the quote variable is the next flag checked.
Quoting is never done if the privacy flag is set to true to avoid
skewing the expected output.
"""
if not privacy:
if quote:
# Return quoted string if specified to do so
return URLBase.quote(
content, safe=safe, encoding=encoding, errors=errors)
# Return content 'as-is'
return content
if mode is PrivacyMode.Secret:
# Return 4 Asterisks
return '****'
if not isinstance(content, str) or not content:
# Nothing more to do
return ''
if mode is PrivacyMode.Tail:
# Return the trailing 4 characters
return '...{}'.format(content[-4:])
# Default mode is Outer Mode
return '{}...{}'.format(content[0:1], content[-1:])
|
(content, privacy=True, mode='o', quote=True, safe='/', encoding=None, errors=None)
|
[
-0.03449907526373863,
-0.027463901787996292,
0.004626295994967222,
0.0015216907486319542,
0.04758984595537186,
-0.0008142770384438336,
0.038862667977809906,
-0.05571146681904793,
0.015415050089359283,
-0.01598498784005642,
0.008744990453124046,
0.031346604228019714,
-0.02009032480418682,
0.001879015238955617,
-0.0033661979250609875,
-0.008477832190692425,
0.03811462223529816,
-0.016528209671378136,
0.03416067734360695,
-0.009573182091116905,
0.010436994954943657,
0.03232618793845177,
0.054820939898490906,
-0.026217160746455193,
-0.042211055755615234,
-0.02798040769994259,
0.006776922382414341,
-0.039396982640028,
-0.035229310393333435,
0.02064245194196701,
0.013473697006702423,
-0.01044590026140213,
0.007275618612766266,
0.06319190561771393,
0.001772151910699904,
0.0035420774947851896,
-0.01079320628196001,
0.04317282512784004,
-0.07117104530334473,
-0.029102474451065063,
-0.06874880939722061,
0.021408306434750557,
-0.05649513378739357,
-0.09346988052129745,
-0.013384644873440266,
0.009938298724591732,
0.020767126232385635,
0.06098339706659317,
-0.0703161358833313,
-0.06985305994749069,
0.04441956430673599,
-0.006598816718906164,
0.002825201954692602,
-0.0578487366437912,
-0.005979899317026138,
-0.00972457230091095,
0.023563386872410774,
0.028033839538693428,
0.054322242736816406,
0.01515679620206356,
0.010374657809734344,
0.014177215285599232,
0.001412600977346301,
-0.00857579056173563,
-0.004479358904063702,
0.029743654653429985,
-0.04577316716313362,
-0.027552954852581024,
-0.034374404698610306,
-0.015415050089359283,
0.026947394013404846,
-0.016136378049850464,
-0.0703161358833313,
0.02028624154627323,
0.007409197743982077,
-0.02277972176671028,
-0.03339482098817825,
-0.03668977692723274,
0.004018510226160288,
-0.007293429225683212,
0.018932636827230453,
-0.04203294962644577,
0.0374022014439106,
-0.03275364264845848,
0.06087653338909149,
-0.05250556394457817,
0.0006511990213766694,
-0.057421281933784485,
0.03351949527859688,
0.09909801930189133,
-0.019823165610432625,
-0.029209338128566742,
-0.02798040769994259,
0.00033478307886980474,
-0.07252464443445206,
-0.007930156774818897,
0.004265632014721632,
-0.040964312851428986,
0.006536479573696852,
-0.010686342604458332,
-0.008655937388539314,
0.02762419730424881,
-0.06849946081638336,
-0.03189873322844505,
-0.021604223176836967,
-0.08420838415622711,
-0.017748234793543816,
0.036867883056402206,
-0.028390051797032356,
-0.017463264986872673,
-0.030384834855794907,
-0.04598689451813698,
-0.015423954464495182,
-0.020535588264465332,
0.11348896473646164,
0.0019769733771681786,
-0.009252591989934444,
-0.029244957491755486,
0.0369035042822361,
-0.034641560167074203,
-0.011505628935992718,
-0.011977609246969223,
-0.0070485337637364864,
-0.04164111614227295,
0.009617708623409271,
0.03526493161916733,
-0.05638827010989189,
-0.01715158112347126,
0.01403473038226366,
-0.024810126051306725,
0.008972075767815113,
0.04548820108175278,
-0.06415367871522903,
-0.005222950130701065,
0.05556898191571236,
-0.03904077410697937,
-0.04174797981977463,
0.01740092784166336,
-0.000875500903930515,
0.07487564533948898,
-0.03150689974427223,
-0.03631575405597687,
0.009216970764100552,
-0.006229247432202101,
-0.033341389149427414,
-0.030936961993575096,
0.07366452366113663,
-0.016937853768467903,
0.04748298227787018,
0.009430697187781334,
0.0717766061425209,
0.04641434922814369,
0.0224413201212883,
-0.0028296546079218388,
0.019983461126685143,
0.00801920983940363,
0.03047388792037964,
-0.026270592585206032,
0.0034174034371972084,
-0.015058837831020355,
-0.0008626995841041207,
-0.03793651610612869,
0.006719037890434265,
-0.028603777289390564,
0.023705869913101196,
0.02233445644378662,
0.11377392709255219,
-0.07113542407751083,
0.06361936032772064,
0.02074931561946869,
0.01656383089721203,
0.005605877377092838,
-0.040073785930871964,
0.009804720059037209,
0.11042554676532745,
0.06825011223554611,
-0.040465619415044785,
0.039468225091695786,
-0.03031359240412712,
-0.028033839538693428,
-0.005035939160734415,
-0.056317027658224106,
-0.029957382008433342,
0.023705869913101196,
0.021052096039056778,
-0.01540614478290081,
0.04662807658314705,
-0.0012934927362948656,
-0.0008565771859139204,
0.021283632144331932,
-0.0697818174958229,
-0.021230200305581093,
0.0055257296189665794,
0.02379492297768593,
-0.010882259346544743,
-0.047839194536209106,
-0.025558169931173325,
-0.031595952808856964,
0.01610075682401657,
0.004635201301425695,
-0.022975636646151543,
-0.013927866704761982,
-0.04477577656507492,
-0.04655683413147926,
0.05987914279103279,
0.04292347654700279,
-0.01742764376103878,
0.01864766888320446,
-0.04627186432480812,
-0.0034418930299580097,
0.024418294429779053,
-0.01767699234187603,
0.02981489710509777,
-0.02352776564657688,
-0.011799504049122334,
-0.013776477426290512,
-0.006745753809809685,
0.0321480818092823,
-0.034730613231658936,
0.012681126594543457,
0.04962025210261345,
-0.012048851698637009,
0.007346860598772764,
-0.0006545385112985969,
-0.014097067527472973,
-0.003929457161575556,
0.04085744917392731,
0.00942179188132286,
-0.023064689710736275,
-0.04402773454785347,
0.05179314315319061,
-0.0673239603638649,
-0.0503682978451252,
0.10059411078691483,
0.03111506812274456,
-0.03510463610291481,
-0.029850518330931664,
-0.04206857085227966,
0.01618090458214283,
-0.011033648625016212,
0.0005251335678622127,
0.02199605666100979,
0.027535144239664078,
0.017445454373955727,
-0.026787100359797478,
-0.0004580656241159886,
-0.01678646355867386,
0.0075873034074902534,
0.025807518512010574,
-0.023652438074350357,
-0.002658227691426873,
-0.020535588264465332,
-0.03419629856944084,
-0.015922650694847107,
-0.004152089357376099,
0.0014749380061402917,
-0.01581578701734543,
-0.005303097888827324,
0.01620762050151825,
0.030954772606492043,
-0.019662870094180107,
-0.00741810305044055,
-0.03366198018193245,
0.007769861724227667,
0.05695820599794388,
-0.04417021572589874,
-0.0209452323615551,
-0.02762419730424881,
-0.012244767509400845,
-0.0057795303873717785,
0.03679664060473442,
0.020304052159190178,
0.00898988638073206,
-0.00017657512216828763,
-0.09168881922960281,
-0.01618090458214283,
0.02178232930600643,
0.047091152518987656,
0.013108580373227596,
-0.037722788751125336,
0.026145918294787407,
-0.018629858270287514,
-0.007342407945543528,
-0.022975636646151543,
0.034588128328323364,
-0.01648368313908577,
0.03061637282371521,
0.06344125419855118,
-0.00837987381964922,
0.01814897172152996,
0.030295781791210175,
0.017997583374381065,
0.03369760140776634,
0.011719356290996075,
0.023224985226988792,
0.03804337978363037,
0.044704534113407135,
-0.02687615156173706,
-0.0018623179057613015,
-0.05022581294178963,
-0.020980853587388992,
-0.0019112969748675823,
0.06564977020025253,
0.008468926884233952,
0.02822975628077984,
-0.0012634374434128404,
-0.012734558433294296,
-0.034837476909160614,
0.01773042418062687,
-0.005605877377092838,
0.019556008279323578,
-0.04014502838253975,
0.06269320845603943,
0.05396603047847748,
-0.060057248920202255,
0.013446981087327003,
-0.026466509327292442,
0.005899752024561167,
0.0034886456560343504,
0.06447426974773407,
-0.017685897648334503,
0.008014757186174393,
0.0433865524828434,
0.04748298227787018,
0.03519368916749954,
-0.07822403311729431,
-0.006603269372135401,
0.06258634477853775,
0.028710640966892242,
0.05428662151098251,
-0.0344100259244442,
0.012324915267527103,
-0.013910056091845036,
0.01540614478290081,
-0.03571019694209099,
0.012476305477321148,
-0.052683670073747635,
-0.07957763224840164,
-0.033430442214012146,
-0.03515806794166565,
0.030082054436206818,
-0.026199350133538246,
-0.018968258053064346,
-0.005307550076395273,
0.000749157159589231,
-0.005761719774454832,
0.028033839538693428,
0.03544303774833679,
0.026698047295212746,
0.0035198142286390066,
-0.009021054022014141,
0.004915717523545027,
0.021354874595999718,
0.0014348641270771623,
-0.009680045768618584,
-0.025041664019227028,
-0.0035977354273200035,
-0.029654601588845253,
-0.02183576114475727,
0.03546084836125374,
0.09988168627023697,
-0.008647032082080841,
0.0065721007995307446,
0.0329139344394207,
0.005962088704109192,
-0.033430442214012146,
0.02847910299897194,
0.007173207588493824,
0.05396603047847748,
0.01637682132422924,
-0.040465619415044785,
-0.03679664060473442,
-0.014453278854489326,
-0.0568513460457325,
-0.03953946754336357,
0.03811462223529816,
0.013731950893998146,
-0.007471534889191389,
-0.001181063475087285,
0.01789962500333786,
0.011318618431687355,
0.0448826402425766,
0.06415367871522903,
0.00324152410030365,
-0.02448953501880169,
-0.022281024605035782,
-0.015753449872136116,
0.04103555530309677,
0.014613574370741844,
0.03631575405597687,
0.0029765916988253593,
0.014426562935113907,
0.034427836537361145,
0.02457858808338642,
-0.04217543452978134,
-0.017641371116042137,
0.026840530335903168,
-0.038079001009464264,
-0.04523885250091553,
0.028710640966892242,
0.08463583886623383,
-0.02368805930018425,
-0.0296724122017622,
-0.01049933210015297,
-0.010677437297999859,
-0.008615863509476185,
0.044312700629234314,
0.003025570884346962,
-0.006652248557657003,
0.030099865049123764,
0.017685897648334503,
-0.06369060277938843,
-0.01601170375943184,
-0.017525602132081985,
0.08449335396289825,
-0.008709369227290154,
-0.034374404698610306,
0.04153425246477127,
-0.02502385340631008,
0.009573182091116905,
0.05713631212711334,
-0.05175752192735672,
0.03850645571947098,
0.06995992362499237,
-0.0029765916988253593,
-0.01709814928472042,
-0.05100947618484497,
-0.022209782153367996,
0.09788689762353897,
0.005499014165252447,
0.006189173553138971,
-0.02842567302286625,
-0.00645633228123188,
-0.02806946076452732,
0.03854207694530487,
0.03122193180024624,
0.05571146681904793,
0.04078621044754982,
0.05072450637817383,
-0.003911646548658609,
0.03150689974427223,
0.022067297250032425,
-0.030277971178293228,
0.008638126775622368,
0.06543604284524918,
0.047839194536209106,
-0.028033839538693428,
0.0005192894604988396,
0.002247471595183015,
0.03661853447556496,
-0.011265186592936516,
0.03793651610612869,
0.03239743039011955,
-0.0006361713749356568,
-0.07074359059333801,
-0.02853253483772278,
0.0842796266078949,
0.039218880236148834,
-0.02454296685755253,
0.05588957294821739,
0.04901469126343727,
0.031346604228019714,
0.010695247910916805,
0.01879015378654003,
-0.0035242668818682432,
-0.013500412926077843,
-0.0009066694183275104,
0.0483735129237175,
-0.07523185759782791,
-0.047198016196489334,
0.024151135236024857,
0.027339227497577667,
-0.050190191715955734,
0.029351821169257164,
0.03163157403469086,
0.06703899055719376,
0.01875453256070614,
-0.02338528074324131,
0.002989949658513069,
-0.028995610773563385,
-0.07665669918060303,
-0.08150117844343185,
-0.004808854311704636,
-0.03232618793845177,
-0.041712358593940735,
-0.0314178466796875,
-0.01959162950515747,
0.033341389149427414,
0.005828509572893381,
-0.01905731111764908,
0.01645696721971035,
0.0448826402425766,
-0.05051077902317047,
-0.03868456184864044,
-0.010739774443209171,
0.02513071708381176,
-0.04075058922171593,
-0.01770370826125145,
-0.03163157403469086,
-0.05296863988041878,
0.014310793951153755,
0.0011699319584295154,
0.05603205785155296,
-0.03419629856944084,
0.04018064960837364,
0.01403473038226366,
0.045203231275081635,
0.058774884790182114,
0.03743782266974449,
0.02651994116604328,
-0.010944596491754055,
-0.007516060955822468,
0.020410915836691856,
-0.012209147214889526,
-0.048444755375385284,
0.01500540692359209,
0.023812733590602875,
0.006558742839843035,
0.03312766179442406,
-0.06515107303857803,
0.016465872526168823,
0.03679664060473442,
-0.0032237134873867035,
-0.02099866420030594,
0.0032793714199215174,
0.03879142552614212,
-0.0246854517608881,
0.03471280261874199,
-0.08370968699455261,
0.06764455139636993,
0.04050124064087868,
0.05004770681262016,
0.02876407280564308,
-0.033145472407341,
0.018683290109038353,
0.06910501420497894,
-0.09140384942293167,
-0.012868138030171394,
0.01269003190100193,
0.04463329166173935,
0.04000254347920418,
-0.00476432777941227,
-0.05460721254348755,
-0.06465237587690353,
-0.026947394013404846,
0.011425481177866459,
0.054179757833480835,
0.01637682132422924,
0.02623497135937214,
-0.01440875232219696,
-0.004078621044754982,
-0.027250174432992935,
0.04085744917392731,
0.03765154629945755,
0.005254118703305721,
0.038079001009464264,
-0.022476941347122192,
-0.01138986088335514,
0.019769733771681786,
-0.016893327236175537,
0.01839832030236721,
0.005334265995770693,
-0.039717573672533035,
-0.039468225091695786,
-0.053787924349308014,
0.017062528058886528,
-0.02847910299897194,
0.02308250032365322,
-0.0637974664568901,
-0.01825583539903164,
0.02358119748532772,
0.004472679924219847,
0.015691112726926804,
0.008308631367981434,
0.0016797594726085663,
-0.0010513802990317345,
0.013812098652124405,
0.058917369693517685,
0.08598943799734116,
0.021675465628504753,
0.0003353396605234593,
-0.008219578303396702,
0.044205836951732635,
-0.06814324855804443,
0.005752814467996359,
-0.010944596491754055,
0.04014502838253975,
-0.03875580430030823,
0.07113542407751083,
-0.004383626859635115,
-0.04413459450006485,
-0.0423891618847847,
0.02288658358156681,
-0.05232745781540871,
0.025112906470894814,
0.013135296292603016,
-0.015780165791511536,
-0.015049932524561882,
0.01637682132422924,
0.0013291138457134366,
-0.007725335191935301,
0.06415367871522903,
-0.007743145804852247,
-0.023029068484902382,
0.028853125870227814,
0.05200687050819397,
0.03743782266974449,
0.024168945848941803,
0.009190254844725132,
-0.01253864262253046,
-0.018612047657370567,
0.04231791943311691,
-0.03800775855779648,
-0.051187582314014435,
-0.04523885250091553,
0.024756694212555885,
-0.047696709632873535,
0.014471089467406273,
-0.0026760383043438196,
-0.025095095857977867,
0.009849245660007,
0.05788435786962509,
-0.047839194536209106,
0.044811397790908813,
-0.0408930703997612,
0.029601169750094414,
-0.04855161905288696,
-0.03626232221722603,
0.00368901458568871,
-0.04142738878726959,
0.03287831321358681,
0.04025189206004143,
-0.02806946076452732,
0.01750779151916504,
-0.028496913611888885,
-0.04042999818921089,
-0.02283315174281597,
-0.017935246229171753,
-0.06422492116689682,
0.05179314315319061,
-0.014791679568588734,
-0.04459767043590546,
-0.06522231549024582,
-0.01648368313908577,
-0.034677181392908096,
-0.009216970764100552,
-0.01884358376264572,
-0.03385789692401886,
0.026145918294787407,
-0.04531009495258331,
-0.02997519262135029,
0.02424018830060959,
0.08171489834785461,
0.007039628457278013,
-0.07950638979673386,
0.027196742594242096,
0.04082183167338371,
0.015513007529079914,
-0.007573945447802544,
-0.026448698714375496,
-0.010152026079595089,
-0.05396603047847748,
-0.019627248868346214,
-0.029957382008433342,
-0.002024839399382472,
0.007182112894952297,
-0.04701991006731987,
0.013910056091845036,
0.03804337978363037,
-0.024596398696303368,
0.03950384631752968,
0.07665669918060303,
0.02856815606355667,
-0.024792315438389778,
-0.0231893640011549,
-0.030545130372047424,
0.0011170568177476525,
0.004287895280867815,
-0.003399592824280262,
0.014818395487964153,
0.08135869354009628,
-0.043956492096185684,
-0.011006933636963367,
-0.03357292711734772,
-0.01228929404169321,
0.06686088442802429,
0.007306787185370922,
0.015993893146514893,
-0.08534825593233109,
-0.03929011896252632,
-0.03879142552614212,
-0.054927803575992584,
-0.002671585651114583,
-0.028906557708978653,
0.02009032480418682,
0.013821003027260303,
0.0029699127189815044,
-0.011781693436205387,
0.08606068044900894,
-0.04381400719285011,
-0.008028115145862103,
0.02917371690273285,
0.04848037660121918,
-0.014203931204974651,
-0.01156796608120203,
0.007150944322347641,
0.028781883418560028,
-0.01925322785973549,
-0.02374149113893509,
0.0019346732879057527,
-0.021408306434750557,
0.08392341434955597,
0.017525602132081985,
-0.07088607549667358,
0.0024600850883871317,
-0.012396157719194889,
-0.02399083971977234,
0.021176770329475403,
0.01914636418223381,
0.024347051978111267,
0.006540932226926088,
0.02025062032043934,
0.02083836868405342,
-0.020054703578352928,
-0.0028853125404566526,
0.04951338842511177,
-0.06454551219940186,
0.0016864384524524212,
0.017365306615829468,
-0.042709749191999435,
0.004657464567571878,
0.07544557750225067,
-0.02529101073741913,
-0.003960625734180212,
-0.02782011218369007,
-0.014595763757824898,
-0.03588830307126045,
-0.05421537905931473,
0.04263850674033165,
-0.007760956417769194,
-0.02806946076452732,
0.046200621873140335,
-0.03961070999503136,
-0.007996946573257446,
0.01593155600130558,
-0.017365306615829468,
0.03150689974427223,
0.017418738454580307,
-0.011425481177866459,
0.06276445090770721,
0.03207683935761452,
0.014079256914556026,
-0.04855161905288696,
-0.037117231637239456,
0.03620889037847519,
0.005432224366813898,
-0.029529927298426628,
0.016884421929717064,
-0.01328668650239706,
-0.02083836868405342,
-0.08891037106513977,
0.006224794778972864,
0.04552382230758667,
0.05001208558678627,
-0.0144621841609478,
0.051579415798187256,
-0.04922841861844063,
0.0003358962421771139
] |
721,975
|
apprise.url
|
quote
|
Replaces single character non-ascii characters and URI specific
ones by their %xx code.
Wrapper to Python's `quote` while remaining compatible with both
Python 2 & 3 since the reference to this function changed between
versions.
Args:
content (str): The URI string you wish to quote
safe (str): non-ascii characters and URI specific ones that you
do not wish to escape (if detected). Setting this
string to an empty one causes everything to be
escaped.
encoding (:obj:`str`, optional): encoding type
errors (:obj:`str`, errors): how to handle invalid character found
in encoded string (defined by encoding)
Returns:
str: The quoted URI string
|
@staticmethod
def quote(content, safe='/', encoding=None, errors=None):
""" Replaces single character non-ascii characters and URI specific
ones by their %xx code.
Wrapper to Python's `quote` while remaining compatible with both
Python 2 & 3 since the reference to this function changed between
versions.
Args:
content (str): The URI string you wish to quote
safe (str): non-ascii characters and URI specific ones that you
do not wish to escape (if detected). Setting this
string to an empty one causes everything to be
escaped.
encoding (:obj:`str`, optional): encoding type
errors (:obj:`str`, errors): how to handle invalid character found
in encoded string (defined by encoding)
Returns:
str: The quoted URI string
"""
if not content:
return ''
return _quote(content, safe=safe, encoding=encoding, errors=errors)
|
(content, safe='/', encoding=None, errors=None)
|
[
-0.04901130497455597,
-0.026723986491560936,
0.017018776386976242,
0.048907320946455,
0.002354813041165471,
0.008604707196354866,
-0.005688812118023634,
-0.007673180662095547,
0.08589109778404236,
-0.03100467659533024,
0.05438383296132088,
0.07784964144229889,
0.012443464249372482,
0.0362212248146534,
0.000998141709715128,
-0.01478311326354742,
-0.019046472385525703,
0.06994682550430298,
0.03268575668334961,
-0.025701472535729408,
-0.04831807687878609,
0.011178321205079556,
0.02124747633934021,
-0.0470009408891201,
0.016108913347125053,
0.03760768473148346,
-0.010580411180853844,
-0.01302404422312975,
-0.03871685266494751,
-0.03310169652104378,
0.05466112494468689,
0.019289102405309677,
0.023205848410725594,
0.015597657300531864,
0.052269481122493744,
-0.035493336617946625,
-0.010337780229747295,
0.02620406448841095,
-0.020762214437127113,
-0.04135112091898918,
-0.06696594506502151,
0.00924594420939684,
-0.043846748769283295,
-0.06041492521762848,
0.0182665903121233,
0.016039591282606125,
-0.037746332585811615,
0.04696628078818321,
-0.02956622652709484,
0.00023450644221156836,
0.046862296760082245,
-0.006308385636657476,
0.04440133273601532,
-0.03660250082612038,
-0.01800662837922573,
0.01979169435799122,
-0.027815822511911392,
0.06363844126462936,
0.03528536856174469,
-0.01052841916680336,
0.09102099388837814,
0.03395090252161026,
0.000003947649474866921,
-0.00029949669260531664,
0.018023960292339325,
0.03753836080431938,
-0.002081854036077857,
-0.06557948142290115,
0.010979017242789268,
0.009843855164945126,
-0.02239130437374115,
-0.004046725574880838,
-0.030034156516194344,
-0.05202685296535492,
0.07771099358797073,
0.003931909333914518,
-0.05587427318096161,
0.04242562875151634,
-0.01382992323487997,
0.03864752873778343,
0.06401971727609634,
-0.07133328914642334,
0.07833489775657654,
-0.013491973280906677,
-0.02006898634135723,
-0.03277241066098213,
-0.06356912106275558,
0.03583994880318642,
0.04405471682548523,
0.051056332886219025,
0.0282664205878973,
-0.05927109718322754,
-0.03788497671484947,
0.010199135169386864,
-0.012712090276181698,
-0.00679797912016511,
0.03916744887828827,
-0.05389857292175293,
-0.029704872518777847,
-0.022859232500195503,
-0.005493841599673033,
0.10738120228052139,
-0.04356945678591728,
-0.056359536945819855,
-0.015173054300248623,
-0.08942656964063644,
-0.006308385636657476,
-0.03798896074295044,
-0.04557982087135315,
-0.07715640962123871,
-0.025736134499311447,
-0.02864769659936428,
-0.002091602422297001,
0.0027967465575784445,
0.030276786535978317,
-0.039306096732616425,
0.008054456673562527,
-0.030831368640065193,
0.06928826123476028,
-0.022529950365424156,
0.01689746230840683,
0.022789910435676575,
-0.03996466472744942,
-0.0019897844176739454,
0.06398505717515945,
0.05694878101348877,
-0.047278232872486115,
0.024609636515378952,
-0.02746920846402645,
-0.0033469973132014275,
0.008154108189046383,
0.06041492521762848,
-0.01006915420293808,
-0.034574806690216064,
0.03989534080028534,
-0.013899246230721474,
-0.07861219346523285,
0.06977351754903793,
-0.003286339808255434,
0.06103883311152458,
-0.00253245304338634,
-0.028630366548895836,
0.025302866473793983,
-0.022859232500195503,
-0.05542367696762085,
0.004648968577384949,
0.006893298123031855,
-0.05459180101752281,
0.012495456263422966,
0.010294454172253609,
0.06769382953643799,
0.03757302463054657,
0.03878617286682129,
0.03597859665751457,
-0.008600374683737755,
0.014557813294231892,
0.04717424884438515,
-0.05382924899458885,
0.0073005701415240765,
0.04263359680771828,
0.013284005224704742,
-0.015147058293223381,
-0.005329199600964785,
0.0007013530121184886,
0.02811044454574585,
0.011143659241497517,
0.01902914233505726,
-0.05958304926753044,
0.03583994880318642,
-0.0311259925365448,
0.02967021055519581,
0.004425835330039263,
-0.022183334454894066,
0.02769450657069683,
0.08401937782764435,
0.030068816617131233,
-0.04377742484211922,
0.023136524483561516,
0.002584445057436824,
-0.032287150621414185,
0.03878617286682129,
-0.061350785195827484,
0.0803452655673027,
-0.021368790417909622,
0.020536916330456734,
-0.049981825053691864,
0.004068389069288969,
0.02395106852054596,
0.052269481122493744,
-0.004012064076960087,
-0.044609300792217255,
-0.008652366697788239,
-0.040103308856487274,
-0.02102217637002468,
-0.03500807657837868,
-0.0412818007171154,
0.00930660218000412,
-0.02902897261083126,
0.018145274370908737,
0.04252961277961731,
-0.04252961277961731,
0.03528536856174469,
-0.006447031628340483,
-0.0562208890914917,
0.050328440964221954,
-0.03809294477105141,
0.03726106882095337,
-0.026793308556079865,
-0.07868151366710663,
-0.01788531430065632,
0.00025237875524908304,
0.015554330311715603,
-0.05313602089881897,
-0.009124629199504852,
-0.008656700141727924,
0.015381023287773132,
0.007660182658582926,
0.027798492461442947,
0.03871685266494751,
-0.0018717189086601138,
-0.012027527205646038,
-0.018890496343374252,
-0.0374690406024456,
-0.012729421257972717,
0.04752086102962494,
-0.012114180251955986,
0.020190300419926643,
0.04485192894935608,
0.018890496343374252,
-0.033084362745285034,
0.009592559188604355,
-0.030346108600497246,
0.020814206451177597,
0.04620372876524925,
0.053032033145427704,
-0.05199219286441803,
0.022703256458044052,
-0.02785048447549343,
-0.03332699462771416,
-0.00970520917326212,
-0.015086401253938675,
-0.003435817314311862,
-0.016923457384109497,
0.02372577041387558,
0.04696628078818321,
-0.037815652787685394,
-0.014445163309574127,
0.06533685326576233,
0.016542181372642517,
-0.02994750253856182,
-0.04322284087538719,
0.019202448427677155,
-0.034193530678749084,
-0.05119497701525688,
-0.02887299656867981,
0.03507739678025246,
-0.01987834833562374,
0.01987834833562374,
-0.007387223653495312,
0.013032709248363972,
-0.028924988582730293,
0.011143659241497517,
0.008097783662378788,
-0.023829754441976547,
-0.030294116586446762,
-0.04190570488572121,
-0.04530252888798714,
0.015450346283614635,
-0.010251127183437347,
0.03882083669304848,
-0.04221766069531441,
-0.009081303142011166,
0.003884249832481146,
-0.011143659241497517,
-0.06339581310749054,
0.0030047153122723103,
-0.00026822014478966594,
0.027070600539445877,
-0.02601342648267746,
-0.05816193297505379,
-0.012868067249655724,
0.029548894613981247,
0.02467896044254303,
-0.0037564358208328485,
0.024124376475811005,
-0.028699688613414764,
0.0005245254142209888,
0.04814476892352104,
-0.009072637185454369,
0.03363894671201706,
-0.0282664205878973,
0.03337898850440979,
0.025614820420742035,
-0.004822275601327419,
0.011065671220421791,
-0.0038235923275351524,
0.004791947081685066,
-0.04675830900669098,
0.04062323272228241,
-0.04183638468384743,
-0.004328350070863962,
0.04055390879511833,
-0.00465330109000206,
0.0271572545170784,
0.012443464249372482,
-0.01742604933679104,
-0.038578204810619354,
-0.013890580274164677,
-0.004765951074659824,
0.04135112091898918,
-0.004722624085843563,
-0.00424169609323144,
-0.0014146208995953202,
0.020883530378341675,
-0.008054456673562527,
0.08103849738836288,
-0.027555860579013824,
-0.04720890894532204,
-0.0008448730804957449,
0.01375193428248167,
0.03504273667931557,
-0.017556030303239822,
0.040068648755550385,
0.0311259925365448,
-0.0260480884462595,
-0.051472268998622894,
-0.027642514556646347,
0.02979152463376522,
0.026082748547196388,
0.04856070503592491,
-0.0054071880877017975,
0.04641169682145119,
0.02700127847492695,
-0.05514638498425484,
0.006317051127552986,
0.0139772342517972,
0.022633934393525124,
-0.029808856546878815,
-0.014939089305698872,
-0.01743471436202526,
0.026879962533712387,
0.02960088662803173,
0.02902897261083126,
-0.013613288290798664,
-0.062147997319698334,
-0.00720091862604022,
-0.04852604493498802,
0.023847084492444992,
-0.0116722472012043,
-0.057122088968753815,
-0.02162875235080719,
-0.055631645023822784,
0.0204849224537611,
-0.021455444395542145,
-0.009583894163370132,
0.01184555422514677,
-0.010441765189170837,
-0.010303119197487831,
-0.0058707850985229015,
0.0019594556652009487,
0.12457329034805298,
-0.028179768472909927,
0.02925427258014679,
-0.0034249855671077967,
-0.013258008286356926,
0.00003344289507367648,
0.027937136590480804,
0.03332699462771416,
-0.0325644426047802,
0.03322301059961319,
0.017668679356575012,
0.009800528176128864,
-0.013318666256964207,
-0.051402945071458817,
-0.0017915642820298672,
-0.011940873228013515,
0.006659333128482103,
-0.005580495111644268,
0.016724154353141785,
-0.019427748396992683,
0.03344830870628357,
0.022408634424209595,
-0.014601140283048153,
-0.07937474548816681,
0.014245860278606415,
-0.07445281744003296,
0.054141201078891754,
0.054903753101825714,
-0.011507605202496052,
-0.0008215849520638585,
-0.008968653157353401,
-0.021906042471528053,
0.04516388475894928,
-0.021958034485578537,
-0.07278906553983688,
-0.0206409003585577,
0.04492125287652016,
-0.003914578817784786,
-0.011490274220705032,
0.039722032845020294,
-0.015017078258097172,
0.010771049186587334,
0.054071877151727676,
-0.02303254045546055,
0.03583994880318642,
0.01845722831785679,
-0.023067202419042587,
0.002499957801774144,
-0.0014167871559038758,
0.03944474086165428,
-0.051090992987155914,
-0.04665432497859001,
-0.02220066636800766,
0.03424552455544472,
0.06450498104095459,
-0.010207800194621086,
-0.039271436631679535,
-0.05344797298312187,
-0.04332682490348816,
0.00021121827012393624,
-0.05012047290802002,
-0.0711253210902214,
-0.030224794521927834,
0.08755484968423843,
-0.023275170475244522,
-0.015303035266697407,
0.03694911673665047,
0.0014536150265485048,
0.03426285460591316,
-0.0014687794027850032,
0.0016626669093966484,
-0.048075444996356964,
-0.04644635692238808,
-0.03277241066098213,
0.010268458165228367,
0.042772240936756134,
0.05594359710812569,
0.020727554336190224,
0.01678481325507164,
-0.04076187685132027,
-0.026256056502461433,
0.012772748246788979,
-0.024765614420175552,
-0.004960921593010426,
0.04322284087538719,
-0.05289338901638985,
-0.013474643230438232,
0.03417620062828064,
-0.013240678235888481,
0.032443128526210785,
-0.050293780863285065,
0.0355626605451107,
0.02982618659734726,
0.0026732650585472584,
-0.030640730634331703,
-0.051402945071458817,
0.050328440964221954,
-0.003476977813988924,
-0.03996466472744942,
0.024800274521112442,
0.0327204205095768,
0.010138477198779583,
-0.01298938225954771,
-0.025996096432209015,
-0.027555860579013824,
0.022824572399258614,
-0.0018197266617789865,
0.0368451327085495,
-0.02963554859161377,
-0.016680827364325523,
0.000687271764036268,
0.03996466472744942,
-0.02474828250706196,
0.014635802246630192,
0.0282664205878973,
0.03204451873898506,
-0.02429768443107605,
0.019809024408459663,
0.01778133027255535,
0.01723541133105755,
-0.042009688913822174,
-0.08401937782764435,
0.03635987266898155,
-0.004200535826385021,
0.003091369057074189,
-0.025424180552363396,
0.045406512916088104,
-0.03559732064604759,
0.02197536639869213,
0.06831774115562439,
0.07882016152143478,
0.04214833676815033,
-0.008881999179720879,
0.026100080460309982,
0.03523337468504906,
-0.011602924205362797,
-0.06315318495035172,
-0.004796279594302177,
-0.020051654428243637,
-0.06537151336669922,
0.05608224496245384,
-0.05008580908179283,
-0.004185371566563845,
0.010805710218846798,
0.046377032995224,
-0.008401071652770042,
-0.0037001108285039663,
0.02131679840385914,
0.05320534110069275,
-0.011143659241497517,
-0.01791997440159321,
-0.039722032845020294,
0.08443532139062881,
-0.05733005702495575,
-0.008266758173704147,
-0.01413321029394865,
-0.015926940366625786,
0.02429768443107605,
0.053725264966487885,
-0.0008881999528966844,
-0.034921422600746155,
0.03126463666558266,
-0.010034493170678616,
-0.03691445663571358,
-0.03547600656747818,
-0.04713958501815796,
-0.008236429654061794,
0.04190570488572121,
-0.04356945678591728,
0.040103308856487274,
0.01797196827828884,
0.018942488357424736,
0.02045026235282421,
-0.034002892673015594,
0.02360445447266102,
0.10592542588710785,
-0.030883360654115677,
-0.017304733395576477,
0.04339614883065224,
0.06571812927722931,
0.03771166875958443,
0.05064039304852486,
-0.04090052470564842,
-0.04485192894935608,
-0.05077904090285301,
0.007291904650628567,
0.004029394593089819,
0.026533348485827446,
0.018665196374058723,
0.020796876400709152,
-0.015207716263830662,
-0.019930340349674225,
0.004939258098602295,
0.03608258068561554,
0.04339614883065224,
-0.04363878071308136,
-0.009904512204229832,
0.0020385270472615957,
-0.06412370502948761,
0.01899448037147522,
0.038162268698215485,
0.022703256458044052,
-0.007785830646753311,
-0.0018533050315454602,
-0.06308385729789734,
-0.0027599188033491373,
0.010225131176412106,
-0.016420867294073105,
-0.025580158457159996,
-0.011984200216829777,
-0.004679297097027302,
-0.0005329199484549463,
0.07639385759830475,
0.0374690406024456,
-0.031940534710884094,
-0.01778133027255535,
0.03726106882095337,
-0.05850854516029358,
0.01956639438867569,
0.026949286460876465,
0.04863002896308899,
-0.03199252858757973,
-0.09469511359930038,
-0.038196928799152374,
0.048907320946455,
-0.019635718315839767,
0.07396755367517471,
0.09046640992164612,
0.012062188237905502,
-0.004674964584410191,
-0.017867982387542725,
-0.010753718204796314,
0.021160822361707687,
-0.037780992686748505,
0.058231253176927567,
-0.04339614883065224,
-0.03833557665348053,
-0.024990912526845932,
-0.026568010449409485,
0.006667998619377613,
0.054834429174661636,
0.03712242469191551,
0.024055054411292076,
0.01716608926653862,
0.018439896404743195,
0.03382958471775055,
-0.00004329297735239379,
0.02528553642332554,
-0.09143693000078201,
-0.04152442887425423,
-0.01949707232415676,
0.05213083699345589,
-0.010233796201646328,
-0.002068856032565236,
-0.009228614158928394,
0.04658500477671623,
-0.08970385789871216,
-0.030380770564079285,
-0.017954636365175247,
0.04103916883468628,
-0.005095234606415033,
-0.0033751598093658686,
-0.06277190893888474,
-0.0017644850304350257,
0.028976980596780777,
-0.023171186447143555,
-0.01083170622587204,
0.014375841245055199,
-0.05507706105709076,
-0.04107383266091347,
0.014557813294231892,
0.02483493648469448,
0.007278906647115946,
0.021264806389808655,
-0.004293688572943211,
-0.039722032845020294,
-0.03833557665348053,
0.017096765339374542,
0.011568262241780758,
0.020380938425660133,
0.02410704642534256,
0.01394257228821516,
-0.06502489745616913,
0.013509304262697697,
-0.010095150209963322,
-0.01659417524933815,
-0.029132958501577377,
-0.06835240125656128,
-0.04904596880078316,
-0.056047581136226654,
0.048006124794483185,
0.07105599343776703,
0.061004169285297394,
0.008665365166962147,
0.015476342290639877,
0.04672364890575409,
-0.03764234483242035,
-0.03207918256521225,
0.03330966457724571,
-0.0162822213023901,
0.039722032845020294,
0.0037066100630909204,
-0.009124629199504852,
0.02670665644109249,
-0.07389823347330093,
-0.03363894671201706,
-0.013491973280906677,
0.023067202419042587,
0.006330049131065607,
-0.005290205590426922,
0.05358661711215973,
0.027035938575863838,
-0.05500773712992668,
-0.029964832589030266,
-0.021940704435110092,
-0.041559092700481415,
0.031073998659849167,
-0.034800104796886444,
0.03708776459097862,
0.060553573071956635,
0.005190553609281778,
-0.04339614883065224,
-0.03254711255431175,
0.02474828250706196,
0.014991081319749355,
0.04814476892352104,
-0.013699942268431187,
0.05743404105305672,
-0.013154024258255959,
-0.03291105851531029,
-0.019167788326740265,
-0.02436700649559498,
-0.05500773712992668,
0.025164220482110977,
-0.013743269257247448,
0.008604707196354866,
0.004098717588931322,
-0.03961804881691933,
0.08062256127595901,
-0.015398354269564152,
0.019098464399576187,
0.01493042428046465,
0.008652366697788239,
-0.016698159277439117,
0.005875117611140013,
-0.030571408569812775,
0.019237110391259193,
0.014774447306990623,
-0.0028335743118077517,
0.04644635692238808,
-0.020814206451177597,
0.019653048366308212,
-0.017989298328757286,
-0.014245860278606415,
-0.000873577140737325,
-0.06724323332309723,
0.008691361173987389,
-0.020016994327306747,
0.024973582476377487,
-0.0015283537795767188,
0.010961687192320824,
-0.03542401269078255,
0.048907320946455,
-0.017114095389842987,
0.004466995596885681,
0.003622122574597597,
-0.020623568445444107,
0.0030827035661786795,
0.029739532619714737,
-0.043084196746349335,
-0.0035419680643826723,
0.09920109808444977,
-0.013413985259830952,
0.03954872488975525,
-0.0015326865250244737,
-0.03944474086165428,
0.00545484758913517,
-0.026377372443675995,
-0.010485092177987099,
0.010519753210246563,
0.03733039274811745,
0.00951457116752863,
-0.02967021055519581,
-0.05389857292175293,
0.0667233094573021,
-0.018821172416210175,
-0.012018861249089241,
0.004956589080393314,
-0.03017280250787735,
0.030952684581279755,
0.010190469212830067,
0.07646318525075912,
-0.04145510867238045,
0.026325378566980362,
0.07057073712348938,
-0.019445080310106277,
-0.012868067249655724,
0.04949656501412392,
-0.023968400433659554,
0.015597657300531864,
-0.04492125287652016,
0.07549266517162323,
0.014956420287489891,
0.01489576231688261,
-0.06103883311152458,
0.019895678386092186,
0.011715574190020561,
0.0055458336137235165
] |
721,976
|
apprise.url
|
schemas
|
A simple function that returns a set of all schemas associated
with this object based on the object.protocol and
object.secure_protocol
|
def schemas(self):
"""A simple function that returns a set of all schemas associated
with this object based on the object.protocol and
object.secure_protocol
"""
schemas = set([])
for key in ('protocol', 'secure_protocol'):
schema = getattr(self, key, None)
if isinstance(schema, str):
schemas.add(schema)
elif isinstance(schema, (set, list, tuple)):
# Support iterables list types
for s in schema:
if isinstance(s, str):
schemas.add(s)
return schemas
|
(self)
|
[
0.012018571607768536,
-0.01338452659547329,
-0.023395419120788574,
-0.04675417020916939,
-0.03454308211803436,
-0.0025325175374746323,
0.02867589145898819,
-0.05537160485982895,
0.08067385852336884,
0.036449916660785675,
-0.03575319051742554,
0.02205696702003479,
0.006981039419770241,
-0.005821352358907461,
-0.023432089015841484,
-0.02656736969947815,
-0.038503434509038925,
0.04440729320049286,
0.017014849931001663,
-0.025192247703671455,
0.015621392987668514,
0.031939513981342316,
0.03056439198553562,
0.025393931195139885,
0.01082679908722639,
0.05537160485982895,
0.012330266647040844,
-0.00111155747435987,
0.05427150800824165,
0.04998112469911575,
-0.031774502247571945,
-0.011826055124402046,
0.06446574628353119,
0.0041666217148303986,
0.01994844526052475,
-0.034561414271593094,
0.016969013959169388,
0.05768181011080742,
-0.014154595322906971,
0.0402635894715786,
0.014539630152285099,
0.010808464139699936,
0.02207530289888382,
-0.026989074423909187,
0.038210075348615646,
0.020223470404744148,
0.02636568434536457,
0.07612679153680801,
-0.036101553589105606,
-0.06120212376117706,
-0.007223977707326412,
0.010835966095328331,
-0.038356754928827286,
-0.01987510547041893,
-0.01567639783024788,
-0.03439640253782272,
-0.0025393932592123747,
0.08991468697786331,
0.01782158948481083,
0.03613822162151337,
-0.021323569118976593,
-0.011202665977180004,
0.011285172775387764,
-0.017033185809850693,
0.001119579072110355,
-0.09189486503601074,
-0.06145881488919258,
-0.04415060579776764,
-0.003664701944217086,
0.0039259749464690685,
-0.05247468128800392,
-0.009066642262041569,
-0.052034642547369,
0.03360799700021744,
0.05566496402025223,
-0.008415750227868557,
0.01531886588782072,
0.00543173449113965,
-0.008177395910024643,
-0.05958864837884903,
0.018609993159770966,
0.034359730780124664,
-0.054234836250543594,
0.010771794244647026,
0.0244221780449152,
0.04198707640171051,
0.012128581292927265,
0.01316450722515583,
0.020865194499492645,
0.022772030904889107,
-0.009790873154997826,
-0.00765943294391036,
0.026072325184941292,
0.10714955627918243,
-0.05038449540734291,
0.004757924471050501,
-0.09086810052394867,
-0.07223977893590927,
-0.02020513452589512,
-0.01569473370909691,
-0.02238699607551098,
0.02420215867459774,
-0.03740333765745163,
0.040886979550123215,
-0.004831264261156321,
-0.034139711409807205,
0.005307973362505436,
-0.05680173262953758,
0.027374107390642166,
0.04657081887125969,
-0.034121375530958176,
-0.004826680291444063,
0.0356065072119236,
0.01949007250368595,
0.04389391466975212,
-0.038613442331552505,
-0.00405432004481554,
-0.006825191900134087,
0.023413754999637604,
-0.04998112469911575,
-0.0445539727807045,
0.07260647416114807,
0.049651093780994415,
0.04690084978938103,
0.06329230964183807,
0.05232800170779228,
0.02656736969947815,
-0.025137241929769516,
0.012522783130407333,
-0.0017280707834288478,
-0.009827543050050735,
0.02887757495045662,
-0.03292960301041603,
0.010166740044951439,
0.01582307741045952,
-0.04422394558787346,
-0.005711342673748732,
-0.020718514919281006,
-0.00027860558475367725,
-0.013182842172682285,
-0.016125604510307312,
0.0699295699596405,
0.019416730850934982,
0.0022380121517926455,
-0.09160150587558746,
0.016483137384057045,
0.023413754999637604,
0.004457689356058836,
0.006027620751410723,
0.009378336369991302,
-0.04165704920887947,
-0.011065153405070305,
-0.002194466535001993,
0.012751970440149307,
-0.09196820110082626,
0.03747667744755745,
-0.08177395910024643,
-0.01838080585002899,
0.004485191777348518,
-0.04004357010126114,
-0.03744000568985939,
0.00181859964504838,
-0.05595832318067551,
-0.07062629610300064,
0.018078278750181198,
0.012568620964884758,
0.05551828444004059,
-0.05881857872009277,
-0.0013716848334297538,
-0.003632615553215146,
-0.038650114089250565,
-0.02676905319094658,
-0.03377301245927811,
0.029629308730363846,
0.07546672970056534,
0.03777003660798073,
0.036816615611314774,
-0.003265916369855404,
0.011853557080030441,
0.05441818758845329,
-0.009726700372993946,
-0.02840086631476879,
-0.025173911824822426,
0.009268326684832573,
0.0615321546792984,
0.007709854282438755,
-0.014823822304606438,
0.02409214898943901,
0.030436048284173012,
0.021415242925286293,
-0.01315534021705389,
-0.012605290859937668,
-0.03997023031115532,
0.0012891774531453848,
0.009525015950202942,
-0.03699996694922447,
0.016006426885724068,
0.004549364093691111,
-0.08228734135627747,
0.04041026905179024,
-0.016052264720201492,
-0.02440384402871132,
-0.033974695950746536,
0.034561414271593094,
0.05790182948112488,
-0.01425543799996376,
0.010689286515116692,
-0.04638747125864029,
-0.0122110890224576,
-0.011972734704613686,
0.03777003660798073,
-0.0350564606487751,
0.0016421256586909294,
-0.02229532226920128,
0.04136369004845619,
-0.029977673664689064,
0.036174893379211426,
-0.017079023644328117,
0.004072654992341995,
-0.01419126521795988,
0.047560907900333405,
-0.008773282170295715,
0.02658570371568203,
0.02669571340084076,
-0.021066877990961075,
-0.025870639830827713,
-0.02449551783502102,
-0.07381658256053925,
-0.06380569189786911,
-0.04147369787096977,
0.02409214898943901,
0.003710539313033223,
-0.03265457972884178,
0.020351815968751907,
0.019325057044625282,
0.025137241929769516,
0.05694841220974922,
0.010496769100427628,
0.07788694649934769,
0.008906210772693157,
-0.009644193574786186,
0.0032567488960921764,
-0.018344135954976082,
0.003834300208836794,
-0.05489489436149597,
0.04220709577202797,
0.043013837188482285,
-0.011596867814660072,
-0.01191772986203432,
-0.007489834446460009,
-0.01563972793519497,
-0.014640472829341888,
0.023450424894690514,
-0.032379552721977234,
0.03093109279870987,
-0.067289337515831,
-0.10795629769563675,
-0.007554007228463888,
0.04484733194112778,
-0.0445539727807045,
-0.02427549846470356,
0.027190757915377617,
0.011129326187074184,
0.098422110080719,
-0.002670029876753688,
-0.05511491373181343,
0.038540102541446686,
0.051887959241867065,
-0.09416839480400085,
0.010359257459640503,
0.018069110810756683,
-0.006554751191288233,
-0.00600011833012104,
0.027300767600536346,
-0.01950840651988983,
0.004959608893841505,
-0.007980295456945896,
0.04165704920887947,
-0.02207530289888382,
-0.029134264215826988,
0.018701668828725815,
0.015144684351980686,
0.05093454197049141,
-0.0327279195189476,
0.04011690989136696,
-0.016849836334586143,
-0.032049525529146194,
-0.015245526097714901,
-0.06182551383972168,
-0.009107895195484161,
0.05555495619773865,
-0.00004626714871847071,
0.003864094614982605,
-0.03795338422060013,
-0.003958061337471008,
0.04462731257081032,
0.007751108147203922,
0.000680685683619231,
0.06981956213712692,
-0.027850817888975143,
0.02218531258404255,
0.04807428643107414,
0.038576774299144745,
0.02238699607551098,
0.00022847090440336615,
-0.04624079167842865,
0.009052890352904797,
-0.023468758910894394,
0.07201975584030151,
0.031847842037677765,
-0.045067351311445236,
0.045030683279037476,
-0.07282649725675583,
0.050091132521629333,
0.0307660773396492,
0.01567639783024788,
-0.043087176978588104,
0.021048543974757195,
-0.05075119435787201,
0.09182152152061462,
-0.012880315072834492,
-0.009227072820067406,
0.015227191150188446,
-0.013512872159481049,
-0.03802672401070595,
-0.02620067074894905,
-0.001760156941600144,
-0.031792834401130676,
-0.019270051270723343,
-0.034194715321063995,
-0.040813639760017395,
-0.00490460405126214,
0.00656391866505146,
0.0622655525803566,
-0.00012641101784538478,
-0.005638002883642912,
0.04154703766107559,
-0.0490277074277401,
0.010478434152901173,
-0.051961302757263184,
0.05269470065832138,
-0.01974676176905632,
0.03975021094083786,
-0.038210075348615646,
-0.02189195156097412,
0.0014782568905502558,
-0.051851291209459305,
0.01009340025484562,
-0.00610096100717783,
-0.01585974730551243,
-0.02616400085389614,
-0.013962078839540482,
0.02005845494568348,
0.00987338088452816,
0.05324474722146988,
-0.015245526097714901,
-0.06699597835540771,
0.025962315499782562,
-0.0032223707530647516,
0.02882257103919983,
0.11947065591812134,
0.007315652444958687,
0.019068367779254913,
-0.034414734691381454,
-0.013366191647946835,
0.015722235664725304,
0.011578532867133617,
-0.03516646847128868,
0.0618988536298275,
-0.07077297568321228,
-0.014594634994864464,
0.024678867310285568,
-0.025155575945973396,
-0.1096431091427803,
0.010505937039852142,
0.04158370941877365,
0.03758668527007103,
0.027905821800231934,
-0.022478671744465828,
0.021470248699188232,
0.02392713353037834,
-0.013540374115109444,
0.09629525244235992,
0.01527302898466587,
-0.030326038599014282,
-0.043197184801101685,
-0.015722235664725304,
0.017665741965174675,
-0.008246151730418205,
0.08602767437696457,
0.025485606864094734,
-0.0443706251680851,
-0.031847842037677765,
-0.011945231817662716,
-0.008493673987686634,
-0.03479976952075958,
-0.01559389103204012,
-0.01861916109919548,
0.0006709452718496323,
0.008434085175395012,
0.03584486246109009,
-0.09431508183479309,
-0.021378573030233383,
0.04580075293779373,
-0.03377301245927811,
-0.0018678748747333884,
0.038906801491975784,
0.0370183028280735,
-0.01528219599276781,
-0.0056288354098796844,
0.052071310579776764,
-0.05075119435787201,
0.03802672401070595,
-0.07634680718183517,
0.03115111216902733,
-0.02651236392557621,
0.0669226348400116,
0.0744033008813858,
0.04631413146853447,
0.08126058429479599,
0.020718514919281006,
-0.010753459297120571,
0.00557383056730032,
0.04330719634890556,
-0.008869540877640247,
0.010625114664435387,
-0.013943743892014027,
-0.0026081493124365807,
0.007081881631165743,
0.021488582715392113,
0.03265457972884178,
0.023358749225735664,
0.01663898304104805,
-0.11441020667552948,
0.0022437418811023235,
-0.03439640253782272,
0.0018816262017935514,
-0.017949935048818588,
-0.015245526097714901,
-0.009552518837153912,
0.036193229258060455,
-0.027392443269491196,
-0.036449916660785675,
-0.021305233240127563,
0.049651093780994415,
-0.010927640832960606,
-0.032159533351659775,
0.06769270449876785,
0.010258414782583714,
0.025503940880298615,
-0.04899103567004204,
-0.024715537205338478,
0.010927640832960606,
-0.027117418125271797,
0.034506410360336304,
0.06640925258398056,
0.0733032077550888,
0.010157573036849499,
-0.040996991097927094,
0.0075081693939864635,
0.04037360101938248,
-0.015135516412556171,
0.015126349404454231,
-0.012825310230255127,
-0.044884003698825836,
-0.01308200042694807,
-0.03094942681491375,
0.04708419740200043,
0.026879064738750458,
0.027044078335165977,
0.004003898706287146,
-0.018426643684506416,
-0.01530969887971878,
-0.0314994752407074,
-0.0027456616517156363,
0.01838080585002899,
0.0477442592382431,
-0.005642586387693882,
-0.08001380413770676,
-0.09336166083812714,
-0.04184039682149887,
-0.005087953992187977,
0.0016627524746581912,
-0.04000690206885338,
0.02464219741523266,
-0.07686018943786621,
0.017885761335492134,
-0.06307229399681091,
-0.043013837188482285,
0.0022781197912991047,
0.024917222559452057,
0.03369967266917229,
-0.013824566267430782,
-0.007347738835960627,
0.08206731826066971,
0.015172186307609081,
-0.0001786227076081559,
0.0524013414978981,
-0.010322587564587593,
0.015108014456927776,
0.02660403959453106,
-0.03269124776124954,
-0.025100572034716606,
-0.00761817954480648,
0.021341903135180473,
-0.0008697650628164411,
-0.024587193503975868,
-0.027172423899173737,
-0.006783938501030207,
-0.03369967266917229,
-0.04704752936959267,
-0.023340415209531784,
0.0055004907771945,
0.01619894430041313,
-0.006311812903732061,
-0.03960353136062622,
-0.018206624314188957,
-0.015025506727397442,
-0.016886506229639053,
0.0529513880610466,
-0.023817123845219612,
-0.0032590406481176615,
-0.02896925061941147,
0.047707587480545044,
0.006962704472243786,
-0.01649230346083641,
-0.06857278198003769,
-0.05694841220974922,
0.0017360923811793327,
-0.004150578286498785,
0.09556185454130173,
0.01954507641494274,
-0.05936862900853157,
0.049577753990888596,
0.015703899785876274,
0.038796793669462204,
-0.029079260304570198,
-0.02664070948958397,
0.012403606437146664,
0.01956341229379177,
0.04998112469911575,
0.0366516038775444,
-0.03159115090966225,
-0.0026081493124365807,
0.00810864008963108,
0.0336446687579155,
-0.06127546355128288,
0.01545637845993042,
-0.012944487854838371,
-0.029244275763630867,
-0.02898758463561535,
0.021323569118976593,
-0.0014725271612405777,
-0.01330201979726553,
-0.00613763090223074,
-0.08192063868045807,
0.03485477343201637,
-0.016904840245842934,
0.012385271489620209,
0.010588444769382477,
0.01424627099186182,
-0.06494245678186417,
-0.053831469267606735,
0.04880768805742264,
-0.00010055584425572306,
-0.005527993198484182,
0.009699198417365551,
0.030087683349847794,
-0.004278923384845257,
0.03360799700021744,
-0.01758323423564434,
-0.0021612343844026327,
0.025210581719875336,
0.01224775891751051,
0.058158520609140396,
0.03305794671177864,
-0.04415060579776764,
0.014823822304606438,
-0.03690829128026962,
-0.01963675208389759,
0.0009482616442255676,
0.0056334189139306545,
0.01983843557536602,
0.01658397912979126,
0.02427549846470356,
0.014887994155287743,
0.008090305142104626,
0.0032109112944453955,
-0.04668083041906357,
0.006586837582290173,
-0.04356388375163078,
0.004074946977198124,
0.008773282170295715,
0.005381313152611256,
-0.01334785670042038,
-0.004808345343917608,
0.009561685845255852,
-0.01660231314599514,
-0.042573798447847366,
-0.00980920810252428,
-0.010038395412266254,
0.04360055550932884,
0.038613442331552505,
0.0004297258274164051,
0.03340631350874901,
-0.03472642973065376,
0.00934625044465065,
0.04558073356747627,
0.030124353244900703,
-0.00779694551602006,
-0.05698508396744728,
0.01530969887971878,
0.03927350416779518,
0.00980920810252428,
0.015942255035042763,
0.0013946035178378224,
-0.036541592329740524,
0.019050031900405884,
-0.006078042089939117,
-0.0801604837179184,
0.04217042773962021,
0.014924664050340652,
0.04041026905179024,
0.03270958364009857,
-0.06853611022233963,
0.03751334547996521,
-0.04631413146853447,
-0.014136260375380516,
-0.022900376468896866,
-0.08448753505945206,
0.036614932119846344,
-0.06787605583667755,
0.03138946741819382,
-0.03577152267098427,
-0.013760393485426903,
0.01331118680536747,
0.008979550562798977,
-0.02656736969947815,
-0.04844098538160324,
0.03538648784160614,
-0.008805369026958942,
0.01443878747522831,
0.004831264261156321,
-0.013806231319904327,
-0.04000690206885338,
0.06706931442022324,
0.00712771899998188,
-0.029885997995734215,
0.023597104474902153,
-0.005110872443765402,
-0.02895091474056244,
0.009534183889627457,
0.013366191647946835,
0.030142689123749733,
0.07003957778215408,
0.027539122849702835,
-0.0026425274554640055,
-0.058085180819034576,
0.01763824000954628,
-0.051667939871549606,
-0.007966543547809124,
-0.023303745314478874,
0.04055694863200188,
-0.015135516412556171,
-0.023322079330682755,
0.018124116584658623,
-0.019416730850934982,
-0.045214030891656876,
0.027649132534861565,
0.04913771525025368,
0.013137005269527435,
0.04477399215102196,
0.02906092442572117,
-0.030252698808908463,
-0.03791671618819237,
0.051667939871549606,
-0.016061432659626007,
-0.018105780705809593,
0.0023606272879987955,
-0.06882946938276291,
0.016024762764573097,
-0.02651236392557621,
-0.025522276759147644,
-0.002271244302392006,
-0.005385897122323513,
-0.03927350416779518,
0.036816615611314774,
0.01104681845754385,
-0.009378336369991302,
-0.05804850906133652,
-0.040740299969911575,
-0.04785426706075668,
0.04033692926168442,
0.031994521617889404,
-0.0017154654487967491,
0.036101553589105606,
0.009424174204468727,
-0.002851087599992752,
0.06270559132099152,
0.05038449540734291,
0.01949007250368595,
0.028199180960655212,
-0.014044585637748241,
0.020590169355273247,
0.004008482675999403,
0.0035271896049380302,
0.03993356227874756,
-0.005890108644962311,
0.01961841620504856,
0.03920016437768936,
-0.029409289360046387,
0.02429383248090744,
0.02194695733487606,
-0.10113568603992462,
0.06215554475784302,
-0.053611449897289276,
0.013026995584368706,
0.030179359018802643,
0.030289368703961372,
0.011092656292021275,
0.03137113153934479,
-0.00550507428124547,
0.012944487854838371,
0.012999492697417736,
0.022405331954360008,
0.018885018303990364,
0.01107432134449482,
0.03107777237892151,
-0.013494537211954594,
0.015914753079414368,
0.0220936369150877,
0.00765484943985939,
-0.05471154674887657,
0.06512580811977386,
0.02887757495045662,
-0.009726700372993946,
-0.01338452659547329,
-0.013962078839540482,
0.007393576204776764,
0.05247468128800392,
0.005367562174797058,
0.004668541252613068,
0.006568502634763718,
0.023853793740272522,
-0.047707587480545044,
-0.08771449327468872,
0.038283415138721466,
0.026805724948644638,
-0.028309190645813942,
0.0026333597488701344,
-0.005972615908831358,
0.000491892802529037,
-0.020590169355273247,
-0.05790182948112488,
-0.004927522968500853,
-0.013778728432953358,
-0.026860728859901428,
-0.022533675655722618,
0.0073889922350645065,
0.005775514990091324,
-0.034084707498550415,
0.011844390071928501,
0.003942018374800682,
0.015740569680929184,
0.02394546940922737,
-0.01093680877238512,
0.05482155457139015,
-0.024587193503975868
] |
721,977
|
apprise.url
|
split_path
|
Splits a URL up into a list object.
Parses a specified URL and breaks it into a list.
Args:
path (str): The path to split up into a list.
unquote (:obj:`bool`, optional): call unquote on each element
added to the returned list.
Returns:
list: A list containing all of the elements in the path
|
@staticmethod
def split_path(path, unquote=True):
"""Splits a URL up into a list object.
Parses a specified URL and breaks it into a list.
Args:
path (str): The path to split up into a list.
unquote (:obj:`bool`, optional): call unquote on each element
added to the returned list.
Returns:
list: A list containing all of the elements in the path
"""
try:
paths = PATHSPLIT_LIST_DELIM.split(path.lstrip('/'))
if unquote:
paths = \
[URLBase.unquote(x) for x in filter(bool, paths)]
except AttributeError:
# path is not useable, we still want to gracefully return an
# empty list
paths = []
return paths
|
(path, unquote=True)
|
[
-0.03795887902379036,
0.0037322372663766146,
-0.06466540694236755,
-0.004976316355168819,
-0.04397675022482872,
0.016121840104460716,
0.05003022775053978,
-0.006600963417440653,
-0.0009185932576656342,
0.017937883734703064,
0.07200080156326294,
0.026208005845546722,
0.0014788740081712604,
-0.0012607707176357508,
-0.024089287966489792,
0.0070594255812466145,
0.0514545775949955,
0.0461844876408577,
0.033596813678741455,
-0.01083394791930914,
-0.03233270347118378,
0.0018483143066987395,
-0.0038034548051655293,
0.03142468258738518,
-0.006022321991622448,
0.014056536369025707,
0.022575918585062027,
-0.0053368546068668365,
0.03970370441675186,
-0.04853466525673866,
0.03083713725209236,
0.058077797293663025,
-0.010700415819883347,
0.008808703161776066,
0.014279089868068695,
-0.029697658494114876,
0.020136721432209015,
0.07168032228946686,
-0.03810131177306175,
-0.004014881327748299,
-0.02729407139122486,
-0.02004770003259182,
0.03973931446671486,
-0.015187112614512444,
0.02693798393011093,
0.0141900684684515,
-0.046006444841623306,
-0.011857698671519756,
-0.056119319051504135,
-0.013869590125977993,
0.010077263228595257,
0.01970941759645939,
-0.017412656918168068,
-0.027240658178925514,
-0.004589071962982416,
0.03884909674525261,
0.05156140401959419,
0.07164471596479416,
0.010192991234362125,
0.03356120362877846,
0.023840026929974556,
-0.01188440527766943,
-0.008060920052230358,
-0.02075987495481968,
0.04102122783660889,
0.002628367394208908,
-0.010931871831417084,
-0.0022244311403483152,
-0.034308984875679016,
0.012703404761850834,
-0.030285201966762543,
0.0025927587412297726,
-0.0781254991889,
0.00011009487934643403,
0.03475409373641014,
0.012454144656658173,
0.036783792078495026,
0.02946620248258114,
0.03475409373641014,
-0.009516426362097263,
-0.030463246628642082,
0.013237535953521729,
-0.0015311742899939418,
-0.018747983500361443,
0.011287959292531013,
-0.02359076589345932,
0.026866767555475235,
-0.04693227261304855,
-0.019246503710746765,
0.12249394506216049,
-0.042125098407268524,
0.006138050463050604,
-0.04379870742559433,
0.046362534165382385,
-0.04397675022482872,
-0.026279224082827568,
-0.03977492079138756,
-0.02980448491871357,
-0.026350440457463264,
-0.04732396826148033,
0.01550759095698595,
0.04529426991939545,
-0.09507524222135544,
-0.01815153658390045,
0.018178243190050125,
-0.05725879594683647,
-0.006485235411673784,
-0.04315774887800217,
-0.02040378749370575,
-0.03852861747145653,
-0.056760273873806,
0.010620296001434326,
-0.007918485440313816,
0.05067118629813194,
-0.004121707286685705,
0.011590633541345596,
-0.021934961900115013,
-0.05711635947227478,
0.044617705047130585,
-0.02467683143913746,
-0.029341572895646095,
0.03689061850309372,
-0.06441614776849747,
0.025442419573664665,
0.07314027845859528,
0.042623620480298996,
-0.010976383462548256,
0.013905199244618416,
-0.03710427135229111,
0.0005057548987679183,
0.0097656873986125,
0.06438053399324417,
-0.074564628303051,
-0.020991330966353416,
-0.007504534441977739,
-0.0023323700297623873,
-0.08097419142723083,
0.029929116368293762,
-0.0061914632096886635,
0.022611526772379875,
-0.010842850431799889,
-0.013531307689845562,
0.024089287966489792,
0.011243448592722416,
-0.04216070473194122,
0.020973525941371918,
0.0656624510884285,
-0.0035408404655754566,
0.012676699087023735,
0.030392028391361237,
-0.016397807747125626,
0.008853213861584663,
0.040700748562812805,
-0.05198870971798897,
0.007437767926603556,
-0.0337570495903492,
-0.02891426719725132,
0.0407719649374485,
0.04166218265891075,
-0.032386116683483124,
0.0010571334278210998,
-0.023804418742656708,
-0.005692941602319479,
-0.026190202683210373,
0.011590633541345596,
0.020101113244891167,
0.08538967370986938,
-0.044938184320926666,
-0.04326457530260086,
0.03799448534846306,
0.07356758415699005,
0.01935333013534546,
-0.03924079239368439,
0.033436574041843414,
0.003097957232967019,
0.029038898646831512,
-0.00913363229483366,
0.056760273873806,
0.009899219498038292,
0.03535944223403931,
0.019549177959561348,
-0.052558448165655136,
0.02503291890025139,
-0.007914034649729729,
0.027632353827357292,
0.02163228765130043,
-0.033062681555747986,
0.001668045180849731,
0.023875635117292404,
0.06548440456390381,
-0.08731254190206528,
-0.025994354858994484,
0.0283979419618845,
-0.02446318045258522,
-0.018178243190050125,
-0.03649892285466194,
-0.035466268658638,
-0.027756985276937485,
-0.06673070788383484,
0.019282113760709763,
-0.034843116998672485,
-0.012436339631676674,
-0.015917090699076653,
-0.04216070473194122,
0.021863743662834167,
0.028326723724603653,
-0.025299984961748123,
-0.0010320959845557809,
-0.0030289653223007917,
0.018178243190050125,
-0.01037103496491909,
0.007873974740505219,
-0.028825245797634125,
0.012908155098557472,
-0.003709981916472316,
-0.03279561549425125,
-0.022255439311265945,
0.06519953906536102,
0.04219631478190422,
-0.015196014195680618,
0.05882557854056358,
0.009738980792462826,
0.03863544389605522,
0.008853213861584663,
0.028326723724603653,
-0.028985485434532166,
0.008038665167987347,
-0.002257814398035407,
-0.013620329089462757,
-0.02077767811715603,
-0.0025437967851758003,
-0.07947862893342972,
0.03487872704863548,
0.023181267082691193,
0.05195309966802597,
0.0072641754522919655,
0.032546356320381165,
-0.03956127166748047,
0.07470706105232239,
-0.021222786977887154,
-0.0168785247951746,
-0.004602424800395966,
-0.006663278676569462,
-0.013157416135072708,
-0.015739047899842262,
0.06324105709791183,
-0.014341405592858791,
0.02109815739095211,
0.011359176598489285,
-0.03480750694870949,
-0.023341504856944084,
0.07541923224925995,
-0.0038145824801176786,
-0.029145725071430206,
-0.009195948019623756,
0.024552201852202415,
-0.0549442321062088,
0.016976449638605118,
-0.037674009799957275,
0.019210895523428917,
-0.0014989038463681936,
-0.05775731801986694,
0.03952566161751747,
0.004642484709620476,
-0.03252854943275452,
-0.03635648638010025,
0.03795887902379036,
0.01071821991354227,
-0.017154492437839508,
0.039312008768320084,
0.03352559357881546,
-0.006138050463050604,
-0.026813354343175888,
-0.02592313662171364,
-0.02376881055533886,
0.06121136248111725,
-0.030213985592126846,
-0.024961700662970543,
0.016655972227454185,
0.010166284628212452,
-0.021489853039383888,
-0.00029683191678486764,
-0.018534330651164055,
-0.034825313836336136,
0.00433981092646718,
0.010264208540320396,
0.00736209936439991,
0.02200617827475071,
-0.06979306042194366,
0.02001209184527397,
-0.002166567137464881,
0.0026350440457463264,
0.014377014711499214,
0.016718287020921707,
0.020884504541754723,
0.02109815739095211,
-0.011011991649866104,
-0.05387596786022186,
0.04098561778664589,
-0.04330018535256386,
-0.03505676984786987,
0.03370364010334015,
0.0018705697730183601,
0.01783105917274952,
-0.018302874639630318,
-0.05587005615234375,
0.007713735569268465,
-0.0006620993372052908,
-0.012249394319951534,
-0.010789437219500542,
-0.002724065911024809,
0.009854708798229694,
-0.014572862535715103,
0.010700415819883347,
0.005919946823269129,
0.0034673975314944983,
-0.005212224088609219,
0.01151941530406475,
-0.059003621339797974,
0.02359076589345932,
-0.01364703569561243,
0.047786880284547806,
0.020706461742520332,
0.02022574469447136,
-0.008951137773692608,
0.016451220959424973,
0.028291115537285805,
0.011991230770945549,
-0.02163228765130043,
0.05921727418899536,
-0.02161448262631893,
0.03407752886414528,
-0.06349031627178192,
0.010700415819883347,
0.027044810354709625,
-0.03763839974999428,
-0.0025437967851758003,
-0.04543670639395714,
-0.01692303642630577,
-0.02875402942299843,
-0.00851938221603632,
-0.0690808892250061,
-0.03580455109477043,
0.017323633655905724,
-0.0119556225836277,
-0.006632121279835701,
0.04162657633423805,
0.07463584095239639,
0.020653048530220985,
-0.030463246628642082,
0.03203003108501434,
-0.05512227490544319,
-0.015365155413746834,
0.01303278561681509,
0.008047566749155521,
0.0019985386170446873,
-0.06858236342668533,
-0.0479293167591095,
0.022807374596595764,
0.030605681240558624,
0.11893307417631149,
0.001443265238776803,
0.021026939153671265,
-0.03133565932512283,
0.0656624510884285,
-0.053199402987957,
0.05619053542613983,
0.0009792393539100885,
-0.01480431854724884,
-0.002646171720698476,
-0.02663530968129635,
0.024730244651436806,
0.0639176219701767,
-0.08182880282402039,
0.030570073053240776,
-0.025460222736001015,
0.06544879823923111,
-0.018890418112277985,
-0.041448529809713364,
0.10326524078845978,
-0.019104069098830223,
0.03144248574972153,
0.07556167244911194,
-0.0182049497961998,
-0.0028754028026014566,
-0.005359109956771135,
0.048677098006010056,
0.012525361962616444,
0.0039058297406882048,
0.021204983815550804,
0.01303278561681509,
-0.010896263644099236,
0.012445242144167423,
0.034522637724876404,
-0.055976882576942444,
-0.04572157561779022,
0.06459418684244156,
-0.023661984130740166,
0.040843185037374496,
0.013673742301762104,
0.038243748247623444,
0.017270222306251526,
-0.031976617872714996,
0.054374489933252335,
-0.003609832376241684,
-0.007148447446525097,
0.02182813547551632,
0.04899757727980614,
-0.0425167940557003,
-0.0655912309885025,
0.018837004899978638,
-0.08560332655906677,
0.006146952509880066,
-0.03598259389400482,
0.018338482826948166,
0.005483740475028753,
-0.056795883923769,
0.035929180681705475,
0.010753829032182693,
0.012569872662425041,
-0.009578741155564785,
-0.04009540006518364,
-0.04422600939869881,
0.04326457530260086,
0.005710745695978403,
0.006422920152544975,
0.02887865900993347,
-0.025638267397880554,
0.01799129694700241,
0.0016335493419319391,
-0.005955555941909552,
-0.000010049721822724678,
-0.08004836738109589,
-0.06114014610648155,
0.013967514038085938,
-0.004157316405326128,
0.023893440142273903,
0.027756985276937485,
0.014501644298434258,
-0.005038631614297628,
-0.07139544934034348,
0.045472316443920135,
-0.018356287851929665,
0.007994154468178749,
0.09251141548156738,
-0.05547836050391197,
-0.05391157791018486,
0.027098223567008972,
0.017608504742383957,
-0.06174549460411072,
-0.08432140946388245,
-0.0028019598685204983,
0.03906274959445,
0.006796811241656542,
-0.05608370900154114,
0.00793628953397274,
0.061246972531080246,
0.03988174721598625,
0.01791117899119854,
0.05975140631198883,
0.08211366832256317,
0.05715196952223778,
0.07727088779211044,
-0.02554924599826336,
-0.012436339631676674,
0.006155854556709528,
0.02268274500966072,
0.043727487325668335,
0.02887865900993347,
-0.04027344286441803,
-0.016736090183258057,
0.015543199144303799,
-0.020866701379418373,
0.019121874123811722,
0.0020775452721863985,
0.04419040307402611,
0.012783524580299854,
0.004758213181048632,
0.03338316082954407,
-0.07427975535392761,
-0.05074240267276764,
-0.09771028161048889,
0.016335492953658104,
0.0035564193967729807,
-0.01384288351982832,
-0.03208344057202339,
-0.01808922179043293,
0.00041478575440123677,
0.022380070760846138,
-0.017742035910487175,
0.03172735497355461,
0.05519349128007889,
-0.043691881000995636,
-0.02572728879749775,
0.014501644298434258,
0.022095201537013054,
-0.022380070760846138,
0.04315774887800217,
0.06697997450828552,
-0.024623418226838112,
0.06313423067331314,
-0.047786880284547806,
0.010896263644099236,
-0.0059333001263439655,
0.0009135858272202313,
0.07776940613985062,
0.02449878863990307,
0.012276100926101208,
-0.07061205804347992,
-0.06309862434864044,
-0.07189397513866425,
0.004330908413976431,
0.016967548057436943,
0.038421791046857834,
0.005234479438513517,
0.007304235361516476,
-0.046896662563085556,
0.019406743347644806,
0.05038631707429886,
0.04889075085520744,
-0.013068394735455513,
0.02449878863990307,
-0.000815105508081615,
-0.04682544618844986,
-0.01090516522526741,
-0.05889679491519928,
-0.06861796975135803,
0.027347484603524208,
-0.0037322372663766146,
0.049068793654441833,
0.03279561549425125,
-0.018338482826948166,
0.009747882373631,
0.05173944681882858,
0.037495967000722885,
0.12363342195749283,
-0.057935360819101334,
-0.04500940069556236,
0.02800624631345272,
0.06192353740334511,
-0.029216941446065903,
0.0283979419618845,
-0.019228700548410416,
-0.018926026299595833,
-0.06114014610648155,
0.020955722779035568,
-0.007842817343771458,
0.06641023606061935,
0.02394685335457325,
-0.008675170131027699,
0.02570948377251625,
0.021169373765587807,
-0.0020263579208403826,
0.003629862330853939,
0.05173944681882858,
-0.07328271120786667,
0.003738913917914033,
-0.023056635633111,
-0.06794140487909317,
-0.0010003820061683655,
-0.04005979374051094,
0.0021220562048256397,
-0.07200080156326294,
0.040344662964344025,
-0.017207905650138855,
0.023181267082691193,
-0.022113004699349403,
0.028273310512304306,
-0.0031513702124357224,
-0.03511018306016922,
0.016807308420538902,
-0.04112805426120758,
0.03085494227707386,
0.0070683276280760765,
0.02108035236597061,
0.02521096169948578,
0.03480750694870949,
-0.067442886531353,
0.05619053542613983,
-0.010282013565301895,
0.04223192110657692,
-0.0031869790982455015,
-0.03760278970003128,
-0.013290949165821075,
-0.007695931009948254,
-0.03512798622250557,
0.05198870971798897,
0.006783457938581705,
-0.00008484886348014697,
-0.01686072163283825,
-0.01125235017389059,
0.013985318131744862,
0.043691881000995636,
0.04735957458615303,
-0.009578741155564785,
-0.04917562007904053,
-0.03320511803030968,
-0.030730310827493668,
-0.050635576248168945,
0.0007383242482319474,
0.02782820165157318,
0.006422920152544975,
0.03639209643006325,
0.04881953448057175,
0.00032910233130678535,
-0.05113409832119942,
0.021721309050917625,
-0.02446318045258522,
-0.03471848741173744,
-0.027009202167391777,
0.01571234129369259,
0.005755256861448288,
0.05070679634809494,
0.039810530841350555,
-0.015196014195680618,
0.05092044547200203,
-0.04949609935283661,
-0.011626241728663445,
0.03318731114268303,
-0.016736090183258057,
0.005822022911161184,
-0.041234880685806274,
0.011501611210405827,
0.020350374281406403,
-0.04807174950838089,
-0.06017870828509331,
-0.001189553295262158,
-0.05124092474579811,
-0.03049885481595993,
-0.011768676340579987,
0.040522705763578415,
-0.0799059346318245,
0.012801328673958778,
-0.01694084145128727,
0.029733268544077873,
-0.027276266366243362,
-0.017261318862438202,
-0.053199402987957,
0.021311810240149498,
-0.001750390394590795,
-0.04646936058998108,
-0.038208138197660446,
-0.031086398288607597,
-0.014670786447823048,
-0.03952566161751747,
-0.031513702124357224,
-0.03265318274497986,
-0.033418767154216766,
0.07520557940006256,
0.002412489615380764,
0.0017125561134889722,
0.07427975535392761,
0.05109849199652672,
-0.0059867133386433125,
-0.05351988226175308,
0.04946048930287361,
-0.01160843763500452,
-0.038421791046857834,
0.021418634802103043,
0.0019573660101741552,
0.017029862850904465,
0.006494137458503246,
0.021222786977887154,
0.02592313662171364,
-0.06587610393762589,
-0.019994286820292473,
-0.006912539713084698,
0.0032337154261767864,
0.015534297563135624,
-0.02927035465836525,
0.030463246628642082,
0.0084392623975873,
-0.021026939153671265,
-0.01260548084974289,
-0.014644079841673374,
-0.006405115593224764,
-0.0007221890264190733,
-0.026297027245163918,
-0.009925926104187965,
0.027044810354709625,
-0.03471848741173744,
0.012899252586066723,
-0.019050655886530876,
0.05729440599679947,
0.05426766350865364,
0.027400897815823555,
-0.012836937792599201,
0.01179538294672966,
0.05412523075938225,
0.02996472455561161,
0.016157450154423714,
0.019050655886530876,
0.00505643617361784,
0.025317788124084473,
-0.04899757727980614,
0.05960896983742714,
0.036961834877729416,
-0.03941883519291878,
0.04091440141201019,
0.021596679463982582,
0.01276572048664093,
-0.012632187455892563,
-0.009084670804440975,
-0.013201926834881306,
0.016709383577108383,
-0.02604776620864868,
-0.02020793966948986,
-0.0032737753354012966,
-0.05903923138976097,
0.04810735955834389,
-0.02090230956673622,
-0.007664773613214493,
0.02553144097328186,
-0.08852323889732361,
0.06722923368215561,
-0.04472453147172928,
-0.014412622898817062,
-0.02996472455561161,
0.015124796889722347,
0.015836970880627632,
0.03916957601904869,
-0.060285534709692,
0.08389410376548767,
0.008737485855817795,
-0.02873622439801693,
-0.01864115707576275,
0.04643375054001808,
0.025584854185581207,
0.031282246112823486,
-0.008181099779903889,
-0.06324105709791183,
0.04928244650363922,
-0.027935028076171875,
0.013869590125977993,
0.027276266366243362,
-0.06430932134389877,
-0.020296961069107056,
-0.010415545664727688,
0.028291115537285805,
0.0034162099473178387,
0.044795747846364975,
-0.05302136018872261,
0.00346072087995708,
-0.005906593985855579,
-0.04572157561779022,
-0.05020827427506447,
0.044938184320926666,
-0.004402126185595989,
-0.03370364010334015,
0.00044761254684999585,
-0.024231722578406334,
-0.0010760505683720112,
-0.025816310197114944,
-0.030107159167528152,
0.015249427407979965,
-0.049923401325941086,
0.006365055684000254,
-0.00895558949559927,
-0.03313389793038368,
-0.008871017955243587,
-0.03137126937508583,
0.058433882892131805,
0.0000332092895405367,
0.013558014295995235,
0.018338482826948166,
0.03760278970003128,
-0.009738980792462826,
-0.030623486265540123
] |
721,978
|
apprise.url
|
throttle
|
A common throttle control
if a wait is specified, then it will force a sleep of the
specified time if it is larger then the calculated throttle
time.
|
def throttle(self, last_io=None, wait=None):
"""
A common throttle control
if a wait is specified, then it will force a sleep of the
specified time if it is larger then the calculated throttle
time.
"""
if last_io is not None:
# Assume specified last_io
self._last_io_datetime = last_io
# Get ourselves a reference time of 'now'
reference = datetime.now()
if self._last_io_datetime is None:
# Set time to 'now' and no need to throttle
self._last_io_datetime = reference
return
if self.request_rate_per_sec <= 0.0 and not wait:
# We're done if there is no throttle limit set
return
# If we reach here, we need to do additional logic.
# If the difference between the reference time and 'now' is less than
# the defined request_rate_per_sec then we need to throttle for the
# remaining balance of this time.
elapsed = (reference - self._last_io_datetime).total_seconds()
if wait is not None:
self.logger.debug('Throttling forced for {}s...'.format(wait))
time.sleep(wait)
elif elapsed < self.request_rate_per_sec:
self.logger.debug('Throttling for {}s...'.format(
self.request_rate_per_sec - elapsed))
time.sleep(self.request_rate_per_sec - elapsed)
# Update our timestamp before we leave
self._last_io_datetime = datetime.now()
return
|
(self, last_io=None, wait=None)
|
[
-0.017847899347543716,
-0.02894352376461029,
-0.08241422474384308,
-0.004329666495323181,
0.013422423042356968,
0.007149196695536375,
-0.037995219230651855,
-0.013294677250087261,
-0.08606410026550293,
-0.058252036571502686,
-0.02210000529885292,
-0.009115567430853844,
0.015758343040943146,
-0.0032232976518571377,
-0.022921226918697357,
-0.005625372752547264,
0.04201008379459381,
-0.009462306275963783,
0.006223040167242289,
-0.06573428213596344,
0.03704624995589256,
0.019691087305545807,
0.012400456704199314,
0.017920896410942078,
-0.007290629204362631,
0.04682792350649834,
-0.03303138539195061,
-0.0034171973820775747,
0.0019230289617553353,
0.0059675490483641624,
0.030987456440925598,
0.0095718028023839,
0.03708275035023689,
-0.04113411530852318,
0.023432210087776184,
-0.03325038030743599,
0.017355164512991905,
0.02272048406302929,
-0.09905765950679779,
-0.010046286508440971,
-0.012601200491189957,
-0.02637036144733429,
-0.06544229388237,
-0.003996615298092365,
-0.0011805071262642741,
0.05197424814105034,
0.00687089329585433,
0.12570177018642426,
0.014608632773160934,
0.02644335851073265,
0.012801943346858025,
-0.00823503453284502,
-0.051645759493112564,
-0.024454176425933838,
-0.007564370054751635,
0.010575518943369389,
-0.016406197100877762,
-0.01429839339107275,
0.022173002362251282,
-0.01713617332279682,
0.006592590361833572,
0.006957578007131815,
0.010849259793758392,
-0.00028143974486738443,
0.02783031202852726,
0.0071765705943107605,
-0.04817837476730347,
-0.014854999259114265,
-0.017939144745469093,
0.011734354309737682,
0.028651533648371696,
-0.0361337810754776,
-0.01243695616722107,
0.01228183601051569,
-0.02932676114141941,
-0.03009323589503765,
0.008508775383234024,
0.004106111824512482,
-0.027355827391147614,
0.030385226011276245,
0.06839869171380997,
-0.02501990646123886,
0.01789352111518383,
-0.046608928591012955,
0.011177748441696167,
-0.009863792918622494,
-0.03682725876569748,
-0.03589653968811035,
-0.013020936399698257,
0.009909415617585182,
-0.058142539113759995,
0.03522131219506264,
0.021771516650915146,
0.019508592784404755,
0.03040347620844841,
0.00470834132283926,
-0.07449398934841156,
-0.04467449337244034,
-0.03494757041335106,
0.010064535774290562,
-0.022775232791900635,
0.038579199463129044,
0.020384563133120537,
-0.007194819860160351,
0.03593304008245468,
-0.052448730915784836,
0.022355496883392334,
0.0003065326309297234,
-0.02640685997903347,
-0.034965820610523224,
0.0037411239463835955,
-0.014161522500216961,
-0.055332135409116745,
0.005876301787793636,
0.020895546302199364,
0.0752604603767395,
-0.011615733616054058,
0.00512351468205452,
0.019234851002693176,
0.00379587197676301,
-0.015995586290955544,
0.005105265416204929,
0.0439080186188221,
-0.06409183889627457,
-0.01688980497419834,
-0.009553552605211735,
-0.014380515553057194,
0.007915670983493328,
-0.025530889630317688,
0.029126018285751343,
-0.09438581764698029,
0.004352478310465813,
-0.027848562225699425,
0.033889107406139374,
0.014134149067103863,
0.0339803546667099,
-0.061025943607091904,
0.08708606660366058,
-0.03231966122984886,
0.019928328692913055,
0.007181133143603802,
-0.02786681056022644,
0.043762024492025375,
-0.04551396518945694,
0.08774304389953613,
0.02355995588004589,
0.03531255945563316,
-0.012884065508842468,
-0.0028948087710887194,
0.008244159631431103,
-0.007445748895406723,
0.019326098263263702,
0.01605033315718174,
0.045148979872465134,
-0.015895213931798935,
0.03494757041335106,
-0.04069612920284271,
-0.002119209850206971,
-0.07569845020771027,
-0.006291475612670183,
-0.018495751544833183,
-0.002041650004684925,
0.003494757227599621,
-0.06237639859318733,
-0.007838110439479351,
0.0689096748828888,
-0.051609259098768234,
0.03531255945563316,
0.050988782197237015,
0.007979543879628181,
0.023158470168709755,
-0.008955885656177998,
-0.00814835075289011,
-0.005502189509570599,
0.028049305081367493,
0.030987456440925598,
-0.007085323799401522,
0.005128077231347561,
-0.0021500056609511375,
-0.0195633415132761,
0.0494193360209465,
-0.014289268292486668,
-0.024545423686504364,
-0.09212289750576019,
-0.05642709881067276,
-0.04927333816885948,
0.004573752172291279,
0.02248324267566204,
-0.017519408836960793,
0.07752338796854019,
0.0159134641289711,
0.02053055725991726,
0.03217366710305214,
-0.007646492216736078,
0.03310438618063927,
0.025202400982379913,
0.04055013507604599,
-0.003745686262845993,
0.1327095329761505,
0.06558828800916672,
-0.008257846347987652,
0.021132787689566612,
0.04836086928844452,
-0.00480415066704154,
0.008905699476599693,
-0.030695466324687004,
0.06558828800916672,
-0.008476839400827885,
-0.048141878098249435,
0.0001447832037229091,
-0.07391001284122467,
0.008212223649024963,
-0.021862763911485672,
0.030494721606373787,
0.0032940139062702656,
0.039345674216747284,
0.02328621596097946,
0.016095956787467003,
0.01210846658796072,
-0.029582252725958824,
0.009047132916748524,
-0.04277655854821205,
-0.05569712445139885,
-0.022811731323599815,
0.049528829753398895,
0.00856808666139841,
0.05003981292247772,
-0.038031719624996185,
0.060989443212747574,
-0.0005169708747416735,
0.03082321211695671,
0.01959984004497528,
0.022975975647568703,
0.04142610356211662,
0.03737473860383034,
0.0012033188249915838,
-0.018495751544833183,
-0.017364289611577988,
-0.026936091482639313,
-0.03478332608938217,
0.013404172845184803,
0.06223040446639061,
-0.011679606512188911,
-0.041535601019859314,
-0.032118916511535645,
-0.05226624011993408,
-0.0008206520578823984,
0.037958722561597824,
0.02109628915786743,
-0.0323014110326767,
0.037958722561597824,
0.001713161007501185,
-0.03620677813887596,
-0.09934965521097183,
-0.04551396518945694,
0.04496648535132408,
0.016214579343795776,
-0.011214246973395348,
-0.05796004831790924,
0.04544096812605858,
-0.018249385058879852,
-0.017428163439035416,
-0.09621075540781021,
-0.02144302800297737,
-0.014252769760787487,
-0.02164377085864544,
0.0006296038045547903,
0.008736892603337765,
0.000998013187199831,
0.02498340792953968,
0.11241620779037476,
-0.00821678526699543,
0.016616065055131912,
-0.047484900802373886,
-0.047302406281232834,
-0.03985665738582611,
0.01577659323811531,
0.035002321004867554,
0.02352345734834671,
-0.01518348790705204,
0.05595261603593826,
-0.014854999259114265,
0.0012466610642150044,
0.012957063503563404,
-0.028268298134207726,
-0.025932375341653824,
0.00417910935357213,
0.09869267046451569,
-0.022318998351693153,
0.019234851002693176,
-0.028085803613066673,
0.020311566069722176,
0.01779315061867237,
-0.03485632687807083,
-0.033724863082170486,
-0.014754627831280231,
-0.03401685506105423,
-0.0653328001499176,
0.053069211542606354,
0.018705619499087334,
0.004808712750673294,
-0.017008427530527115,
-0.05493064969778061,
0.009238751605153084,
0.030585968866944313,
-0.04993031546473503,
-0.00039264693623408675,
-0.008955885656177998,
0.017291292548179626,
-0.001844328478910029,
-0.046061448752880096,
0.009097318165004253,
0.03982015699148178,
-0.002735126530751586,
-0.00417910935357213,
0.05274072289466858,
0.001972074154764414,
0.05277721956372261,
-0.016561316326260567,
0.05080628767609596,
-0.04704691469669342,
0.09781670570373535,
0.010018912144005299,
-0.003241546917706728,
-0.03241090849041939,
-0.028761031106114388,
0.0195633415132761,
0.038031719624996185,
-0.059675488620996475,
-0.012181464582681656,
-0.015037492848932743,
-0.017574157565832138,
-0.023888444527983665,
-0.0404406376183033,
-0.04777688905596733,
0.05485765263438225,
0.03766673058271408,
-0.02001957595348358,
0.07555245608091354,
0.012427831068634987,
-0.023249715566635132,
0.026041872799396515,
0.04266706109046936,
0.028268298134207726,
-0.012217963114380836,
-0.0533612035214901,
0.04781338945031166,
0.023194968700408936,
0.07438449561595917,
-0.009138379245996475,
0.016095956787467003,
-0.024800913408398628,
-0.010429523885250092,
0.013331175781786442,
0.02337746135890484,
-0.03909018263220787,
-0.00685264403000474,
-0.02525714971125126,
-0.0019344347529113293,
-0.04657243192195892,
-0.01855962537229061,
0.03348762169480324,
0.009489680640399456,
0.04817837476730347,
0.039455171674489975,
0.035458553582429886,
0.03624327853322029,
0.017537659034132957,
-0.009644799865782261,
-0.028888776898384094,
-0.07285154610872269,
-0.024782665073871613,
0.008650208823382854,
0.04492998495697975,
0.016241952776908875,
0.049455832690000534,
-0.036188531666994095,
-0.020037824288010597,
0.0003715460770763457,
0.03861569985747337,
0.04624394327402115,
-0.005899113602936268,
0.015712721273303032,
-0.025731632485985756,
-0.024545423686504364,
-0.010420398786664009,
0.030932707712054253,
-0.04000265151262283,
0.027739064767956734,
-0.016552193090319633,
0.007824423722922802,
-0.029071269556879997,
-0.057522062212228775,
0.0408056266605854,
-0.07015063613653183,
0.015000994317233562,
0.048689357936382294,
0.013732662424445152,
-0.008125538937747478,
-0.04909084737300873,
0.04463799670338631,
0.026534605771303177,
-0.07292453944683075,
0.024235183373093605,
0.007500497158616781,
0.01615070551633835,
0.04861636087298393,
0.019344348460435867,
-0.02679009735584259,
0.0848231390118599,
-0.0640188455581665,
-0.01306656002998352,
0.009298061951994896,
0.013778286054730415,
0.031261198222637177,
0.005789617542177439,
0.0027100336737930775,
0.01903410814702511,
-0.014599507674574852,
0.0029244639445096254,
0.029089519754052162,
-0.041681595146656036,
0.0035974099300801754,
0.02970999851822853,
0.04682792350649834,
-0.041499100625514984,
0.008089039474725723,
-0.04755789786577225,
-0.00696670264005661,
0.011935098096728325,
0.015676220878958702,
0.0404406376183033,
-0.06208440661430359,
-0.022975975647568703,
0.027301080524921417,
0.01391515601426363,
0.015867840498685837,
0.008481401950120926,
-0.021041540428996086,
-0.05832503363490105,
0.027465324848890305,
0.0086137093603611,
-0.011834725737571716,
-0.008914824575185776,
0.01351366937160492,
-0.012619449757039547,
-0.0007191398181021214,
0.03273939713835716,
-0.05496714636683464,
-0.015411606058478355,
-0.006528717465698719,
-0.0028560287319123745,
0.03659001737833023,
0.03531255945563316,
-0.04204658418893814,
-0.06562478840351105,
0.012400456704199314,
-0.024965157732367516,
0.020804299041628838,
-0.01779315061867237,
-0.019362596794962883,
0.0412801094353199,
0.026936091482639313,
-0.005999485496431589,
-0.04551396518945694,
0.07569845020771027,
0.05715707316994667,
0.02828654646873474,
0.014161522500216961,
0.05368969216942787,
0.018222011625766754,
-0.007240443490445614,
-0.004060488194227219,
-0.023432210087776184,
0.00978167075663805,
-0.029089519754052162,
0.016652563586831093,
0.039528168737888336,
0.0692746639251709,
-0.007952169515192509,
0.042594064027071,
-0.04179109260439873,
0.03367011621594429,
0.015283860266208649,
0.005100703332573175,
-0.05146326497197151,
-0.08263321220874786,
0.02894352376461029,
0.0037616544868797064,
-0.022264249622821808,
-0.05591611564159393,
0.027465324848890305,
0.016670813784003258,
0.06562478840351105,
-0.03662651404738426,
0.049674827605485916,
-0.004587439354509115,
0.015502852387726307,
0.046535931527614594,
0.024782665073871613,
0.027428826317191124,
-0.00013216547085903585,
-0.020384563133120537,
-0.011716105043888092,
0.005077891517430544,
0.005766805727034807,
-0.07606343924999237,
-0.016981052234768867,
-0.0187238696962595,
0.006318849511444569,
0.03713749721646309,
-0.008152912370860577,
0.0018329225713387132,
0.04916384443640709,
-0.016251077875494957,
-0.051061779260635376,
0.005009456072002649,
0.031388942152261734,
0.006711211521178484,
-0.0399661548435688,
0.0208772961050272,
0.016962803900241852,
0.0035837229806929827,
-0.011597484350204468,
0.0068845804780721664,
0.003544942941516638,
0.007879171520471573,
-0.032465655356645584,
0.03978366032242775,
0.005552375223487616,
0.016944553703069687,
0.0023610142525285482,
0.0021625522058457136,
-0.03721049427986145,
0.03137069195508957,
0.022665735334157944,
-0.0601864717900753,
-0.045988451689481735,
-0.07766938209533691,
-0.0212970320135355,
-0.020457560196518898,
-0.05478465184569359,
0.04686442017555237,
-0.01740991324186325,
0.01143324002623558,
0.01264682412147522,
-0.03460083529353142,
0.03919968008995056,
0.012947938404977322,
-0.051755256950855255,
0.004553221631795168,
-0.0512077733874321,
0.020475810393691063,
0.0026552854105830193,
-0.03956466540694237,
-0.03956466540694237,
0.0439080186188221,
0.005976673681288958,
0.014042901806533337,
0.02109628915786743,
-0.04274005815386772,
-0.0009672173764556646,
0.04657243192195892,
-0.007089885883033276,
-0.040878623723983765,
-0.010767136700451374,
0.06259538978338242,
0.06456632167100906,
0.03575054556131363,
0.00011527052993187681,
0.02053055725991726,
0.05806954205036163,
-0.029454506933689117,
-0.036809008568525314,
-0.021844513714313507,
0.0396011658012867,
0.013157806359231472,
0.021662019193172455,
-0.04901784658432007,
0.000004678186996898148,
0.01726391911506653,
-0.0064557199366390705,
-0.02137002907693386,
-0.06223040446639061,
0.01207196805626154,
-0.04646293446421623,
-0.010621141642332077,
0.015895213931798935,
-0.026625853031873703,
0.07033313065767288,
-0.042959053069353104,
0.03846970200538635,
-0.031242946162819862,
-0.01754678413271904,
0.010539019480347633,
0.07018713653087616,
-0.05080628767609596,
-0.04266706109046936,
0.01941734552383423,
0.07113610208034515,
0.005661871749907732,
0.06226690113544464,
-0.0391266830265522,
0.06237639859318733,
0.025384893640875816,
0.02720983326435089,
-0.03846970200538635,
-0.018441002815961838,
0.010958755388855934,
-0.03662651404738426,
0.00012596353190019727,
0.07555245608091354,
0.01209021732211113,
0.08000530302524567,
-0.007769675459712744,
0.02556738816201687,
-0.08584510535001755,
-0.05226624011993408,
0.052485231310129166,
-0.0709536075592041,
-0.005283196922391653,
0.016342325136065483,
-0.0014086243463680148,
-0.022811731323599815,
-0.05354369431734085,
-0.04708341509103775,
0.00214544334448874,
-0.07942132651805878,
-0.012911439873278141,
-0.032775893807411194,
-0.013604916632175446,
-0.10891232639551163,
0.028396043926477432,
0.005009456072002649,
-0.038652196526527405,
0.050952281802892685,
-0.03248390555381775,
0.03429059311747551,
-0.06679274886846542,
-0.029345011338591576,
0.06500431150197983,
-0.0019948859699070454,
0.00008055392390815541,
-0.06164642423391342,
0.004662717692553997,
0.009927665814757347,
-0.029655249789357185,
0.031808678060770035,
0.02647985704243183,
0.0477403923869133,
-0.09073594212532043,
0.022592738270759583,
0.02095029316842556,
0.022209500893950462,
-0.03199117258191109,
-0.009909415617585182,
0.005862615071237087,
0.004603407345712185,
0.062485892325639725,
-0.05347069725394249,
-0.020658303052186966,
-0.010338276624679565,
0.05423717200756073,
-0.031042203307151794,
-0.0396011658012867,
-0.010310902260243893,
-0.03898068517446518,
-0.030549470335245132,
-0.029472757130861282,
0.026005374267697334,
0.04719290882349014,
0.01233658380806446,
0.02137002907693386,
-0.003116082400083542,
0.049674827605485916,
0.01389690674841404,
-0.033925607800483704,
-0.007660179398953915,
-0.01907060667872429,
-0.00819853600114584,
0.015749219805002213,
-0.018285883590579033,
-0.06847169250249863,
-0.027958057820796967,
0.044528499245643616,
-0.02720983326435089,
0.048908352851867676,
-0.014791126362979412,
-0.07942132651805878,
0.015000994317233562,
0.008759704418480396,
-0.02679009735584259,
-0.02237374521791935,
0.05076978728175163,
-0.03669951483607292,
-0.07927532494068146,
0.01779315061867237,
-0.023724200204014778,
0.028268298134207726,
-0.00533338263630867,
0.056098610162734985,
0.008476839400827885,
0.013331175781786442,
-0.048251375555992126,
-0.016059458255767822,
0.021151037886738777,
-0.013203429989516735,
0.0044733802787959576,
0.03766673058271408,
-0.01120512280613184,
0.029782995581626892,
0.04047713428735733,
0.025238899514079094,
0.05653659626841545,
-0.03317738324403763,
0.012847566977143288,
-0.023778948932886124,
0.0022595019545406103,
0.008171162568032742,
0.023468708619475365,
-0.013614040799438953,
0.024271681904792786,
0.020275067538022995,
-0.017419038340449333,
-0.03155318647623062,
0.025384893640875816,
-0.04317804425954819,
0.05368969216942787,
-0.02290297858417034,
0.002586850430816412,
0.029071269556879997,
0.011789103038609028,
-0.02098679356276989,
-0.018979361280798912,
0.07504147291183472,
-0.0464264340698719,
0.026279114186763763,
-0.04193708673119545,
0.0533612035214901,
0.008321719244122505,
-0.01080363616347313,
-0.04332403838634491,
-0.0076008690521121025,
-0.028396043926477432,
-0.04332403838634491,
-0.04051363468170166,
-0.016871556639671326,
-0.011725230142474174,
0.046499431133270264,
0.013185180723667145,
0.01827675849199295,
-0.07449398934841156,
-0.009489680640399456,
-0.04985731840133667,
0.024800913408398628,
-0.001737113343551755,
-0.04058663174510002,
0.03582354262471199,
0.004758527036756277,
0.0391266830265522,
0.04164509475231171,
-0.0023997940588742495,
0.07303404062986374,
0.051025278866291046,
-0.010073660872876644,
-0.03544030711054802,
-0.013714413158595562,
0.014225395396351814
] |
721,979
|
apprise.url
|
unquote
|
Replace %xx escapes by their single-character equivalent. The optional
encoding and errors parameters specify how to decode percent-encoded
sequences.
Wrapper to Python's `unquote` while remaining compatible with both
Python 2 & 3 since the reference to this function changed between
versions.
Note: errors set to 'replace' means that invalid sequences are
replaced by a placeholder character.
Args:
content (str): The quoted URI string you wish to unquote
encoding (:obj:`str`, optional): encoding type
errors (:obj:`str`, errors): how to handle invalid character found
in encoded string (defined by encoding)
Returns:
str: The unquoted URI string
|
@staticmethod
def unquote(content, encoding='utf-8', errors='replace'):
"""
Replace %xx escapes by their single-character equivalent. The optional
encoding and errors parameters specify how to decode percent-encoded
sequences.
Wrapper to Python's `unquote` while remaining compatible with both
Python 2 & 3 since the reference to this function changed between
versions.
Note: errors set to 'replace' means that invalid sequences are
replaced by a placeholder character.
Args:
content (str): The quoted URI string you wish to unquote
encoding (:obj:`str`, optional): encoding type
errors (:obj:`str`, errors): how to handle invalid character found
in encoded string (defined by encoding)
Returns:
str: The unquoted URI string
"""
if not content:
return ''
return _unquote(content, encoding=encoding, errors=errors)
|
(content, encoding='utf-8', errors='replace')
|
[
-0.04720479995012283,
-0.010100126266479492,
0.024576975032687187,
0.04295211657881737,
-0.00918757077306509,
0.028971415013074875,
0.01212015189230442,
-0.022450631484389305,
0.09207062423229218,
-0.01911936141550541,
0.04894131422042847,
0.06822015345096588,
-0.02383275516331196,
0.04738199710845947,
0.017861276865005493,
0.03233812376856804,
-0.03411007672548294,
0.09433872252702713,
0.033029183745384216,
-0.03162934258580208,
-0.06123866140842438,
0.027837365865707397,
-0.014716061763465405,
-0.02608313411474228,
0.008146549575030804,
-0.008935067802667618,
-0.006099944934248924,
-0.03788433223962784,
-0.022060802206397057,
-0.04004611447453499,
0.06836190819740295,
0.049720972776412964,
0.002755385357886553,
-0.004691242706030607,
0.02714630402624607,
-0.050996776670217514,
-0.011118998751044273,
0.03877031058073044,
-0.02489592507481575,
-0.029414402320981026,
-0.05780107527971268,
-0.015920989215373993,
-0.02785508520901203,
-0.04433424025774002,
0.05953758582472801,
0.009223010390996933,
-0.04103840887546539,
-0.007070088293403387,
-0.024222584441304207,
-0.002312397351488471,
0.032674793154001236,
0.02154693566262722,
0.037388186901807785,
-0.003969172481447458,
-0.015415982343256474,
0.010870925150811672,
-0.0386994332075119,
0.08136803656816483,
0.04865780100226402,
0.016204500570893288,
0.06744049489498138,
0.024133985862135887,
-0.03067248873412609,
0.018135929480195045,
0.006627100519835949,
0.03894750401377678,
0.01064057182520628,
-0.044617749750614166,
-0.026561560109257698,
-0.021688692271709442,
-0.0489058755338192,
0.023868193849921227,
-0.05609999969601631,
-0.04894131422042847,
0.1258794665336609,
-0.011801199987530708,
-0.03997523710131645,
0.03717555105686188,
-0.02282274141907692,
0.035368163138628006,
0.05326487869024277,
-0.023460645228624344,
0.05418629199266434,
-0.0008854222833178937,
-0.021227985620498657,
-0.07350056618452072,
-0.014459128491580486,
0.0037011646199971437,
0.050606947392225266,
0.05446980521082878,
0.02969791553914547,
-0.07697359472513199,
-0.04220789670944214,
0.033241819590330124,
-0.01204927358776331,
-0.02269870415329933,
0.01758662424981594,
-0.034517623484134674,
-0.021511496976017952,
-0.06818471103906631,
0.029981426894664764,
0.07619393616914749,
-0.06425097584724426,
-0.03503149002790451,
-0.00662267068400979,
-0.058935124427080154,
0.0017453726613894105,
-0.07048825174570084,
-0.028298072516918182,
-0.08321086317300797,
-0.004886157810688019,
-0.015229927375912666,
-0.02273414470255375,
0.02948528155684471,
0.02392135187983513,
-0.027376659214496613,
0.023868193849921227,
-0.03389744088053703,
0.06425097584724426,
-0.021121667698025703,
0.010516535490751266,
0.029715634882450104,
-0.05319399759173393,
-0.014379390515387058,
0.10284409672021866,
0.06049444153904915,
-0.03965628519654274,
0.009426784701645374,
0.009559680707752705,
-0.01110127940773964,
-0.01110127940773964,
0.04422792047262192,
-0.042810361832380295,
-0.03201917186379433,
0.03524412587285042,
-0.005896170157939196,
-0.06293973326683044,
0.058368097990751266,
0.02418714389204979,
0.05128028988838196,
-0.022415192797780037,
-0.013333939015865326,
0.04709848389029503,
-0.0034996052272617817,
-0.047169361263513565,
0.002011165488511324,
0.01678924448788166,
-0.017870135605335236,
0.01704617775976658,
0.013847804628312588,
0.03912470117211342,
0.023690998554229736,
0.035669393837451935,
0.02119254507124424,
0.0020011982414871454,
0.014423688873648643,
0.030637050047516823,
-0.033596210181713104,
-0.014964134432375431,
0.02744753658771515,
0.02890053763985634,
-0.024523815140128136,
0.010392498224973679,
-0.0034375868272036314,
0.010268461890518665,
-0.016620909795165062,
0.07902906090021133,
-0.0832817405462265,
0.0071055274456739426,
-0.019367435947060585,
0.0027243762742727995,
-0.00017096567898988724,
0.00529813626781106,
0.015885550528764725,
0.08399052172899246,
0.04376721382141113,
-0.018233386799693108,
0.04809077829122543,
-0.004629224538803101,
0.0061132344417274,
0.027164023369550705,
-0.06758224964141846,
0.03372024744749069,
-0.07732798159122467,
0.014946415089070797,
-0.03556307777762413,
-0.01908392272889614,
0.025143999606370926,
0.04497214034199715,
-0.030920561403036118,
-0.015336244367063046,
-0.04497214034199715,
-0.02537435293197632,
-0.010587412863969803,
-0.025675583630800247,
-0.061096902936697006,
-0.03159390389919281,
-0.009665997698903084,
0.038805749267339706,
0.020590081810951233,
-0.05925407633185387,
0.05227258428931236,
-0.010162144899368286,
-0.03997523710131645,
-0.009258449077606201,
-0.013032706454396248,
0.01754232496023178,
-0.03542131930589676,
-0.045539166778326035,
-0.02560470625758171,
0.014503426849842072,
-0.00282626342959702,
-0.03269251435995102,
-0.00672898767516017,
-0.03269251435995102,
-0.00731373205780983,
-0.013741487637162209,
0.02397450990974903,
0.06790120154619217,
-0.0007281615398824215,
-0.029201768338680267,
-0.022184839472174644,
-0.052414339035749435,
-0.044475995004177094,
0.03710467368364334,
-0.009665997698903084,
-0.013785786926746368,
0.03830960392951965,
0.017152495682239532,
-0.029857391491532326,
0.03830960392951965,
-0.02278730273246765,
0.02904229238629341,
0.054576121270656586,
0.084061399102211,
-0.03180653974413872,
0.010082406923174858,
-0.012501121498644352,
-0.007774439174681902,
-0.019154801964759827,
-0.04674409329891205,
-0.0223443154245615,
-0.025019962340593338,
0.03616553917527199,
0.03331269696354866,
-0.010419078171253204,
-0.015885550528764725,
0.08306910842657089,
-0.005665816366672516,
-0.04022331163287163,
-0.04383809119462967,
0.032586198300123215,
0.009736876003444195,
-0.018835850059986115,
-0.0025006672367453575,
0.023868193849921227,
-0.016931001096963882,
-0.004188451450318098,
0.00015822977002244443,
0.023939071223139763,
-0.006002487149089575,
-0.02356696128845215,
0.031168635934591293,
-0.01189865730702877,
-0.018135929480195045,
-0.04918938875198364,
-0.030335817486047745,
0.028298072516918182,
0.01117215771228075,
0.022592388093471527,
-0.027164023369550705,
-0.020076215267181396,
-0.011012681759893894,
-0.03689204156398773,
-0.06212463602423668,
0.047700949013233185,
0.016762666404247284,
-0.023301169276237488,
0.04532653093338013,
-0.03930189460515976,
-0.007251713424921036,
0.008518659509718418,
0.031877417117357254,
0.0041352929547429085,
0.029999148100614548,
-0.02246835082769394,
0.007995933294296265,
-0.004775410518050194,
0.005200678948312998,
0.027660170570015907,
0.010011528618633747,
-0.00468238303437829,
0.026845073327422142,
-0.0016612049657851458,
0.010924084112048149,
0.007247283589094877,
0.008376902900636196,
-0.04419248178601265,
0.012678316794335842,
-0.01631081849336624,
-0.024665571749210358,
0.03423411399126053,
-0.01903076469898224,
0.032887428998947144,
0.017994172871112823,
-0.03145214915275574,
-0.0022249072790145874,
-0.020235691219568253,
-0.01282007247209549,
0.015628617256879807,
0.008819891139864922,
0.0006905075279064476,
-0.027199463918805122,
0.025657864287495613,
-0.050784144550561905,
0.05992741510272026,
-0.02608313411474228,
-0.04344826191663742,
0.00006184527592267841,
0.0008665952482260764,
0.04018787294626236,
-0.04270404204726219,
0.05812002718448639,
0.03696291893720627,
-0.028705623000860214,
-0.020501485094428062,
-0.016293099150061607,
0.05014624074101448,
0.03198373317718506,
0.01253656018525362,
-0.009169851429760456,
0.0005016839131712914,
-0.0015958643052726984,
-0.057836513966321945,
-0.009152132086455822,
-0.009612839668989182,
0.016753805801272392,
-0.04440511763095856,
0.004394440911710262,
-0.0023146122694015503,
-0.002341191517189145,
0.024293461814522743,
0.006325868424028158,
-0.010826626792550087,
-0.042633164674043655,
0.00028711158665828407,
-0.03325953707098961,
0.027872804552316666,
0.02053692378103733,
-0.06623556464910507,
-0.014069299213588238,
-0.059502147138118744,
0.0045716362074017525,
-0.014273073524236679,
-0.0041840216144919395,
0.038451358675956726,
-0.003818556433543563,
-0.020643239840865135,
-0.009152132086455822,
0.004250469617545605,
0.09561453014612198,
-0.025303473696112633,
-0.004128647968173027,
-0.03111547790467739,
0.001998983323574066,
-0.011039260774850845,
-0.001990123651921749,
0.03862855210900307,
-0.034393589943647385,
0.03379112482070923,
-0.004294768441468477,
0.038096968084573746,
-0.0006035711267031729,
-0.017480306327342987,
-0.010729169473052025,
-0.023903632536530495,
0.005488621070981026,
-0.013599731959402561,
-0.0032072330359369516,
-0.0024807327426970005,
0.04412160441279411,
0.008558528497815132,
-0.031664781272411346,
-0.06208919733762741,
0.017303111031651497,
-0.029715634882450104,
0.0249490849673748,
0.02599453553557396,
-0.00690618297085166,
0.014990713447332382,
0.0008970507187768817,
-0.024612413719296455,
0.046814970672130585,
-0.004483038559556007,
-0.054257169365882874,
-0.0141667565330863,
0.007207414600998163,
-0.028918256983160973,
0.02000533789396286,
0.008368043228983879,
-0.020288851112127304,
0.03542131930589676,
0.0541154146194458,
0.00033307159901596606,
0.034925173968076706,
0.021210266277194023,
-0.02004077658057213,
0.0257819015532732,
-0.013431396335363388,
-0.0007824275526218116,
-0.023407485336065292,
-0.06389658898115158,
-0.012545419856905937,
0.005231688264757395,
0.07105527818202972,
-0.008368043228983879,
-0.014060438610613346,
-0.06602293252944946,
-0.027908243238925934,
0.011384791694581509,
-0.04164087027311325,
-0.04865780100226402,
-0.0386994332075119,
0.028298072516918182,
-0.04578724130988121,
-0.0011905302526429296,
0.009524242021143436,
-0.027908243238925934,
0.01110127940773964,
0.03322409838438034,
-0.013644030317664146,
-0.029892830178141594,
-0.03607694432139397,
-0.030566172674298286,
0.010472236201167107,
0.05198907107114792,
0.04784270375967026,
0.05524946376681328,
0.025586986914277077,
-0.03873487189412117,
-0.03675028309226036,
0.045007579028606415,
-0.00034165449324063957,
-0.011437949724495411,
0.024523815140128136,
-0.035580795258283615,
-0.024789609014987946,
0.054576121270656586,
-0.014848957769572735,
0.02071411907672882,
-0.06634188443422318,
0.011473389342427254,
0.007039079442620277,
-0.0018417226383462548,
-0.034872014075517654,
-0.07350056618452072,
0.07669008523225784,
0.01586782932281494,
-0.02471872977912426,
0.034163232892751694,
0.03464166074991226,
-0.01010898593813181,
-0.03076108731329441,
-0.026154011487960815,
0.003656866028904915,
0.023070814087986946,
0.004314702935516834,
0.024683291092514992,
-0.022769583389163017,
0.001109131146222353,
-0.03965628519654274,
0.05255609750747681,
0.004567206371575594,
0.02815631777048111,
0.025675583630800247,
0.012571999803185463,
-0.020731838420033455,
0.01947375200688839,
0.023301169276237488,
0.004567206371575594,
-0.058226343244314194,
-0.07335881143808365,
0.05319399759173393,
-0.003289185930043459,
0.029892830178141594,
-0.002881636843085289,
0.03838048130273819,
-0.04429880157113075,
0.03224952518939972,
0.05103221908211708,
0.05106765776872635,
0.0550013892352581,
0.004277049098163843,
0.03710467368364334,
0.03373796492815018,
-0.024825047701597214,
-0.06814927607774734,
-0.012155590578913689,
0.02471872977912426,
-0.054009098559617996,
0.05780107527971268,
-0.04185350611805916,
0.014131316915154457,
-0.019792703911662102,
0.043908968567848206,
0.02679191343486309,
0.0386994332075119,
0.01965094730257988,
0.04582267999649048,
-0.021174825727939606,
-0.015593177638947964,
-0.00034082389902323484,
0.06212463602423668,
-0.03435814753174782,
-0.01204927358776331,
-0.01240366417914629,
-0.012793493457138538,
0.03923101723194122,
0.0756269097328186,
0.03084968402981758,
-0.014857817441225052,
0.0403650663793087,
-0.019544631242752075,
-0.039053820073604584,
-0.03265707567334175,
-0.058013707399368286,
-0.033046904951334,
0.04132192209362984,
-0.04507846012711525,
0.03168250247836113,
0.002921505831182003,
-0.012802353128790855,
0.019580069929361343,
-0.010658291168510914,
0.06052988022565842,
0.08207681775093079,
-0.03203689306974411,
-0.041569992899894714,
0.015380543656647205,
0.09901667386293411,
0.009488803334534168,
0.05198907107114792,
-0.051492925733327866,
-0.020820435136556625,
-0.05287504568696022,
0.006910612806677818,
-0.014219914563000202,
0.05159924179315567,
0.012377084232866764,
0.007588384207338095,
-0.04362545907497406,
-0.013511134311556816,
-0.014379390515387058,
0.025090839713811874,
0.012828932143747807,
-0.029467562213540077,
-0.04164087027311325,
0.04220789670944214,
-0.0445823110640049,
0.002584835048764944,
0.05089046061038971,
0.03418095409870148,
-0.0011484463466331363,
0.019899019971489906,
-0.03923101723194122,
0.023053094744682312,
0.005364584736526012,
-0.02560470625758171,
-0.05773019418120384,
-0.02643752284348011,
-0.006219551432877779,
-0.009347046725451946,
0.06744049489498138,
0.0394790917634964,
-0.022769583389163017,
-0.02913089096546173,
0.07732798159122467,
-0.07902906090021133,
0.04451143369078636,
0.01872953213751316,
0.05680878087878227,
-0.041711751371622086,
-0.10142653435468674,
-0.053335756063461304,
0.02939668297767639,
-0.0001334501284873113,
0.08696740120649338,
0.08831408619880676,
0.036236416548490524,
-0.03912470117211342,
-0.008979367092251778,
-0.04922482743859291,
-0.0020377447362989187,
-0.00018010230269283056,
0.06028180569410324,
-0.03269251435995102,
-0.033241819590330124,
-0.005488621070981026,
-0.03247987851500511,
0.017692940309643745,
0.05485963448882103,
0.03717555105686188,
0.04199526086449623,
0.017790397629141808,
0.002272528363391757,
0.021263424307107925,
0.017746098339557648,
0.014716061763465405,
-0.059147756546735764,
-0.0313812680542469,
0.008997086435556412,
0.026579279452562332,
-0.014662902802228928,
0.014007280580699444,
0.000646208762191236,
0.04522021487355232,
-0.05925407633185387,
-0.0497918501496315,
-0.030194062739610672,
0.029644757509231567,
0.014840098097920418,
0.005812002345919609,
-0.06325868517160416,
0.011969535611569881,
0.02948528155684471,
0.0002756215981207788,
-0.004467533901333809,
0.015672914683818817,
-0.047311119735240936,
-0.03678572177886963,
0.0018561197211965919,
0.017746098339557648,
-0.0026955818757414818,
0.020058495923876762,
0.01894216611981392,
-0.0421370193362236,
-0.03418095409870148,
-0.0005537350079976022,
0.007424478884786367,
0.010197583585977554,
0.019580069929361343,
-0.007920625619590282,
-0.06208919733762741,
0.01775495894253254,
-0.03473025932908058,
-0.02806771919131279,
-0.00797821395099163,
-0.050996776670217514,
-0.06389658898115158,
-0.028847377747297287,
0.06361307948827744,
0.0885976031422615,
0.0842740386724472,
0.02220255881547928,
-0.02939668297767639,
0.031700219959020615,
-0.04284580051898956,
-0.03752994164824486,
0.04008155316114426,
0.001122974557802081,
0.05539121851325035,
-0.011712602339684963,
0.003933733329176903,
0.057092294096946716,
-0.02115710638463497,
-0.0152476467192173,
-0.021670972928404808,
0.052449777722358704,
0.01569063402712345,
-0.022415192797780037,
0.051138535141944885,
0.02243291214108467,
-0.03396831825375557,
-0.021972205489873886,
-0.02160009555518627,
-0.05503682792186737,
0.030424416065216064,
-0.0455746054649353,
0.034872014075517654,
0.08321086317300797,
-0.022539230063557625,
-0.030956001952290535,
-0.025445230305194855,
0.002389920176938176,
-0.013218761421740055,
0.038805749267339706,
-0.02269870415329933,
0.056737903505563736,
-0.0036923049483448267,
-0.039408210664987564,
-0.0013511134311556816,
-0.01004696823656559,
-0.04578724130988121,
0.016293099150061607,
-0.05716317147016525,
0.01828654482960701,
0.015974147245287895,
-0.06368395686149597,
0.1219811737537384,
0.008624976500868797,
0.014113597571849823,
-0.020519204437732697,
0.018800411373376846,
-0.025356633588671684,
0.003656866028904915,
-0.002748740604147315,
0.015309665352106094,
-0.0025671154726296663,
-0.05485963448882103,
0.05446980521082878,
-0.02308853529393673,
0.003426512237638235,
-0.03717555105686188,
-0.011260755360126495,
0.09235414117574692,
-0.050039924681186676,
-0.034216392785310745,
-0.013289639726281166,
0.007118816953152418,
0.024665571749210358,
0.006959341466426849,
-0.016372837126255035,
0.04872867837548256,
0.03177110105752945,
-0.015557738952338696,
-0.0014208840439096093,
-0.02714630402624607,
0.04167631268501282,
0.03177110105752945,
-0.033046904951334,
0.017861276865005493,
0.09944194555282593,
-0.015743793919682503,
0.037033796310424805,
-0.003395502921193838,
-0.04763006791472435,
-0.01535396371036768,
0.008930638432502747,
0.004664663691073656,
0.022858180105686188,
0.03689204156398773,
-0.001795208896510303,
-0.07420934736728668,
-0.010622852481901646,
0.028546147048473358,
-0.027429817244410515,
-0.016027305275201797,
0.018658654764294624,
-0.04383809119462967,
0.001697751460596919,
-0.006410036236047745,
0.04993360862135887,
-0.06226639449596405,
0.026012254878878593,
0.04394441097974777,
-0.04107384756207466,
-0.011154437437653542,
0.04405072703957558,
-0.03639589250087738,
-0.010392498224973679,
-0.06293973326683044,
0.06350675970315933,
-0.0031695791985839605,
-0.0013278565602377057,
-0.06581030040979385,
0.008983796462416649,
-0.018038472160696983,
-0.026596998795866966
] |
721,980
|
apprise.url
|
url
|
Assembles the URL associated with the notification based on the
arguments provied.
|
def url(self, privacy=False, *args, **kwargs):
"""
Assembles the URL associated with the notification based on the
arguments provied.
"""
# Our default parameters
params = self.url_parameters(privacy=privacy, *args, **kwargs)
# Determine Authentication
auth = ''
if self.user and self.password:
auth = '{user}:{password}@'.format(
user=URLBase.quote(self.user, safe=''),
password=self.pprint(
self.password, privacy, mode=PrivacyMode.Secret, safe=''),
)
elif self.user:
auth = '{user}@'.format(
user=URLBase.quote(self.user, safe=''),
)
default_port = 443 if self.secure else 80
return '{schema}://{auth}{hostname}{port}{fullpath}?{params}'.format(
schema='https' if self.secure else 'http',
auth=auth,
# never encode hostname since we're expecting it to be a valid one
hostname=self.host,
port='' if self.port is None or self.port == default_port
else ':{}'.format(self.port),
fullpath=URLBase.quote(self.fullpath, safe='/')
if self.fullpath else '/',
params=URLBase.urlencode(params),
)
|
(self, privacy=False, *args, **kwargs)
|
[
-0.04688991978764534,
-0.006197834853082895,
0.01976485550403595,
0.012997052632272243,
0.030679507181048393,
-0.04118127003312111,
0.0048155514523386955,
0.004981604870408773,
0.021739544346928596,
0.02897409163415432,
-0.01360741164535284,
0.033192750066518784,
0.04735666513442993,
-0.019244255498051643,
0.0013317939592525363,
0.023319296538829803,
0.020482923835515976,
-0.06455442309379578,
0.06369274109601974,
-0.018957026302814484,
0.021254848688840866,
-0.014397287741303444,
0.006503014359623194,
-0.013338135555386543,
-0.010788990184664726,
0.03671128675341606,
-0.011551938019692898,
0.0004420613404363394,
0.01229693554341793,
-0.006678043399006128,
0.006108076311647892,
0.020788103342056274,
0.07791050523519516,
0.08107001334428787,
0.04979809746146202,
-0.004198460839688778,
-0.029961436986923218,
0.03942199796438217,
-0.12257441133260727,
-0.0020622049923986197,
-0.03575984761118889,
0.016003968194127083,
0.046459078788757324,
-0.017610646784305573,
0.06789344549179077,
0.04843376949429512,
-0.003908989019691944,
0.11446022987365723,
-0.05647614225745201,
-0.05651204660534859,
0.008957913145422935,
0.015896257013082504,
-0.01535770483314991,
-0.036370206624269485,
-0.06448261439800262,
0.055937591940164566,
0.03917067497968674,
0.05608120560646057,
0.007449967786669731,
0.03254648670554161,
0.02994348481297493,
0.007984031923115253,
0.02723277360200882,
0.030374327674508095,
-0.03012300282716751,
0.015366680920124054,
-0.028830477967858315,
0.0260479599237442,
-0.015653908252716064,
0.020411117002367973,
0.08343964070081711,
-0.0024930464569479227,
-0.0643749013543129,
-0.014639635570347309,
0.03534695506095886,
-0.04168391600251198,
-0.012575186789035797,
0.018077392131090164,
-0.008055838756263256,
0.03873983398079872,
0.022421710193157196,
-0.0533166378736496,
0.004216412547975779,
-0.028220118954777718,
0.04329957440495491,
-0.00489184632897377,
-0.00777309900149703,
-0.04082223400473595,
0.028148312121629715,
0.06003058701753616,
-0.021344607695937157,
0.007301866076886654,
-0.02441435307264328,
-0.041612111032009125,
0.014657587744295597,
-0.022242194041609764,
-0.04308415204286575,
-0.015232043340802193,
0.05870215594768524,
-0.04322776570916176,
0.01674896478652954,
-0.03924248367547989,
-0.055578555911779404,
-0.005520157050341368,
0.008639270439743996,
-0.08961503952741623,
0.02480929158627987,
0.00489184632897377,
-0.033192750066518784,
-0.007948128506541252,
-0.014262649230659008,
-0.03157709166407585,
-0.021272800862789154,
0.023193635046482086,
0.018436426296830177,
0.009541344828903675,
-0.021560028195381165,
-0.027735423296689987,
0.04049910232424736,
-0.014648611657321453,
-0.07841315865516663,
0.033677443861961365,
-0.01767347753047943,
-0.009487489238381386,
0.023427007719874382,
0.05338844656944275,
-0.0817880854010582,
-0.06153853237628937,
0.0728481188416481,
-0.09629307687282562,
-0.005004044622182846,
0.02653265744447708,
-0.007104397285729647,
-0.00288125267252326,
-0.011103144846856594,
-0.017395226284861565,
0.0277174711227417,
0.049546774476766586,
0.03584960475564003,
0.13442255556583405,
-0.06003058701753616,
0.018319740891456604,
0.0028049577958881855,
0.013472773134708405,
0.02906385064125061,
-0.014935838989913464,
0.07719244062900543,
-0.011812238022685051,
0.0010456882882863283,
-0.025706877931952477,
0.08236254006624222,
0.0026658319402486086,
0.02276279404759407,
0.030284568667411804,
0.015519270673394203,
0.006081148516386747,
0.0016751207876950502,
-0.0498340018093586,
0.003924697171896696,
0.01055561751127243,
0.022690987214446068,
-0.011067241430282593,
0.016075775027275085,
-0.0002504827280063182,
0.017835043370723724,
0.0007332160021178424,
0.13384810090065002,
-0.037842247635126114,
0.041791629046201706,
0.026406994089484215,
-0.04681811109185219,
0.00026324528153054416,
-0.0027107112109661102,
-0.008311650715768337,
-0.03312094137072563,
0.02800469845533371,
0.012530307285487652,
-0.019710998982191086,
-0.019118592143058777,
-0.014837104827165604,
-0.00039325508987531066,
-0.03175660967826843,
-0.019710998982191086,
0.0031482847407460213,
0.05213182419538498,
0.06229250505566597,
0.014424215070903301,
-0.0019096152391284704,
-0.024055318906903267,
0.015815474092960358,
-0.04864918813109398,
-0.047213051468133926,
-0.000041267940105171874,
0.04782341048121452,
0.024001462385058403,
-0.02752000279724598,
0.009083575569093227,
-0.014316504821181297,
-0.047141242772340775,
0.02305002138018608,
0.04545377939939499,
-0.017592694610357285,
-0.07410474121570587,
-0.0008173647220246494,
0.03593936190009117,
-0.018562089651823044,
0.023301346227526665,
0.006637652404606342,
0.03730369359254837,
0.010412003844976425,
-0.013840784318745136,
-0.021290751174092293,
-0.050803396850824356,
0.019710998982191086,
-0.03558032959699631,
0.025042664259672165,
-0.0424019880592823,
0.04114536568522453,
-0.05094701051712036,
0.03791405260562897,
0.07205824553966522,
-0.040140070021152496,
0.023103876039385796,
-0.005295760463923216,
-0.01762859895825386,
0.027358436957001686,
0.07805412262678146,
-0.016775891184806824,
-0.03100263699889183,
-0.009106014855206013,
0.02344495989382267,
-0.014163915067911148,
0.03602912276983261,
0.07805412262678146,
0.038991156965494156,
-0.03166685253381729,
-0.047536179423332214,
0.028417589142918587,
-0.004981604870408773,
0.06911416351795197,
0.020070035010576248,
-0.014379335567355156,
0.02333724871277809,
0.048972319811582565,
0.04261740669608116,
-0.02527603507041931,
-0.04750027880072594,
0.013194521889090538,
0.02606591209769249,
-0.04527426138520241,
-0.0484696701169014,
-0.009168846532702446,
-0.06272334605455399,
-0.03518538922071457,
-0.01976485550403595,
0.0030001827981323004,
0.0033816571813076735,
0.02152412384748459,
0.019980276003479958,
-0.020482923835515976,
-0.002641148166731,
0.017484985291957855,
-0.007665388751775026,
0.017287515103816986,
0.010483810678124428,
-0.04836196079850197,
0.0008527071913704276,
-0.02130870334804058,
-0.0021968430373817682,
0.003908989019691944,
-0.002300065476447344,
0.043766316026449203,
-0.0005076973466202617,
0.023319296538829803,
-0.06796524673700333,
-0.06940139085054398,
0.03642405942082405,
0.013526628725230694,
-0.04157620668411255,
-0.06010239198803902,
0.004609106574207544,
0.0020868885330855846,
0.05590168759226799,
0.002502022311091423,
0.021129185333848,
-0.0009368559112772346,
0.002445923164486885,
0.01978280581533909,
0.013670242391526699,
-0.009137430228292942,
0.062256600707769394,
0.029602402821183205,
-0.019998228177428246,
0.001406966825015843,
-0.010672303847968578,
-0.007135812658816576,
0.0374114066362381,
0.040929943323135376,
0.04340728372335434,
-0.015725715085864067,
-0.009981161914765835,
0.020464971661567688,
0.02199086919426918,
-0.05241905152797699,
0.043263670057058334,
0.006197834853082895,
0.03080516867339611,
-0.01360741164535284,
0.061574432998895645,
0.014837104827165604,
0.051198333501815796,
-0.05288579687476158,
-0.004490176681429148,
0.040355488657951355,
0.00518356217071414,
0.027843132615089417,
0.012000731192529202,
-0.03527515009045601,
0.026801932603120804,
0.045381974428892136,
0.03355178236961365,
0.04818244278430939,
0.016578422859311104,
0.04290463402867317,
0.010385075584053993,
-0.0001493640011176467,
-0.007665388751775026,
0.06046142801642418,
-0.03970922529697418,
0.03166685253381729,
0.03452117741107941,
0.018633896484971046,
-0.013679218478500843,
-0.017610646784305573,
-0.06387225538492203,
0.001295890542678535,
0.004492420237511396,
-0.020967621356248856,
0.004950189497321844,
-0.06038961932063103,
0.0009980039903894067,
-0.018957026302814484,
-0.019208351150155067,
0.03787815198302269,
-0.046064138412475586,
-0.035005874931812286,
-0.0374114066362381,
-0.03254648670554161,
0.029512643814086914,
-0.06502116471529007,
-0.05206001549959183,
0.0008437313372269273,
-0.006669067777693272,
0.032115645706653595,
0.04979809746146202,
-0.024396400898694992,
-0.03276190906763077,
-0.03805766627192497,
0.019800757989287376,
0.038811638951301575,
0.028148312121629715,
-0.04204295203089714,
0.010106824338436127,
-0.005663770716637373,
-0.0037204960826784372,
0.021003523841500282,
0.055075906217098236,
0.047141242772340775,
0.014451142400503159,
-0.0002793738094624132,
-0.005223953630775213,
-0.015474391169846058,
0.038237184286117554,
0.028058554977178574,
0.01429855264723301,
-0.010878748260438442,
0.01385873556137085,
0.0002374396863160655,
-0.03062565065920353,
-0.04599233344197273,
-0.030553843826055527,
0.027053257450461388,
0.05898938328027725,
0.054214224219322205,
0.009200261905789375,
-0.016138605773448944,
0.01017863117158413,
0.024091221392154694,
-0.014128011651337147,
0.022834600880742073,
0.02750205062329769,
-0.05665566027164459,
0.0284714438021183,
-0.012745728716254234,
-0.04929545149207115,
-0.047428470104932785,
-0.004261292051523924,
0.019010882824659348,
-0.03931428864598274,
0.0008257795707322657,
0.030679507181048393,
-0.07335077226161957,
-0.053639769554138184,
-0.0058612399734556675,
0.018526185303926468,
0.0052553690038621426,
0.028435541316866875,
0.03426985442638397,
0.004685401450842619,
-0.01414596289396286,
-0.023014117032289505,
-0.03351588174700737,
-0.09550320357084274,
-0.0015292629832401872,
0.09047672152519226,
-0.028076505288481712,
-0.03593936190009117,
-0.0028633009642362595,
0.03888344764709473,
0.016309145838022232,
0.00018989563977811486,
-0.020770151168107986,
0.05094701051712036,
-0.012593138962984085,
-0.03184637054800987,
0.022349903360009193,
-0.041504401713609695,
0.005614403635263443,
0.0567992739379406,
0.01890317164361477,
-0.00019340183644089848,
0.009909355081617832,
-0.021560028195381165,
0.007207619491964579,
0.01500764675438404,
0.03597526624798775,
0.044125352054834366,
0.019890516996383667,
0.010349172167479992,
-0.05191640183329582,
-0.0751100406050682,
-0.053244832903146744,
-0.003247019136324525,
-0.006117051932960749,
0.019998228177428246,
-0.027448195964097977,
-0.06746260076761246,
-0.04236608371138573,
-0.02179340086877346,
0.014531925320625305,
-0.020967621356248856,
0.04473571106791496,
0.00777309900149703,
-0.02313978038728237,
-0.08035194128751755,
-0.059348419308662415,
-0.007095421198755503,
0.011704527772963047,
0.007786563131958246,
-0.010977483354508877,
0.025635071098804474,
-0.005731089971959591,
-0.037842247635126114,
-0.04638727009296417,
0.006327984854578972,
-0.052383147180080414,
0.020770151168107986,
-0.024683628231287003,
-0.06947319209575653,
-0.024665677919983864,
-0.028794575482606888,
-0.017081070691347122,
-0.04545377939939499,
0.08135724067687988,
-0.025635071098804474,
0.03945790231227875,
0.010735134594142437,
0.008773908019065857,
-0.030697457492351532,
-0.036675386130809784,
-0.038811638951301575,
-0.001814246759749949,
0.0012465232284739614,
0.03466479107737541,
-0.015815474092960358,
-0.05127014219760895,
-0.008553999476134777,
0.001782831153832376,
-0.019405819475650787,
0.056153010576963425,
0.019316062331199646,
0.0436227023601532,
-0.032025884836912155,
0.0037451796233654022,
0.0035634185187518597,
0.06401587277650833,
0.0029553035274147987,
-0.008630294352769852,
-0.04100175201892853,
-0.0033412657212466,
0.04818244278430939,
-0.016560470685362816,
0.05956384167075157,
0.036872852593660355,
0.0029889631550759077,
0.013015003874897957,
-0.020070035010576248,
0.06473393738269806,
-0.0011623745085671544,
0.003314338158816099,
0.008630294352769852,
-0.025168325752019882,
0.03012300282716751,
0.007732707541435957,
-0.01861594431102276,
-0.044807519763708115,
-0.0387757383286953,
0.003280678763985634,
-0.017790164798498154,
-0.0357418954372406,
0.056619755923748016,
0.04976219683885574,
0.0058522638864815235,
0.020877862349152565,
0.0043330988846719265,
-0.011560914106667042,
0.015232043340802193,
0.036872852593660355,
-0.01520511507987976,
0.05504000559449196,
0.034341659396886826,
0.03974512964487076,
-0.005439374130219221,
-0.008298187516629696,
0.019603289663791656,
0.057589150965213776,
-0.11963032931089401,
-0.03184637054800987,
-0.03100263699889183,
0.039781033992767334,
-0.00968495849519968,
-0.010941579006612301,
-0.09097936749458313,
-0.0671035647392273,
-0.06796524673700333,
-0.02692759595811367,
0.055075906217098236,
0.021488221362233162,
0.021775448694825172,
-0.025635071098804474,
-0.01897497847676277,
-0.007930176332592964,
0.035400811582803726,
0.040175970643758774,
-0.01811329647898674,
0.02383989840745926,
0.012979100458323956,
0.012871390208601952,
0.009693934582173824,
0.011686576530337334,
-0.0728481188416481,
-0.042186565697193146,
-0.06638550013303757,
0.022134482860565186,
-0.11273686587810516,
0.011910973116755486,
0.04294053837656975,
-0.04821834713220596,
-0.07044258713722229,
0.039781033992767334,
-0.05834312364459038,
-0.0112467585131526,
-0.03461093455553055,
0.01454090140759945,
-0.005726601928472519,
-0.03567008674144745,
0.014154938980937004,
0.0003278995573054999,
0.05417831987142563,
0.047428470104932785,
-0.006000365596264601,
0.013580483384430408,
0.028615057468414307,
-0.023965559899806976,
-0.03895525261759758,
-0.011569890193641186,
0.03606502711772919,
0.009325923398137093,
0.022439662367105484,
0.008221892639994621,
-0.0013553556054830551,
-0.09327718615531921,
-0.028525298461318016,
-0.005879191681742668,
0.004923262167721987,
-0.026227477937936783,
-0.0016033138381317258,
-0.08336783200502396,
0.0294587891548872,
0.015986016020178795,
-0.002358408644795418,
0.03906296566128731,
0.012440549209713936,
-0.038021765649318695,
-0.021954966709017754,
-0.025060614570975304,
0.024198932573199272,
0.024665677919983864,
-0.04854147881269455,
-0.048002924770116806,
-0.0015707763377577066,
0.032887570559978485,
-0.0038708418142050505,
0.05263447389006615,
-0.013158618472516537,
0.0260479599237442,
-0.06491345912218094,
0.05715830996632576,
-0.04455619305372238,
-0.01307783555239439,
0.006247201934456825,
0.019226303324103355,
-0.019208351150155067,
0.028830477967858315,
-0.03999645635485649,
-0.036872852593660355,
0.005879191681742668,
-0.019818710163235664,
-0.06326189637184143,
-0.005138682667165995,
-0.0029822310898452997,
0.0154474638402462,
-0.012036634609103203,
0.013885662890970707,
0.023085925728082657,
-0.054286032915115356,
0.0249888077378273,
0.010824893601238728,
-0.020877862349152565,
-0.002939595840871334,
-0.016470711678266525,
0.007948128506541252,
-0.016892578452825546,
-0.023211587220430374,
-0.03179251402616501,
0.07589991390705109,
-0.04527426138520241,
-0.060712751001119614,
0.008159060962498188,
-0.05841492861509323,
0.023409055545926094,
0.030499989166855812,
0.07410474121570587,
0.016910530626773834,
-0.06958090513944626,
0.06825247406959534,
0.011399348266422749,
0.01586035266518593,
-0.02586844377219677,
-0.02888433448970318,
0.003893281565979123,
-0.034646838903427124,
0.03130781650543213,
0.0017525376752018929,
-0.02685578726232052,
-0.009702909737825394,
0.028740718960762024,
-0.04272511601448059,
-0.027771325781941414,
-0.006678043399006128,
0.0143883116543293,
0.06207708269357681,
0.020500876009464264,
0.0567992739379406,
0.04767979681491852,
-0.02809445746243,
-0.008782884106040001,
-0.016578422859311104,
-0.016937457025051117,
0.005977926310151815,
0.06893464177846909,
-0.04854147881269455,
0.008190477266907692,
-0.010456882417201996,
0.0263531394302845,
0.031056493520736694,
0.07747966796159744,
0.008311650715768337,
-0.07582810521125793,
-0.013894638977944851,
0.004900822415947914,
-0.03421599790453911,
-0.017835043370723724,
-0.023606525734066963,
0.04958267882466316,
-0.010429955087602139,
-0.06466212868690491,
-0.011157000437378883,
0.06620597839355469,
-0.024252787232398987,
0.01890317164361477,
-0.01002604141831398,
0.03349792957305908,
0.005609915591776371,
-0.01114802435040474,
-0.003047306090593338,
0.05525542423129082,
-0.05306531488895416,
-0.0270353052765131,
0.02615567110478878,
-0.0266583189368248,
0.015716738998889923,
0.008320626802742481,
-0.028435541316866875,
0.004512615967541933,
-0.024378448724746704,
-0.03355178236961365,
-0.009083575569093227,
-0.04290463402867317,
0.016003968194127083,
0.02432459406554699,
-0.0513419471681118,
0.0011174952378496528,
-0.06843199580907822,
0.059743355959653854,
0.03303118422627449,
0.002223770599812269,
0.005107267294079065,
0.02161388285458088,
-0.058953482657670975,
-0.024575918912887573,
0.036280445754528046,
0.028040602803230286,
0.034162141382694244,
0.031038541346788406,
0.000030223420253605582,
-0.01361638680100441,
-0.039673324674367905,
-0.0005896021611988544,
0.0505879744887352,
-0.0017357078613713384,
0.03798586130142212,
-0.017772212624549866,
0.008850202895700932,
0.0043375869281589985,
-0.01351765263825655,
-0.019495578482747078,
-0.006592772901058197,
0.015133308246731758,
0.028130361810326576,
0.010914651677012444,
0.045489683747291565,
-0.024540014564990997,
-0.07676159590482712,
0.014639635570347309,
-0.05590168759226799,
-0.007171716075390577,
-0.006651116069406271,
-0.015366680920124054,
0.01454090140759945,
-0.04078632965683937,
0.03360563889145851,
0.03161299601197243,
0.02683783695101738,
-0.02595820091664791,
0.08300880342721939,
-0.00011409165745135397,
0.03179251402616501
] |
721,981
|
apprise.url
|
url_parameters
|
Provides a default set of args to work with. This can greatly
simplify URL construction in the acommpanied url() function.
The following property returns a dictionary (of strings) containing
all of the parameters that can be set on a URL and managed through
this class.
|
def url_parameters(self, *args, **kwargs):
"""
Provides a default set of args to work with. This can greatly
simplify URL construction in the acommpanied url() function.
The following property returns a dictionary (of strings) containing
all of the parameters that can be set on a URL and managed through
this class.
"""
return {
# The socket read timeout
'rto': str(self.socket_read_timeout),
# The request/socket connect timeout
'cto': str(self.socket_connect_timeout),
# Certificate verification
'verify': 'yes' if self.verify_certificate else 'no',
}
|
(self, *args, **kwargs)
|
[
-0.02880985662341118,
0.010447531007230282,
0.019203273579478264,
-0.02026187814772129,
-0.003927717451006174,
0.013296857476234436,
-0.0618145577609539,
0.014652266167104244,
0.01931210234761238,
-0.03130301833152771,
-0.018174350261688232,
0.05200020968914032,
-0.0035492912866175175,
0.023447582498192787,
0.03456787019968033,
0.004788451362401247,
0.030214734375476837,
0.021468883380293846,
0.03696209564805031,
-0.0950566977262497,
-0.00747948233038187,
0.012396548874676228,
-0.0240411926060915,
0.0017288882518187165,
-0.012851649895310402,
0.07997900992631912,
0.011941448785364628,
-0.03177790716290474,
0.046024538576602936,
-0.001820403034798801,
-0.010368382558226585,
0.041156940162181854,
0.016334159299731255,
0.07044168561697006,
0.0385846309363842,
-0.012129425071179867,
0.002975468523800373,
0.06925446540117264,
-0.10447530448436737,
0.004167634528130293,
-0.06268518418073654,
-0.009814347140491009,
-0.004320983774960041,
-0.0283349696546793,
0.0715101808309555,
0.015631722286343575,
-0.05109000951051712,
0.055126555263996124,
-0.053187429904937744,
-0.05057554692029953,
0.021449096500873566,
0.005941043607890606,
0.013049519620835781,
-0.02206249348819256,
-0.05207935720682144,
0.04186927154660225,
-0.005233658943325281,
0.08492576330900192,
-0.01518651470541954,
0.056115902960300446,
0.012544951401650906,
0.029680484905838966,
0.020578470081090927,
-0.026692649349570274,
-0.045470502227544785,
-0.02317056432366371,
-0.057065680623054504,
0.022379085421562195,
0.021369948983192444,
0.0422254353761673,
0.06122094765305519,
-0.015275556594133377,
-0.0557597391307354,
-0.02117208018898964,
0.0313623808324337,
-0.014592905528843403,
-0.0634370893239975,
0.005555197596549988,
-0.021923985332250595,
0.030946852639317513,
0.03088749200105667,
-0.022280151024460793,
-0.0471721850335598,
-0.03998950496315956,
0.028156885877251625,
-0.04186927154660225,
-0.0715101808309555,
-0.026079252362251282,
0.045074764639139175,
0.05386018753051758,
-0.07392419129610062,
0.040642477571964264,
-0.008701329119503498,
-0.006984807550907135,
-0.024377571418881416,
-0.02206249348819256,
-0.03334107622504234,
-0.006133967079222202,
0.02546585537493229,
-0.06735491752624512,
-0.012475697323679924,
-0.023328861221671104,
-0.04273989796638489,
-0.030491750687360764,
-0.013534300960600376,
-0.11705983430147171,
-0.010229873470962048,
-0.028770282864570618,
0.006430771667510271,
-0.01419716514647007,
0.03753592073917389,
-0.03672465309500694,
-0.01754116639494896,
0.06268518418073654,
0.00015273083408828825,
0.02259674295783043,
-0.030016863718628883,
-0.04665772244334221,
0.001550805289298296,
-0.005758014041930437,
-0.08065176755189896,
0.03810974210500717,
-0.0017288882518187165,
0.011357732117176056,
0.04038524627685547,
0.04285861924290657,
-0.03599253296852112,
-0.012495484203100204,
0.022715464234352112,
-0.0636349618434906,
0.07099571824073792,
0.006346676964312792,
-0.02307162992656231,
0.02556479163467884,
0.004664782900363207,
-0.01995517872273922,
0.010358489118516445,
0.08785423636436462,
-0.0005014765192754567,
0.054137203842401505,
-0.040187377482652664,
0.06224986910820007,
0.018273284658789635,
-0.03814931586384773,
-0.02364545315504074,
-0.050852563232183456,
0.061379242688417435,
-0.06632599234580994,
-0.016749687492847443,
0.012673567049205303,
0.07724840939044952,
0.010744335129857063,
0.020993996411561966,
-0.01900540478527546,
-0.019361570477485657,
-0.05730312317609787,
0.01824360527098179,
-0.04539135470986366,
0.0019156279740855098,
0.007494322489947081,
0.00030468872864730656,
-0.01774892956018448,
0.02603967860341072,
-0.06110222637653351,
0.018372220918536186,
-0.014741307124495506,
0.06494089961051941,
-0.04638070613145828,
0.04281904548406601,
0.024258850142359734,
-0.005387008190155029,
0.02544606849551201,
-0.026118826121091843,
-0.0069353398866951466,
0.03603211045265198,
0.012258040718734264,
-0.012089851312339306,
-0.04046439379453659,
-0.014019082300364971,
0.0006690475856885314,
0.04875514283776283,
-0.024674376472830772,
-0.047884516417980194,
0.035398926585912704,
0.06312049925327301,
0.02550542913377285,
-0.011426987126469612,
0.0345480851829052,
-0.038347188383340836,
0.012089851312339306,
0.010655294172465801,
-0.046024538576602936,
-0.012930798344314098,
0.0009244234533980489,
-0.012703247368335724,
-0.0015705922851338983,
0.029482614248991013,
-0.017442231997847557,
0.08231388032436371,
0.1071663349866867,
-0.020519109442830086,
-0.0015001011779531837,
-0.045510075986385345,
-0.032529812306165695,
0.03516148030757904,
-0.0616166852414608,
0.01950007863342762,
-0.010892737656831741,
-0.029502401128411293,
0.008082984946668148,
-0.008315482176840305,
-0.02005411498248577,
0.022497806698083878,
0.015631722286343575,
0.007929636165499687,
0.006158700678497553,
-0.026752009987831116,
0.01613629050552845,
-0.012198679149150848,
0.006173540838062763,
0.096164770424366,
-0.018154563382267952,
0.03678401559591293,
-0.0482802540063858,
0.029720058664679527,
-0.007276665419340134,
0.044995613396167755,
-0.03381596505641937,
-0.054137203842401505,
-0.004875019658356905,
-0.0216667540371418,
0.017590634524822235,
0.03913866728544235,
0.11175692081451416,
0.05769886448979378,
-0.021053357049822807,
-0.017709355801343918,
-0.014513757079839706,
-0.028770282864570618,
-0.04855727404356003,
0.018955936655402184,
0.013039626181125641,
-0.002554995007812977,
0.025643939152359962,
0.014721520245075226,
-0.016809048131108284,
-0.015839485451579094,
0.08579638600349426,
0.005866842344403267,
-0.05540357157588005,
0.03124365769326687,
0.020993996411561966,
-0.042660750448703766,
-0.02944304049015045,
-0.028750495985150337,
0.03128322958946228,
-0.013751957565546036,
0.03947504609823227,
-0.03555722162127495,
-0.014909496530890465,
0.006900712847709656,
0.019925499334931374,
-0.0010388169903308153,
0.051248304545879364,
0.016828835010528564,
0.013514514081180096,
0.04610368609428406,
-0.003927717451006174,
-0.07206422090530396,
-0.011723791249096394,
0.16351968050003052,
0.0017956693191081285,
-0.04491646587848663,
0.021528245881199837,
-0.004875019658356905,
-0.04099864140152931,
0.021488670259714127,
-0.0422254353761673,
-0.06490132957696915,
-0.04143395647406578,
0.035418711602687836,
-0.009586797095835209,
0.015097473748028278,
-0.032549597322940826,
0.01085316389799118,
-0.014276313595473766,
-0.021409522742033005,
0.09260310977697372,
-0.02791944332420826,
0.008003837428987026,
0.010754229500889778,
-0.020044220611453056,
-0.00869638193398714,
0.011258797720074654,
-0.012109638191759586,
-0.01948029175400734,
0.006875978782773018,
0.015671296045184135,
0.052158504724502563,
-0.005485943052917719,
-0.01803584210574627,
-0.01419716514647007,
-0.015443746000528336,
0.00530291348695755,
0.018174350261688232,
-0.004959114361554384,
0.009146535769104958,
0.010407956317067146,
0.009962749667465687,
0.006104286294430494,
0.024337997660040855,
-0.0035987587179988623,
-0.01609671674668789,
-0.0020368231926113367,
-0.008157186210155487,
0.0036135991103947163,
-0.012168998830020428,
-0.012436123564839363,
-0.018441474065184593,
0.07867307215929031,
-0.0003437989507801831,
0.003504770575091243,
-0.01950007863342762,
-0.016057142987847328,
0.03626955300569534,
0.014266420155763626,
0.006361517123878002,
0.023882897570729256,
-0.0055453041568398476,
0.047013889998197556,
-0.041750550270080566,
0.053701892495155334,
-0.015097473748028278,
-0.022834185510873795,
-0.059083953499794006,
-0.027226898819208145,
-0.027286259457468987,
0.04111736640334129,
0.0128021826967597,
-0.03431063890457153,
0.0011779442429542542,
-0.022834185510873795,
-0.033855538815259933,
0.0128021826967597,
-0.022003132849931717,
-0.032430876046419144,
-0.005337540525943041,
-0.023823535069823265,
0.050338100641965866,
-0.07942497730255127,
-0.018273284658789635,
-0.013593662530183792,
-0.021528245881199837,
0.031580034643411636,
0.07439908385276794,
-0.0015780124813318253,
0.00662369467318058,
-0.05924224853515625,
0.04281904548406601,
-0.017016811296343803,
0.043531376868486404,
-0.01752137951552868,
0.006544547155499458,
-0.015710869804024696,
0.035319775342941284,
0.017155319452285767,
0.06316006928682327,
0.016047248616814613,
0.01321770902723074,
-0.024258850142359734,
-0.030452176928520203,
-0.04962576925754547,
0.0415131039917469,
-0.012485590763390064,
0.015028218738734722,
-0.05136702582240105,
-0.042106714099645615,
0.006950180046260357,
-0.04285861924290657,
0.005372167564928532,
-0.045945391058921814,
-0.018629450350999832,
0.06652385741472244,
-0.004036545753479004,
-0.007281612139195204,
-0.04926960542798042,
-0.02550542913377285,
0.03816910460591316,
0.0178280770778656,
0.04297734051942825,
-0.028057951480150223,
-0.018293071538209915,
-0.024436932057142258,
0.009443340823054314,
-0.021092930808663368,
-0.033400438725948334,
0.04234416037797928,
0.040246736258268356,
-0.0656532347202301,
-0.01758074015378952,
0.035398926585912704,
-0.08824997395277023,
-0.030927065759897232,
0.026158399879932404,
0.03913866728544235,
0.040682051330804825,
0.05924224853515625,
0.04087992012500763,
0.02600010484457016,
-0.05061512067914009,
-0.04238373413681984,
-0.052118930965662,
-0.07800031453371048,
-0.019143912941217422,
0.03648721054196358,
-0.014365354552865028,
-0.008597447536885738,
0.04111736640334129,
0.053662315011024475,
-0.008023624308407307,
0.03905951976776123,
-0.03466680645942688,
0.01933188922703266,
0.04056333005428314,
0.04056333005428314,
0.03957397863268852,
-0.0017437285277992487,
-0.019618799909949303,
0.019223060458898544,
0.004454546142369509,
-0.01999475248157978,
0.006747363600879908,
-0.0559576079249382,
0.014048762619495392,
0.04820110648870468,
0.06498047709465027,
0.02647499181330204,
-0.011990915983915329,
0.02071697823703289,
-0.03336086496710777,
-0.07416164129972458,
-0.06961063295602798,
0.029067087918519974,
0.025920957326889038,
0.06877958029508591,
-0.03807016834616661,
-0.012881330214440823,
-0.02696966752409935,
0.014780881814658642,
-0.03140195459127426,
-0.024911820888519287,
0.022992482408881187,
-0.016927769407629967,
-0.06177498400211334,
-0.028770282864570618,
-0.05694695562124252,
-0.061339668929576874,
0.028097525238990784,
-0.049863215535879135,
0.011971129104495049,
0.09576903283596039,
-0.011446774005889893,
-0.009245471097528934,
-0.02501075528562069,
-0.042067140340805054,
0.04440200701355934,
0.03355873376131058,
-0.00661380123347044,
-0.03866377845406532,
-0.008033517748117447,
-0.03757549449801445,
0.024318210780620575,
-0.06707789748907089,
-0.014770988374948502,
-0.034429363906383514,
0.02884943224489689,
-0.021943772211670876,
0.013682703487575054,
-0.018540410324931145,
-0.027207111939787865,
-0.016729900613427162,
-0.031026000156998634,
0.06782980263233185,
0.037872299551963806,
0.0034973504953086376,
-0.046895164996385574,
-0.024911820888519287,
-0.017610421404242516,
-0.011248903349041939,
-0.01181283313781023,
-0.009601636789739132,
0.03848569467663765,
0.014741307124495506,
0.008107719011604786,
-0.009121802635490894,
0.051327452063560486,
-0.01516672782599926,
0.0011940211988985538,
-0.013910253532230854,
0.038347188383340836,
0.009418606758117676,
-0.04622240737080574,
0.05639292299747467,
0.014019082300364971,
0.0279788039624691,
-0.04135480895638466,
-0.05441422387957573,
0.049309179186820984,
-0.02649477869272232,
0.01324738934636116,
-0.004573267884552479,
-0.00974014587700367,
0.043491803109645844,
0.024298423901200294,
0.015127154067158699,
-0.04004886746406555,
-0.06149796396493912,
0.011753472499549389,
-0.006732523441314697,
0.008295695297420025,
0.03603211045265198,
0.07677352428436279,
0.0510108582675457,
-0.04527263343334198,
-0.028156885877251625,
0.009210843592882156,
-0.0013047046959400177,
0.022438446059823036,
0.015780124813318253,
0.07934582978487015,
0.03270789608359337,
-0.0025302614085376263,
-0.017798397690057755,
0.04531220719218254,
0.023467369377613068,
0.08524235337972641,
-0.04859684780240059,
-0.01832275278866291,
0.02164696715772152,
0.07392419129610062,
0.05599718168377876,
0.04202756658196449,
-0.028315182775259018,
-0.0406029038131237,
-0.06644470989704132,
-0.034409575164318085,
0.012455910444259644,
0.07166847586631775,
-0.017442231997847557,
-0.021548032760620117,
-0.009868761524558067,
-0.004721670411527157,
0.006247742101550102,
-0.019737523049116135,
0.014919389970600605,
-0.008731009438633919,
0.04570794850587845,
-0.034924037754535675,
0.0007716926047578454,
0.005154510959982872,
-0.0006065948982723057,
-0.032035138458013535,
-0.06359538435935974,
0.034013837575912476,
-0.07839605212211609,
0.0020318764727562666,
0.057580139487981796,
0.004521327093243599,
-0.07954370230436325,
-0.0004956022603437304,
0.00002229900928796269,
0.003121397690847516,
-0.04285861924290657,
0.017758823931217194,
-0.029759632423520088,
-0.011466560885310173,
0.003047196427360177,
-0.009008027613162994,
-0.0020108527969568968,
0.006168594118207693,
0.05342487245798111,
0.014563224278390408,
-0.05334572494029999,
-0.03504275903105736,
-0.006440665107220411,
0.003455303143709898,
0.03355873376131058,
0.0046326289884746075,
-0.011407199315726757,
-0.03987078368663788,
-0.01179304625838995,
-0.031045787036418915,
-0.01978698931634426,
-0.01539427787065506,
-0.04531220719218254,
0.009364193305373192,
-0.018481047824025154,
-0.04966534301638603,
0.0013084147358313203,
0.021745901554822922,
0.0034726166632026434,
0.0451539121568203,
-0.015325023792684078,
0.022933121770620346,
-0.008973400108516216,
0.03223300725221634,
-0.02210206724703312,
0.06399112194776535,
-0.05548271909356117,
-0.030709408223628998,
0.026771796867251396,
-0.004823078867048025,
0.020954422652721405,
0.014592905528843403,
-0.043531376868486404,
0.028532840311527252,
-0.041156940162181854,
0.029126448556780815,
0.011684217490255833,
-0.044599875807762146,
-0.00878047663718462,
0.006356570404022932,
0.0016571604646742344,
0.048913437873125076,
-0.04107779264450073,
-0.014899603091180325,
-0.029977289959788322,
-0.027642425149679184,
-0.07261825352907181,
-0.024793097749352455,
0.044956039637327194,
0.005654132459312677,
0.058490343391895294,
-0.008013730868697166,
-0.016205545514822006,
-0.020796125754714012,
0.03890122100710869,
-0.006984807550907135,
-0.011704004369676113,
0.007988996803760529,
0.017135532572865486,
0.029166022315621376,
-0.006584120914340019,
-0.014988644979894161,
-0.018886681646108627,
0.06802767515182495,
-0.023388221859931946,
-0.04895301163196564,
0.054137203842401505,
-0.03387532755732536,
0.012178892269730568,
0.048873864114284515,
0.08175984025001526,
0.016067035496234894,
-0.06367453187704086,
-0.005040735471993685,
-0.03886164724826813,
0.018579984083771706,
0.050377678126096725,
-0.07364717870950699,
-0.04725133255124092,
-0.02835475653409958,
0.04103821888566017,
-0.06976892799139023,
-0.012089851312339306,
-0.010388169437646866,
-0.033004697412252426,
-0.008854677900671959,
0.029245171695947647,
0.03324214369058609,
0.009240523912012577,
0.00878047663718462,
0.039158452302217484,
0.04329393431544304,
0.03502297401428223,
-0.026237549260258675,
-0.024278637021780014,
-0.028275609016418457,
-0.01799626648426056,
-0.014988644979894161,
0.02317056432366371,
-0.023783961310982704,
-0.04273989796638489,
-0.0154041713103652,
-0.002777598798274994,
0.055047407746315,
-0.0011229116935282946,
0.02117208018898964,
-0.002354651689529419,
0.02740498073399067,
0.012713140808045864,
-0.04618283361196518,
-0.00770703237503767,
0.017095958814024925,
-0.0032623799052089453,
-0.03419191762804985,
-0.008889305405318737,
-0.049309179186820984,
0.08318450301885605,
-0.0063318368047475815,
-0.017115745693445206,
0.025920957326889038,
-0.028315182775259018,
0.007385494187474251,
-0.003860936500132084,
-0.021587606519460678,
0.05287083610892296,
-0.03719954192638397,
0.00541174178943038,
0.012366868555545807,
-0.021825049072504044,
-0.01515683438628912,
0.02750391513109207,
-0.055205702781677246,
-0.0033637883607298136,
0.01693766377866268,
0.0632392168045044,
0.002138231648132205,
-0.043570950627326965,
0.04372924938797951,
0.007068902254104614,
-0.007044168654829264,
0.057461418211460114,
-0.020192623138427734,
-0.012535057961940765,
-0.005352380685508251,
-0.06106265261769295,
-0.028770282864570618,
0.026178188621997833,
-0.03470638021826744,
0.009067388251423836,
0.04875514283776283,
0.004993741400539875,
0.01084327045828104,
-0.005387008190155029,
-0.031560249626636505,
0.05342487245798111,
-0.047449201345443726,
0.014780881814658642,
0.05287083610892296,
0.004964061081409454,
0.03330150246620178,
0.017491698265075684,
0.026831157505512238,
0.021053357049822807,
-0.014919389970600605,
0.019905712455511093,
0.015879059210419655,
0.05825289711356163,
-0.007454748265445232,
0.014335674233734608,
0.012446017004549503,
0.008360003121197224,
-0.037258900701999664,
0.011911767534911633,
-0.02028166502714157,
-0.03310363367199898,
-0.0008570239879190922,
-0.00531775364652276,
0.018866894766688347,
-0.06268518418073654,
0.017917118966579437,
0.01799626648426056,
-0.012554844841361046,
0.023368434980511665,
0.054651666432619095,
0.025881383568048477,
0.019925499334931374
] |
721,982
|
apprise.url
|
urlencode
|
Convert a mapping object or a sequence of two-element tuples
Wrapper to Python's `urlencode` while remaining compatible with both
Python 2 & 3 since the reference to this function changed between
versions.
The resulting string is a series of key=value pairs separated by '&'
characters, where both key and value are quoted using the quote()
function.
Note: If the dictionary entry contains an entry that is set to None
it is not included in the final result set. If you want to
pass in an empty variable, set it to an empty string.
Args:
query (str): The dictionary to encode
doseq (:obj:`bool`, optional): Handle sequences
safe (:obj:`str`): non-ascii characters and URI specific ones that
you do not wish to escape (if detected). Setting this string
to an empty one causes everything to be escaped.
encoding (:obj:`str`, optional): encoding type
errors (:obj:`str`, errors): how to handle invalid character found
in encoded string (defined by encoding)
Returns:
str: The escaped parameters returned as a string
|
@staticmethod
def urlencode(query, doseq=False, safe='', encoding=None, errors=None):
"""Convert a mapping object or a sequence of two-element tuples
Wrapper to Python's `urlencode` while remaining compatible with both
Python 2 & 3 since the reference to this function changed between
versions.
The resulting string is a series of key=value pairs separated by '&'
characters, where both key and value are quoted using the quote()
function.
Note: If the dictionary entry contains an entry that is set to None
it is not included in the final result set. If you want to
pass in an empty variable, set it to an empty string.
Args:
query (str): The dictionary to encode
doseq (:obj:`bool`, optional): Handle sequences
safe (:obj:`str`): non-ascii characters and URI specific ones that
you do not wish to escape (if detected). Setting this string
to an empty one causes everything to be escaped.
encoding (:obj:`str`, optional): encoding type
errors (:obj:`str`, errors): how to handle invalid character found
in encoded string (defined by encoding)
Returns:
str: The escaped parameters returned as a string
"""
return urlencode(
query, doseq=doseq, safe=safe, encoding=encoding, errors=errors)
|
(query, doseq=False, safe='', encoding=None, errors=None)
|
[
-0.032628294080495834,
0.01591411978006363,
-0.02575826272368431,
0.01897519640624523,
-0.037915606051683426,
-0.015679320320487022,
-0.027480117976665497,
-0.0472031906247139,
0.04824674129486084,
-0.03565458580851555,
-0.011461644433438778,
0.03492410108447075,
0.027480117976665497,
0.061708517372608185,
0.0162967536598444,
0.030210737138986588,
-0.02048834227025509,
0.05972577631473541,
0.036489423364400864,
-0.0024088583886623383,
-0.0136270085349679,
0.030036812648177147,
0.03749818727374077,
-0.007791831158101559,
-0.0203144159168005,
0.0013424820499494672,
-0.03000202775001526,
-0.04181152209639549,
-0.01716637797653675,
0.020070921629667282,
0.07757046073675156,
-0.020766621455550194,
0.034993670880794525,
-0.007917926646769047,
0.026558317244052887,
-0.0309064369648695,
-0.008170117624104023,
0.036454636603593826,
0.02281893417239189,
-0.05057733133435249,
-0.06803938001394272,
-0.050194695591926575,
-0.03669813275337219,
-0.0669262632727623,
0.07068303972482681,
0.021636245772242546,
-0.04257678985595703,
0.0339675135910511,
-0.06118674576282501,
-0.01096595823764801,
0.0430985651910305,
-0.0015903249150142074,
0.056942980736494064,
-0.06278685480356216,
-0.07882271707057953,
0.012461711652576923,
-0.06083889678120613,
0.042124588042497635,
0.030976006761193275,
-0.012400838546454906,
0.05297749489545822,
0.04970770701766014,
0.030297700315713882,
0.05050776153802872,
-0.02154928259551525,
0.011374682188034058,
-0.04254200682044029,
-0.06849158555269241,
0.00904408935457468,
0.002132752910256386,
-0.018036002293229103,
0.003456755308434367,
-0.0929454118013382,
-0.01738378405570984,
0.021479712799191475,
0.03721990808844566,
-0.056560344994068146,
0.014774912036955357,
-0.013557437807321548,
-0.0030958615243434906,
0.05193394422531128,
-0.0540558286011219,
0.02633221447467804,
-0.02358420379459858,
0.00820925086736679,
-0.014687949791550636,
-0.07638777047395706,
0.031323857605457306,
0.035585012286901474,
0.041220176964998245,
-0.003602417418733239,
-0.04695969447493553,
0.0007473331061191857,
0.05854308605194092,
-0.004080710466951132,
0.012679117731750011,
0.0170272383838892,
-0.0420898012816906,
-0.06212593987584114,
-0.0537775494158268,
0.039759207516908646,
0.0008299474138766527,
-0.06456088274717331,
-0.018001217395067215,
-0.0357937254011631,
-0.09092788398265839,
-0.0028328001499176025,
-0.051829591393470764,
-0.005813436582684517,
-0.009939801879227161,
-0.036489423364400864,
-0.04511609300971031,
-0.0030045509338378906,
-0.005874310154467821,
0.010165904648602009,
0.004358990117907524,
0.053638409823179245,
-0.009452813304960728,
0.052733998745679855,
-0.018714308738708496,
-0.012974790297448635,
0.060073625296354294,
-0.004441604483872652,
-0.019844818860292435,
0.03175866976380348,
0.013400905765593052,
0.013992249965667725,
0.029149796813726425,
-0.006961340084671974,
-0.00246538408100605,
0.012357356958091259,
0.02979331836104393,
-0.04535958915948868,
0.047481469810009,
0.06463045626878738,
-0.03895915672183037,
-0.05666470155119896,
0.0398983508348465,
0.017696848139166832,
0.07388325780630112,
-0.013009575195610523,
-0.03546326607465744,
0.013244373723864555,
0.019688287749886513,
-0.033376168459653854,
-0.06174330413341522,
0.020731836557388306,
-0.03854173421859741,
0.02121882513165474,
0.02668006345629692,
0.056734271347522736,
-0.030402055010199547,
0.0314977802336216,
0.055655937641859055,
0.002258848398923874,
0.024071192368865013,
0.06362169235944748,
-0.10838993638753891,
0.006739586126059294,
-0.0203144159168005,
0.01663590781390667,
-0.03565458580851555,
-0.003228479065001011,
-0.01645328663289547,
0.024019014090299606,
0.0026632235385477543,
0.05544722452759743,
-0.026784420013427734,
0.055273301899433136,
-0.03130646422505379,
0.020888367667794228,
0.012905220501124859,
0.0018533861730247736,
0.008083155378699303,
0.07937927544116974,
0.03805474564433098,
-0.04316813498735428,
0.004178543109446764,
-0.03401969000697136,
-0.024610359221696854,
0.028558451682329178,
-0.022749364376068115,
0.02377551980316639,
-0.02029702439904213,
0.029949851334095,
-0.021705815568566322,
-0.013940072618424892,
0.044002972543239594,
-0.011826886795461178,
0.0037654719781130552,
0.014931444078683853,
-0.0511338897049427,
-0.03850695118308067,
0.0027762746904045343,
-0.026227859780192375,
0.005891702603548765,
0.006456958130002022,
0.030019421130418777,
0.044872596859931946,
0.0659174993634224,
-0.05993448570370674,
0.019966566935181618,
-0.031915199011564255,
-0.003269786247983575,
0.04181152209639549,
-0.05923878774046898,
-0.00922671053558588,
-0.05725604295730591,
0.02264500968158245,
-0.058056097477674484,
0.04191587492823601,
-0.015131457708775997,
-0.052907925099134445,
-0.03753297030925751,
-0.013513957150280476,
0.0252017043530941,
0.024158155545592308,
0.04149845615029335,
0.0008946256712079048,
-0.043968189507722855,
0.01244431920349598,
-0.026471354067325592,
0.047237977385520935,
-0.029654178768396378,
0.07506594061851501,
-0.021792776882648468,
0.04111582413315773,
0.03108036145567894,
-0.0030306396074593067,
-0.0069395992904901505,
0.04257678985595703,
-0.02871498465538025,
-0.015201027505099773,
0.06000405550003052,
0.09378024935722351,
-0.0394461452960968,
0.03401969000697136,
-0.06156937777996063,
-0.009035393595695496,
-0.021514497697353363,
0.0314108170568943,
0.012392141856253147,
-0.026906166225671768,
0.029393291100859642,
-0.025271274149417877,
-0.02323635295033455,
0.025271274149417877,
0.03346313163638115,
0.002179495058953762,
0.0050090341828763485,
-0.011209453456103802,
0.006887421943247318,
-0.0170272383838892,
-0.016775047406554222,
0.0027632303535938263,
0.05009034276008606,
-0.007535291835665703,
0.027184445410966873,
-0.01881866343319416,
-0.003187171882018447,
-0.001293565728701651,
0.020731836557388306,
-0.009078874252736568,
0.007804875262081623,
0.006691756658256054,
-0.023618988692760468,
0.023549417033791542,
-0.01052245032042265,
-0.017635975033044815,
0.012218217365443707,
0.00958325620740652,
0.008422308601439,
0.0008440787787549198,
0.00868754368275404,
-0.05214265361428261,
0.027532296255230904,
0.04953378438949585,
-0.01916651241481304,
-0.023705950006842613,
-0.04348120093345642,
-0.032993532717227936,
-0.04191587492823601,
-0.0288541242480278,
-0.02598436549305916,
0.03861130401492119,
0.01049636211246252,
-0.00667001586407423,
0.0715874508023262,
0.02064487338066101,
-0.0014609682839363813,
0.021514497697353363,
0.01624457724392414,
0.02377551980316639,
-0.015261901542544365,
-0.015331471338868141,
-0.00239798822440207,
0.04466388747096062,
-0.019688287749886513,
0.09503251314163208,
0.005643859971314669,
-0.025358235463500023,
0.033376168459653854,
0.05409061163663864,
0.02466253750026226,
0.03000202775001526,
0.020436163991689682,
-0.017062023282051086,
0.012574763037264347,
-0.0379851758480072,
0.023497240617871284,
-0.0708569660782814,
0.012766079977154732,
-0.054403677582740784,
0.030941221863031387,
-0.036280713975429535,
0.01096595823764801,
-0.011644265614449978,
-0.002387117827311158,
-0.001087573473341763,
0.033184852451086044,
-0.007313537877053022,
-0.04219415783882141,
0.04462910443544388,
-0.04751625657081604,
0.010565931908786297,
-0.061117175966501236,
0.01415747869759798,
0.0039024376310408115,
0.10122423619031906,
0.025340843945741653,
-0.00671784533187747,
0.01734030246734619,
-0.0017707719234749675,
0.028036678209900856,
-0.037602540105581284,
0.016714172437787056,
0.017809899523854256,
-0.008196205832064152,
-0.029949851334095,
0.005582985933870077,
-0.02617568150162697,
-0.0036328542046248913,
-0.0142444409430027,
-0.04497695341706276,
-0.048559803515672684,
-0.039933133870363235,
-0.10108509659767151,
0.04769017919898033,
-0.007965755648911,
-0.06278685480356216,
-0.009922409430146217,
-0.05812566727399826,
0.033184852451086044,
0.02102750912308693,
0.022766755893826485,
0.024419041350483894,
0.004769887775182724,
-0.04862937331199646,
0.022905895486474037,
0.03436753898859024,
0.11506864428520203,
-0.025497375056147575,
-0.0027154008857905865,
-0.031028185039758682,
0.024192940443754196,
0.0026066978462040424,
-0.0003565458464436233,
-0.010748553089797497,
-0.005730822216719389,
0.03139342740178108,
-0.011052921414375305,
-0.008344042114913464,
0.018244711682200432,
-0.0038785231299698353,
-0.03361966460943222,
0.026471354067325592,
0.012157343327999115,
0.019236082211136818,
-0.03201955556869507,
-0.017122896388173103,
0.011548606678843498,
-0.003282830584794283,
0.026784420013427734,
-0.02873237617313862,
0.07548336684703827,
-0.04511609300971031,
0.08320562541484833,
0.04417689889669418,
0.0028697592206299305,
0.02208844944834709,
-0.03979399427771568,
-0.0071570053696632385,
0.033932726830244064,
-0.018957803025841713,
-0.04807281494140625,
0.012113862670958042,
0.0343327559530735,
-0.03106296993792057,
-0.04640313610434532,
0.00988762453198433,
0.030593372881412506,
-0.06278685480356216,
0.001151164760813117,
0.0028958478942513466,
0.03073251247406006,
0.00868754368275404,
0.00028616064810194075,
0.035932864993810654,
-0.004324205219745636,
0.007809223607182503,
-0.005626467056572437,
-0.08397089689970016,
-0.05569072067737579,
-0.02433208003640175,
0.026732241734862328,
-0.019270867109298706,
-0.05715169012546539,
0.022227589040994644,
-0.013853110373020172,
0.05516894534230232,
0.022610224783420563,
-0.06831765919923782,
-0.06936120986938477,
0.06560443341732025,
-0.003643724601715803,
-0.03899393975734711,
0.014861874282360077,
-0.0016979408683255315,
0.05102953687310219,
0.02687138132750988,
0.021114470437169075,
-0.035393696278333664,
0.01958393305540085,
-0.055482011288404465,
0.01434009987860918,
0.06974384188652039,
0.012574763037264347,
0.05412539839744568,
0.0932236909866333,
-0.018192533403635025,
-0.027741005644202232,
0.002287111012265086,
-0.0030675986781716347,
-0.02026223950088024,
0.0771530419588089,
-0.04372469335794449,
-0.023879874497652054,
-0.002226237440481782,
0.04073318839073181,
0.017862077802419662,
-0.00014117802493274212,
0.030454233288764954,
-0.010278956033289433,
-0.03749818727374077,
0.037045981734991074,
-0.04368991032242775,
0.026645278558135033,
0.007930970750749111,
-0.038089532405138016,
0.06588271260261536,
0.06236943230032921,
-0.0511338897049427,
0.02654092386364937,
0.05353405326604843,
-0.017435960471630096,
0.0261582899838686,
-0.02394944429397583,
0.04442039504647255,
-0.05579507723450661,
-0.05976056307554245,
-0.010870300233364105,
0.05196873098611832,
-0.026193074882030487,
0.02414076216518879,
0.046507492661476135,
0.02631482295691967,
-0.0059699686244130135,
-0.015635838732123375,
0.017696848139166832,
0.006878725718706846,
-0.03468060493469238,
-0.07416153699159622,
0.07471809536218643,
0.0007940754294395447,
-0.02153189107775688,
-0.005796044133603573,
0.05617770925164223,
-0.028019284829497337,
0.0018599083414301276,
0.04108103737235069,
0.053847119212150574,
0.03015856072306633,
0.03302831947803497,
0.029845494776964188,
0.034471895545721054,
0.0005552005604840815,
-0.061882443726062775,
-0.0679350271821022,
-0.05134259909391403,
-0.024088583886623383,
0.057847388088703156,
-0.025462590157985687,
0.04897722229361534,
-0.03275004029273987,
0.04435082525014877,
-0.00811794027686119,
0.01592281460762024,
0.04570743814110756,
-0.0000824784001451917,
0.0018762138206511736,
-0.048177167773246765,
-0.0730484127998352,
0.04643792286515236,
-0.03732426092028618,
0.0018120789900422096,
-0.011322504840791225,
-0.01608804427087307,
-0.016001081094145775,
0.012792169116437435,
-0.0144270621240139,
-0.005469935014843941,
0.08828423172235489,
-0.010487665422260761,
-0.0257930476218462,
-0.035341519862413406,
-0.04546394199132919,
-0.018540384247899055,
0.04003749042749405,
-0.033741410821676254,
0.02085358276963234,
-0.01660981774330139,
0.007543988060206175,
0.007674431893974543,
-0.02281893417239189,
0.027636650949716568,
0.06330862641334534,
-0.023149391636252403,
0.005682992748916149,
-0.005930835846811533,
0.060943249613046646,
0.05544722452759743,
0.026227859780192375,
-0.04636835306882858,
-0.04111582413315773,
0.0028523667715489864,
0.04695969447493553,
-0.0004984032711945474,
0.030628157779574394,
-0.01133120059967041,
0.001060397713445127,
-0.08877121657133102,
0.019792642444372177,
0.030106382444500923,
0.07381368428468704,
-0.016392411664128304,
0.0013674837537109852,
0.010174600407481194,
-0.004019836895167828,
-0.003291526809334755,
0.022749364376068115,
-0.01569671370089054,
0.0014142260188236833,
-0.10087638348340988,
-0.02010570652782917,
-0.07930970937013626,
-0.02085358276963234,
0.015061887912452221,
0.048525020480155945,
-0.00922671053558588,
0.04362034052610397,
0.010731159709393978,
0.0018729526782408357,
0.004813368897885084,
0.022071057930588722,
-0.01535755954682827,
-0.041568025946617126,
-0.014600986614823341,
-0.04682055488228798,
0.031567350029945374,
0.008765810169279575,
0.018331672996282578,
0.04045490920543671,
-0.0413593165576458,
-0.010418095625936985,
0.04480302706360817,
0.00994849856942892,
0.042507220059633255,
0.031219501048326492,
-0.03603721782565117,
-0.051099106669425964,
-0.04351598396897316,
-0.07520508021116257,
-0.009157140739262104,
0.020070921629667282,
0.05193394422531128,
-0.05322098731994629,
-0.02026223950088024,
0.00721787940710783,
-0.022801540791988373,
0.0010397442383691669,
0.017949039116501808,
0.008187510073184967,
0.017775114625692368,
0.006209115497767925,
0.05631684884428978,
0.00877885427325964,
0.0007304841419681907,
0.03275004029273987,
-0.06014319509267807,
-0.023549417033791542,
-0.00006518782902276143,
0.028245387598872185,
0.008483181707561016,
0.020575303584337234,
-0.03294135630130768,
-0.005095996428281069,
-0.10595498979091644,
-0.005648207850754261,
-0.021114470437169075,
0.008670151233673096,
0.022992858663201332,
0.009939801879227161,
-0.033897943794727325,
-0.013148714788258076,
-0.014027034863829613,
-0.07078739255666733,
0.011183364316821098,
0.009348457679152489,
-0.014131389558315277,
-0.061847660690546036,
0.0059699686244130135,
0.05137738585472107,
0.03801996260881424,
-0.024158155545592308,
-0.003561110235750675,
0.012966093607246876,
-0.019114335998892784,
-0.006004753522574902,
-0.025323450565338135,
0.07520508021116257,
-0.026106111705303192,
0.03822867199778557,
-0.06017798185348511,
-0.00694394763559103,
0.026193074882030487,
0.04789888858795166,
-0.009174533188343048,
-0.07016126066446304,
-0.022227589040994644,
-0.03711555153131485,
0.047272760421037674,
0.03763732686638832,
0.05482109636068344,
0.013853110373020172,
-0.011774708516895771,
0.0420898012816906,
-0.03377619758248329,
-0.03638506680727005,
-0.0061612860299646854,
0.005274269729852676,
0.006696105003356934,
-0.021984094753861427,
0.005917791277170181,
-0.06511744856834412,
-0.020436163991689682,
0.028749769553542137,
-0.035393696278333664,
0.040698401629924774,
0.05635163560509682,
-0.028628021478652954,
0.040628831833601,
-0.020018745213747025,
-0.008217946626245975,
-0.0017316387966275215,
-0.008287516422569752,
-0.03888958692550659,
0.01416617538779974,
0.012453015893697739,
0.009696307592093945,
-0.00011964124132646248,
-0.0016892446437850595,
0.0038459121715277433,
-0.027462726458907127,
0.0200883150100708,
-0.018505599349737167,
-0.0048264130018651485,
0.0028262780979275703,
0.024071192368865013,
-0.0069395992904901505,
-0.01883605495095253,
0.05078604072332382,
-0.04918593168258667,
-0.03899393975734711,
0.006283033173531294,
-0.01033982913941145,
-0.022905895486474037,
0.030645549297332764,
-0.06685668975114822,
0.05993448570370674,
-0.01316610723733902,
0.0197230726480484,
-0.029862888157367706,
0.0329587496817112,
-0.004939464386552572,
0.005522112362086773,
0.04191587492823601,
0.04403775930404663,
-0.030315091833472252,
0.0018218623008579016,
0.016392411664128304,
-0.059308357536792755,
0.0017414221074432135,
0.036454636603593826,
-0.014009642414748669,
0.02102750912308693,
-0.05996927246451378,
0.013940072618424892,
0.016557641327381134,
-0.0036915538366883993,
0.00010815948189701885,
0.03448928892612457,
-0.03614157438278198,
0.013922680169343948,
-0.015061887912452221,
-0.020070921629667282,
-0.002252326114103198,
-0.0742311030626297,
-0.010261563584208488,
-0.0026001757942140102,
-0.03123689442873001,
-0.03805474564433098,
0.03962006792426109,
-0.010548539459705353,
-0.0004242134455125779,
0.0008169030188582838,
-0.03690684214234352,
-0.018522990867495537,
-0.015392344444990158,
-0.006465654354542494,
0.02723662368953228,
0.001029417384415865,
0.047585826367139816,
0.011826886795461178,
-0.03659377619624138,
0.04518566280603409,
-0.057847388088703156,
0.04386383295059204,
-0.017435960471630096,
-0.02137535810470581,
-0.023827698081731796,
0.05266442894935608,
0.07610949128866196,
-0.014383580535650253,
-0.03215869516134262,
0.08515357971191406,
-0.013009575195610523,
0.01626196876168251,
0.05788217484951019,
-0.031202109530568123,
-0.012426926754415035,
-0.053047064691782,
0.07631820440292358,
0.007683128118515015,
-0.0350632406771183,
-0.01718376949429512,
0.028558451682329178,
0.025897402316331863,
-0.01187036745250225
] |
721,983
|
apprise.config.base
|
ConfigBase
|
This is the base class for all supported configuration sources
|
class ConfigBase(URLBase):
"""
This is the base class for all supported configuration sources
"""
# The Default Encoding to use if not otherwise detected
encoding = 'utf-8'
# The default expected configuration format unless otherwise
# detected by the sub-modules
default_config_format = common.ConfigFormat.TEXT
# This is only set if the user overrides the config format on the URL
# this should always initialize itself as None
config_format = None
# Don't read any more of this amount of data into memory as there is no
# reason we should be reading in more. This is more of a safe guard then
# anything else. 128KB (131072B)
max_buffer_size = 131072
# By default all configuration is not includable using the 'include'
# line found in configuration files.
allow_cross_includes = common.ContentIncludeMode.NEVER
# the config path manages the handling of relative include
config_path = os.getcwd()
def __init__(self, cache=True, recursion=0, insecure_includes=False,
**kwargs):
"""
Initialize some general logging and common server arguments that will
keep things consistent when working with the configurations that
inherit this class.
By default we cache our responses so that subsiquent calls does not
cause the content to be retrieved again. For local file references
this makes no difference at all. But for remote content, this does
mean more then one call can be made to retrieve the (same) data. This
method can be somewhat inefficient if disabled. Only disable caching
if you understand the consequences.
You can alternatively set the cache value to an int identifying the
number of seconds the previously retrieved can exist for before it
should be considered expired.
recursion defines how deep we recursively handle entries that use the
`include` keyword. This keyword requires us to fetch more configuration
from another source and add it to our existing compilation. If the
file we remotely retrieve also has an `include` reference, we will only
advance through it if recursion is set to 2 deep. If set to zero
it is off. There is no limit to how high you set this value. It would
be recommended to keep it low if you do intend to use it.
insecure_include by default are disabled. When set to True, all
Apprise Config files marked to be in STRICT mode are treated as being
in ALWAYS mode.
Take a file:// based configuration for example, only a file:// based
configuration can include another file:// based one. because it is set
to STRICT mode. If an http:// based configuration file attempted to
include a file:// one it woul fail. However this include would be
possible if insecure_includes is set to True.
There are cases where a self hosting apprise developer may wish to load
configuration from memory (in a string format) that contains 'include'
entries (even file:// based ones). In these circumstances if you want
these 'include' entries to be honored, this value must be set to True.
"""
super().__init__(**kwargs)
# Tracks the time the content was last retrieved on. This place a role
# for cases where we are not caching our response and are required to
# re-retrieve our settings.
self._cached_time = None
# Tracks previously loaded content for speed
self._cached_servers = None
# Initialize our recursion value
self.recursion = recursion
# Initialize our insecure_includes flag
self.insecure_includes = insecure_includes
if 'encoding' in kwargs:
# Store the encoding
self.encoding = kwargs.get('encoding')
if 'format' in kwargs \
and isinstance(kwargs['format'], str):
# Store the enforced config format
self.config_format = kwargs.get('format').lower()
if self.config_format not in common.CONFIG_FORMATS:
# Simple error checking
err = 'An invalid config format ({}) was specified.'.format(
self.config_format)
self.logger.warning(err)
raise TypeError(err)
# Set our cache flag; it can be True or a (positive) integer
try:
self.cache = cache if isinstance(cache, bool) else int(cache)
if self.cache < 0:
err = 'A negative cache value ({}) was specified.'.format(
cache)
self.logger.warning(err)
raise TypeError(err)
except (ValueError, TypeError):
err = 'An invalid cache value ({}) was specified.'.format(cache)
self.logger.warning(err)
raise TypeError(err)
return
def servers(self, asset=None, **kwargs):
"""
Performs reads loaded configuration and returns all of the services
that could be parsed and loaded.
"""
if not self.expired():
# We already have cached results to return; use them
return self._cached_servers
# Our cached response object
self._cached_servers = list()
# read() causes the child class to do whatever it takes for the
# config plugin to load the data source and return unparsed content
# None is returned if there was an error or simply no data
content = self.read(**kwargs)
if not isinstance(content, str):
# Set the time our content was cached at
self._cached_time = time.time()
# Nothing more to do; return our empty cache list
return self._cached_servers
# Our Configuration format uses a default if one wasn't one detected
# or enfored.
config_format = \
self.default_config_format \
if self.config_format is None else self.config_format
# Dynamically load our parse_ function based on our config format
fn = getattr(ConfigBase, 'config_parse_{}'.format(config_format))
# Initialize our asset object
asset = asset if isinstance(asset, AppriseAsset) else self.asset
# Execute our config parse function which always returns a tuple
# of our servers and our configuration
servers, configs = fn(content=content, asset=asset)
self._cached_servers.extend(servers)
# Configuration files were detected; recursively populate them
# If we have been configured to do so
for url in configs:
if self.recursion > 0:
# Attempt to acquire the schema at the very least to allow
# our configuration based urls.
schema = GET_SCHEMA_RE.match(url)
if schema is None:
# Plan B is to assume we're dealing with a file
schema = 'file'
if not os.path.isabs(url):
# We're dealing with a relative path; prepend
# our current config path
url = os.path.join(self.config_path, url)
url = '{}://{}'.format(schema, URLBase.quote(url))
else:
# Ensure our schema is always in lower case
schema = schema.group('schema').lower()
# Some basic validation
if schema not in C_MGR:
ConfigBase.logger.warning(
'Unsupported include schema {}.'.format(schema))
continue
# CWE-312 (Secure Logging) Handling
loggable_url = url if not asset.secure_logging \
else cwe312_url(url)
# Parse our url details of the server object as dictionary
# containing all of the information parsed from our URL
results = C_MGR[schema].parse_url(url)
|
(cache=True, recursion=0, insecure_includes=False, **kwargs)
|
[
0.003262696787714958,
-0.07157710939645767,
-0.03651852905750275,
0.008054397068917751,
0.0004830542311538011,
0.03855062648653984,
-0.024227311834692955,
-0.004569748416543007,
-0.04131269454956055,
-0.043088313192129135,
0.004283676855266094,
0.017312269657850266,
-0.0159805566072464,
0.018160618841648102,
0.006767075043171644,
-0.021248219534754753,
-0.00045993420644663274,
0.012251759879291058,
0.01893005333840847,
-0.08167839795351028,
-0.035098034888505936,
-0.018397368490695953,
0.003474784316495061,
0.036380425095558167,
0.016108794137835503,
0.011521783657371998,
0.02205711230635643,
-0.01956138387322426,
0.0062294574454426765,
0.003837306285277009,
-0.035551805049180984,
0.021820364519953728,
0.004325601272284985,
0.003127059433609247,
0.04439043253660202,
-0.03608448803424835,
0.023043567314743996,
0.04206240177154541,
-0.0904381051659584,
0.016108794137835503,
-0.04095757380127907,
-0.03665663301944733,
0.04652117192745209,
-0.05224260687828064,
0.004022266250103712,
0.08191514760255814,
-0.04494284838438034,
0.09343692660331726,
-0.0415494441986084,
-0.032217588275671005,
-0.001887826481834054,
0.018989240750670433,
-0.03778119012713432,
0.03793902322649956,
0.012823903001844883,
0.030264411121606827,
-0.017410913482308388,
0.09888215363025665,
0.014204938896000385,
0.0031961111817508936,
-0.03136923909187317,
-0.015753671526908875,
0.04533742740750313,
0.020794451236724854,
-0.014688300900161266,
0.005277529358863831,
-0.07039336115121841,
-0.000847733928821981,
-0.00004593176709022373,
-0.004685656633228064,
0.024444332346320152,
-0.010121018625795841,
-0.026496155187487602,
-0.025450514629483223,
0.05749054253101349,
-0.03219785913825035,
-0.021070659160614014,
0.021938737481832504,
-0.021425781771540642,
0.009539010934531689,
0.004794166889041662,
0.0069643654860556126,
0.01920626126229763,
-0.0671577900648117,
0.07082740217447281,
-0.03456535190343857,
0.020202578976750374,
-0.004535222426056862,
0.03032359853386879,
0.0493227019906044,
-0.018397368490695953,
0.05161127820611,
0.033361874520778656,
0.005968046840280294,
-0.005464955698698759,
0.003119661007076502,
-0.02219521626830101,
-0.029475247487425804,
0.00816290732473135,
-0.04691575467586517,
-0.018209941685199738,
0.02858743816614151,
-0.05105886235833168,
-0.06534271687269211,
0.012587153352797031,
-0.05808241665363312,
-0.02781800366938114,
0.02789692021906376,
-0.016385002061724663,
0.0003924237680621445,
-0.02917931042611599,
-0.041075948625802994,
-0.004111047368496656,
-0.0328686498105526,
0.018348045647144318,
0.012291217222809792,
-0.07110361009836197,
-0.0006492100656032562,
0.016246898099780083,
0.004759640898555517,
-0.01566489040851593,
0.037287961691617966,
-0.0012022409355267882,
0.045100677758455276,
0.04060244932770729,
0.032770004123449326,
-0.021110117435455322,
-0.02160334400832653,
0.03129032254219055,
-0.045455802232027054,
0.034959930926561356,
0.046600088477134705,
0.003644947661086917,
-0.015329496003687382,
0.04446934908628464,
-0.029929015785455704,
-0.05745108425617218,
0.02028149552643299,
-0.05165073275566101,
0.027561526745557785,
0.014984237030148506,
0.01674012467265129,
0.016404731199145317,
-0.02556888945400715,
-0.012320810928940773,
-0.03192165493965149,
0.031033845618367195,
-0.04328560456633568,
-0.06597404927015305,
0.017174165695905685,
0.03716959059238434,
-0.03361835330724716,
-0.04845462366938591,
0.021267948672175407,
-0.03397347778081894,
0.023457877337932587,
-0.050032950937747955,
0.045455802232027054,
-0.024720538407564163,
-0.014461416751146317,
-0.03924114257097244,
-0.02041959948837757,
0.02434568665921688,
-0.027186673134565353,
-0.06262010335922241,
-0.023260585963726044,
-0.02758125588297844,
-0.06723670661449432,
0.002754672896116972,
0.02302383817732334,
-0.020360412076115608,
0.015161799266934395,
-0.055004678666591644,
0.008922477252781391,
0.02351706475019455,
0.03833360597491264,
0.009425568394362926,
-0.02243196591734886,
-0.006801600567996502,
0.024306228384375572,
-0.03831387683749199,
-0.028508521616458893,
-0.03050115890800953,
0.0188314076513052,
0.02028149552643299,
0.050901029258966446,
0.008690659888088703,
-0.001315683126449585,
0.06932798773050308,
0.06443517655134201,
-0.045061223208904266,
-0.03709067404270172,
-0.0014969439944252372,
-0.054412804543972015,
-0.010653703473508358,
-0.04348289594054222,
0.01022952888160944,
-0.020676076412200928,
0.045179594308137894,
0.037465523928403854,
-0.08838628232479095,
-0.009169090539216995,
0.007013688329607248,
-0.039063580334186554,
0.02904120832681656,
0.00956860464066267,
-0.018851136788725853,
-0.017006468027830124,
-0.030698450282216072,
0.12184680253267288,
-0.06747345626354218,
0.006998891476541758,
-0.00733921816572547,
-0.0221557579934597,
0.01622716896235943,
-0.039438433945178986,
-0.008518030866980553,
0.05464955419301987,
-0.037564169615507126,
-0.0037830513902008533,
0.056188423186540604,
-0.004821293987333775,
0.007723935414105654,
-0.007442795671522617,
-0.04083919897675514,
-0.0008631473174318671,
0.010096357204020023,
-0.003570963628590107,
0.008478572592139244,
0.010574787855148315,
0.007467457093298435,
0.020123662427067757,
0.050388071686029434,
0.03032359853386879,
0.12863360345363617,
-0.017805496230721474,
0.048888664692640305,
0.03894520550966263,
0.026910467073321342,
0.0335591658949852,
-0.0142739899456501,
-0.00045746806426905096,
0.005568533204495907,
-0.0511377789080143,
-0.06041044741868973,
-0.027364235371351242,
-0.013879409059882164,
0.05011186748743057,
-0.0335591658949852,
0.000288846087642014,
0.030974658206105232,
0.02296465076506138,
-0.03837306424975395,
-0.019216125831007957,
-0.00007063164957799017,
-0.04083919897675514,
-0.023951103910803795,
-0.018042244017124176,
0.042180776596069336,
-0.029652809724211693,
0.031586259603500366,
-0.04257535561919212,
0.00689531397074461,
0.03361835330724716,
-0.029830370098352432,
0.004917473532259464,
0.018436826765537262,
-0.03452589362859726,
-0.05717487633228302,
0.048060040920972824,
0.0753650888800621,
0.05512305349111557,
-0.004841023124754429,
0.004204760305583477,
-0.038116585463285446,
0.032355692237615585,
0.024148395285010338,
-0.02990928664803505,
-0.015013830736279488,
0.013731440529227257,
0.017933735623955727,
-0.0012873224914073944,
0.045732010155916214,
-0.017933735623955727,
0.045061223208904266,
-0.06313306093215942,
-0.06968311220407486,
0.056622464209795,
-0.04237806797027588,
0.036005571484565735,
-0.01121598295867443,
0.006890381686389446,
0.004244218580424786,
-0.020222308114171028,
0.011087743565440178,
-0.010574787855148315,
-0.018091566860675812,
0.00883862841874361,
0.021070659160614014,
-0.024542976170778275,
-0.05622788146138191,
-0.02000528760254383,
0.02424704097211361,
-0.006648700218647718,
-0.0029815572779625654,
-0.02740369364619255,
0.009366380982100964,
-0.038156043738126755,
0.055004678666591644,
0.048849206417798996,
0.039892200380563736,
-0.022806817665696144,
0.025509702041745186,
-0.0007398405577987432,
-0.004503162577748299,
-0.0006991493282839656,
-0.011975551955401897,
0.04143106937408447,
0.019433144479990005,
0.018288858234882355,
-0.043995849788188934,
0.0767461284995079,
-0.006244254298508167,
-0.012774580158293247,
0.08546637743711472,
-0.00978069193661213,
0.0657372996211052,
0.046008218079805374,
-0.033322419971227646,
0.022392507642507553,
-0.03823496028780937,
0.01566489040851593,
-0.046876296401023865,
0.023418419063091278,
0.032118942588567734,
-0.03953707963228226,
-0.016523106023669243,
-0.06561892479658127,
0.03375645726919174,
-0.05808241665363312,
0.05970019847154617,
-0.017410913482308388,
-0.04486393183469772,
-0.018742626532912254,
0.0026141032576560974,
-0.02365516871213913,
0.04375910386443138,
0.024325957521796227,
-0.01941341534256935,
-0.005400836002081633,
-0.007970549166202545,
-0.03959626704454422,
0.008932341821491718,
0.034407518804073334,
0.04005003347992897,
-0.08467721939086914,
-0.04170727729797363,
-0.06628971546888351,
-0.0065352581441402435,
0.008789305575191975,
0.00824675615876913,
0.04300939664244652,
-0.01982772722840309,
0.04332506284117699,
-0.030441971495747566,
-0.0026880872901529074,
-0.014964507892727852,
-0.016828905791044235,
0.07141927629709244,
-0.08136273175477982,
-0.02233332023024559,
0.004892812110483646,
0.032493796199560165,
-0.0950152575969696,
0.03730769082903862,
-0.040444616228342056,
-0.03470345214009285,
-0.005701704416424036,
-0.06648700684309006,
0.03837306424975395,
0.015516922809183598,
0.07232680916786194,
-0.009509417228400707,
-0.029672538861632347,
-0.013593336567282677,
-0.05792458355426788,
0.02612130343914032,
-0.03109303116798401,
0.006278780288994312,
0.04038542881608009,
0.03939897567033768,
-0.002310768701136112,
-0.020616888999938965,
0.04371964558959007,
-0.05883212015032768,
-0.035788554698228836,
0.01650337688624859,
0.06281739473342896,
0.027798274531960487,
-0.025864824652671814,
0.03326323255896568,
-0.023951103910803795,
0.03876764327287674,
0.056148964911699295,
0.01224189531058073,
-0.037465523928403854,
0.13352641463279724,
0.04731033742427826,
-0.007442795671522617,
0.05504413694143295,
-0.0157635360956192,
-0.023556523025035858,
-0.03519668057560921,
-0.0045401547104120255,
-0.044272057712078094,
-0.0016523106023669243,
-0.016473783180117607,
0.015655025839805603,
0.018525607883930206,
0.0420229434967041,
0.014096428640186787,
-0.006224525161087513,
0.0285479798913002,
-0.01653297059237957,
-0.003287358209490776,
0.04182565212249756,
-0.015329496003687382,
0.01649351231753826,
-0.11048285663127899,
-0.02393137477338314,
0.02977118268609047,
0.04592930153012276,
-0.013800492510199547,
-0.05109832063317299,
0.04182565212249756,
-0.04324614629149437,
-0.003193645039573312,
-0.05303176864981651,
-0.008680795319378376,
-0.05749054253101349,
-0.014925049617886543,
0.006954500917345285,
-0.0032084418926388025,
0.02174144797027111,
0.03314485773444176,
0.011945958249270916,
-0.06822316348552704,
0.0078817680478096,
0.01716430112719536,
-0.03142842650413513,
-0.1040906310081482,
-0.0005949551123194396,
-0.027877191081643105,
-0.014185209758579731,
-0.06246227025985718,
-0.019225990399718285,
0.038254689425230026,
0.04273318871855736,
-0.03140869736671448,
0.018288858234882355,
0.023319773375988007,
-0.021267948672175407,
0.053544726222753525,
-0.05393930897116661,
-0.027285318821668625,
-0.0016880695475265384,
0.05985803157091141,
0.059068869799375534,
-0.025411056354641914,
0.009095106273889542,
-0.03519668057560921,
0.0016387468203902245,
-0.057569459080696106,
0.010959504172205925,
-0.006254118867218494,
-0.006845991127192974,
0.01173880323767662,
0.011363950558006763,
-0.023674897849559784,
-0.060805026441812515,
-0.026417240500450134,
-0.0076104928739368916,
-0.013090245425701141,
-0.027324777096509933,
0.004582079127430916,
-0.1342366635799408,
0.09201643615961075,
-0.03411158174276352,
-0.0037904498167335987,
-0.005844740197062492,
0.006550054997205734,
0.003938417881727219,
-0.01570434868335724,
0.01833818107843399,
-0.0055488040670752525,
0.034723181277513504,
0.0093614486977458,
0.03346052020788193,
0.05973965674638748,
-0.03758389875292778,
0.008809034712612629,
-0.06960419565439224,
-0.02462189272046089,
0.026496155187487602,
0.0019223523559048772,
0.04731033742427826,
-0.047428712248802185,
0.05153236165642738,
-0.007551305927336216,
0.006658564787358046,
-0.03091547079384327,
0.018081702291965485,
0.0344667062163353,
0.00713699497282505,
-0.00031119544291868806,
-0.0018261730438098311,
-0.02602265775203705,
0.03166517615318298,
-0.020025016739964485,
-0.015852317214012146,
0.025963470339775085,
-0.009751098230481148,
0.04038542881608009,
0.002056756755337119,
-0.03142842650413513,
0.0356307215988636,
0.0507037378847599,
-0.02383273094892502,
-0.06767074763774872,
0.04880974814295769,
-0.01089045312255621,
0.005080238450318575,
0.0006849690107628703,
0.0015610635746270418,
0.05109832063317299,
0.033776186406612396,
-0.025055933743715286,
-0.005553736351430416,
-0.012370133772492409,
-0.0037830513902008533,
0.033046212047338486,
0.008641337975859642,
0.030856283381581306,
-0.03326323255896568,
-0.05504413694143295,
-0.056188423186540604,
0.01107787899672985,
0.03679473698139191,
0.02896229177713394,
-0.054452262818813324,
0.023418419063091278,
0.000021174082576180808,
0.08159948140382767,
-0.01622716896235943,
0.04316722974181175,
-0.07141927629709244,
0.05224260687828064,
-0.03586747124791145,
0.012005145661532879,
0.03393401950597763,
0.02955416403710842,
0.0039507485926151276,
-0.09903998672962189,
0.0035265733022242785,
-0.007536509074270725,
-0.002902640961110592,
0.01969948783516884,
0.03531505540013313,
-0.022629255428910255,
-0.018989240750670433,
0.0328686498105526,
0.03310539945960045,
-0.008291146717965603,
0.009632724337279797,
-0.0011609331704676151,
0.035788554698228836,
0.001985238865017891,
0.02886364609003067,
0.0349402017891407,
-0.003240501508116722,
0.029021479189395905,
-0.03490074351429939,
0.03168490529060364,
-0.008414452895522118,
-0.0011393544264137745,
0.010998962447047234,
0.031625717878341675,
0.06376439332962036,
0.005316987168043852,
0.001326780766248703,
-0.04419314116239548,
0.024779725819826126,
0.011018691584467888,
-0.02041959948837757,
0.013218484818935394,
0.0894911140203476,
-0.0011393544264137745,
-0.026141032576560974,
0.04174673557281494,
0.007028485182672739,
-0.06431680172681808,
-0.021899279206991196,
-0.0008989062625914812,
-0.023418419063091278,
-0.018801813945174217,
-0.009178955107927322,
0.001887826481834054,
0.001728760777041316,
-0.004917473532259464,
0.0159805566072464,
0.022491153329610825,
-0.0017817826010286808,
0.0303630568087101,
-0.011393544264137745,
-0.007709138561040163,
0.009874405339360237,
-0.03393401950597763,
0.04296993836760521,
0.008222094736993313,
-0.08199406415224075,
0.04502176493406296,
0.041352152824401855,
0.014885591343045235,
0.024878371506929398,
-0.08712362498044968,
0.03525586798787117,
-0.021070659160614014,
-0.008360197767615318,
-0.06652646511793137,
0.06364601850509644,
0.08601879328489304,
0.012784444727003574,
0.011285034008324146,
0.05303176864981651,
-0.03932005912065506,
0.0033662745263427496,
0.0698804035782814,
0.030303869396448135,
0.0385703518986702,
0.014135886915028095,
0.11884798854589462,
-0.0653032585978508,
-0.02101147174835205,
-0.03170463442802429,
-0.0662107989192009,
0.008739982731640339,
0.02045905776321888,
-0.024681080132722855,
0.04616605117917061,
-0.0031245932914316654,
0.00356109905987978,
0.0035734297707676888,
0.02535186894237995,
0.022806817665696144,
-0.014836269430816174,
0.03278973326086998,
0.00831580813974142,
0.027068300172686577,
0.03803766891360283,
-0.030895741656422615,
-0.014126022346317768,
-0.008192501030862331,
-0.003277493640780449,
-0.06510596722364426,
0.020172985270619392,
-0.05827970430254936,
0.020261766389012337,
-0.03138896822929382,
0.03833360597491264,
0.038747914135456085,
0.048572998493909836,
-0.056622464209795,
-0.006333034951239824,
0.01583258807659149,
0.01952192559838295,
-0.050664279609918594,
-0.044232599437236786,
-0.01481654029339552,
-0.009830014780163765,
0.008118516765534878,
0.009775759652256966,
0.04375910386443138,
-0.021721718832850456,
0.057569459080696106,
-0.01664148084819317,
0.0007515546749345958,
0.05393930897116661,
-0.03229650482535362,
-0.011975551955401897,
0.003669609082862735,
-0.024819184094667435,
0.03837306424975395,
0.007067943457514048,
0.009193751960992813,
-0.007388541009277105,
-0.03432860225439072,
0.02243196591734886,
-0.04375910386443138,
-0.015418277122080326,
0.016828905791044235,
0.058476995676755905,
-0.01942327991127968,
-0.00638235779479146,
-0.004515493288636208,
-0.019186532124876976,
-0.006022301968187094,
-0.014441687613725662,
-0.023221127688884735,
-0.020656347274780273,
0.02101147174835205,
0.01448114588856697,
0.06628971546888351,
0.08759711682796478,
-0.027462881058454514,
-0.013810357078909874,
0.011521783657371998,
-0.0033539438154548407,
-0.021701989695429802,
0.0012725257547572255,
0.041944026947021484,
-0.041944026947021484,
0.0020604559686034918,
0.033638082444667816,
0.006125879939645529,
0.01896951161324978,
0.006742413621395826,
0.02114957571029663,
-0.007635154295712709,
0.03726823255419731,
0.01833818107843399,
-0.003447656985372305,
0.029810640960931778,
-0.027186673134565353,
0.02361571043729782,
0.009608062915503979,
-0.062264978885650635,
0.009908931329846382,
-0.010801672004163265,
-0.011630292981863022,
0.021623073145747185,
0.015359089709818363,
-0.04225969314575195,
-0.0584375374019146,
0.014392364770174026,
-0.0406419076025486,
-0.013484827242791653,
0.035551805049180984,
0.04415368288755417,
-0.012666069902479649,
0.04525851085782051,
-0.03545315936207771,
-0.030895741656422615,
-0.025371598079800606,
0.026200219988822937,
-0.03129032254219055,
-0.01635540835559368,
-0.05563600733876228,
0.033342145383358,
0.012419456616044044,
-0.01650337688624859,
0.006850923411548138,
-0.05153236165642738,
0.001362539711408317,
0.04849408194422722,
0.050309158861637115,
0.03140869736671448,
0.0035512347240000963,
0.009248007088899612
] |
721,984
|
apprise.config.base
|
__normalize_tag_groups
|
Used to normalize a tag assign map which looks like:
{
'group': set('{tag1}', '{group1}', '{tag2}'),
'group1': set('{tag2}','{tag3}'),
}
Then normalized it (merging groups); with respect to the above, the
output would be:
{
'group': set('{tag1}', '{tag2}', '{tag3}),
'group1': set('{tag2}','{tag3}'),
}
|
@staticmethod
def __normalize_tag_groups(group_tags):
"""
Used to normalize a tag assign map which looks like:
{
'group': set('{tag1}', '{group1}', '{tag2}'),
'group1': set('{tag2}','{tag3}'),
}
Then normalized it (merging groups); with respect to the above, the
output would be:
{
'group': set('{tag1}', '{tag2}', '{tag3}),
'group1': set('{tag2}','{tag3}'),
}
"""
# Prepare a key set list we can use
tag_groups = set([str(x) for x in group_tags.keys()])
def _expand(tags, ignore=None):
"""
Expands based on tag provided and returns a set
this also updates the group_tags while it goes
"""
# Prepare ourselves a return set
results = set()
ignore = set() if ignore is None else ignore
# track groups
groups = set()
for tag in tags:
if tag in ignore:
continue
# Track our groups
groups.add(tag)
# Store what we know is worth keeping
if tag not in group_tags: # pragma: no cover
# handle cases where the tag doesn't exist
group_tags[tag] = set()
results |= group_tags[tag] - tag_groups
# Get simple tag assignments
found = group_tags[tag] & tag_groups
if not found:
continue
for gtag in found:
if gtag in ignore:
continue
# Go deeper (recursion)
ignore.add(tag)
group_tags[gtag] = _expand(set([gtag]), ignore=ignore)
results |= group_tags[gtag]
# Pop ignore
ignore.remove(tag)
return results
for tag in tag_groups:
# Get our tags
group_tags[tag] |= _expand(set([tag]))
if not group_tags[tag]:
ConfigBase.logger.warning(
'The group {} has no tags assigned to it'.format(tag))
del group_tags[tag]
|
(group_tags)
|
[
0.050931163132190704,
-0.005499117076396942,
-0.08104764670133591,
0.015439461916685104,
-0.019747262820601463,
-0.02950652688741684,
-0.013781148940324783,
-0.03156512230634689,
0.03976137936115265,
-0.028648778796195984,
-0.0000967944652074948,
-0.00034994923043996096,
0.02975432015955448,
-0.006976349279284477,
-0.04597528651356697,
-0.040714431554079056,
0.008539356291294098,
0.03600635007023811,
0.023978818207979202,
-0.014896221458911896,
-0.006070948671549559,
-0.0019025324145331979,
0.01254217978566885,
0.048148248344659805,
0.001105541712604463,
-0.01682138815522194,
-0.013628660701215267,
-0.019594773650169373,
-0.0685817077755928,
-0.0021193521097302437,
-0.007600599434226751,
-0.04151499643921852,
0.03560606762766838,
-0.0160684771835804,
-0.011322272010147572,
-0.12138085812330246,
0.002971143228933215,
0.10125236958265305,
-0.03686409816145897,
-0.005875573027879,
0.010836214758455753,
-0.039265792816877365,
-0.012751852162182331,
-0.07563430070877075,
0.06942039728164673,
0.031965404748916626,
0.022797033190727234,
0.04765265807509422,
0.0006754764472134411,
-0.04170560836791992,
0.04727143794298172,
-0.018584536388516426,
0.00007471787830581889,
0.012504057958722115,
-0.0628252699971199,
0.02822943590581417,
0.002761471550911665,
0.025827741250395775,
0.04483162239193916,
-0.015553828328847885,
0.0057707373052835464,
0.0624440461397171,
-0.033223435282707214,
-0.016287678852677345,
-0.06827673316001892,
-0.00850600004196167,
-0.06770490109920502,
-0.02094811014831066,
-0.045060355216264725,
0.008839568123221397,
-0.07071654498577118,
-0.02344510890543461,
0.05634450539946556,
-0.027333565056324005,
-0.008048534393310547,
0.039151426404714584,
-0.015906458720564842,
0.0337190218269825,
0.036349449306726456,
-0.024398161098361015,
-0.01789833977818489,
0.02060501091182232,
0.0689629316329956,
-0.012227672152221203,
0.0594705194234848,
0.010016589425504208,
0.02800070308148861,
0.02500811591744423,
0.024798443540930748,
-0.04765265807509422,
-0.024817505851387978,
0.04235368221998215,
0.04612777382135391,
0.042163074016571045,
0.02826755866408348,
0.07349946349859238,
-0.05512459576129913,
-0.030059298500418663,
-0.05569642782211304,
-0.07258453220129013,
0.00820578821003437,
0.005322801880538464,
-0.077311672270298,
-0.013590538874268532,
-0.01401941291987896,
-0.03657818213105202,
-0.022949520498514175,
0.033452168107032776,
0.0050273556262254715,
-0.004329244140535593,
-0.09080690890550613,
-0.056801971048116684,
0.008296327665448189,
0.010235791094601154,
0.008115247823297977,
-0.07784538716077805,
-0.03112671710550785,
-0.024264734238386154,
0.03116483986377716,
-0.03871301934123039,
-0.02801976352930069,
0.0077340267598629,
-0.0034857920836657286,
0.06389268487691879,
-0.02800070308148861,
-0.0418199747800827,
0.05207482725381851,
0.06606564670801163,
-0.014333919622004032,
-0.0025136778131127357,
-0.008992057293653488,
-0.003690698416903615,
-0.037645600736141205,
0.030707374215126038,
0.05348534509539604,
-0.0854698121547699,
-0.012980584055185318,
0.055658306926488876,
-0.015458522364497185,
0.025770558044314384,
0.06038545072078705,
-0.05348534509539604,
0.01625908724963665,
0.0170501209795475,
0.0014724672073498368,
-0.0030187959782779217,
0.05470525473356247,
0.02214895561337471,
-0.04483162239193916,
-0.03823649510741234,
-0.02491280995309353,
-0.0529516339302063,
0.012389691546559334,
0.008282031863927841,
0.04284927248954773,
0.05211294814944267,
-0.03225132077932358,
-0.02085280418395996,
-0.01265654619783163,
0.0006570110563188791,
0.0011925077997148037,
-0.012141897343099117,
-0.031546059995889664,
0.014438755810260773,
0.0062091415748000145,
-0.020433461293578148,
0.03284221142530441,
-0.018679842352867126,
-0.01863219030201435,
-0.024665016680955887,
-0.02346416935324669,
0.038884568959474564,
-0.06442639231681824,
0.030650191009044647,
0.0004958854988217354,
0.048148248344659805,
0.009768795222043991,
0.02967807650566101,
-0.00045001981197856367,
0.06362583488225937,
-0.018489232286810875,
-0.009268442168831825,
0.0028162722010165453,
-0.012294386513531208,
-0.023178253322839737,
0.01026438269764185,
0.07456687837839127,
-0.002211083425208926,
-0.04425979033112526,
0.0037812385708093643,
0.008949169889092445,
-0.07220330834388733,
0.003943257499486208,
0.03263254091143608,
0.06366395205259323,
0.028686901554465294,
-0.04993998631834984,
-0.006275855470448732,
0.0058993990533053875,
0.05028308555483818,
-0.009706846438348293,
-0.03387150913476944,
0.0616816021502018,
0.07182209193706512,
0.0263805128633976,
0.010693256743252277,
-0.012942462228238583,
0.009430461563169956,
-0.046699605882167816,
-0.009740203619003296,
-0.0015129719395190477,
-0.040600065141916275,
0.02089092694222927,
0.027791030704975128,
0.005546769592911005,
0.0027400278486311436,
0.06499822437763214,
0.07517683506011963,
-0.05146487429738045,
-0.02647581696510315,
0.008529826067388058,
-0.013114011846482754,
0.07727355509996414,
0.013457111082971096,
0.024474406614899635,
-0.013676313683390617,
0.04159124195575714,
-0.006671372335404158,
0.021043414250016212,
0.05859370902180672,
0.05874620005488396,
-0.0775022879242897,
0.03118390031158924,
-0.02634239010512829,
0.025522764772176743,
-0.016640309244394302,
0.04311612620949745,
-0.058136243373155594,
0.06435015052556992,
0.014524530619382858,
-0.05150299519300461,
0.0170501209795475,
0.037798088043928146,
0.013161664828658104,
-0.046852096915245056,
-0.039037059992551804,
0.021843979135155678,
-0.02529403194785118,
0.027200138196349144,
-0.010617012158036232,
0.0019811594393104315,
0.007638721261173487,
-0.04010447859764099,
0.01691669411957264,
0.03509141877293587,
-0.05436215549707413,
-0.02954464964568615,
0.04753829166293144,
0.030288031324744225,
-0.007562477141618729,
0.03533921390771866,
-0.03503423556685448,
0.0011430681915953755,
0.00707165477797389,
0.01579209230840206,
0.019594773650169373,
0.07704482227563858,
-0.006690433248877525,
-0.049673132598400116,
-0.001105541712604463,
0.10803811252117157,
-0.00407906761392951,
0.01413377933204174,
0.015649134293198586,
-0.03215601295232773,
0.043497346341609955,
0.02668548934161663,
-0.0005474099307321012,
-0.02662830613553524,
-0.021786795929074287,
0.020261911675333977,
0.010512176901102066,
-0.026056474074721336,
0.011503351852297783,
0.05584891885519028,
0.03299470245838165,
-0.03600635007023811,
0.007257500197738409,
-0.01470561046153307,
-0.021043414250016212,
-0.013685843907296658,
-0.034881748259067535,
0.007757852785289288,
-0.0066427807323634624,
-0.013228378258645535,
-0.0022229966707527637,
-0.02089092694222927,
-0.013180725276470184,
0.02355947531759739,
0.002257544780150056,
-0.01637345366179943,
0.009196963161230087,
0.07494810223579407,
0.02809600904583931,
0.014953404664993286,
0.016545003280043602,
0.04578467458486557,
-0.03737874701619148,
0.03539639711380005,
-0.011674901470541954,
-0.039037059992551804,
0.038960814476013184,
0.0016630778554826975,
-0.017002468928694725,
-0.018412988632917404,
-0.037397805601358414,
0.02790539711713791,
0.03871301934123039,
0.03722625598311424,
0.05478149652481079,
0.015144015662372112,
-0.005070243030786514,
-0.06553193926811218,
0.01938510127365589,
0.028705962002277374,
-0.004040945321321487,
0.058441221714019775,
0.002389780944213271,
0.05920366570353508,
-0.0018846626626327634,
-0.03425273299217224,
-0.008296327665448189,
-0.011693962849676609,
0.05032121017575264,
-0.04624214023351669,
-0.06240592151880264,
0.006151958368718624,
-0.06091916188597679,
0.02192022278904915,
-0.0866134762763977,
-0.019451815634965897,
0.021272147074341774,
-0.04273490607738495,
-0.025789620354771614,
0.06114789471030235,
0.020319094881415367,
-0.0031236319337040186,
0.02079562097787857,
-0.008706141263246536,
0.04628026485443115,
0.06061418354511261,
0.03791245445609093,
0.03972325846552849,
-0.004998764023184776,
0.03861771523952484,
-0.009873631410300732,
0.007986585609614849,
0.0045937164686620235,
0.036368511617183685,
-0.0046818736009299755,
0.02834380231797695,
-0.055391453206539154,
0.028534412384033203,
-0.005046416539698839,
0.09820260107517242,
-0.052570413798093796,
-0.055658306926488876,
0.012732790783047676,
0.0010650369804352522,
-0.061338502913713455,
0.018918106332421303,
-0.021386513486504555,
0.02800070308148861,
-0.02679985575377941,
-0.009768795222043991,
0.027390748262405396,
0.004193434026092291,
-0.0012294385815039277,
-0.00665231142193079,
-0.00841069407761097,
0.02058594860136509,
0.07860782742500305,
0.008992057293653488,
0.07845533639192581,
-0.013647722080349922,
-0.03490080684423447,
0.09225554764270782,
0.018088949844241142,
0.05931803211569786,
0.016983408480882645,
0.040790677070617676,
0.0005119682755321264,
0.039113301783800125,
-0.0005402620299719274,
-0.04704270511865616,
-0.04692833870649338,
-0.045289088040590286,
-0.07342322170734406,
-0.024283794686198235,
0.021767735481262207,
0.017297916114330292,
-0.01643063686788082,
0.012494527734816074,
-0.004148163832724094,
0.042086828500032425,
0.02212989516556263,
0.025884924456477165,
0.018889514729380608,
-0.02822943590581417,
0.005094069521874189,
-0.05001623183488846,
0.010683726519346237,
-0.012075183913111687,
-0.06065230444073677,
-0.017698198556900024,
-0.05786938965320587,
0.0308408010751009,
0.03897987678647041,
0.019785383716225624,
-0.005713554099202156,
0.0008738306351006031,
-0.029182488098740578,
-0.03560606762766838,
0.034576769918203354,
-0.014715141616761684,
-0.08714718371629715,
0.014410164207220078,
-0.01909918524324894,
-0.06831485033035278,
0.0071717253886163235,
0.019032472744584084,
0.01892763562500477,
-0.012122836895287037,
-0.05775502324104309,
0.040561944246292114,
-0.02197740599513054,
-0.011722554452717304,
0.03798869997262955,
0.027733847498893738,
0.04628026485443115,
-0.005427638068795204,
0.013638190925121307,
0.043573591858148575,
-0.031984467059373856,
0.04174372926354408,
-0.0016737997066229582,
-0.0847073644399643,
0.06659935414791107,
-0.033299677073955536,
-0.018060358241200447,
0.033394984900951385,
0.031812917441129684,
0.010130955837666988,
-0.014667488634586334,
-0.029258733615279198,
0.0036358979996293783,
0.027524176985025406,
0.008377337828278542,
-0.022663604468107224,
0.017393220216035843,
0.04170560836791992,
0.012332508340477943,
0.0281531922519207,
0.11497633904218674,
-0.054095298051834106,
0.007562477141618729,
0.02643769606947899,
-0.04841510206460953,
-0.04040945693850517,
-0.012180020101368427,
0.06339710205793381,
-0.06686621159315109,
-0.0010120233055204153,
0.0029997348319739103,
-0.09980373084545135,
-0.020261911675333977,
-0.005256088450551033,
-0.015773029997944832,
-0.012332508340477943,
0.0006254411418922246,
0.016545003280043602,
-0.021691489964723587,
0.03207977116107941,
-0.011655841022729874,
-0.040790677070617676,
-0.04189622029662132,
0.06114789471030235,
-0.0206240713596344,
-0.026094596832990646,
0.0034214609768241644,
-0.07006847113370895,
-0.094009168446064,
0.00004445099693839438,
-0.005079773720353842,
-0.0178411565721035,
0.00935421697795391,
-0.007295622024685144,
0.040447577834129333,
-0.006852452643215656,
-0.07018283754587173,
-0.011331802234053612,
-0.01259936299175024,
0.003221319755539298,
-0.06686621159315109,
0.09522907435894012,
0.01697387732565403,
0.014600775204598904,
0.019861629232764244,
-0.02049064449965954,
-0.05138862878084183,
-0.039075180888175964,
-0.09904129058122635,
0.02352135255932808,
0.0014140927232801914,
0.03387150913476944,
0.015144015662372112,
-0.047767024487257004,
-0.013542885892093182,
0.019632896408438683,
0.013752557337284088,
-0.00875855889171362,
-0.036425694823265076,
0.0008410694426856935,
0.024741260334849358,
0.017459934577345848,
-0.020147545263171196,
0.016983408480882645,
0.00413148570805788,
-0.042086828500032425,
-0.05733567848801613,
0.0018465406028553843,
-0.02529403194785118,
-0.012570771388709545,
-0.012103775516152382,
0.027619481086730957,
0.04990186542272568,
0.005551534704864025,
0.000014035197636985686,
-0.05291351303458214,
0.040638189762830734,
0.02201552875339985,
0.004507941659539938,
0.012809035368263721,
0.00029470192384906113,
0.029258733615279198,
0.0802851989865303,
-0.009778325445950031,
0.023921635001897812,
0.033509351313114166,
0.027200138196349144,
-0.050854917615652084,
0.03728343918919563,
-0.018031766638159752,
0.0026947578880935907,
0.058555588126182556,
-0.10224355012178421,
-0.03983762487769127,
0.00521320104598999,
0.015020118094980717,
0.012265794910490513,
-0.006561771035194397,
0.012199080549180508,
-0.009578184224665165,
-0.04185809567570686,
0.009120719507336617,
0.008062830194830894,
-0.03695940226316452,
0.022758910432457924,
0.016811858862638474,
0.055315207690000534,
0.003400017274543643,
-0.05466713011264801,
-0.013085420243442059,
-0.039380159229040146,
-0.03945640102028847,
0.07502434402704239,
-0.03108859434723854,
0.010454993695020676,
-0.006394986994564533,
-0.022739849984645844,
-0.01902294158935547,
0.024169428274035454,
0.046585239470005035,
-0.008839568123221397,
0.027428871020674706,
0.027771970257163048,
0.03671161085367203,
0.03423367068171501,
-0.008844333700835705,
0.030764557421207428,
-0.036196961998939514,
-0.014981996268033981,
0.049253787845373154,
0.002337362850084901,
-0.040371332317590714,
-0.022873276844620705,
0.04708082601428032,
-0.030631130561232567,
-0.028705962002277374,
-0.07105964422225952,
0.040523823350667953,
-0.04582279920578003,
0.008363042026758194,
0.034576769918203354,
0.004974937532097101,
-0.020128482952713966,
0.02798164263367653,
-0.04174372926354408,
-0.01326650008559227,
0.004093363415449858,
-0.044869743287563324,
0.015773029997944832,
0.036311328411102295,
0.005675431806594133,
0.0011216244893148541,
-0.01104588620364666,
-0.03570137172937393,
0.005232261959463358,
0.024665016680955887,
-0.06659935414791107,
0.017450403422117233,
-0.022835154086351395,
-0.0471951924264431,
0.017984114587306976,
-0.043878570199012756,
0.0009899840224534273,
0.012799504213035107,
-0.011427108198404312,
-0.007095481269061565,
0.007081185467541218,
-0.0039575533010065556,
-0.031851038336753845,
0.034519586712121964,
-0.01776491105556488,
-0.0029520823154598475,
0.011589126661419868,
0.06816236674785614,
-0.02363571897149086,
-0.0321369543671608,
0.027600420638918877,
-0.022968582808971405,
-0.07151710987091064,
0.018527355045080185,
0.02809600904583931,
-0.018412988632917404,
0.018098480999469757,
0.0005149465287104249,
0.008672784082591534,
0.007552946452051401,
0.012761382386088371,
0.01687857136130333,
0.010226260870695114,
-0.0007475510938093066,
-0.08173384517431259,
-0.04414542391896248,
0.07479561120271683,
-0.012160958722233772,
-0.011331802234053612,
-0.03589198365807533,
-0.01923261396586895,
-0.0015927901258692145,
0.03844616562128067,
-0.015182137489318848,
0.05184609442949295,
0.006156723480671644,
0.013895515352487564,
0.02241581119596958,
0.010407340712845325,
0.048072002828121185,
0.024264734238386154,
-0.016964346170425415,
-0.03785527125000954,
0.013552416115999222,
0.007981820963323116,
-0.08081891387701035,
-0.011388985440135002,
0.0328993946313858,
0.05318036675453186,
-0.04098128899931908,
-0.02670454978942871,
0.026952344924211502,
0.05493398755788803,
-0.0035763320047408342,
-0.01625908724963665,
0.04025696590542793,
0.016630778089165688,
-0.010902928188443184,
-0.07563430070877075,
0.03572043403983116,
-0.019766323268413544,
0.0059708780609071255,
-0.02058594860136509,
-0.009854570031166077,
-0.024779383093118668,
-0.04563218727707863,
0.018041297793388367,
-0.01874655671417713,
-0.015105892904102802,
0.022472994402050972,
-0.028763145208358765,
0.037702783942222595,
-0.039227668195962906,
-0.014000351540744305,
-0.015563358552753925,
-0.004496028646826744,
0.007043063174933195,
-0.052227314561605453,
0.018822800368070602,
0.009911753237247467,
0.021195903420448303,
-0.015553828328847885,
0.030440518632531166,
-0.03105047345161438,
-0.03732156381011009,
0.04189622029662132,
-0.027791030704975128,
-0.03255629539489746,
-0.01476279366761446,
0.018918106332421303,
0.008601305074989796,
0.01565866358578205,
0.033452168107032776,
0.015935050323605537,
0.010292974300682545,
-0.03105047345161438,
-0.0029496995266526937,
0.03207977116107941,
0.00016112555749714375,
-0.045098476111888885,
-0.04109565541148186,
-0.019337449222803116,
0.10026119649410248,
-0.043726079165935516,
0.00839163362979889,
-0.006399752106517553,
-0.0535234659910202,
-0.023216376081109047,
-0.036120716482400894,
-0.01332368329167366,
0.043878570199012756,
0.016630778089165688,
-0.06766677647829056,
-0.05272290110588074,
-0.019013410434126854,
-0.049596887081861496,
-0.05039745196700096,
0.06576067209243774,
0.025370275601744652,
-0.030650191009044647,
-0.024169428274035454,
0.029983052983880043,
0.01573490910232067,
0.026208963245153427,
-0.022701727226376534,
0.03665442764759064,
0.002897281665354967,
0.04723331704735756,
0.01338086649775505,
0.0009173136786557734,
-0.013600069098174572,
0.0046056294813752174,
-0.013133073225617409,
0.002978291129693389,
-0.001467701862566173,
0.025656191632151604,
0.05291351303458214,
0.029849626123905182,
0.01682138815522194
] |
721,985
|
apprise.config.base
|
__bool__
|
Allows the Apprise object to be wrapped in an 'if statement'.
True is returned if our content was downloaded correctly.
|
def __bool__(self):
"""
Allows the Apprise object to be wrapped in an 'if statement'.
True is returned if our content was downloaded correctly.
"""
if not isinstance(self._cached_servers, list):
# Generate ourselves a list of content we can pull from
self.servers()
return True if self._cached_servers else False
|
(self)
|
[
0.03574379161000252,
-0.05485840514302254,
-0.048993490636348724,
0.015627849847078323,
0.057933907955884933,
-0.008555980399250984,
-0.00045959337148815393,
0.0087258480489254,
-0.002447439357638359,
0.0027648243121802807,
0.025784164667129517,
0.04577494040131569,
-0.0027156518772244453,
-0.003173848381265998,
-0.017541099339723587,
-0.05703986808657646,
-0.02548019215464592,
0.01607487164437771,
0.011989100836217403,
-0.044702090322971344,
-0.033669613301754,
0.05060276761651039,
0.052033234387636185,
0.03134510666131973,
0.008359290659427643,
0.06558690965175629,
0.052033234387636185,
-0.010049030184745789,
0.0026754201389849186,
0.08010614663362503,
-0.030701395124197006,
0.017755670472979546,
0.06072331964969635,
0.019204018637537956,
0.06015113368630409,
0.07231009751558304,
0.024121247231960297,
0.06490743160247803,
-0.06809022277593613,
-0.034939154982566833,
-0.038872938603162766,
-0.0508173368871212,
0.017424874007701874,
-0.004912759643048048,
-0.014492417685687542,
-0.011658305302262306,
-0.03940936177968979,
0.039981547743082047,
0.01653977297246456,
-0.06934188306331635,
0.03683452308177948,
0.039838504046201706,
0.02624906785786152,
0.03200669586658478,
-0.028305362910032272,
0.039981547743082047,
0.028144435957074165,
0.15863877534866333,
-0.040339164435863495,
0.02728615514934063,
-0.04402261972427368,
-0.01940070651471615,
0.03969545662403107,
-0.0412689708173275,
0.02526562102138996,
0.04724116995930672,
-0.07645845413208008,
-0.003466647118330002,
0.015529505908489227,
0.06558690965175629,
-0.01848878525197506,
0.03261464461684227,
-0.06390611082315445,
0.03642326220870018,
0.03073715791106224,
-0.05786238610744476,
-0.03415239602327347,
-0.01959739625453949,
-0.030308017507195473,
-0.016799045726656914,
0.022190118208527565,
-0.028895430266857147,
0.01772884838283062,
-0.04391533136367798,
0.009405319578945637,
-0.05074581131339073,
0.05013786256313324,
-0.005610112100839615,
0.01952587254345417,
0.06176040694117546,
-0.018596069887280464,
0.055359069257974625,
0.0019557164050638676,
-0.03669147565960884,
0.01793447881937027,
0.016995735466480255,
-0.030451063066720963,
-0.04191267862915993,
-0.02950337901711464,
-0.05593125522136688,
-0.013160294853150845,
0.05864914134144783,
0.01911461353302002,
-0.018882162868976593,
0.04513122886419296,
-0.0033414813224226236,
-0.02964642643928528,
-0.009441081434488297,
-0.020241105929017067,
-0.02651727944612503,
-0.012722214683890343,
-0.04563189297914505,
-0.03039742074906826,
0.040196120738983154,
-0.009745055809617043,
-0.03157755732536316,
-0.03116629645228386,
-0.01979408599436283,
-0.025712642818689346,
0.007089751306921244,
-0.012847380712628365,
0.052176278084516525,
0.009396378882229328,
-0.013482150621712208,
0.048027925193309784,
0.02506893128156662,
0.005180972162634134,
-0.0002711461274884641,
0.01635202392935753,
-0.024192770943045616,
0.010192076675593853,
0.02063448540866375,
-0.005198853090405464,
0.04141201451420784,
0.007407136261463165,
-0.022172236815094948,
0.017630504444241524,
0.023280847817659378,
-0.03358021005988121,
0.06623061746358871,
-0.0460967943072319,
0.02936033345758915,
0.025033170357346535,
0.039302077144384384,
0.005011104047298431,
-0.01599440723657608,
-0.02381727285683155,
-0.025372905656695366,
0.014045396819710732,
-0.007612765766680241,
0.06408491730690002,
-0.050710052251815796,
-0.035833194851875305,
0.01228413451462984,
-0.0858280137181282,
0.0061912392266094685,
-0.03198881447315216,
-0.006419220007956028,
0.015806658193469048,
-0.03483186662197113,
-0.018381498754024506,
0.00316714309155941,
-0.03656630963087082,
-0.02229740284383297,
-0.02714310958981514,
-0.02589145116508007,
-0.03256100043654442,
-0.032507359981536865,
0.01979408599436283,
0.08761609345674515,
-0.0029592784121632576,
0.04387957230210304,
-0.03297226130962372,
0.0006342108827084303,
0.017210304737091064,
0.04813520982861519,
0.014894735999405384,
-0.00013759861758444458,
-0.007438427768647671,
0.017675206065177917,
-0.040053073316812515,
-0.04076830670237541,
-0.0865432471036911,
0.01863183081150055,
0.03467094153165817,
0.057433243840932846,
0.014858975075185299,
-0.03635174036026001,
0.05199747160077095,
0.1023499071598053,
-0.06615909188985825,
-0.000261926295934245,
-0.014027515426278114,
-0.02810867503285408,
-0.02887755073606968,
-0.07495646178722382,
-0.006606969051063061,
-0.021027863025665283,
-0.005797861143946648,
0.02244044840335846,
-0.0571829117834568,
-0.04305705428123474,
0.002827407093718648,
0.0008303413051180542,
0.019847728312015533,
0.04645441100001335,
-0.04556037113070488,
0.019490111619234085,
-0.00809554848819971,
0.06698161363601685,
-0.07120148837566376,
-0.022619256749749184,
-0.04062525928020477,
0.006879651453346014,
0.039516646414995193,
-0.024478863924741745,
0.028573576360940933,
0.014626523479819298,
-0.051139190793037415,
0.006513094529509544,
0.024693435057997704,
-0.010317242704331875,
-0.01911461353302002,
0.04645441100001335,
-0.053070321679115295,
0.03227490931749344,
0.004774183034896851,
0.02984311431646347,
-0.019847728312015533,
-0.021564288064837456,
-0.02839476801455021,
0.0372636616230011,
0.03474246338009834,
0.02408548630774021,
0.06015113368630409,
-0.02741132117807865,
0.0428067222237587,
0.08010614663362503,
-0.014259967021644115,
0.01821163110435009,
0.02805503085255623,
0.0015478098066523671,
0.012141088023781776,
-0.017067257314920425,
-0.037978895008563995,
-0.056396156549453735,
-0.015905003994703293,
0.027733176946640015,
-0.05364250764250755,
-0.01911461353302002,
0.012436121702194214,
-0.017746729776263237,
-0.0007297616102732718,
-0.07788892090320587,
0.016951031982898712,
-0.04112592339515686,
-0.03134510666131973,
-0.004266814328730106,
0.02803715132176876,
0.003021861193701625,
0.04409414157271385,
-0.015386459417641163,
0.017988121137022972,
0.0635484904050827,
-0.08203727751970291,
-0.0055564697831869125,
0.011247045360505581,
0.017845073714852333,
-0.028215959668159485,
0.024675553664565086,
0.09247968345880508,
-0.013419567607343197,
0.01578877866268158,
-0.02369210682809353,
-0.0198119655251503,
-0.007031638640910387,
0.01378612406551838,
-0.037835847586393356,
-0.0792478621006012,
-0.004088005982339382,
0.04284248128533363,
0.035350412130355835,
0.006311934906989336,
-0.03772856295108795,
-0.01083578635007143,
-0.10378037393093109,
-0.010272540152072906,
0.082537941634655,
-0.02471131458878517,
-0.02369210682809353,
0.0030553878750652075,
0.04159082472324371,
0.06934188306331635,
-0.04398685693740845,
0.005350840277969837,
0.011238105595111847,
-0.021296076476573944,
-0.005918556824326515,
0.01974044367671013,
-0.0007414959254674613,
-0.02311992086470127,
-0.0396239310503006,
-0.03912327066063881,
-0.03231067210435867,
0.041233208030462265,
0.005793390795588493,
-0.019633157178759575,
0.018935805186629295,
0.042270295321941376,
0.053284890949726105,
0.025372905656695366,
-0.04305705428123474,
-0.010022208094596863,
-0.012918904423713684,
0.005221203900873661,
0.014903676696121693,
-0.024049723520874977,
-0.0033280705101788044,
-0.014966259710490704,
0.061653122305870056,
-0.045310039073228836,
0.041376255452632904,
-0.01485003437846899,
0.03391994535923004,
0.01405433751642704,
-0.04491665959358215,
0.0580054335296154,
0.016575535759329796,
-0.02208283171057701,
0.027196751907467842,
0.0007079693605192006,
-0.009673532098531723,
0.017961299046874046,
0.02796562761068344,
-0.002204930642619729,
-0.02147488482296467,
0.014975200407207012,
-0.08067832887172699,
0.029610663652420044,
-0.0190430898219347,
0.014134800992906094,
-0.03758551552891731,
-0.014322550036013126,
0.010728501714766026,
0.0428067222237587,
0.026642445474863052,
0.030701395124197006,
0.009253332391381264,
0.05435774102807045,
-0.05532330647110939,
-0.057647816836833954,
0.005435774102807045,
0.01087154820561409,
0.017603682354092598,
0.057433243840932846,
-0.028233839198946953,
-0.012006981298327446,
-0.007389255333691835,
0.022941112518310547,
-0.0008348115370608866,
0.047455739229917526,
0.0025279032997787,
-0.023084159940481186,
0.03933783993124962,
-0.07424122840166092,
-0.025033170357346535,
0.024979528039693832,
0.00020088002202101052,
0.0444517582654953,
-0.07316838204860687,
-0.039910025894641876,
-0.008430814370512962,
-0.027733176946640015,
-0.07674454897642136,
0.0459895096719265,
-0.03780008852481842,
0.0006805892917327583,
-0.016879508271813393,
-0.021135147660970688,
0.04298552870750427,
-0.006696373224258423,
0.05721867457032204,
-0.00571292731910944,
-0.021707335487008095,
0.02492588572204113,
-0.006517564877867699,
-0.05103190615773201,
0.01094307191669941,
-0.03620869293808937,
-0.019543753936886787,
0.043593477457761765,
-0.025802046060562134,
-0.05929285287857056,
0.02347753755748272,
-0.052176278084516525,
-0.01932918280363083,
0.015833480283617973,
0.027304036542773247,
0.026123901829123497,
-0.0013857648009434342,
0.04620407894253731,
0.031953055411577225,
0.019919252023100853,
0.04541732370853424,
-0.030451063066720963,
-0.006553326267749071,
0.06111669912934303,
-0.03268616646528244,
-0.003026331542059779,
0.009003001265227795,
-0.020992102101445198,
-0.05879218876361847,
-0.05303455889225006,
-0.027464963495731354,
-0.03517160564661026,
0.05721867457032204,
0.013079831376671791,
0.00130306591745466,
0.04827825725078583,
0.06408491730690002,
0.035404056310653687,
0.03543981537222862,
0.04616831988096237,
-0.013508971780538559,
-0.02278018556535244,
-0.021099386736750603,
0.033830542117357254,
-0.014286788180470467,
-0.030504705384373665,
-0.006593558471649885,
0.018578188493847847,
-0.004814415238797665,
-0.020402034744620323,
-0.059793516993522644,
0.03231067210435867,
0.0010599982924759388,
-0.03919479250907898,
-0.059435900300741196,
-0.03855108097195625,
-0.008569390513002872,
-0.027858342975378036,
-0.019025210291147232,
-0.029253046959638596,
0.00569504639133811,
0.039302077144384384,
-0.0491722971200943,
-0.03427756205201149,
0.008538099005818367,
0.05074581131339073,
-0.03268616646528244,
-0.08146508783102036,
0.02070600725710392,
-0.017979180440306664,
-0.00094600796001032,
-0.04230605810880661,
-0.0003718655207194388,
0.01264175120741129,
0.03109477460384369,
-0.0364411436021328,
0.010174195282161236,
-0.004912759643048048,
-0.019847728312015533,
-0.03338352218270302,
-0.060902126133441925,
0.035207364708185196,
0.00789438933134079,
-0.028484171256422997,
0.037227898836135864,
-0.01571725495159626,
0.00606160331517458,
-0.01856030710041523,
-0.07366904616355896,
0.04266367480158806,
-0.05199747160077095,
0.046418651938438416,
0.012391419149935246,
-0.008059786632657051,
0.06558690965175629,
-0.02726827561855316,
-0.030647752806544304,
-0.10971681028604507,
0.017138781026005745,
-0.006253822240978479,
-0.015457983128726482,
-0.009977506473660469,
-0.10692740231752396,
-0.0008487809100188315,
-0.01834573782980442,
0.033061664551496506,
-0.009986447170376778,
0.023531179875135422,
0.022351045161485672,
0.0013902350328862667,
-0.01875699684023857,
0.020884815603494644,
0.027536487206816673,
-0.0020730593241751194,
0.06490743160247803,
0.041304729878902435,
-0.007143394090235233,
0.013482150621712208,
-0.031112654134631157,
0.003893552115187049,
0.05174713954329491,
0.024890122935175896,
-0.03186364844441414,
-0.03948088735342026,
-0.0158603023737669,
-0.017120899632573128,
0.02514045499265194,
0.0014315844746306539,
0.017138781026005745,
0.01378612406551838,
0.025158336386084557,
0.05614582449197769,
0.019060971215367317,
-0.03497491404414177,
-0.005332959350198507,
-0.0015992172993719578,
-0.004535026848316193,
0.04266367480158806,
0.009673532098531723,
0.06698161363601685,
-0.02444310300052166,
-0.052104756236076355,
-0.017147721722722054,
0.011479496955871582,
0.013893409632146358,
-0.015770897269248962,
0.004342807922512293,
0.024139128625392914,
-0.010737442411482334,
-0.0007699935231357813,
-0.01516294851899147,
0.023584822192788124,
0.05142528563737869,
-0.035833194851875305,
-0.007545712869614363,
-0.028072912245988846,
-0.007563593797385693,
0.0468120276927948,
-0.021009981632232666,
0.01972256228327751,
-0.07195248454809189,
-0.04159082472324371,
0.009816578589379787,
0.01048711035400629,
0.029467618092894554,
0.05932861194014549,
-0.02637423388659954,
-0.020545080304145813,
0.02145700342953205,
0.07173791527748108,
-0.05274846777319908,
0.046418651938438416,
0.02145700342953205,
0.010165255516767502,
-0.022762304171919823,
0.0003545434447005391,
0.011533139273524284,
0.034438490867614746,
-0.0603657029569149,
-0.05299879610538483,
0.05525178462266922,
-0.04784911870956421,
-0.020241105929017067,
0.03912327066063881,
-0.009289094246923923,
0.03955240920186043,
-0.02666032686829567,
0.05671801045536995,
-0.027608010917901993,
-0.005239084828644991,
0.020598722621798515,
0.06379882246255875,
0.025158336386084557,
-0.008117899298667908,
-0.01440301351249218,
-0.013285460881888866,
-0.035278890281915665,
0.004371864255517721,
-0.06923459470272064,
0.026678206399083138,
-0.03994578868150711,
-0.004302576184272766,
-0.06387034803628922,
-0.023924559354782104,
0.028698742389678955,
0.010433468036353588,
-0.022279521450400352,
0.00042215536814182997,
0.0634412094950676,
0.00039393716724589467,
-0.039087507873773575,
0.036101408302783966,
0.008533628657460213,
0.055216021835803986,
-0.023996081203222275,
0.02041991427540779,
0.006414750125259161,
-0.018166929483413696,
0.013258639723062515,
-0.045596130192279816,
-0.0666239932179451,
-0.0029056358616799116,
-0.01751427911221981,
-0.09720022231340408,
0.012749035842716694,
-0.020062297582626343,
-0.03088020347058773,
0.021313956007361412,
0.00349570345133543,
0.022333163768053055,
0.021564288064837456,
0.0412689708173275,
0.019847728312015533,
-0.013830826617777348,
0.019919252023100853,
-0.028341125696897507,
-0.005534118507057428,
0.03912327066063881,
0.048707395792007446,
0.056396156549453735,
-0.0009577422752045095,
-0.07306109368801117,
-0.0202232263982296,
0.03801465779542923,
0.013213938102126122,
-0.00990598276257515,
-0.00430928124114871,
0.06555114686489105,
-0.008113428950309753,
0.06726770848035812,
0.024818601086735725,
-0.00994174461811781,
-0.005748688708990812,
0.015949705615639687,
0.04967296123504639,
0.03744247183203697,
-0.007505480665713549,
0.034527894109487534,
-0.028841787949204445,
-0.02798350900411606,
-0.013312282040715218,
-0.04952991381287575,
-0.03543981537222862,
0.03980274125933647,
0.014099039137363434,
0.04956567659974098,
-0.03958817198872566,
-0.05997232347726822,
0.025051051750779152,
0.056467678397893906,
0.024908004328608513,
-0.028287483379244804,
0.025247739627957344,
0.056396156549453735,
0.01600334793329239,
0.006007960997521877,
-0.06429948657751083,
-0.019865607842803,
-0.03157755732536316,
0.0014706987421959639,
-0.06876969337463379,
0.08368231356143951,
-0.0034264151472598314,
-0.002219458809122443,
-0.015806658193469048,
-0.02651727944612503,
0.033347759395837784,
-0.003770621260628104,
0.05822000280022621,
0.010826846584677696,
-0.006843890063464642,
0.024943765252828598,
-0.03129146248102188,
-0.0635484904050827,
-0.0523550882935524,
-0.022798065096139908,
0.0035627565812319517,
-0.027661653235554695,
-0.011604662984609604,
-0.06018689274787903,
0.06229683384299278,
-0.04162658751010895,
0.01183711364865303,
0.027178870514035225,
-0.023870915174484253,
-0.03948088735342026,
-0.0531776063144207,
-0.051675617694854736,
-0.02970006875693798,
0.02097422070801258,
0.06966373324394226,
0.04556037113070488,
0.006763426121324301,
-0.03844379633665085,
0.049959056079387665,
-0.022958993911743164,
0.0018663122318685055,
0.04395109415054321,
0.01758580282330513,
-0.010737442411482334,
0.03415239602327347,
-0.05156832933425903,
-0.0003154291189275682,
-0.059507422149181366,
-0.004383040126413107,
0.005256965756416321,
0.020384153351187706,
0.0009258920326828957,
0.06240411847829819,
0.048349779099226,
-0.029539141803979874,
-0.004599845036864281,
-0.0578981451690197,
0.0174516960978508,
0.009315915405750275,
0.06308358907699585,
0.015502684749662876,
-0.028627218678593636,
-0.024800719693303108,
0.004490324761718512,
-0.004595374688506126,
0.008135780692100525,
0.002751413732767105,
-0.02873450331389904,
-0.03697757050395012,
0.004514911212027073,
0.028001388534903526,
-0.01578877866268158,
-0.008667735382914543,
0.00681706890463829,
0.04992329329252243,
-0.023084159940481186,
-0.03620869293808937,
0.01751427911221981,
0.011792411096394062,
-0.005672695115208626,
0.02292323112487793,
0.06297630071640015,
-0.037907373160123825,
0.023084159940481186,
-0.005936437752097845,
-0.04724116995930672,
-0.04162658751010895,
0.011247045360505581,
0.014277847483754158,
0.019132494926452637,
0.036584191024303436,
0.021313956007361412,
-0.019132494926452637,
0.023781511932611465,
0.0012080739252269268,
0.05421469360589981,
0.029789471998810768,
-0.08446907252073288,
0.018989447504281998,
0.03311530873179436,
-0.008533628657460213,
-0.012212610803544521,
0.00120695645455271,
-0.04398685693740845,
0.045596130192279816,
-0.005350840277969837,
0.013678839430212975,
0.0022954524029046297,
0.030862322077155113
] |
721,987
|
apprise.config.base
|
__getitem__
|
Returns the indexed server entry associated with the loaded
notification servers
|
def __getitem__(self, index):
"""
Returns the indexed server entry associated with the loaded
notification servers
"""
if not isinstance(self._cached_servers, list):
# Generate ourselves a list of content we can pull from
self.servers()
return self._cached_servers[index]
|
(self, index)
|
[
0.02529393695294857,
-0.0122268320992589,
-0.0998038724064827,
-0.002576551865786314,
0.051959749311208725,
0.014610463753342628,
0.004857293330132961,
0.034931354224681854,
0.06845653802156448,
-0.014824818819761276,
-0.036663345992565155,
0.020046517252922058,
-0.023150382563471794,
-0.02880936488509178,
-0.007618190720677376,
-0.01177239790558815,
-0.02248159423470497,
-0.006083406042307615,
0.007978308014571667,
-0.021469837054610252,
-0.029340965673327446,
0.01130081620067358,
0.08114637434482574,
0.023064641281962395,
-0.016651127487421036,
0.020560968667268753,
0.03553155064582825,
-0.04235662519931793,
0.08745700120925903,
-0.015853725373744965,
-0.025053858757019043,
-0.03136448189616203,
-0.005976228509098291,
0.03645756468176842,
0.017748625949025154,
0.03367951884865761,
-0.014559018425643444,
-0.01307567860931158,
-0.018348822370171547,
0.04424295201897621,
0.007365251425653696,
-0.04705529659986496,
0.05713857337832451,
-0.05086224898695946,
0.028294911608099937,
0.06358638405799866,
0.02340760827064514,
0.07655059546232224,
0.05230271443724632,
-0.04623217135667801,
-0.03343944251537323,
0.01721702516078949,
-0.020080814138054848,
-0.016042357310652733,
-0.055526621639728546,
0.05233701318502426,
0.007215202786028385,
0.11955886334180832,
0.0033332263119518757,
0.042802486568689346,
-0.007210915442556143,
-0.05161678045988083,
0.03923561051487923,
0.02913518436253071,
0.032187607139348984,
-0.016008060425519943,
0.00565040810033679,
-0.0030588514637202024,
-0.004323548171669245,
-0.024196436628699303,
0.054600607603788376,
0.01440468244254589,
-0.03878975287079811,
-0.02529393695294857,
-0.009645992890000343,
-0.015570775605738163,
-0.017885813489556313,
0.03331940248608589,
0.018777532503008842,
0.03995584696531296,
0.004720105789601803,
0.0028637880459427834,
0.004505750257521868,
0.007828258909285069,
0.020578118041157722,
-0.04877014085650444,
0.05497787147760391,
-0.015510756522417068,
-0.0636206790804863,
0.011600913479924202,
-0.013838783837854862,
0.04722677916288376,
0.008218386210501194,
-0.011480875313282013,
-0.03906412795186043,
-0.0505535751581192,
-0.013512964360415936,
-0.046540841460227966,
0.007661061827093363,
-0.019257688894867897,
-0.005496072117239237,
0.005946218501776457,
-0.005770447198301554,
-0.008004030212759972,
-0.003723353147506714,
-0.0075067258439958096,
0.0021639177575707436,
-0.00812835618853569,
-0.07449278980493546,
0.04506607726216316,
0.018383119255304337,
0.015819428488612175,
-0.06670739501714706,
-0.016891205683350563,
0.009243004955351353,
0.028586436063051224,
-0.031192997470498085,
-0.015699388459324837,
-0.01360728032886982,
0.001079279463738203,
-0.01985788345336914,
0.02452225796878338,
-0.03553155064582825,
0.057481542229652405,
-0.02709452249109745,
0.011189351789653301,
-0.015930892899632454,
-0.04410576447844505,
0.059299275279045105,
-0.06307192891836166,
0.005195974837988615,
-0.00226573646068573,
-0.014653334394097328,
0.048289984464645386,
0.046609435230493546,
-0.03417682275176048,
0.01719987764954567,
-0.03321651369333267,
-0.044860295951366425,
0.01267269067466259,
-0.042219437658786774,
0.01713128387928009,
0.02433362416923046,
0.032221902161836624,
0.01262982003390789,
-0.051033731549978256,
0.0030995788984000683,
-0.008724264800548553,
0.009277301840484142,
-0.026751553639769554,
-0.002435077214613557,
-0.005594675894826651,
-0.00147047801874578,
-0.009165836498141289,
-0.07264075428247452,
0.008355572819709778,
-0.035600144416093826,
0.008145504631102085,
0.01172952726483345,
-0.04136201739311218,
-0.023904914036393166,
-0.01809159480035305,
-0.028226317837834358,
-0.03913272172212601,
-0.06451240181922913,
0.030455613508820534,
-0.0006023386376909912,
-0.04369420185685158,
-0.043934281915426254,
0.06547271460294724,
-0.04266529902815819,
0.03191323205828667,
-0.06828505545854568,
-0.01032335590571165,
-0.005058787297457457,
0.029615340754389763,
-0.015287826769053936,
0.022224366664886475,
0.08539918810129166,
-0.0207324530929327,
-0.07291512936353683,
-0.014387533999979496,
-0.07017137855291367,
-0.025173896923661232,
-0.03170745074748993,
0.09685434401035309,
0.033010732382535934,
0.021504133939743042,
0.0541890449821949,
0.07442419230937958,
0.0048015606589615345,
-0.014361811801791191,
-0.021366946399211884,
-0.02536253072321415,
-0.021144015714526176,
-0.0022185782436281443,
-0.007030856795608997,
0.0026580069679766893,
-0.04177358001470566,
0.06036248058080673,
-0.035600144416093826,
-0.020080814138054848,
-0.014559018425643444,
0.010340504348278046,
-0.005350310821086168,
0.018486009910702705,
0.02534538134932518,
0.0061477129347622395,
-0.07709934562444687,
0.07161185145378113,
-0.05672701075673103,
0.017731478437781334,
-0.011077886447310448,
-0.00748529052361846,
0.02174421027302742,
-0.03508568927645683,
-0.041019048541784286,
0.014601889066398144,
0.017019817605614662,
-0.023356163874268532,
0.042116548866033554,
-0.0363546758890152,
-0.03337084874510765,
0.030249834060668945,
-0.03988725319504738,
-0.0014994159573689103,
0.01487626414746046,
0.005063074640929699,
0.00902864895761013,
-0.017782922834157944,
0.01982358656823635,
0.05717287212610245,
0.05610966682434082,
-0.018588900566101074,
0.08251824975013733,
0.008788570761680603,
0.03539436310529709,
0.044757407158613205,
0.04242521896958351,
0.07785388082265854,
0.0031274452339857817,
0.023853467777371407,
0.03539436310529709,
0.0008976132376119494,
-0.02793479524552822,
0.01793725974857807,
0.00813264399766922,
0.029392411932349205,
-0.009911793284118176,
0.03525717556476593,
0.02170991338789463,
0.0140445651486516,
-0.0008193734684027731,
-0.021075421944260597,
0.011026441119611263,
-0.051205217838287354,
-0.06965693086385727,
-0.013264311477541924,
0.01708841137588024,
-0.03724639490246773,
-0.04448303207755089,
0.03235908970236778,
-0.014361811801791191,
0.04242521896958351,
-0.04612928256392479,
0.016453919932246208,
-0.005461775232106447,
0.07497294247150421,
0.0026087050791829824,
0.07579606771469116,
0.061117008328437805,
0.04441443830728531,
0.028397802263498306,
0.0007330954540520906,
0.0035818787291646004,
-0.00811978243291378,
-0.007228063885122538,
0.006006238050758839,
-0.08533059805631638,
0.007974020205438137,
-0.0140016945078969,
0.03179319202899933,
-0.022172922268509865,
-0.024693740531802177,
0.007862555794417858,
-0.0650954470038414,
0.027591826394200325,
0.011206500232219696,
-0.003232479328289628,
-0.009251578710973263,
0.018691791221499443,
0.015039174817502499,
0.007592468056827784,
-0.05096513777971268,
-0.035017095506191254,
-0.010109000839293003,
-0.07847122102975845,
0.06578138470649719,
0.03954428434371948,
0.053811777383089066,
-0.03793232887983322,
-0.05549232289195061,
-0.0636206790804863,
-0.011669507250189781,
0.03529147058725357,
0.010331929661333561,
0.003603314282372594,
0.06060255691409111,
0.03707490861415863,
0.005753298755735159,
0.030387021601200104,
-0.052920058369636536,
-0.019429173320531845,
0.03556584566831589,
0.017868665978312492,
0.0023171817883849144,
-0.0978146567940712,
0.042973969131708145,
0.007811110466718674,
0.08217528462409973,
-0.036526158452034,
0.0707201287150383,
-0.016771165654063225,
0.02450510859489441,
0.06557559967041016,
0.0033439442049711943,
0.004141346085816622,
0.023304717615246773,
-0.031227294355630875,
0.007909714244306087,
0.02791764587163925,
-0.06053396314382553,
-0.032084714621305466,
0.005521794781088829,
0.005161677952855825,
0.016513939946889877,
0.018400266766548157,
0.004831570666283369,
0.03786373510956764,
-0.026408584788441658,
0.006272038910537958,
-0.05820177495479584,
-0.02539682760834694,
0.03532576933503151,
0.04438013955950737,
-0.027626123279333115,
0.04160209372639656,
-0.01396739762276411,
-0.026477178558707237,
-0.0766877830028534,
-0.03704061359167099,
-0.028277764096856117,
-0.008882887661457062,
0.02543112449347973,
0.04376279562711716,
-0.03957857936620712,
0.013813061639666557,
-0.05789310485124588,
-0.023047491908073425,
0.02093823440372944,
-0.028740771114826202,
0.029426708817481995,
-0.011412281543016434,
-0.029272371903061867,
-0.06951974332332611,
0.007961159572005272,
0.019463470205664635,
0.005620398558676243,
0.046609435230493546,
-0.0945221558213234,
-0.042082250118255615,
0.014061713591217995,
-0.034862760454416275,
0.022241516038775444,
0.02711167000234127,
-0.08039184659719467,
-0.02520819380879402,
0.03882404789328575,
-0.08176372200250626,
-0.04074467346072197,
0.015622220933437347,
-0.0037040612660348415,
0.009345895610749722,
0.03532576933503151,
-0.006469246000051498,
0.013958822935819626,
-0.017920110374689102,
-0.018365969881415367,
-0.002630140632390976,
0.023236123844981194,
-0.008029753342270851,
-0.061974432319402695,
-0.05607537180185318,
0.013195717707276344,
-0.042013656347990036,
-0.025585459545254707,
0.059127792716026306,
-0.004660086240619421,
0.00028589650173671544,
-0.047638341784477234,
0.05796169862151146,
0.022190069779753685,
-0.008527057245373726,
0.04451732710003853,
0.0016837615985423326,
-0.03422826901078224,
0.0836157500743866,
0.030181240290403366,
-0.018674641847610474,
0.017525697126984596,
0.00201601255685091,
0.0006419944111257792,
0.003948426339775324,
-0.046506546437740326,
-0.020595265552401543,
-0.004119910765439272,
-0.014593315310776234,
0.017748625949025154,
0.018297376111149788,
0.0836157500743866,
-0.01646249368786812,
-0.03707490861415863,
0.024590851739048958,
-0.02609991282224655,
-0.017611438408493996,
-0.042116548866033554,
0.00565040810033679,
-0.009714586660265923,
-0.050210606306791306,
0.008737125433981419,
0.0012207539984956384,
-0.023956358432769775,
0.006863659713417292,
-0.01716558076441288,
0.057481542229652405,
-0.03292498737573624,
-0.0032560585532337427,
-0.06283185631036758,
-0.029512450098991394,
0.024007804691791534,
-0.0023643400054425,
0.037726547569036484,
0.04170498624444008,
0.006979411467909813,
0.013204292394220829,
-0.04136201739311218,
-0.05178826302289963,
-0.03796662762761116,
0.05425763875246048,
-0.03518858179450035,
-0.09952949732542038,
-0.025053858757019043,
0.036594752222299576,
0.019549211487174034,
0.03693772107362747,
-0.04530615732073784,
-0.040161628276109695,
0.024196436628699303,
-0.009980387054383755,
-0.01994362659752369,
-0.05309154465794563,
0.0019099065102636814,
-0.009431636892259121,
-0.083272784948349,
0.01356440968811512,
-0.009388766251504421,
0.00014187647320795804,
0.02898084931075573,
-0.024179289117455482,
0.019154798239469528,
-0.023956358432769775,
-0.014344663359224796,
-0.0505535751581192,
-0.12031339854001999,
0.003995584324002266,
-0.002507958095520735,
-0.006091980263590813,
0.036560457199811935,
0.006254890467971563,
-0.03529147058725357,
-0.04252811148762703,
0.015707964077591896,
0.0394756905734539,
-0.003543294733390212,
-0.02078389935195446,
-0.09431637078523636,
0.049456074833869934,
-0.011412281543016434,
-0.013624428771436214,
-0.03472557291388512,
0.04098474979400635,
0.027831904590129852,
-0.011240797117352486,
0.014284643344581127,
0.06516403704881668,
0.029375262558460236,
-0.010229039005935192,
0.0396471731364727,
0.059127792716026306,
0.012072496116161346,
0.03325080871582031,
-0.05178826302289963,
-0.0003665477270260453,
0.011523745954036713,
0.012252554297447205,
-0.03813811019062996,
-0.025774093344807625,
0.04767264053225517,
0.004681522026658058,
-0.04424295201897621,
0.025859834626317024,
0.019429173320531845,
-0.013461519032716751,
-0.02253303863108158,
0.03169030323624611,
0.027660420164465904,
-0.07120028883218765,
0.012715562246739864,
-0.005003055091947317,
0.052062638103961945,
0.05538943409919739,
-0.010271910578012466,
0.04324834421277046,
0.008565641939640045,
-0.010169019922614098,
-0.03268491104245186,
-0.02258448489010334,
-0.01226112898439169,
-0.032307643443346024,
0.061837244778871536,
-0.02080104686319828,
0.015425014309585094,
0.012321148067712784,
-0.0035904529504477978,
0.007592468056827784,
0.013041381724178791,
-0.012835601344704628,
-0.024556554853916168,
0.002928094705566764,
0.015716537833213806,
0.006340632680803537,
-0.023356163874268532,
0.017782922834157944,
-0.11029870808124542,
-0.031227294355630875,
-0.038515377789735794,
-0.03913272172212601,
0.005809030961245298,
0.012252554297447205,
-0.031124403700232506,
-0.004237805958837271,
-0.03342229127883911,
0.06828505545854568,
-0.0581674799323082,
-0.007789675146341324,
-0.012715562246739864,
-0.04592350125312805,
-0.0489073283970356,
0.01908620446920395,
0.060259588062763214,
0.042047955095767975,
-0.042219437658786774,
-0.0035947400610893965,
0.09047512710094452,
-0.03203326836228371,
0.034691277891397476,
0.011643785052001476,
-0.003183177672326565,
0.010306207463145256,
-0.016736868768930435,
0.009757457301020622,
-0.008038327097892761,
0.00499448087066412,
0.018263079226017,
-0.004006302449852228,
0.025585459545254707,
0.03433116152882576,
-0.040401704609394073,
0.019566360861063004,
-0.033130768686532974,
0.0073309545405209064,
0.00942306313663721,
0.10172449797391891,
0.0140445651486516,
0.013950249180197716,
0.04256240651011467,
-0.018400266766548157,
0.022978898137807846,
0.005924783181399107,
0.028466396033763885,
0.007300944533199072,
-0.00023297751613426954,
0.002844496164470911,
0.006327771116048098,
0.07984309643507004,
0.03693772107362747,
0.013615855015814304,
0.018726088106632233,
-0.025654053315520287,
-0.014121733605861664,
-0.02433362416923046,
0.018245931714773178,
-0.006945114582777023,
-0.0541890449821949,
0.0399901419878006,
-0.07243497669696808,
-0.008908609859645367,
-0.016642553731799126,
0.007828258909285069,
-0.02543112449347973,
-0.029598193243145943,
0.01619669422507286,
0.015965189784765244,
0.019154798239469528,
0.049215998500585556,
-0.00806405022740364,
0.01708841137588024,
0.040093034505844116,
-0.006396364886313677,
-0.03151881694793701,
0.010057555511593819,
0.06698177009820938,
0.02179565653204918,
0.0067307595163583755,
-0.024762334302067757,
-0.05518365278840065,
0.04818709194660187,
-0.02913518436253071,
-0.008552780374884605,
0.008655671030282974,
0.02536253072321415,
-0.0070565794594585896,
0.013392925262451172,
0.024882374331355095,
-0.02174421027302742,
-0.00496018398553133,
0.025962725281715393,
-0.008394157513976097,
-0.026785850524902344,
0.04084756225347519,
0.027626123279333115,
-0.04530615732073784,
-0.009971813298761845,
-0.0399901419878006,
-0.018451713025569916,
0.005440339911729097,
0.006396364886313677,
-0.004535760264843702,
0.03865256533026695,
0.021401243284344673,
-0.0049687582068145275,
-0.01804015040397644,
-0.022910304367542267,
0.0746985673904419,
-0.03885834664106369,
0.05809888616204262,
0.04139631241559982,
-0.011172203347086906,
-0.0006109128589741886,
-0.0485643595457077,
-0.01623099111020565,
-0.00999753549695015,
-0.04623217135667801,
-0.05881911888718605,
0.07785388082265854,
-0.0432826429605484,
-0.02251589111983776,
0.025122452527284622,
0.004514324478805065,
0.07229778915643692,
0.06681028753519058,
-0.009320172481238842,
-0.02339046075940132,
0.01884612627327442,
0.030421316623687744,
-0.046506546437740326,
-0.009157262742519379,
-0.005045926198363304,
-0.0049301739782094955,
0.024813780561089516,
0.053743183612823486,
-0.02999260649085045,
-0.016891205683350563,
0.06828505545854568,
-0.04643795266747475,
0.02884366177022457,
0.05693279206752777,
-0.03824100270867348,
-0.0008183016907423735,
-0.03906412795186043,
-0.02997545897960663,
-0.011720952577888966,
0.016762591898441315,
0.056555528193712234,
-0.023767726495862007,
-0.006983698811382055,
-0.003513284958899021,
-0.05504646524786949,
-0.009543102234601974,
0.009371617808938026,
0.01093212515115738,
0.03518858179450035,
0.021178312599658966,
-0.035703033208847046,
0.003847679356113076,
-0.013084253296256065,
-0.0485643595457077,
-0.011952457018196583,
-0.050107717514038086,
0.0016805463237687945,
0.025859834626317024,
0.06049966812133789,
0.08313559740781784,
0.025534015148878098,
0.007172331679612398,
0.016951223835349083,
-0.005406043026596308,
-0.012243980541825294,
-0.0031017225701361895,
0.09733449667692184,
-0.02176135964691639,
-0.053948964923620224,
0.018245931714773178,
0.056486934423446655,
0.03968147188425064,
0.03151881694793701,
0.03697201982140541,
-0.03407393395900726,
-0.052954357117414474,
0.05909349396824837,
0.0082012377679348,
-0.051925450563430786,
0.01136940997093916,
-0.012209683656692505,
0.0091315396130085,
-0.057447247207164764,
0.030541356652975082,
-0.01314427237957716,
0.008779997006058693,
0.05340021476149559,
0.005161677952855825,
-0.02637428790330887,
0.02170991338789463,
0.033010732382535934,
-0.05758443474769592,
-0.045614827424287796,
-0.011506597511470318,
0.02639143541455269,
-0.007862555794417858,
0.06156286969780922,
0.03961287811398506,
0.035600144416093826,
-0.041019048541784286,
0.009637418203055859,
-0.014816245064139366,
-0.02424788288772106,
-0.01216681208461523,
-0.0012539790477603674,
-0.0022614493500441313,
0.02176135964691639,
-0.01349581591784954,
-0.00633205845952034,
-0.04887302964925766,
0.04407146945595741,
-0.07387544214725494,
-0.014353237114846706,
0.024985264986753464,
0.030198387801647186
] |
721,988
|
apprise.config.base
|
__init__
|
Initialize some general logging and common server arguments that will
keep things consistent when working with the configurations that
inherit this class.
By default we cache our responses so that subsiquent calls does not
cause the content to be retrieved again. For local file references
this makes no difference at all. But for remote content, this does
mean more then one call can be made to retrieve the (same) data. This
method can be somewhat inefficient if disabled. Only disable caching
if you understand the consequences.
You can alternatively set the cache value to an int identifying the
number of seconds the previously retrieved can exist for before it
should be considered expired.
recursion defines how deep we recursively handle entries that use the
`include` keyword. This keyword requires us to fetch more configuration
from another source and add it to our existing compilation. If the
file we remotely retrieve also has an `include` reference, we will only
advance through it if recursion is set to 2 deep. If set to zero
it is off. There is no limit to how high you set this value. It would
be recommended to keep it low if you do intend to use it.
insecure_include by default are disabled. When set to True, all
Apprise Config files marked to be in STRICT mode are treated as being
in ALWAYS mode.
Take a file:// based configuration for example, only a file:// based
configuration can include another file:// based one. because it is set
to STRICT mode. If an http:// based configuration file attempted to
include a file:// one it woul fail. However this include would be
possible if insecure_includes is set to True.
There are cases where a self hosting apprise developer may wish to load
configuration from memory (in a string format) that contains 'include'
entries (even file:// based ones). In these circumstances if you want
these 'include' entries to be honored, this value must be set to True.
|
def __init__(self, cache=True, recursion=0, insecure_includes=False,
**kwargs):
"""
Initialize some general logging and common server arguments that will
keep things consistent when working with the configurations that
inherit this class.
By default we cache our responses so that subsiquent calls does not
cause the content to be retrieved again. For local file references
this makes no difference at all. But for remote content, this does
mean more then one call can be made to retrieve the (same) data. This
method can be somewhat inefficient if disabled. Only disable caching
if you understand the consequences.
You can alternatively set the cache value to an int identifying the
number of seconds the previously retrieved can exist for before it
should be considered expired.
recursion defines how deep we recursively handle entries that use the
`include` keyword. This keyword requires us to fetch more configuration
from another source and add it to our existing compilation. If the
file we remotely retrieve also has an `include` reference, we will only
advance through it if recursion is set to 2 deep. If set to zero
it is off. There is no limit to how high you set this value. It would
be recommended to keep it low if you do intend to use it.
insecure_include by default are disabled. When set to True, all
Apprise Config files marked to be in STRICT mode are treated as being
in ALWAYS mode.
Take a file:// based configuration for example, only a file:// based
configuration can include another file:// based one. because it is set
to STRICT mode. If an http:// based configuration file attempted to
include a file:// one it woul fail. However this include would be
possible if insecure_includes is set to True.
There are cases where a self hosting apprise developer may wish to load
configuration from memory (in a string format) that contains 'include'
entries (even file:// based ones). In these circumstances if you want
these 'include' entries to be honored, this value must be set to True.
"""
super().__init__(**kwargs)
# Tracks the time the content was last retrieved on. This place a role
# for cases where we are not caching our response and are required to
# re-retrieve our settings.
self._cached_time = None
# Tracks previously loaded content for speed
self._cached_servers = None
# Initialize our recursion value
self.recursion = recursion
# Initialize our insecure_includes flag
self.insecure_includes = insecure_includes
if 'encoding' in kwargs:
# Store the encoding
self.encoding = kwargs.get('encoding')
if 'format' in kwargs \
and isinstance(kwargs['format'], str):
# Store the enforced config format
self.config_format = kwargs.get('format').lower()
if self.config_format not in common.CONFIG_FORMATS:
# Simple error checking
err = 'An invalid config format ({}) was specified.'.format(
self.config_format)
self.logger.warning(err)
raise TypeError(err)
# Set our cache flag; it can be True or a (positive) integer
try:
self.cache = cache if isinstance(cache, bool) else int(cache)
if self.cache < 0:
err = 'A negative cache value ({}) was specified.'.format(
cache)
self.logger.warning(err)
raise TypeError(err)
except (ValueError, TypeError):
err = 'An invalid cache value ({}) was specified.'.format(cache)
self.logger.warning(err)
raise TypeError(err)
return
|
(self, cache=True, recursion=0, insecure_includes=False, **kwargs)
|
[
-0.013640543445944786,
-0.072749562561512,
0.002883483190089464,
0.02608003281056881,
0.007821150124073029,
0.029435358941555023,
-0.03694671392440796,
0.01132422499358654,
-0.029721323400735855,
-0.04937667027115822,
0.015709025785326958,
0.05135936290025711,
-0.02449769154191017,
0.015537446364760399,
0.017053062096238136,
-0.010418668389320374,
-0.0008388314745388925,
0.012001009657979012,
0.01109545212239027,
-0.06756406277418137,
-0.0019433723064139485,
-0.030331382527947426,
-0.0031313197687268257,
0.06523820757865906,
0.020589498803019524,
0.01888323947787285,
-0.0018933283863589168,
-0.016786161810159683,
0.0050663514994084835,
0.0027095209807157516,
-0.04666953161358833,
0.027814889326691628,
-0.018902303650975227,
0.022229034453630447,
0.04129338636994362,
-0.03404892981052399,
-0.001382165472023189,
0.03471618518233299,
-0.12376576662063599,
0.019750667735934258,
-0.03345793858170509,
-0.030350446701049805,
0.03864344209432602,
-0.06188288331031799,
-0.019617218524217606,
0.0642087385058403,
-0.012706390582025051,
0.09272900223731995,
-0.04361923784017563,
-0.047432105988264084,
0.027662374079227448,
0.030998636037111282,
-0.018177859485149384,
0.018702128902077675,
-0.023029737174510956,
0.03711829334497452,
0.005052052903920412,
0.09112759679555893,
0.003162299282848835,
-0.008922116830945015,
-0.05631609261035919,
-0.007773489225655794,
0.045068126171827316,
0.02888249233365059,
-0.01248714979737997,
0.022896286100149155,
-0.08151916414499283,
-0.005371381063014269,
0.0209707859903574,
0.0007905748207122087,
0.03931069374084473,
-0.0051378426142036915,
-0.039958879351615906,
-0.0184542927891016,
0.05566790699958801,
-0.034373026341199875,
-0.05101620405912399,
0.029530679807066917,
-0.026785414665937424,
0.016814757138490677,
0.008111881092190742,
0.004928134847432375,
-0.001169478753581643,
-0.0352499857544899,
0.04964357241988182,
-0.03759489953517914,
0.016357213258743286,
-0.005371381063014269,
0.05212193727493286,
0.023334765806794167,
-0.033743903040885925,
0.042780403047800064,
0.014393585734069347,
0.002673775190487504,
0.0078354487195611,
0.013335513882339,
-0.006581967230886221,
-0.03288600593805313,
0.01281124446541071,
-0.058108143508434296,
-0.011591125279664993,
0.016414405778050423,
-0.037461452186107635,
-0.07991775870323181,
0.011228903196752071,
-0.06237855926156044,
-0.0211042370647192,
0.012954226695001125,
-0.021294880658388138,
-0.020093826577067375,
-0.024021083489060402,
-0.0156041719019413,
-0.04114086925983429,
-0.009393959306180477,
0.017157915979623795,
0.014984579756855965,
-0.06668709963560104,
-0.01860680617392063,
0.02299160696566105,
0.012916098348796368,
-0.007883109152317047,
0.044153038412332535,
0.0003416689287405461,
0.04045455530285835,
0.03662261739373207,
0.04949105530977249,
-0.033915482461452484,
-0.019293123856186867,
0.03738519176840782,
-0.04018765315413475,
0.04495374113321304,
0.018616339191794395,
0.002018438186496496,
-0.014841597527265549,
0.042284730821847916,
-0.0298166461288929,
-0.016919611021876335,
0.018187390640378,
-0.03288600593805313,
0.05871820077300072,
0.001688386662863195,
0.003996364772319794,
0.019636282697319984,
-0.009718053042888641,
-0.002001756802201271,
-0.020360726863145828,
0.01973160356283188,
-0.02869184873998165,
-0.05868007242679596,
0.008331121876835823,
0.05498158931732178,
-0.02838682010769844,
-0.048957254737615585,
0.02217184007167816,
-0.022000260651111603,
0.02171429619193077,
-0.04285666346549988,
0.04331420734524727,
-0.021962132304906845,
-0.026918863877654076,
-0.04064519703388214,
-0.004730342421680689,
0.03973010927438736,
-0.02095172181725502,
-0.056277964264154434,
-0.020837336778640747,
-0.030674541369080544,
-0.07164382934570312,
0.009660860523581505,
0.05353269726037979,
-0.03185652941465378,
0.0011146687902510166,
-0.04014952480792999,
0.00562874972820282,
-0.01833990588784218,
0.050291758030653,
0.004899538122117519,
-0.009679924696683884,
-0.03090331330895424,
0.030941441655158997,
-0.02962600253522396,
-0.03176121041178703,
-0.03845279663801193,
0.015537446364760399,
0.025393716990947723,
0.05318954214453697,
0.026270676404237747,
-0.014765339903533459,
0.07137693464756012,
0.0611584410071373,
0.004189391154795885,
-0.014079023152589798,
-0.00558585487306118,
-0.04747023433446884,
-0.02188587561249733,
-0.03645104169845581,
0.00459212576970458,
-0.05219819396734238,
0.05013924464583397,
0.03117021545767784,
-0.08273928612470627,
0.004859026521444321,
0.00382001930847764,
-0.04666953161358833,
0.03599349409341812,
0.012277442030608654,
-0.02062762901186943,
-0.01582341082394123,
-0.01769171841442585,
0.1289512664079666,
-0.05387585610151291,
-0.0013583350228145719,
-0.00786881148815155,
-0.027738630771636963,
-0.004747023340314627,
-0.025984710082411766,
-0.02156178094446659,
0.05818440020084381,
-0.029683195054531097,
0.003927256446331739,
0.07709623873233795,
0.020837336778640747,
-0.013726333156228065,
-0.0048065995797514915,
-0.0437336228787899,
0.010437732562422752,
0.02295347861945629,
-0.01000878494232893,
-0.011152645573019981,
0.008450273424386978,
0.010380539111793041,
0.026175353676080704,
0.047889649868011475,
0.017968151718378067,
0.09478795528411865,
-0.0060386331751942635,
0.03418238088488579,
0.043085433542728424,
0.014841597527265549,
0.025736873969435692,
-0.0016562155215069652,
0.01601405441761017,
0.03038857690989971,
-0.03582191467285156,
-0.037042036652565,
-0.04933854192495346,
-0.0356503389775753,
0.05063491687178612,
-0.020761078223586082,
0.004489654675126076,
0.01109545212239027,
0.008297759108245373,
-0.04098835587501526,
-0.019397977739572525,
0.01608077995479107,
-0.038414668291807175,
0.0035531185567378998,
-0.015403996221721172,
0.04838532209396362,
-0.031151149421930313,
0.045220643281936646,
-0.053151410073041916,
0.001958862179890275,
0.010313814505934715,
-0.046478889882564545,
-0.006195914000272751,
0.00314561789855361,
-0.03862437605857849,
-0.04495374113321304,
0.054066501557826996,
0.030216997489333153,
0.04091209918260574,
0.00740650063380599,
0.004029727075248957,
-0.03927256539463997,
0.022610321640968323,
0.01899762637913227,
-0.028920620679855347,
-0.04464871063828468,
0.023620732128620148,
0.007425564806908369,
0.013001888059079647,
0.07099564373493195,
-0.01482253335416317,
0.006844101939350367,
-0.06112030893564224,
-0.08182419836521149,
0.05787936970591545,
-0.05219819396734238,
0.024116404354572296,
-0.0004789918311871588,
0.038433730602264404,
-0.0044944207184016705,
-0.028825299814343452,
0.011686447076499462,
-0.011524400673806667,
-0.023506345227360725,
0.01697680540382862,
0.027891146019101143,
-0.006539072375744581,
-0.0449918694794178,
-0.023639796301722527,
0.020856400951743126,
-0.0015799581306055188,
0.028177110478281975,
-0.015213352628052235,
-0.011467207223176956,
-0.010142235085368156,
0.05852755904197693,
0.06104405224323273,
0.04297104850411415,
-0.011028727516531944,
0.03351512923836708,
-0.007234921213239431,
-0.0169291440397501,
0.015852008014917374,
-0.002272232435643673,
0.02205745503306389,
0.016099844127893448,
0.030693605542182922,
-0.041064612567424774,
0.05723118409514427,
-0.016290487721562386,
-0.0059385453350842,
0.0730164647102356,
-0.022286226972937584,
0.07469412684440613,
0.046936433762311935,
-0.02220997028052807,
0.040416423231363297,
-0.05093994736671448,
0.01745341345667839,
-0.05257948115468025,
0.013773993588984013,
0.0314752459526062,
-0.025508102029561996,
-0.006839335896074772,
-0.05265573784708977,
0.02609909698367119,
-0.05681176856160164,
0.05318954214453697,
-0.034830570220947266,
-0.05421901494264603,
-0.023868568241596222,
-0.0008447890868410468,
-0.024554884061217308,
0.0599001906812191,
0.01849242113530636,
-0.015461188741028309,
0.0036484403535723686,
-0.010780890472233295,
-0.04842345416545868,
0.022286226972937584,
0.0409502275288105,
0.05059678852558136,
-0.07656243443489075,
-0.056087322533130646,
-0.05955703556537628,
0.016805225983262062,
-0.0023270423989742994,
0.009474982507526875,
0.04030203819274902,
0.00043490552343428135,
0.0561254508793354,
-0.03212343156337738,
-0.008588490076363087,
-0.020055698230862617,
-0.007706764154136181,
0.06424686312675476,
-0.08266302943229675,
-0.01731996238231659,
-0.016052184626460075,
0.02377324551343918,
-0.08068033307790756,
0.053761471062898636,
-0.029282843694090843,
-0.04392426460981369,
-0.005919481161981821,
-0.07362652570009232,
0.01871166005730629,
0.005261761136353016,
0.06733529269695282,
-0.013087676838040352,
-0.024612078443169594,
-0.026918863877654076,
-0.04884286969900131,
0.033934544771909714,
-0.03799525275826454,
0.02714763581752777,
0.03473524749279022,
0.02438330464065075,
0.008397846482694149,
-0.001252289628610015,
0.04407678171992302,
-0.07763003557920456,
-0.0211042370647192,
0.01930265501141548,
0.07816383987665176,
0.02407827600836754,
-0.03056015446782112,
0.0396919809281826,
-0.032828811556100845,
0.04270414635539055,
0.03446834906935692,
0.02156178094446659,
-0.02516494318842888,
0.10165112465620041,
0.012782647274434566,
0.016576454043388367,
0.015261013060808182,
-0.009718053042888641,
-0.04251350462436676,
-0.02234341949224472,
-0.0049186027608811855,
-0.045411285012960434,
-0.0008763644145801663,
-0.002957357559353113,
0.021237688139081,
0.009675158187747002,
0.034220509231090546,
0.016967272385954857,
-0.003872446483001113,
0.02482178620994091,
0.00040601109503768384,
0.02203839085996151,
0.03582191467285156,
-0.021237688139081,
0.006615329999476671,
-0.09600807726383209,
-0.02341102436184883,
0.014460310339927673,
0.05505784600973129,
-0.0009734734194353223,
-0.030598284676671028,
0.04312356188893318,
-0.02606096863746643,
-0.009365363046526909,
-0.051778778433799744,
-0.0061482531018555164,
-0.025489037856459618,
-0.011838962323963642,
-0.024898042902350426,
-0.01767265424132347,
0.00744939548894763,
0.019121544435620308,
0.0032099601812660694,
-0.06683961302042007,
0.021390201523900032,
0.03879595547914505,
-0.013468964025378227,
-0.05418088659644127,
-0.011562529020011425,
-0.043657366186380386,
-0.03176121041178703,
-0.04884286969900131,
-0.02232435531914234,
0.021981196478009224,
0.06283610314130783,
-0.019131077453494072,
0.010371007025241852,
0.035002149641513824,
-0.014927387237548828,
0.036260396242141724,
-0.04998673126101494,
-0.031437113881111145,
0.016900546848773956,
0.04998673126101494,
0.05257948115468025,
-0.029111264273524284,
-0.01467955019325018,
-0.026937928050756454,
0.004859026521444321,
-0.06775470823049545,
0.019378913566470146,
-0.008426443673670292,
-0.019769731909036636,
-0.0017384305829182267,
0.007816384546458721,
-0.04869035258889198,
-0.047393977642059326,
-0.036851391196250916,
-0.0058908844366669655,
-0.00787834357470274,
-0.03547875955700874,
-0.006844101939350367,
-0.14824439585208893,
0.07343588024377823,
-0.0377664789557457,
0.005252228584140539,
0.017176980152726173,
0.009503578767180443,
0.01886417530477047,
-0.04140777140855789,
0.006119656842201948,
0.019979439675807953,
0.03305758535861969,
-0.01405042689293623,
0.029702259227633476,
0.044610582292079926,
-0.03570752963423729,
-0.008984075859189034,
-0.07892641425132751,
-0.006119656842201948,
0.04396239295601845,
0.0003249876026529819,
0.03784273937344551,
-0.03757583722472191,
0.033572323620319366,
-0.004739874508231878,
0.005685942713171244,
-0.02407827600836754,
0.017100723460316658,
0.01063790824264288,
0.008273928426206112,
-0.004780386108905077,
-0.008941181004047394,
-0.055782292038202286,
0.02001756988465786,
-0.02079920656979084,
-0.024459563195705414,
0.01918826997280121,
0.01884511113166809,
0.04830906540155411,
0.03315290808677673,
-0.02480272203683853,
0.02947348728775978,
0.06550510972738266,
-0.026613835245370865,
-0.04270414635539055,
0.04762275144457817,
-0.020875465124845505,
-0.01814926229417324,
-0.018616339191794395,
0.024936171248555183,
0.04762275144457817,
0.046936433762311935,
-0.058908846229314804,
0.016681307926774025,
-0.029263779520988464,
-0.025374650955200195,
0.019359849393367767,
0.0211042370647192,
0.018616339191794395,
-0.04762275144457817,
-0.05909948796033859,
-0.05955703556537628,
0.013707268983125687,
0.06512382626533508,
0.028768105432391167,
-0.04689830541610718,
-0.0043490552343428135,
-0.009632263332605362,
0.0940253809094429,
-0.0015978309093043208,
0.03307665139436722,
-0.04426742345094681,
0.04937667027115822,
-0.031265538185834885,
0.02449769154191017,
0.029606938362121582,
0.03814776614308357,
0.00492336880415678,
-0.09799076616764069,
0.0020982702262699604,
-0.051778778433799744,
-0.0061148907989263535,
0.03852905333042145,
0.029282843694090843,
-0.032657232135534286,
-0.00919378362596035,
0.01954095996916294,
0.016328616067767143,
-0.011381417512893677,
0.030464833602309227,
-0.02590845339000225,
0.033438872545957565,
0.01762499287724495,
0.05620170757174492,
0.05162626504898071,
0.022743770852684975,
0.018273180350661278,
-0.029530679807066917,
0.020227277651429176,
-0.023315701633691788,
-0.010876212269067764,
0.01662411354482174,
0.04613573104143143,
0.054714687168598175,
-0.0010318580316379666,
0.002423555590212345,
-0.03090331330895424,
0.0059385453350842,
0.012353699654340744,
-0.015661364421248436,
0.00844550784677267,
0.07755377888679504,
0.01684335432946682,
-0.04205596074461937,
0.0462501160800457,
0.0024855148512870073,
-0.06397996097803116,
-0.02855839766561985,
-0.014479374513030052,
-0.03103676438331604,
-0.025336522608995438,
-0.007387435995042324,
-0.01704353094100952,
0.021066108718514442,
-0.007172962184995413,
0.009374895133078098,
0.005681176669895649,
0.0004769066581502557,
0.021142365410923958,
-0.010199427604675293,
0.0015239565400406718,
0.0011831813026219606,
-0.03368670865893364,
0.04583070054650307,
-0.009508345276117325,
-0.06908921152353287,
0.023677924647927284,
0.04236098751425743,
0.008307291194796562,
0.004899538122117519,
-0.08434069156646729,
0.045220643281936646,
-0.010723697952926159,
-0.010809487663209438,
-0.06459002196788788,
0.056849896907806396,
0.0919664278626442,
0.011905687861144543,
0.01923593133687973,
0.05189316347241402,
-0.038433730602264404,
0.007544717285782099,
0.054371532052755356,
0.04270414635539055,
0.04464871063828468,
0.015146627090871334,
0.11957161128520966,
-0.06725902855396271,
-0.01886417530477047,
-0.020436985418200493,
-0.06691587716341019,
-0.01816832646727562,
0.026632899418473244,
-0.03505934402346611,
0.04441994056105614,
-0.022133711725473404,
-0.003731846809387207,
0.01836850307881832,
0.018273180350661278,
0.01875932142138481,
-0.0369085855782032,
0.02825336903333664,
0.023182250559329987,
0.04731772094964981,
0.03999700769782066,
-0.032828811556100845,
-0.009131824597716331,
0.02017008326947689,
-0.02888249233365059,
-0.07210137695074081,
0.03647010400891304,
-0.058108143508434296,
0.022133711725473404,
-0.030846120789647102,
0.04255163297057152,
0.040111396461725235,
0.031418051570653915,
-0.06203540042042732,
-0.01248714979737997,
0.030636413022875786,
0.026118161156773567,
-0.021657103672623634,
-0.041064612567424774,
-0.02608003281056881,
-0.015241948887705803,
0.0064628152176737785,
-0.0015763835981488228,
0.04262788966298103,
-0.025889389216899872,
0.05353269726037979,
-0.04171280190348625,
0.02034166269004345,
0.057193055748939514,
-0.006782142911106348,
-0.029568808153271675,
-0.0008024900453165174,
-0.01847335696220398,
0.02018914744257927,
-0.014393585734069347,
0.022229034453630447,
0.029397230595350266,
-0.036527298390865326,
-0.005466702859848738,
-0.05498158931732178,
-0.019750667735934258,
0.018616339191794395,
0.05303702503442764,
-0.004501570016145706,
-0.003257621079683304,
0.007663869298994541,
-0.03521185740828514,
-0.01862587220966816,
-0.0010479436023160815,
-0.017891893163323402,
-0.006372259464114904,
0.022743770852684975,
0.02049417793750763,
0.09730444848537445,
0.08960244804620743,
-0.03568846732378006,
-0.026156289502978325,
0.011267031542956829,
0.01934078522026539,
-0.015709025785326958,
-0.007968898862600327,
0.04697456210851669,
-0.04297104850411415,
0.00992299523204565,
0.01799674704670906,
-0.007644805125892162,
0.03473524749279022,
0.0030050184577703476,
0.01623329520225525,
-0.01263966504484415,
0.03463992476463318,
-0.014212474226951599,
-0.0198459904640913,
0.031589630991220474,
-0.004187008365988731,
0.011762704700231552,
0.014164812862873077,
-0.0528082549571991,
-0.002881100168451667,
-0.007149131968617439,
-0.002209081780165434,
0.03490682691335678,
0.01335457805544138,
-0.029092200100421906,
-0.04979608580470085,
0.032199688255786896,
-0.03898659721016884,
-0.02171429619193077,
0.033610451966524124,
0.0561254508793354,
-0.016423938795924187,
0.05566790699958801,
-0.038090575486421585,
-0.03410612419247627,
-0.014412649907171726,
0.0265375766903162,
-0.01684335432946682,
-0.02901594340801239,
-0.0687079206109047,
0.029530679807066917,
0.03164682164788246,
-0.0016907696845009923,
-0.022705642506480217,
-0.0629504919052124,
-0.0052855913527309895,
0.06066276505589485,
0.04613573104143143,
0.029206587001681328,
0.025412781164050102,
0.011286095716059208
] |
721,989
|
apprise.config.base
|
__iter__
|
Returns an iterator to our server list
|
def __iter__(self):
"""
Returns an iterator to our server list
"""
if not isinstance(self._cached_servers, list):
# Generate ourselves a list of content we can pull from
self.servers()
return iter(self._cached_servers)
|
(self)
|
[
0.034428250044584274,
-0.04544879496097565,
-0.10021862387657166,
-0.004739359952509403,
-0.013017908670008183,
0.019903559237718582,
0.002956624608486891,
0.039982326328754425,
0.07667075097560883,
0.006088456604629755,
-0.008729708380997181,
0.021603070199489594,
-0.04923327639698982,
0.03931653872132301,
-0.0008776795002631843,
0.004656136501580477,
-0.026473836973309517,
0.003506337758153677,
-0.03784479573369026,
-0.03519916534423828,
-0.04565904662013054,
0.04043786600232124,
0.06398573517799377,
0.02277696132659912,
-0.015479573048651218,
0.049443524330854416,
0.03045104444026947,
-0.03721404820680618,
0.055680908262729645,
0.026263587176799774,
-0.010600047186017036,
0.00579498428851366,
0.010503683239221573,
-0.00519051868468523,
0.06405582278966904,
0.046219710260629654,
-0.029995504766702652,
0.03770463168621063,
-0.06556260585784912,
0.0101795494556427,
0.029119467362761497,
-0.039807118475437164,
0.035637181252241135,
-0.008186564780771732,
0.004717458970844746,
0.02889169752597809,
0.03721404820680618,
0.02197100594639778,
0.04296085238456726,
-0.08234747499227524,
0.0049452283419668674,
0.025405071675777435,
0.0026675325352698565,
-0.0011936003575101495,
-0.013333282433450222,
0.04919823631644249,
0.004713078960776329,
0.08809427171945572,
0.004465598147362471,
0.03300907090306282,
-0.05879959836602211,
-0.08739344775676727,
0.04117373749613762,
-0.011414761655032635,
0.006758625153452158,
-0.025597799569368362,
-0.09131809324026108,
-0.004145844839513302,
0.013149314559996128,
0.03102922812104225,
0.003996918443590403,
0.026175983250141144,
-0.0335346944630146,
0.014139235951006413,
-0.032903946936130524,
-0.005759942810982466,
-0.0418044812977314,
0.03134460002183914,
0.010503683239221573,
-0.05771331489086151,
0.0008727518143132329,
0.04282068461179733,
-0.02731483243405819,
-0.015856267884373665,
0.03539189323782921,
-0.05655694380402565,
0.02556275762617588,
-0.023390186950564384,
-0.06994278728961945,
0.06685914099216461,
-0.04804186522960663,
0.04138398543000221,
0.007371850777417421,
0.018677107989788055,
-0.030153190717101097,
-0.005869447719305754,
-0.08157656341791153,
-0.031151873990893364,
-0.007573339156806469,
-0.01078401505947113,
-0.002998236333951354,
0.06952229142189026,
0.026666564866900444,
0.02910194732248783,
0.0295049250125885,
-0.017354290932416916,
-0.027349872514605522,
-0.05126568302512169,
-0.028874177485704422,
0.016136599704623222,
-0.03367485851049423,
0.055821072310209274,
-0.009688968770205975,
-0.003922455478459597,
0.004419606178998947,
0.006250523496419191,
-0.020621908828616142,
-0.021147532388567924,
0.04243522882461548,
-0.00002171271262341179,
-0.03847554326057434,
0.05238701030611992,
-0.009443677961826324,
0.055856116116046906,
-0.014980231411755085,
0.022076131775975227,
-0.0016447593225166202,
-0.028085744008421898,
-0.008300449699163437,
-0.06822575628757477,
0.018939917907118797,
0.03647817671298981,
0.015444531105458736,
0.04835724085569382,
0.05613644793629646,
-0.03907124698162079,
-0.011344678699970245,
-0.011353438720107079,
-0.04611458629369736,
0.035321809351444244,
-0.017065199092030525,
0.032676178961992264,
0.012527327984571457,
0.04418730363249779,
-0.02282952331006527,
-0.04138398543000221,
0.0033179898746311665,
0.005383247043937445,
0.02878657355904579,
-0.015917591750621796,
-0.019710831344127655,
-0.006206721533089876,
0.042540352791547775,
0.03717900812625885,
-0.09643414616584778,
0.03130955994129181,
-0.038545627146959305,
0.026719126850366592,
0.024914490059018135,
-0.0508451834321022,
-0.06254903972148895,
-0.004040720406919718,
-0.0345684178173542,
-0.04183952510356903,
-0.02081463858485222,
0.0027836074586957693,
-0.047025661915540695,
-0.06969749927520752,
-0.005435809027403593,
0.02484440803527832,
-0.022303899750113487,
-0.010153268463909626,
-0.027034500613808632,
-0.014069152995944023,
-0.007025816477835178,
0.04650004208087921,
0.009005660191178322,
0.032308243215084076,
0.020656950771808624,
0.02682425081729889,
-0.06444127857685089,
-0.03721404820680618,
-0.06675401329994202,
-0.0061716800555586815,
0.0037341073621064425,
0.06384557485580444,
0.04117373749613762,
0.005409528035670519,
0.043030936270952225,
0.04614962637424469,
-0.0426805205643177,
0.010845337063074112,
-0.027735330164432526,
-0.030661292374134064,
-0.04902302846312523,
-0.028418637812137604,
-0.011134429834783077,
0.001526494394056499,
-0.0155408950522542,
0.06752492487430573,
-0.09636406600475311,
-0.0058256457559764385,
-0.009496240876615047,
-0.008821692317724228,
0.01166005153208971,
0.040297698229551315,
-0.038545627146959305,
-0.04565904662013054,
-0.014139235951006413,
0.0672796368598938,
-0.03505899757146835,
-0.03137964382767677,
-0.00020148849580436945,
-0.004708698485046625,
0.04408217966556549,
-0.004196216817945242,
-0.0072185443714261055,
-0.026806730777025223,
0.011992945335805416,
-0.014971471391618252,
0.04853244498372078,
-0.0244939923286438,
-0.05147593095898628,
-0.02650887705385685,
-0.052001554518938065,
-0.009557562880218029,
-0.00080869160592556,
0.01009194552898407,
-0.053613461554050446,
-0.02358291484415531,
0.008427475579082966,
0.04579921066761017,
0.0447479672729969,
-0.010389798320829868,
0.054909996688365936,
-0.0017553590005263686,
0.03861570730805397,
0.03609272092580795,
-0.0162504855543375,
0.045273590832948685,
-0.03274625912308693,
0.009075743146240711,
0.03488378971815109,
-0.050389643758535385,
-0.05848422646522522,
0.01157244760543108,
0.002685053274035454,
0.05329808592796326,
0.0032325764186680317,
0.06202341616153717,
0.014323203824460506,
-0.004791921935975552,
-0.022356463596224785,
-0.05287759006023407,
0.03619784489274025,
-0.07102907449007034,
-0.05526040866971016,
-0.02932971715927124,
0.03994728624820709,
-0.0016885611694306135,
0.01374501921236515,
0.008720947429537773,
-0.01345592737197876,
0.06903170794248581,
-0.018449338153004646,
0.039351578801870346,
-0.012273277156054974,
0.03479618579149246,
-0.017844872549176216,
0.06948725134134293,
0.09825630486011505,
0.0016918462933972478,
0.033341966569423676,
0.030836500227451324,
-0.01865958608686924,
0.004765640944242477,
-0.021865881979465485,
-0.024003412574529648,
-0.10876874625682831,
-0.008830452337861061,
0.012527327984571457,
0.03183518350124359,
-0.036618344485759735,
-0.059535469859838486,
0.003116501495242119,
-0.06731467694044113,
0.00595267117023468,
0.050564851611852646,
-0.009233429096639156,
-0.00493208784610033,
0.044117219746112823,
0.010748973116278648,
0.009715249761939049,
-0.06006109341979027,
0.03045104444026947,
-0.02104240655899048,
-0.09096767753362656,
0.012036747299134731,
0.0438719317317009,
0.020551826804876328,
-0.02021893300116062,
-0.05897480621933937,
-0.04264547675848007,
0.03192278742790222,
0.03090658411383629,
0.02044670283794403,
0.00500217080116272,
0.055190328508615494,
0.006635979749262333,
0.041874565184116364,
0.033482130616903305,
-0.03220311924815178,
-0.04821707308292389,
-0.026614002883434296,
0.029750214889645576,
-0.03180013969540596,
-0.062233664095401764,
0.03381502628326416,
-0.03404279425740242,
0.07933390885591507,
-0.06594806164503098,
0.07996465265750885,
0.03018823266029358,
0.01271129585802555,
0.01693379320204258,
0.03872083127498627,
0.043836887925863266,
0.08059539645910263,
-0.0003312514745630324,
0.03174757957458496,
0.03413039818406105,
-0.05613644793629646,
-0.038230251520872116,
0.05778339505195618,
0.03381502628326416,
0.012019227258861065,
0.038230251520872116,
-0.03279882296919823,
0.05501512065529823,
-0.07954415678977966,
0.021182572469115257,
-0.032500971108675,
-0.004520350601524115,
-0.017091481015086174,
-0.0007911708671599627,
0.01302666962146759,
0.017809830605983734,
-0.014016591012477875,
0.0025908793322741985,
-0.019360415637493134,
-0.0006581227644346654,
0.017240406945347786,
0.04183952510356903,
0.029084427282214165,
0.0408233217895031,
-0.02766524627804756,
-0.03286890685558319,
-0.0005798269412480295,
-0.012150632217526436,
0.01105558592826128,
0.019833477213978767,
0.0316249318420887,
0.0034472052939236164,
-0.012737576849758625,
-0.033394526690244675,
-0.029522445052862167,
-0.015742383897304535,
-0.03591751307249069,
0.06552756577730179,
-0.058414142578840256,
-0.053613461554050446,
0.0011837448691949248,
-0.03914133086800575,
-0.047200869768857956,
0.00474373996257782,
-0.05725777521729469,
-0.02282952331006527,
0.04355655610561371,
-0.03770463168621063,
0.05000418797135353,
0.03512908145785332,
0.01076649408787489,
0.05655694380402565,
-0.011765176430344582,
0.012273277156054974,
-0.026719126850366592,
0.02067447267472744,
-0.020569346845149994,
0.012614931911230087,
0.011931623332202435,
-0.03185270354151726,
-0.07169486582279205,
-0.047060705721378326,
0.005773083306849003,
-0.051020391285419464,
-0.03826529532670975,
0.08101589977741241,
0.0005272647249512374,
0.0025492676068097353,
-0.052316926419734955,
0.041243817657232285,
0.03215055540204048,
0.023880766704678535,
0.07323668897151947,
-0.0028734011575579643,
-0.05098535120487213,
0.08879510313272476,
0.004049480892717838,
-0.0033333206083625555,
0.04043786600232124,
-0.010687651112675667,
-0.059009850025177,
0.006530855316668749,
-0.052632298320531845,
-0.0122469961643219,
0.0006948068039491773,
0.004345143213868141,
-0.0010720501886680722,
0.07842282950878143,
0.10904908180236816,
0.039491746574640274,
-0.03404279425740242,
0.02403845451772213,
0.01026715338230133,
-0.009084503166377544,
-0.041103653609752655,
0.022479107603430748,
-0.037389256060123444,
-0.027472518384456635,
-0.03372742235660553,
0.002141910372301936,
-0.013657416217029095,
-0.0016589949373155832,
-0.04275060445070267,
0.07982448488473892,
-0.034603457897901535,
-0.048462364822626114,
-0.037739671766757965,
-0.00040653589530847967,
0.014971471391618252,
0.0062811849638819695,
0.009750290773808956,
0.03306163474917412,
-0.027209706604480743,
0.04562400281429291,
-0.02524738386273384,
-0.04026265814900398,
0.03577734902501106,
0.0743580162525177,
-0.004853244870901108,
-0.06577285379171371,
-0.01197542529553175,
0.02964509092271328,
-0.021988527849316597,
0.01269377488642931,
0.009706489741802216,
0.0408233217895031,
0.015453292056918144,
-0.03847554326057434,
0.0011049015447497368,
0.006298705469816923,
-0.004123943857848644,
0.044642843306064606,
-0.06272424757480621,
-0.010950461961328983,
-0.015549656003713608,
0.0055234129540622234,
0.05515528470277786,
0.007967555895447731,
-0.0015034984098747373,
0.011353438720107079,
-0.009548802860081196,
-0.021918443962931633,
-0.0946119874715805,
0.020551826804876328,
0.01473494153469801,
-0.015050314366817474,
0.02757764235138893,
-0.013674936257302761,
-0.057748354971408844,
-0.07169486582279205,
-0.0011224222835153341,
0.06076192110776901,
-0.01511163730174303,
-0.01879975199699402,
-0.09825630486011505,
0.05049476772546768,
-0.025632841512560844,
-0.007179122883826494,
-0.006145399063825607,
0.02489697001874447,
0.037669587880373,
-0.03484874963760376,
-0.014717420563101768,
0.02668408490717411,
0.03304411470890045,
0.0037100163754075766,
0.02389828860759735,
0.033797506242990494,
-0.013508489355444908,
0.010915420018136501,
-0.021147532388567924,
0.028155827894806862,
0.03409535810351372,
0.00576432328671217,
0.0060972170904278755,
-0.03045104444026947,
-0.013035429641604424,
-0.015575936995446682,
-0.0006668831338174641,
0.04264547675848007,
-0.030205754563212395,
-0.0335346944630146,
-0.03938662260770798,
0.022759439423680305,
-0.027419956400990486,
-0.07933390885591507,
0.0011443232651799917,
-0.03430560603737831,
0.012755097821354866,
0.04394201189279556,
0.007275486830621958,
0.024336306378245354,
0.02852376364171505,
-0.02121761441230774,
-0.03418296203017235,
-0.0017038919031620026,
-0.009890456683933735,
0.005098535213619471,
0.005799364764243364,
0.0279806200414896,
0.010512443259358406,
-0.00490142684429884,
-0.009356074966490269,
-0.009671447798609734,
-0.012755097821354866,
0.006018373649567366,
-0.03001302480697632,
-0.01595263183116913,
0.024231182411313057,
0.038055043667554855,
0.01329824049025774,
0.03794991970062256,
-0.07379735261201859,
-0.06268920004367828,
-0.012527327984571457,
-0.03158989176154137,
0.007836150005459785,
0.007249205838888884,
-0.0416993573307991,
-0.008015737868845463,
-0.03171253576874733,
0.014279401861131191,
-0.00810772180557251,
-0.01475246250629425,
-0.02757764235138893,
-0.006145399063825607,
-0.021550508216023445,
-0.017389332875609398,
0.06104225292801857,
0.040788281708955765,
0.016311807557940483,
-0.0867626965045929,
0.04099852964282036,
0.02803318202495575,
0.019027521833777428,
0.03749438002705574,
0.0244939923286438,
0.036302972584962845,
0.004862004891037941,
0.04551887884736061,
0.006719203200191259,
0.026403753086924553,
0.03602264076471329,
0.03707388415932655,
0.060656797140836716,
-0.000013978949027659837,
-0.028313513845205307,
0.03386758640408516,
-0.0826278030872345,
0.014042872004210949,
-0.04278564453125,
0.06566772609949112,
-0.015575936995446682,
-0.016197923570871353,
-0.019710831344127655,
-0.06598310172557831,
0.035987596958875656,
-0.02300472930073738,
0.013999070040881634,
0.021900923922657967,
-0.0016666603041812778,
-0.019710831344127655,
-0.0264563150703907,
0.01354353129863739,
-0.013499729335308075,
0.0001259303098777309,
-0.018186526373028755,
-0.032308243215084076,
0.01879975199699402,
-0.021392822265625,
0.046535082161426544,
0.004879525862634182,
0.006925072055310011,
0.029767734929919243,
-0.09335049986839294,
-0.04166431725025177,
0.005479610990732908,
0.012895263731479645,
0.031502287834882736,
-0.027840454131364822,
0.031099312007427216,
0.038510583341121674,
-0.03045104444026947,
0.04586929455399513,
0.007709125056862831,
0.001996269216760993,
0.05305279791355133,
-0.012071789242327213,
-0.027367394417524338,
0.03113435208797455,
0.02484440803527832,
0.022812001407146454,
0.027122104540467262,
-0.06479169428348541,
-0.053753625601530075,
0.03759950399398804,
-0.025720445439219475,
0.017091481015086174,
0.0007731026271358132,
0.030468564480543137,
-0.029347237199544907,
0.017617102712392807,
0.006184821017086506,
-0.0034888170193880796,
-0.0023039772640913725,
0.03647817671298981,
0.021603070199489594,
-0.03889603912830353,
0.008401194587349892,
0.046394918113946915,
-0.03302659094333649,
-0.00957508385181427,
-0.042224980890750885,
-0.08928568661212921,
-0.013447167351841927,
0.019500581547617912,
-0.002934723859652877,
0.04664020612835884,
-0.01644321344792843,
-0.016811149194836617,
0.02412605658173561,
0.010713932104408741,
0.05725777521729469,
-0.038685791194438934,
-0.006968874018639326,
0.03241336718201637,
0.004410846158862114,
0.03521668538451195,
-0.028769053518772125,
0.015155439265072346,
0.012658733874559402,
0.018852315843105316,
-0.06864625215530396,
0.03812512755393982,
-0.020516784861683846,
0.0010517918271943927,
0.02162059210240841,
-0.0030223275534808636,
0.06254903972148895,
0.010635088197886944,
0.020078767091035843,
-0.053263045847415924,
-0.030486086383461952,
-0.033517174422740936,
-0.015190480276942253,
-0.051335763186216354,
-0.03928149491548538,
-0.011081866919994354,
0.02197100594639778,
-0.04362663999199867,
-0.008887394331395626,
-0.058063726872205734,
0.0510554313659668,
-0.04954864829778671,
0.007538297679275274,
0.04131390154361725,
-0.02113001048564911,
0.0023368285037577152,
-0.08122614771127701,
-0.02211117185652256,
-0.013359563425183296,
0.02826095186173916,
0.023758122697472572,
-0.026473836973309517,
0.053578417748212814,
-0.009960539638996124,
-0.0682607963681221,
0.009583843871951103,
0.009154586121439934,
0.028190867975354195,
0.04026265814900398,
0.028996823355555534,
0.02875153161585331,
0.028769053518772125,
-0.007783588021993637,
-0.028418637812137604,
0.016276765614748,
0.007520777173340321,
0.012877742759883404,
0.03602264076471329,
0.07421784847974777,
0.036302972584962845,
-0.013911467045545578,
0.022899605333805084,
-0.019027521833777428,
0.05869447439908981,
-0.004537871573120356,
0.04839228093624115,
0.059185054153203964,
0.019395457580685616,
-0.049303360283374786,
0.009636406786739826,
0.02323249913752079,
0.0014815974282100797,
0.010556245222687721,
-0.022041089832782745,
0.02358291484415531,
0.00023639309802092612,
0.04807690903544426,
-0.010652609169483185,
-0.02771780826151371,
-0.002737615490332246,
0.029697652906179428,
-0.017818590626120567,
-0.08725327998399734,
0.002339018741622567,
0.02098984457552433,
-0.006180440541356802,
0.0300480667501688,
-0.0008820596849545836,
-0.03682859241962433,
0.012001706287264824,
0.047516245394945145,
-0.060341425240039825,
-0.06356523931026459,
0.027752850204706192,
0.01857198402285576,
0.009066982194781303,
0.024599118158221245,
0.022041089832782745,
-0.03381502628326416,
0.009426157921552658,
0.028821615502238274,
0.0037406778428703547,
-0.017879914492368698,
-0.03770463168621063,
-0.0209022406488657,
-0.020236453041434288,
0.005137956701219082,
-0.014305682852864265,
-0.025002093985676765,
0.018957439810037613,
0.003931215964257717,
-0.013797582127153873,
-0.010512443259358406,
0.05767827108502388,
-0.0011185896582901478
] |
721,990
|
apprise.config.base
|
__len__
|
Returns the total number of servers loaded
|
def __len__(self):
"""
Returns the total number of servers loaded
"""
if not isinstance(self._cached_servers, list):
# Generate ourselves a list of content we can pull from
self.servers()
return len(self._cached_servers)
|
(self)
|
[
-0.012900218367576599,
-0.04845612868666649,
-0.06123799458146095,
0.0425385981798172,
0.04791509732604027,
0.06299635022878647,
-0.0009304261184297502,
-0.024532394483685493,
0.019781462848186493,
-0.03276621550321579,
-0.0044804164208471775,
0.013973827473819256,
-0.010338773019611835,
-0.041591793298721313,
0.020001256838440895,
-0.00896928645670414,
-0.003774539567530155,
-0.015478571876883507,
0.009003100916743279,
-0.058634281158447266,
-0.03252951428294182,
0.07959925383329391,
0.08791761100292206,
-0.010237329639494419,
-0.021675072610378265,
0.018327439203858376,
0.0396643690764904,
-0.046866849064826965,
0.06160995736718178,
0.04974107816815376,
-0.05014685168862343,
0.036519620567560196,
-0.019240431487560272,
0.02605404518544674,
0.04899716004729271,
0.027778582647442818,
0.03383137285709381,
0.012004135176539421,
-0.04869282990694046,
0.013365167193114758,
-0.01596888154745102,
-0.06279346346855164,
0.028066005557775497,
-0.028776109218597412,
0.033171989023685455,
0.005583613645285368,
0.013339806348085403,
0.013339806348085403,
-0.011454650200903416,
-0.08223678171634674,
-0.009848463349044323,
0.05092458426952362,
0.012688877992331982,
0.024414043873548508,
0.012697331607341766,
0.06096747890114784,
0.011716712266206741,
0.11503680795431137,
-0.038988079875707626,
0.0319884829223156,
-0.035944774746894836,
-0.029283326119184494,
0.022283732891082764,
-0.03078807145357132,
0.02380538359284401,
0.013204548507928848,
-0.05045118182897568,
0.036553435027599335,
0.03154889494180679,
0.005866809748113155,
0.041016947478055954,
0.03770313039422035,
-0.045784786343574524,
0.03946148231625557,
-0.009459597058594227,
-0.012925579212605953,
0.004725571721792221,
0.012257743626832962,
0.014726199209690094,
-0.0162563044577837,
0.0396643690764904,
-0.020863525569438934,
0.03476126864552498,
0.003895003814250231,
0.07770564407110214,
-0.05792417749762535,
0.01962929777801037,
-0.013542693108320236,
-0.0611027367413044,
0.03423714637756348,
-0.04250478371977806,
0.08859390020370483,
0.02546229213476181,
0.002684023231267929,
-0.020204143598675728,
-0.04649489000439644,
-0.048591386526823044,
-0.05410314351320267,
-0.013162280432879925,
-0.05484706163406372,
-0.019527854397892952,
0.04108457639813423,
0.033425599336624146,
-0.003370879450812936,
0.030077965930104256,
-0.03783838823437691,
-0.004408560693264008,
-0.03712828457355499,
-0.05819469317793846,
0.03073734976351261,
0.025056518614292145,
0.003914024215191603,
-0.000740748131647706,
0.007515264675021172,
0.028218170627951622,
0.004602994304150343,
-0.008749492466449738,
-0.015267230570316315,
-0.006779800169169903,
-0.0012162640923634171,
-0.011784341186285019,
0.07344501465559006,
-0.008161966688930988,
-0.013703311793506145,
0.029773635789752007,
0.02740662358701229,
-0.022723320871591568,
-0.04568334296345711,
0.00036456220550462604,
-0.04906478896737099,
0.07709698379039764,
0.013255270197987556,
0.0001350597303826362,
0.039901070296764374,
0.06025737524032593,
-0.035133227705955505,
0.01898682303726673,
0.022604970261454582,
-0.04592004418373108,
0.028387242928147316,
-0.0251917764544487,
0.036012403666973114,
0.013737126253545284,
0.015334860421717167,
0.02465074509382248,
0.0237546619027853,
0.010144339874386787,
-0.009045368991792202,
-0.0067882537841796875,
-0.015022075735032558,
0.01189423818141222,
-0.05393407121300697,
0.014185167849063873,
-0.01875012181699276,
-0.08210152387619019,
0.011057330295443535,
-0.027812397107481956,
-0.03229281306266785,
0.005144025664776564,
-0.1131431981921196,
-0.055590979754924774,
0.007739285938441753,
-0.04848994314670563,
-0.07581203430891037,
-0.07256583869457245,
0.012824135832488537,
-0.013965373858809471,
-0.04257241263985634,
-0.04761076718568802,
0.06945490837097168,
-0.003007374005392194,
0.013162280432879925,
-0.01707630418241024,
-0.005845675710588694,
0.034896526485681534,
0.04203138127923012,
-0.014007641933858395,
-0.01288331113755703,
0.02179342322051525,
-0.0003196523757651448,
-0.0693872794508934,
-0.047746025025844574,
-0.03908952325582504,
-0.03075425699353218,
0.006014748010784388,
0.04879427328705788,
0.033425599336624146,
0.00574845913797617,
0.03743261471390724,
0.09238111972808838,
-0.03892045095562935,
-0.004501550458371639,
-0.03366230055689812,
-0.01763424277305603,
-0.018581049516797066,
-0.042707670480012894,
0.0038442821241915226,
-0.0019823729526251554,
-0.009848463349044323,
0.02909734658896923,
-0.08920256048440933,
-0.005773819983005524,
-0.0073081511072814465,
-0.049673449248075485,
0.027322087436914444,
0.028742294758558273,
-0.04761076718568802,
0.020863525569438934,
-0.04666396230459213,
0.03996869921684265,
-0.05122891440987587,
-0.029063532128930092,
-0.005499077495187521,
0.030568275600671768,
0.04473653808236122,
-0.06076459214091301,
0.016425376757979393,
-0.004991860594600439,
0.0032947969157248735,
-0.04470272362232208,
0.07229532301425934,
0.007291243877261877,
-0.05741696059703827,
0.0078238220885396,
-0.05789036303758621,
-0.014151353389024734,
-0.0006445882609114051,
0.04906478896737099,
-0.003662529168650508,
-0.030314667150378227,
0.0037153642624616623,
0.07594729214906693,
0.047475509345531464,
0.05538809299468994,
0.06603965163230896,
-0.0000630058566457592,
0.03770313039422035,
0.049402933567762375,
0.005570933222770691,
-0.01732991263270378,
-0.07344501465559006,
-0.00827186368405819,
0.019223524257540703,
-0.03249569982290268,
-0.0553542785346508,
-0.017854036763310432,
-0.012925579212605953,
0.050518810749053955,
-0.0035103640984743834,
0.012959393672645092,
-0.0034871166571974754,
-0.024988889694213867,
-0.028049098327755928,
-0.0683390349149704,
0.010626195929944515,
-0.0902169942855835,
-0.042132824659347534,
0.0020341514609754086,
-0.016374655067920685,
-0.014185167849063873,
0.035741887986660004,
-0.018090737983584404,
-0.04199756681919098,
0.045412827283144,
-0.0592767558991909,
0.024414043873548508,
0.02887755259871483,
0.03379755839705467,
-0.062252432107925415,
0.04730643704533577,
0.043755918741226196,
-0.015444757416844368,
0.022706413641572,
-0.04608911648392677,
-0.03936003893613815,
-0.018834657967090607,
-0.009484957903623581,
-0.005655469372868538,
-0.07642069458961487,
0.004207787569612265,
0.02654435485601425,
-0.0044804164208471775,
-0.03604621812701225,
-0.07317449897527695,
-0.02520868368446827,
-0.02404208481311798,
0.003047528676688671,
0.02686559222638607,
-0.06330067664384842,
0.004856602754443884,
0.0009177456959150732,
-0.012976300902664661,
0.017270738258957863,
-0.014895271509885788,
-0.014455683529376984,
-0.027288272976875305,
-0.0689476951956749,
0.042673856019973755,
0.044601280242204666,
0.038785193115472794,
-0.08453616499900818,
-0.05464417487382889,
-0.07587966322898865,
-0.02040703035891056,
0.03217446431517601,
-0.011902691796422005,
0.04974107816815376,
0.005211654584854841,
0.05711263045668602,
0.032884567975997925,
-0.004607221111655235,
0.0204408448189497,
-0.001589279854670167,
0.0237546619027853,
0.09001410752534866,
0.04399261996150017,
-0.08135760575532913,
0.03689158335328102,
-0.039596740156412125,
0.05467798933386803,
-0.0245831161737442,
0.08521245419979095,
0.017803315073251724,
0.015765994787216187,
0.012671970762312412,
-0.0003777709789574146,
0.07445945590734482,
0.048523757606744766,
0.028725387528538704,
-0.0071517592296004295,
-0.006517738103866577,
-0.055590979754924774,
-0.0024726828560233116,
0.011454650200903416,
-0.013686404563486576,
-0.021996309980750084,
0.04064498841762543,
-0.027102293446660042,
0.006479696836322546,
-0.0019844863563776016,
0.03406807407736778,
-0.04848994314670563,
-0.03438930958509445,
0.015208055265247822,
0.047746025025844574,
-0.01824290305376053,
0.06448418647050858,
-0.03330724686384201,
0.0162140354514122,
-0.03699302673339844,
-0.013077744282782078,
0.010947433300316334,
0.025343941524624825,
0.04676540568470955,
0.06495758891105652,
-0.03564044460654259,
0.021759608760476112,
0.023010743781924248,
0.007828048430383205,
0.019206617027521133,
-0.02517486922442913,
0.022233011201024055,
-0.014041456393897533,
0.006281036883592606,
-0.012688877992331982,
-0.007971759885549545,
0.015360221266746521,
-0.061440885066986084,
0.021759608760476112,
-0.06718934327363968,
-0.03831179067492485,
-0.047678396105766296,
-0.00672062486410141,
-0.0305513683706522,
0.052513863891363144,
-0.014768467284739017,
-0.027575695887207985,
0.02598641626536846,
-0.034828897565603256,
-0.000009402997420693282,
-0.03276621550321579,
0.01925733871757984,
0.0212692990899086,
-0.04730643704533577,
0.003480776445940137,
0.03864993527531624,
-0.06157614290714264,
-0.034017350524663925,
-0.009425782598555088,
0.03388209268450737,
0.014760013669729233,
-0.006843202281743288,
-0.06448418647050858,
-0.006809387821704149,
-0.062252432107925415,
0.013398981653153896,
0.04037447273731232,
0.007506811060011387,
0.04527756944298744,
-0.032630957663059235,
0.08304832875728607,
-0.000607603695243597,
0.051059842109680176,
0.09380132704973221,
-0.03604621812701225,
-0.018040016293525696,
0.0693872794508934,
-0.006881243549287319,
-0.03885282203555107,
0.038480862975120544,
-0.016662077978253365,
-0.020880432799458504,
-0.0065092844888567924,
-0.023146001622080803,
-0.05072169750928879,
-0.026797963306307793,
0.03415260836482048,
0.0007111604791134596,
0.09535679221153259,
0.07547388970851898,
0.03672250732779503,
0.008060523308813572,
0.050282109528779984,
0.0464610755443573,
-0.0037639725487679243,
-0.0032102607656270266,
-0.000030578314181184396,
-0.014582487754523754,
-0.013238362967967987,
-0.020863525569438934,
0.008174646645784378,
0.03053446114063263,
0.005237015429884195,
-0.04365447536110878,
0.03195466846227646,
-0.024244971573352814,
-0.009197534993290901,
-0.05396788567304611,
-0.017566613852977753,
0.004104230552911758,
0.004152839072048664,
0.01651836559176445,
0.022452805191278458,
0.03743261471390724,
0.06052789092063904,
-0.059175312519073486,
-0.0204408448189497,
-0.03608003258705139,
0.02094806171953678,
-0.04889571666717529,
-0.10313411802053452,
-0.03885282203555107,
0.007029181811958551,
-0.02355177514255047,
-0.008432482369244099,
0.006111964583396912,
-0.004231034778058529,
0.0396643690764904,
-0.05173613131046295,
-0.05488087609410286,
-0.026662705466151237,
0.0375678725540638,
0.02130311354994774,
-0.02884373813867569,
-0.011801248416304588,
-0.025665178894996643,
0.0114631038159132,
0.034609105437994,
-0.005740005522966385,
0.02574971504509449,
0.004953819327056408,
0.002172579290345311,
-0.03361157700419426,
-0.07574440538883209,
0.04737406596541405,
0.010102071799337864,
0.0014106972375884652,
0.02213156782090664,
-0.013542693108320236,
-0.03712828457355499,
-0.019680019468069077,
0.05237860605120659,
0.056436341255903244,
-0.01216475386172533,
-0.01524186972528696,
-0.08257492631673813,
-0.013813208788633347,
-0.0067037176340818405,
0.02407589927315712,
-0.022774042561650276,
-0.001481496263295412,
-0.00276644597761333,
-0.015765994787216187,
-0.0251917764544487,
0.03699302673339844,
0.02152290754020214,
0.014793828129768372,
0.01509815827012062,
0.015470118261873722,
0.003749178722500801,
-0.010118979029357433,
-0.014853003434836864,
0.027812397107481956,
0.04737406596541405,
-0.026493633165955544,
-0.003956292290240526,
-0.004695984069257975,
0.008901657536625862,
0.024228064343333244,
0.01925733871757984,
0.009966813959181309,
-0.0034744362346827984,
0.00031833149841986597,
0.02121857739984989,
0.04233571141958237,
0.04703592136502266,
-0.04050973057746887,
0.021725794300436974,
-0.01844579167664051,
0.039021894335746765,
0.017262283712625504,
0.015224962495267391,
0.04903097450733185,
-0.007434955332428217,
-0.054204586893320084,
-0.0059893871657550335,
-0.01243526954203844,
-0.03692539781332016,
0.011395474895834923,
0.07554151862859726,
0.029773635789752007,
0.00837753340601921,
0.0008464183192700148,
-0.014075270853936672,
0.022824764251708984,
0.026426004245877266,
-0.03533611446619034,
-0.06316541880369186,
-0.002415620954707265,
0.016323933377861977,
0.03241116553544998,
-0.04700210690498352,
0.053021080791950226,
-0.058059435337781906,
-0.08338647335767746,
0.008834028616547585,
0.008635369129478931,
0.010567020624876022,
0.03166724741458893,
-0.03241116553544998,
-0.022571155801415443,
-0.0046579428017139435,
0.05014685168862343,
-0.072701096534729,
0.05849902331829071,
-0.019984349608421326,
-0.0003415789396967739,
-0.06560005992650986,
0.021607443690299988,
0.03722972795367241,
0.05170231685042381,
-0.049977779388427734,
-0.016898779198527336,
0.06881243735551834,
-0.009848463349044323,
-0.012714238837361336,
0.004560725763440132,
0.012824135832488537,
0.02659507654607296,
-0.0024621158372610807,
0.009823102504014969,
0.010009082034230232,
-0.016983315348625183,
-0.000276063394267112,
0.03134600818157196,
0.0198321845382452,
-0.03197157755494118,
-0.006517738103866577,
0.04673159122467041,
-0.06157614290714264,
0.010110525414347649,
-0.019916720688343048,
0.044364579021930695,
0.03339178487658501,
-0.008876296691596508,
0.016146406531333923,
-0.07696172595024109,
0.013990734703838825,
0.0017985068261623383,
0.042369525879621506,
-0.03215755522251129,
0.0373988002538681,
-0.01328063104301691,
-0.02689940668642521,
0.04362066090106964,
0.04534519836306572,
0.025546828284859657,
0.00880866777151823,
0.001553351990878582,
0.009484957903623581,
-0.0003481833264231682,
0.033121269196271896,
-0.02798146940767765,
0.009442689828574657,
0.0235348679125309,
-0.04987633600831032,
-0.046562518924474716,
0.07527100294828415,
0.0015818829415366054,
0.002996806986629963,
-0.01299320813268423,
-0.01846269890666008,
0.04105076193809509,
-0.04304581508040428,
0.010262690484523773,
0.013770940713584423,
-0.014151353389024734,
0.013305991888046265,
0.043755918741226196,
0.0021915999241173267,
-0.002341651823371649,
0.049639634788036346,
0.04899716004729271,
0.023839198052883148,
-0.06566768884658813,
0.00923134945333004,
-0.0026924768462777138,
0.023348888382315636,
-0.03472745418548584,
0.0007587120635434985,
0.016078777611255646,
-0.049402933567762375,
0.04953819140791893,
0.018141459673643112,
-0.012824135832488537,
-0.02348414622247219,
-0.008656502701342106,
0.032918382436037064,
0.014624755829572678,
-0.0028847965877503157,
0.044195506721735,
-0.023856105282902718,
-0.041862308979034424,
-0.030416110530495644,
-0.03249569982290268,
-0.01189423818141222,
-0.0009584287763573229,
0.01187733095139265,
0.05518520623445511,
-0.006374026648700237,
0.0029059306252747774,
-0.03357776254415512,
0.03523467108607292,
0.04960582032799721,
-0.014371147379279137,
-0.025648271664977074,
0.03614766150712967,
-0.008893203921616077,
0.002354332245886326,
-0.07689409703016281,
-0.041828494518995285,
-0.03433858975768089,
0.014438776299357414,
-0.06945490837097168,
0.08433327823877335,
-0.04957200586795807,
0.016400014981627464,
-0.019967442378401756,
-0.0019485586090013385,
0.042099010199308395,
0.03797364607453346,
0.040408287197351456,
-0.003954179119318724,
0.005401860922574997,
-0.02711920067667961,
-0.0007492017466574907,
-0.051093656569719315,
-0.01790475845336914,
-0.005042582284659147,
0.04003632813692093,
0.002265569055452943,
-0.0033920134883373976,
-0.08615925908088684,
0.007895677350461483,
-0.003132064826786518,
0.02018723636865616,
-0.016721252351999283,
-0.016898779198527336,
0.03888663649559021,
-0.025868065655231476,
-0.053021080791950226,
-0.02434641495347023,
0.03166724741458893,
0.04920004680752754,
-0.04172705113887787,
-0.009561040438711643,
0.006678356789052486,
-0.014793828129768372,
0.013229909352958202,
-0.017135480418801308,
0.013060837052762508,
0.031109308823943138,
0.011403928510844707,
-0.01709321141242981,
-0.034051164984703064,
-0.006551552563905716,
-0.07716461271047592,
0.004374746233224869,
-0.03557281568646431,
0.011674444191157818,
0.011868877336382866,
0.09427472949028015,
0.06448418647050858,
-0.02551301382482052,
-0.030416110530495644,
0.017262283712625504,
0.04588622972369194,
0.0297229140996933,
0.02013651467859745,
0.06353738158941269,
-0.0014899498783051968,
-0.004518457688391209,
0.029570749029517174,
0.012697331607341766,
-0.0044677359983325005,
0.015444757416844368,
0.02547919936478138,
-0.01524186972528696,
0.01956166885793209,
0.024498580023646355,
-0.015301045030355453,
-0.04422932118177414,
-0.0032926835119724274,
-0.009189081378281116,
-0.004068302921950817,
-0.03271549567580223,
0.025377755984663963,
-0.02155672200024128,
0.003070776117965579,
0.009417328983545303,
0.06904913485050201,
-0.04612293094396591,
0.034541476517915726,
0.016898779198527336,
0.01622248999774456,
-0.06614109128713608,
0.024414043873548508,
0.04723880812525749,
0.015191148035228252,
0.014497951604425907,
0.018665585666894913,
-0.0016283778240904212,
0.0074899038299918175,
-0.023027651011943817,
-0.007058769464492798,
0.016450736671686172,
-0.0363505482673645,
-0.026155488565564156,
-0.00827186368405819,
0.005769593175500631,
-0.0074180481024086475,
-0.047475509345531464,
-0.02995961531996727,
0.0414903499186039,
0.012604341842234135,
-0.004013354424387217,
0.038176532834768295,
0.01552083995193243
] |
721,992
|
apprise.config.base
|
_special_token_handler
|
This function takes a list of tokens and updates them to no longer
include any special tokens such as +,-, and :
- schema must be a valid schema of a supported plugin type
- tokens must be a dictionary containing the yaml entries parsed.
The idea here is we can post process a set of tokens provided in
a YAML file where the user provided some of the special keywords.
We effectivley look up what these keywords map to their appropriate
value they're expected
|
@staticmethod
def _special_token_handler(schema, tokens):
"""
This function takes a list of tokens and updates them to no longer
include any special tokens such as +,-, and :
- schema must be a valid schema of a supported plugin type
- tokens must be a dictionary containing the yaml entries parsed.
The idea here is we can post process a set of tokens provided in
a YAML file where the user provided some of the special keywords.
We effectivley look up what these keywords map to their appropriate
value they're expected
"""
# Create a copy of our dictionary
tokens = tokens.copy()
for kw, meta in N_MGR[schema].template_kwargs.items():
# Determine our prefix:
prefix = meta.get('prefix', '+')
# Detect any matches
matches = \
{k[1:]: str(v) for k, v in tokens.items()
if k.startswith(prefix)}
if not matches:
# we're done with this entry
continue
if not isinstance(tokens.get(kw), dict):
# Invalid; correct it
tokens[kw] = dict()
# strip out processed tokens
tokens = {k: v for k, v in tokens.items()
if not k.startswith(prefix)}
# Update our entries
tokens[kw].update(matches)
# Now map our tokens accordingly to the class templates defined by
# each service.
#
# This is specifically used for YAML file parsing. It allows a user to
# define an entry such as:
#
# urls:
# - mailto://user:pass@domain:
# - to: user1@hotmail.com
# - to: user2@hotmail.com
#
# Under the hood, the NotifyEmail() class does not parse the `to`
# argument. It's contents needs to be mapped to `targets`. This is
# defined in the class via the `template_args` and template_tokens`
# section.
#
# This function here allows these mappings to take place within the
# YAML file as independant arguments.
class_templates = plugins.details(N_MGR[schema])
for key in list(tokens.keys()):
if key not in class_templates['args']:
# No need to handle non-arg entries
continue
# get our `map_to` and/or 'alias_of' value (if it exists)
map_to = class_templates['args'][key].get(
'alias_of', class_templates['args'][key].get('map_to', ''))
if map_to == key:
# We're already good as we are now
continue
if map_to in class_templates['tokens']:
meta = class_templates['tokens'][map_to]
else:
meta = class_templates['args'].get(
map_to, class_templates['args'][key])
# Perform a translation/mapping if our code reaches here
value = tokens[key]
del tokens[key]
# Detect if we're dealign with a list or not
is_list = re.search(
r'^list:.*',
meta.get('type'),
re.IGNORECASE)
if map_to not in tokens:
tokens[map_to] = [] if is_list \
else meta.get('default')
elif is_list and not isinstance(tokens.get(map_to), list):
# Convert ourselves to a list if we aren't already
tokens[map_to] = [tokens[map_to]]
# Type Conversion
if re.search(
r'^(choice:)?string',
meta.get('type'),
re.IGNORECASE) \
and not isinstance(value, str):
# Ensure our format is as expected
value = str(value)
# Apply any further translations if required (absolute map)
# This is the case when an arg maps to a token which further
# maps to a different function arg on the class constructor
abs_map = meta.get('map_to', map_to)
# Set our token as how it was provided by the configuration
if isinstance(tokens.get(map_to), list):
tokens[abs_map].append(value)
else:
tokens[abs_map] = value
# Return our tokens
return tokens
|
(schema, tokens)
|
[
0.06984513252973557,
-0.044129423797130585,
0.006800970993936062,
-0.02410847507417202,
-0.01489169616252184,
0.01869150996208191,
0.017788682132959366,
0.0011310148984193802,
0.031926367431879044,
-0.03273990377783775,
0.024386268109083176,
0.030537402257323265,
-0.010298187844455242,
-0.019673706963658333,
-0.03589484095573425,
0.004065204877406359,
0.021092435345053673,
0.07171031087636948,
0.020993223413825035,
-0.05420934408903122,
0.019227253273129463,
0.012857853434979916,
0.0287912730127573,
0.012371715158224106,
0.01859229803085327,
-0.017233096063137054,
-0.002171498956158757,
-0.03674806281924248,
0.0025050987023860216,
-0.056352321058511734,
-0.03414871171116829,
-0.03002149984240532,
0.04321667551994324,
0.03920851647853851,
0.008854655548930168,
-0.12072096019983292,
-0.0003534421557560563,
0.07802018523216248,
-0.06794026494026184,
0.0010547457495704293,
0.02644987404346466,
-0.016082238405942917,
-0.029188120737671852,
-0.035795629024505615,
0.017600178718566895,
0.054328400641679764,
-0.028275372460484505,
0.0901637151837349,
-0.02944607101380825,
-0.0357559435069561,
0.04722483083605766,
-0.09286227822303772,
-0.007837735116481781,
0.014455163851380348,
-0.027064988389611244,
0.03351375833153725,
-0.012064158916473389,
0.05992394685745239,
-0.004298352636396885,
0.018185527995228767,
0.029584968462586403,
0.0646861121058464,
-0.02379099652171135,
0.004367800895124674,
0.03559720516204834,
-0.006007276475429535,
0.0061610545963048935,
-0.0298429187387228,
0.006572783924639225,
0.01553657278418541,
0.00018261178047396243,
-0.07365486025810242,
0.0007850136025808752,
-0.009013394825160503,
0.07528194040060043,
-0.04643113911151886,
-0.034962248057127,
-0.012947143986821175,
0.0216877069324255,
0.017371991649270058,
-0.04230392351746559,
-0.0252394899725914,
-0.012937222607433796,
-0.02555696852505207,
0.058534979820251465,
0.008810010738670826,
0.014514691196382046,
-0.02684672176837921,
-0.011022434569895267,
0.008586783893406391,
-0.06369399279356003,
-0.02992228791117668,
-0.015000828541815281,
0.028910327702760696,
-0.022878248244524002,
-0.01100259181112051,
0.006929946597665548,
-0.02500138245522976,
-0.03720443695783615,
0.012341951951384544,
0.07583752274513245,
0.022362347692251205,
-0.05162983760237694,
-0.025755392387509346,
0.050518665462732315,
-0.043811943382024765,
-0.06873396039009094,
0.023572731763124466,
0.0041693770326673985,
0.013125725090503693,
-0.07381360232830048,
-0.06698782742023468,
-0.024148160591721535,
0.033216122537851334,
0.01674695685505867,
-0.03049771673977375,
-0.02978339232504368,
0.05313785746693611,
-0.012411399744451046,
-0.02087416872382164,
0.014772641472518444,
-0.024564849212765694,
-0.034168556332588196,
0.002678719349205494,
-0.020735273137688637,
-0.01861213892698288,
0.05460619181394577,
0.008576862514019012,
0.03918867185711861,
-0.027779312804341316,
-0.030775509774684906,
0.037978287786245346,
-0.040081579238176346,
-0.03273990377783775,
0.03202557936310768,
-0.04002205282449722,
-0.03008102811872959,
0.027382465079426765,
-0.06266219168901443,
0.05897151306271553,
0.061035118997097015,
0.00449677649885416,
-0.02799757942557335,
-0.0554792545735836,
-0.08611586689949036,
-0.048336002975702286,
0.02579507604241371,
0.08083780109882355,
-0.015139725990593433,
-0.029148437082767487,
-0.000947472988627851,
-0.00042010011384263635,
0.01217329129576683,
0.03016039729118347,
-0.00033297971822321415,
0.03615279123187065,
0.003646034747362137,
0.008115528151392937,
-0.05786034092307091,
-0.006508296355605125,
0.030219923704862595,
-0.0368075892329216,
-0.036371055990457535,
-0.0033087146002799273,
0.02232266217470169,
0.000824698363430798,
0.08349667489528656,
-0.06544012576341629,
0.0074260057881474495,
0.01326462160795927,
-0.043653205037117004,
0.01695530116558075,
-0.0013864852953702211,
0.07329770177602768,
0.0517885759472847,
0.0673053041100502,
-0.018919697031378746,
-0.012302267365157604,
0.003603869816288352,
0.008437965996563435,
-0.02026897668838501,
0.03025960922241211,
-0.03613295033574104,
-0.0644083246588707,
0.020933697000145912,
0.0283944271504879,
0.03956567868590355,
0.042184870690107346,
-0.03754175826907158,
0.023255253210663795,
0.0004328116192482412,
-0.04821695014834404,
0.03682743012905121,
0.043891314417123795,
-0.018383951857686043,
0.03291848674416542,
-0.05960647016763687,
-0.0002041593543253839,
0.00866119284182787,
0.018552612513303757,
-0.050836142152547836,
-0.015427439473569393,
0.005511217284947634,
0.010169212706387043,
-0.009206857532262802,
0.007624429184943438,
0.04361351951956749,
0.02702530287206173,
-0.0628209337592125,
-0.03327564895153046,
-0.006557901855558157,
-0.04789947345852852,
-0.002397205913439393,
0.02460453473031521,
0.016816405579447746,
-0.05500303953886032,
0.07849640399217606,
0.04504217207431793,
-0.08579839020967484,
0.0022335064131766558,
0.10460895299911499,
0.026489559561014175,
0.004583586473017931,
-0.0025968695990741253,
0.037006013095378876,
0.016498927026987076,
0.022342504933476448,
-0.01258006040006876,
-0.0202491357922554,
0.013463045470416546,
0.03599405288696289,
-0.057542864233255386,
0.007192858029156923,
0.07294053584337234,
0.06377336382865906,
-0.05829687416553497,
0.07925041019916534,
-0.04782010242342949,
0.05905088409781456,
0.05857466533780098,
-0.020755115896463394,
0.01782836578786373,
-0.022183764725923538,
-0.019098278135061264,
0.015635784715414047,
0.02490217052400112,
0.0017758917529135942,
-0.01977291889488697,
0.02087416872382164,
-0.002909386996179819,
0.012341951951384544,
0.022937774658203125,
-0.0012680512154474854,
0.047383569180965424,
-0.054169658571481705,
-0.041470546275377274,
0.010863695293664932,
0.005997355096042156,
0.025676021352410316,
-0.025219647213816643,
-0.0173521488904953,
0.019842365756630898,
0.018284739926457405,
0.02387036755681038,
0.02605302631855011,
-0.013155489228665829,
0.02960481122136116,
-0.006151133682578802,
-0.03317643702030182,
-0.003985835239291191,
0.0023252773098647594,
0.02579507604241371,
-0.04037921503186226,
0.02142975479364395,
-0.003115251427516341,
0.026747509837150574,
0.019276859238743782,
-0.004085047170519829,
-0.012709035538136959,
-0.04333572834730148,
0.003105330280959606,
-0.04448658600449562,
0.016449321061372757,
-0.016022710129618645,
0.06893238425254822,
-0.002090889262035489,
0.0014832168817520142,
0.05349501967430115,
0.03357328474521637,
0.00695970980450511,
-0.02516012080013752,
-0.022223450243473053,
0.04035937413573265,
0.004935788456350565,
0.015427439473569393,
0.010486690327525139,
-0.0967513769865036,
-0.007435926701873541,
0.009107646532356739,
-0.0833379402756691,
0.012520533055067062,
0.007044040132313967,
0.02144959755241871,
-0.021290859207510948,
0.005625310819596052,
0.017500966787338257,
0.028136475011706352,
-0.017788682132959366,
0.0796472579240799,
-0.029426230117678642,
-0.00010603264672681689,
0.001772171352058649,
-0.008998513221740723,
-0.007981591857969761,
-0.03275974839925766,
0.020358268171548843,
-0.003886623540893197,
0.023195726796984673,
0.07115472853183746,
0.05274100974202156,
-0.01250069122761488,
0.00513421231880784,
-0.03204542025923729,
0.022858405485749245,
0.06385273486375809,
-0.028751589357852936,
-0.022858405485749245,
-0.02944607101380825,
0.04190707951784134,
-0.03859340399503708,
-0.01740175485610962,
-0.026588771492242813,
-0.03678774833679199,
-0.013006671331822872,
-0.05924930423498154,
-0.05162983760237694,
-0.017282700166106224,
-0.0058237346820533276,
-0.030458033084869385,
-0.04603429138660431,
0.0273427814245224,
-0.0019259497057646513,
-0.04595492035150528,
0.023592574521899223,
0.004603428766131401,
-0.02597365714609623,
0.0023488400038331747,
-0.007386320736259222,
0.03940694034099579,
0.0023463598918169737,
0.0067067197524011135,
-0.05536020174622536,
0.08540154248476028,
0.02029873989522457,
0.08976686745882034,
-0.08889380097389221,
0.010685114189982414,
-0.029426230117678642,
0.007931985892355442,
-0.0283944271504879,
0.05512209236621857,
-0.03853387385606766,
-0.011062119156122208,
0.024326741695404053,
0.027957893908023834,
-0.03246211260557175,
0.006359478458762169,
-0.008100645616650581,
0.06278124451637268,
-0.022441716864705086,
0.03696632757782936,
0.004784490447491407,
0.012728878296911716,
-0.054804615676403046,
-0.004739845171570778,
-0.011230779811739922,
0.0035393820144236088,
0.045835867524147034,
-0.09286227822303772,
0.0014956183731555939,
0.04726451635360718,
0.06266219168901443,
0.02670782431960106,
0.0702022910118103,
-0.008105606772005558,
-0.027124514803290367,
-0.0015787082957103848,
0.04091496020555496,
0.05516177788376808,
0.03738301992416382,
-0.0016568376449868083,
-0.006299951113760471,
-0.023473519831895828,
-0.017620021477341652,
-0.028037263080477715,
-0.017163647338747978,
-0.06444800645112991,
-0.01806647516787052,
-0.019227253273129463,
-0.020596375688910484,
0.034109026193618774,
-0.042026132345199585,
0.03591468185186386,
0.008274266496300697,
0.021866288036108017,
-0.009182055480778217,
0.0298429187387228,
0.06377336382865906,
-0.019395913928747177,
0.12834042310714722,
-0.021390071138739586,
-0.04305793344974518,
0.03754175826907158,
-0.06262250989675522,
-0.032065264880657196,
-0.048415374010801315,
0.004779530223459005,
0.06801962852478027,
-0.030636614188551903,
-0.008586783893406391,
-0.023830682039260864,
-0.03315659239888191,
0.045835867524147034,
-0.004697680007666349,
-0.000012934355254401453,
0.014861932024359703,
-0.043891314417123795,
-0.07242463529109955,
-0.0488915890455246,
0.005421926733106375,
-0.02789836749434471,
-0.03258116543292999,
-0.0394466258585453,
-0.052463214844465256,
0.03210495039820671,
-0.026727667078375816,
0.014137686230242252,
-0.05226479470729828,
0.0312914103269577,
0.028275372460484505,
-0.022263135761022568,
0.046947039663791656,
0.05155046656727791,
0.04341509938240051,
0.007168055046349764,
-0.0016878412570804358,
-0.07706774771213531,
-0.01431626733392477,
0.022183764725923538,
-0.021390071138739586,
-0.05702695995569229,
0.035378940403461456,
0.006647192873060703,
-0.005550901871174574,
0.05242353305220604,
-0.057542864233255386,
0.024207687005400658,
0.0050846063531935215,
0.0006498374859802425,
0.018344268202781677,
0.03146999329328537,
-0.02402910590171814,
-0.014147607609629631,
0.049724970012903214,
-0.006592626217752695,
0.03883150964975357,
0.01419721357524395,
0.025338701903820038,
-0.04877253621816635,
-0.016498927026987076,
0.01635010913014412,
-0.0054566506296396255,
-0.0022285457234829664,
-0.0029862760566174984,
-0.07016260921955109,
0.03877198323607445,
0.06512264907360077,
-0.032164476811885834,
-0.06123354285955429,
-0.014256739988923073,
0.04730420187115669,
-0.03460508584976196,
0.008805050514638424,
0.004928347654640675,
-0.026271292939782143,
-0.0072325426153838634,
0.08317919820547104,
-0.06262250989675522,
-0.013155489228665829,
0.011905419640243053,
-0.04369289055466652,
-0.01265942957252264,
0.057066645473241806,
-0.010556139051914215,
-0.026747509837150574,
-0.02023921348154545,
0.0034228081349283457,
0.03065645508468151,
0.033374860882759094,
-0.04135148972272873,
-0.005149093922227621,
-0.032164476811885834,
-0.006081685423851013,
-0.015179410576820374,
0.07456761598587036,
-0.03389076143503189,
-0.023195726796984673,
0.054725244641304016,
-0.05135204270482063,
-0.014018631540238857,
-0.02873174659907818,
-0.030061185359954834,
0.061431966722011566,
-0.005104448646306992,
-0.0009040678269229829,
0.008373478427529335,
-0.02152896672487259,
0.03381139039993286,
-0.00693490682169795,
0.003641074290499091,
-0.02902938239276409,
0.0058038923889398575,
0.01245108526200056,
0.010566060431301594,
0.013621784746646881,
0.03730364888906479,
-0.02718404121696949,
-0.001974315382540226,
0.006146172992885113,
-0.002812655409798026,
0.013730917125940323,
-0.026231607422232628,
0.003400485496968031,
-0.024088632315397263,
-0.011111725121736526,
0.08246487379074097,
0.027303095906972885,
-0.03859340399503708,
0.02968418039381504,
0.04909001290798187,
0.016121922060847282,
0.012649508193135262,
-0.060717642307281494,
-0.027124514803290367,
0.00007936946349218488,
0.012996749952435493,
-0.03650995343923569,
-0.011538336053490639,
-0.04309761896729469,
-0.007892301306128502,
-0.02960481122136116,
-0.015288542956113815,
0.0011217137798666954,
0.05960647016763687,
-0.0074607296846807,
-0.021013066172599792,
-0.018185527995228767,
0.019971340894699097,
0.045756496489048004,
0.034109026193618774,
0.0010324231116101146,
0.03478366881608963,
-0.0428595095872879,
0.013691232539713383,
-0.021330544725060463,
0.007748444098979235,
-0.04710577800869942,
0.022104395553469658,
-0.04702640697360039,
0.055876102298498154,
0.01549688819795847,
-0.05226479470729828,
0.02135038562119007,
-0.021905971691012383,
-0.030219923704862595,
0.030795352533459663,
0.04920906946063042,
0.03398997336626053,
0.029108751565217972,
-0.044685009866952896,
0.008264346048235893,
0.0546855628490448,
-0.015566335991024971,
-0.025517283007502556,
0.0241878442466259,
0.019653864204883575,
0.022858405485749245,
0.03557736426591873,
0.03307722508907318,
0.016687430441379547,
-0.052463214844465256,
0.0617891289293766,
-0.007138291373848915,
0.009435045532882214,
-0.026727667078375816,
0.025914130732417107,
0.053018804639577866,
-0.0019408314255997539,
0.005863419268280268,
-0.026271292939782143,
-0.0394267812371254,
-0.015248858369886875,
0.02363225817680359,
-0.01819545030593872,
0.05579673498868942,
-0.012292345985770226,
0.014008711092174053,
-0.038077499717473984,
-0.012718956917524338,
0.004531500395387411,
0.01314556784927845,
-0.023890208452939987,
0.06202723830938339,
0.037343334406614304,
-0.008051040582358837,
0.0036286727990955114,
-0.003961032256484032,
-0.0035195397213101387,
0.05397123470902443,
-0.02087416872382164,
-0.03593452647328377,
-0.009583862498402596,
-0.04940749332308769,
0.016181450337171555,
-0.03327564895153046,
0.008437965996563435,
-0.012302267365157604,
-0.012847932055592537,
-0.05567767843604088,
-0.01614176481962204,
0.00035282206954434514,
-0.006533099338412285,
0.020070552825927734,
-0.03454555943608284,
-0.03633137419819832,
0.047939155250787735,
0.011955025605857372,
-0.022144081071019173,
-0.004638153128325939,
-0.028374584391713142,
-0.02137022837996483,
-0.0899256020784378,
-0.034426506608724594,
0.024168001487851143,
-0.037581440061330795,
0.010149369947612286,
0.0004473833541851491,
-0.027481677010655403,
0.04730420187115669,
0.06115417182445526,
0.026330819353461266,
0.09992615878582001,
-0.046947039663791656,
0.052860062569379807,
-0.03002149984240532,
0.022263135761022568,
-0.038950566202402115,
0.0006659594364464283,
0.039109304547309875,
-0.011240700259804726,
-0.03091440722346306,
-0.004491815809160471,
0.014375794678926468,
-0.0344463475048542,
-0.05873340368270874,
-0.026489559561014175,
0.036430586129426956,
0.025179963558912277,
0.029088908806443214,
0.04682798311114311,
0.024148160591721535,
-0.06611476838588715,
0.013939262367784977,
-0.03906961902976036,
0.007495454046875238,
-0.01889985427260399,
0.06377336382865906,
-0.0024207686074078083,
-0.02768010087311268,
-0.011835971847176552,
0.01942567713558674,
-0.02863253466784954,
-0.0061610545963048935,
0.0326010063290596,
-0.05405060574412346,
0.038712456822395325,
0.04158959910273552,
0.004057764075696468,
0.014187292195856571,
-0.01484209019690752,
0.008755444549024105,
0.019911814481019974,
0.0113696763291955,
0.0012785925064235926,
-0.0344463475048542,
0.013502730056643486,
-0.07171031087636948,
-0.06496390700340271,
0.015298464335501194,
-0.01039739977568388,
0.0184037946164608,
-0.054566506296396255,
0.004831616301089525,
-0.048574112355709076,
-0.023156041279435158,
-0.010506533086299896,
0.00625034561380744,
-0.047621678560972214,
0.00980708934366703,
0.0381171852350235,
0.028830958530306816,
0.025854602456092834,
0.08468721807003021,
-0.030398504808545113,
0.0038643009029328823,
-0.05361407250165939,
-0.021806759759783745,
0.05341564863920212,
0.0615113340318203,
0.006448769010603428,
0.022600455209612846,
0.001339359674602747,
0.043494466692209244,
0.01540759764611721,
0.022144081071019173,
-0.0018044151365756989,
-0.019921734929084778,
-0.04543901979923248,
0.015784602612257004,
-0.02589428797364235,
-0.005575704853981733,
0.045478705316782,
-0.07159125804901123,
0.004853938706219196,
-0.00811056699603796,
-0.05476493015885353,
-0.004412446171045303,
-0.04579618200659752,
-0.027164200320839882,
0.06821805238723755,
-0.01859229803085327,
0.03639090061187744,
-0.020358268171548843,
0.04754231125116348,
0.007554980926215649,
0.0005459751118905842,
0.04341509938240051,
0.04539933428168297,
-0.015278622508049011,
0.062344714999198914,
-0.0040081581100821495,
0.0339106023311615,
-0.0636146292090416,
-0.02039795182645321,
-0.009117566980421543,
0.00010300978465238586,
0.03980378806591034,
-0.02250124327838421,
-0.052145738154649734,
-0.029882604256272316,
-0.004226423799991608,
-0.0194554403424263,
-0.02265998162329197,
0.028136475011706352,
0.09460840374231339,
-0.0011297747259959579,
0.010000552982091904,
0.027402307838201523
] |
721,993
|
apprise.config.base
|
config_parse
|
Takes the specified config content and loads it based on the specified
config_format. If a format isn't specified, then it is auto detected.
|
@staticmethod
def config_parse(content, asset=None, config_format=None, **kwargs):
"""
Takes the specified config content and loads it based on the specified
config_format. If a format isn't specified, then it is auto detected.
"""
if config_format is None:
# Detect the format
config_format = ConfigBase.detect_config_format(content)
if not config_format:
# We couldn't detect configuration
ConfigBase.logger.error('Could not detect configuration')
return (list(), list())
if config_format not in common.CONFIG_FORMATS:
# Invalid configuration type specified
ConfigBase.logger.error(
'An invalid configuration format ({}) was specified'.format(
config_format))
return (list(), list())
# Dynamically load our parse_ function based on our config format
fn = getattr(ConfigBase, 'config_parse_{}'.format(config_format))
# Execute our config parse function which always returns a list
return fn(content=content, asset=asset)
|
(content, asset=None, config_format=None, **kwargs)
|
[
0.03494860231876373,
-0.06295135617256165,
0.001539968536235392,
-0.05830860137939453,
-0.018388230353593826,
0.06050202623009682,
0.020819278433918953,
0.007672424893826246,
-0.023780403658747673,
-0.029538150876760483,
0.01698078028857708,
0.032060589641332626,
-0.032517556101083755,
-0.013855147175490856,
0.0008533801883459091,
0.0013663222780451179,
-0.010665538720786572,
0.0518745481967926,
0.00046895924606360495,
-0.02798447199165821,
-0.010976274497807026,
-0.020362313836812973,
-0.015079810284078121,
0.026540465652942657,
0.04606196656823158,
0.01848876103758812,
0.06708230823278427,
-0.04240625351667404,
-0.02125796303153038,
-0.012310609221458435,
0.0018289982108399272,
0.019229043275117874,
-0.00930835586041212,
0.03944512829184532,
-0.03546040132641792,
-0.012465977109968662,
0.0027372140903025866,
0.07603880017995834,
-0.07278522104024887,
0.030415520071983337,
-0.0007831219700165093,
-0.05139930546283722,
0.06507166475057602,
-0.021678369492292404,
-0.04127298295497894,
0.047268353402614594,
-0.056042060256004333,
0.04887686297297478,
-0.0928550735116005,
-0.047451138496398926,
0.025279246270656586,
-0.0011418387293815613,
-0.03482065349817276,
0.04770703613758087,
-0.01840650849044323,
0.010135460644960403,
0.02290303260087967,
0.06207398325204849,
0.07852468639612198,
0.06847147643566132,
0.013891704380512238,
0.0290629081428051,
0.018315115943551064,
0.020362313836812973,
-0.0282038152217865,
-0.028679057955741882,
-0.030415520071983337,
-0.03140256181359291,
-0.044709354639053345,
0.006731078960001469,
0.01754741556942463,
-0.013069169595837593,
-0.028587665408849716,
-0.03812907263636589,
0.05161864683032036,
-0.04152888432145119,
-0.029373643919825554,
0.07552700489759445,
0.017446883022785187,
0.05139930546283722,
0.00017793034203350544,
0.05340994894504547,
-0.025663096457719803,
-0.03619154542684555,
0.05516468733549118,
-0.07742797583341599,
-0.0150980893522501,
-0.01296863704919815,
0.03624638170003891,
0.040212828665971756,
-0.014284693636000156,
-0.02553514577448368,
0.028642499819397926,
0.012612204998731613,
-0.05004669353365898,
0.027253329753875732,
-0.0030936459079384804,
-0.020928949117660522,
0.018534457311034203,
-0.002241408219560981,
-0.0020015020854771137,
0.019978463649749756,
-0.06594903767108917,
-0.08356957137584686,
0.009879561141133308,
-0.07830534130334854,
-0.02632112428545952,
0.014970139600336552,
-0.01800438016653061,
0.0316401831805706,
-0.012310609221458435,
-0.05940531566739082,
-0.03202403336763382,
0.022482626140117645,
0.0450018085539341,
-0.020033299922943115,
0.01002578902989626,
0.00144971814006567,
-0.030872484669089317,
-0.009504850022494793,
-0.017775898799300194,
0.02529752440750599,
-0.007082941476255655,
0.025260968133807182,
0.08027942478656769,
-0.004391423426568508,
-0.022190170362591743,
-0.06569314002990723,
0.0655469074845314,
0.007818653248250484,
0.060428913682699203,
0.02513301745057106,
-0.01641414500772953,
-0.07823222875595093,
0.037068914622068405,
-0.04119987040758133,
-0.036502279341220856,
-0.007777526509016752,
-0.04397821053862572,
0.023049261420965195,
0.052349790930747986,
0.009824724867939949,
0.006498027592897415,
-0.06419429928064346,
-0.06426741182804108,
-0.03229821100831032,
0.03622810170054436,
-0.015948042273521423,
-0.02814897894859314,
0.04109019786119461,
0.012438558973371983,
0.012877244502305984,
-0.02736300230026245,
0.009326633997261524,
-0.00483010895550251,
-0.03566146641969681,
-0.017200123518705368,
0.0609772689640522,
-0.015235178172588348,
-0.0021305943373590708,
-0.010409639216959476,
0.04306428134441376,
0.023067539557814598,
0.024639496579766273,
-0.02518785372376442,
0.02303098328411579,
0.006310672033578157,
-0.03937201574444771,
-0.023743847385048866,
-0.05626140162348747,
-0.015865787863731384,
0.00754904467612505,
-0.06591247767210007,
0.02034403569996357,
0.07300455868244171,
0.028971515595912933,
0.0029222844168543816,
0.008179654367268085,
0.030013391748070717,
-0.015226039104163647,
-0.03834841400384903,
0.017794176936149597,
0.005264224950224161,
0.0035780277103185654,
0.017501719295978546,
0.06251266598701477,
0.015673862770199776,
0.01633189246058464,
0.010501031763851643,
-0.002282534958794713,
-0.020673049613833427,
-0.015527634881436825,
-0.006493457593023777,
-0.012036430649459362,
0.00616901321336627,
-0.0273447223007679,
-0.04770703613758087,
0.05227667838335037,
-0.008979341946542263,
0.025882437825202942,
0.015116367489099503,
-0.07391849160194397,
-0.00913470983505249,
0.02701570838689804,
0.00833045318722725,
0.008796555921435356,
0.028642499819397926,
-0.007210891228169203,
-0.07421094924211502,
0.01741032674908638,
-0.09080787748098373,
-0.033321812748909,
-0.019466664642095566,
0.02432876080274582,
0.023341719061136246,
-0.04975423589348793,
0.032974518835544586,
0.06510822474956512,
-0.03151223435997963,
-0.03140256181359291,
0.09877733141183853,
0.00827561691403389,
0.06079448387026787,
-0.0016427853843197227,
0.04968111962080002,
-0.0006243269890546799,
-0.004494240507483482,
-0.023323440924286842,
-0.029720935970544815,
0.04763392359018326,
0.012557369656860828,
-0.034052953124046326,
0.04591573774814606,
0.047780152410268784,
0.11069495230913162,
-0.023725569248199463,
0.08130303025245667,
-0.019411828368902206,
0.014741657301783562,
0.02484055981040001,
0.009751610457897186,
0.010976274497807026,
-0.035825975239276886,
-0.04024938493967056,
-0.04280838370323181,
-0.01994190737605095,
-0.012959497980773449,
0.004626760259270668,
-0.028642499819397926,
-0.026942593976855278,
-0.012804130092263222,
0.09651079028844833,
0.023725569248199463,
-0.01470510009676218,
-0.04697589576244354,
-0.021440748125314713,
0.0045422217808663845,
0.0014063065173104405,
0.055310916155576706,
-0.04924243688583374,
0.03493032604455948,
-0.06148907169699669,
0.06704574823379517,
0.010985413566231728,
-0.03317558392882347,
-0.022208448499441147,
0.032462719827890396,
0.013096586801111698,
-0.013681501150131226,
0.06218365579843521,
0.0421869121491909,
0.04814572259783745,
0.019393550232052803,
-0.025717930868268013,
-0.01948494277894497,
0.0535927340388298,
0.047670479863882065,
-0.009477432817220688,
0.06134284287691116,
0.034509919583797455,
0.010528449900448322,
-0.013964818790555,
-0.0009944677585735917,
0.03538728877902031,
0.05947842821478844,
-0.04547705128788948,
-0.02677808701992035,
0.035752858966588974,
-0.044197555631399155,
0.04770703613758087,
-0.03379705548286438,
-0.036173265427351,
-0.013370765373110771,
-0.010245132260024548,
0.05136274918913841,
-0.013288511894643307,
0.006443191785365343,
-0.012950358912348747,
0.02262885496020317,
-0.06419429928064346,
-0.03904300183057785,
-0.01700819842517376,
0.007740969303995371,
0.0021842876449227333,
-0.0009030750370584428,
0.0273447223007679,
-0.004626760259270668,
-0.07552700489759445,
0.01199987344443798,
-0.010245132260024548,
0.02330516092479229,
0.021075177937746048,
0.07472274452447891,
0.008508669212460518,
-0.03174985572695732,
0.048072606325149536,
-0.027728572487831116,
0.039701029658317566,
0.012731015682220459,
-0.024072861298918724,
-0.027947915717959404,
0.06331692636013031,
-0.018168887123465538,
0.009925257414579391,
0.05585927516222,
0.012146102264523506,
-0.0014348668046295643,
0.00406926404684782,
0.004021282773464918,
0.054799117147922516,
-0.049608007073402405,
0.004875805228948593,
-0.014376086182892323,
0.03123805671930313,
0.028057586401700974,
-0.06159874051809311,
-0.029995113611221313,
-0.03586253151297569,
0.0053510479629039764,
-0.09183147549629211,
0.05238634720444679,
-0.04090741276741028,
-0.026138339191675186,
0.009989231824874878,
0.012091265991330147,
-0.006434052716940641,
0.07552700489759445,
0.031311169266700745,
0.002627542708069086,
0.030452078208327293,
0.015344849787652493,
-0.032279934734106064,
0.013964818790555,
0.02319549024105072,
0.011807948350906372,
-0.026302846148610115,
-0.05008324980735779,
-0.04310084134340286,
-0.020654771476984024,
0.04306428134441376,
0.06057514250278473,
-0.02198910526931286,
0.0016919090412557125,
0.024950232356786728,
0.022610576823353767,
-0.008385288529098034,
-0.041126757860183716,
0.017318934202194214,
0.0928550735116005,
-0.0393354557454586,
-0.027033988386392593,
0.06507166475057602,
0.003740249900147319,
-0.07516143471002579,
0.028642499819397926,
-0.018305975943803787,
-0.02443843148648739,
0.00831674411892891,
-0.05797958746552467,
0.057138774544000626,
-0.0004980906960554421,
0.07508831471204758,
0.01085746381431818,
-0.02849627286195755,
0.0016119403298944235,
-0.03151223435997963,
-0.018068354576826096,
-0.025955552235245705,
-0.023378275334835052,
0.02155042067170143,
0.00828932598233223,
0.0065848506055772305,
-0.04098052904009819,
0.018479622900485992,
-0.05457977578043938,
-0.04178478568792343,
-0.008449263870716095,
0.038787100464105606,
0.0026572453789412975,
0.009262659586966038,
-0.0025909857358783484,
-0.03641088679432869,
0.0104004992172122,
0.03260894864797592,
-0.031658463180065155,
-0.016779717057943344,
0.03008650615811348,
0.0712132602930069,
-0.04540393874049187,
0.03153051435947418,
0.08430071175098419,
-0.024950232356786728,
-0.019521500915288925,
-0.028295207768678665,
-0.02028919942677021,
0.039408572018146515,
-0.01427555363625288,
0.062147099524736404,
-0.058089256286621094,
-0.010309106670320034,
-0.002965696156024933,
-0.02564481645822525,
0.026357680559158325,
-0.005643504671752453,
0.044197555631399155,
0.04258904233574867,
-0.030616585165262222,
0.006854459177702665,
-0.07684306055307388,
-0.05315404757857323,
-0.03357771039009094,
0.053885187953710556,
-0.052861589938402176,
-0.03692268580198288,
0.04127298295497894,
-0.0473049096763134,
0.004663316998630762,
-0.051143404096364975,
0.015573331154882908,
-0.05406797677278519,
-0.01486960705369711,
0.05483567342162132,
0.01080262754112482,
0.05048537626862526,
-0.027911357581615448,
-0.012749294750392437,
-0.06865426152944565,
-0.0002961697755381465,
-0.012383723631501198,
-0.05161864683032036,
-0.08473939448595047,
0.032810013741254807,
0.037178587168455124,
-0.004414272028952837,
-0.0006157589377835393,
-0.05629795789718628,
0.08430071175098419,
0.015719560906291008,
0.011990734376013279,
0.02769201621413231,
0.041638556867837906,
-0.019101092591881752,
0.012721876613795757,
-0.06865426152944565,
-0.02696087397634983,
-0.012246633879840374,
0.010272549465298653,
0.07969451695680618,
0.024365318939089775,
0.009605382569134235,
-0.025169575586915016,
0.004852957092225552,
-0.04229658469557762,
0.01983223482966423,
-0.011661720462143421,
-0.020983785390853882,
0.04167511314153671,
-0.007955742068588734,
-0.01657865196466446,
-0.03737965226173401,
-0.02997683547437191,
-0.016615210101008415,
-0.02017952874302864,
0.013151423074305058,
0.014467478729784489,
-0.06642428040504456,
0.09073476493358612,
-0.05783335864543915,
-0.018040936440229416,
-0.016615210101008415,
-0.04024938493967056,
0.013288511894643307,
0.0490230917930603,
-0.02058165706694126,
0.0045947725884616375,
-0.016743158921599388,
0.02489539608359337,
0.031201498582959175,
0.05516468733549118,
-0.04017627239227295,
0.0547260046005249,
-0.02957470715045929,
0.01706303469836712,
-0.011488073505461216,
-0.002718935487791896,
-0.006845320109277964,
0.018689826130867004,
0.025169575586915016,
-0.02387179620563984,
-0.022372955456376076,
-0.06693608313798904,
0.03591736778616905,
-0.01464112475514412,
0.013626664876937866,
0.004274897743016481,
-0.033943284302949905,
-0.008577213622629642,
0.02661358006298542,
0.01080262754112482,
0.02911774255335331,
0.014650264754891396,
-0.02736300230026245,
0.001310344086959958,
-0.008915366604924202,
-0.002463035751134157,
0.050010133534669876,
0.0085452264174819,
-0.03805596008896828,
-0.055639930069446564,
0.017254959791898727,
-0.007590171415358782,
-0.00867774523794651,
-0.011835366487503052,
0.010281689465045929,
0.0023225191980600357,
0.034107789397239685,
0.01199987344443798,
0.04628130793571472,
-0.02462121844291687,
0.05947842821478844,
0.019064536318182945,
-0.016916805878281593,
-0.0006260406225919724,
-0.01427555363625288,
-0.05863761529326439,
-0.01880863681435585,
0.03973758593201637,
0.035021718591451645,
0.051435861736536026,
-0.04555016756057739,
0.05249601975083351,
-0.017830733209848404,
0.012292330153286457,
0.003998434636741877,
0.06057514250278473,
-0.08393514156341553,
-0.0003387245233170688,
-0.06934884935617447,
-0.004626760259270668,
-0.01902798004448414,
0.017666226252913475,
0.05161864683032036,
-0.10535760968923569,
0.066095270216465,
-0.01657865196466446,
-0.008207072503864765,
-0.014120186679065228,
0.03514966741204262,
-0.04774359241127968,
-0.005346478428691626,
0.04262559860944748,
-0.0341809056699276,
-0.012502533383667469,
-0.015006695874035358,
0.015518495813012123,
0.035186223685741425,
0.027436116710305214,
0.009340343065559864,
0.03138428553938866,
0.00003455789919826202,
-0.0044279806315898895,
-0.046025410294532776,
0.03008650615811348,
-0.017766758799552917,
-0.006763066630810499,
0.010144599713385105,
0.018278557807207108,
0.0021100309677422047,
0.028788728639483452,
0.025900717824697495,
-0.007201752159744501,
0.0626954510807991,
0.019558057188987732,
0.004482816439121962,
-0.032060589641332626,
0.006228418555110693,
0.00909358263015747,
-0.006836180575191975,
-0.015481938607990742,
-0.039408572018146515,
-0.08159548044204712,
-0.007233739364892244,
0.033998116850852966,
0.00850409921258688,
0.028569387272000313,
-0.005753176286816597,
0.033303532749414444,
-0.05044881999492645,
0.013462157920002937,
-0.010848324745893478,
0.029190856963396072,
-0.03977414220571518,
0.025260968133807182,
0.018040936440229416,
0.031603626906871796,
-0.0066899522207677364,
-0.014887886121869087,
0.010309106670320034,
0.07494208961725235,
-0.07271210104227066,
0.01983223482966423,
0.07022622227668762,
-0.02034403569996357,
0.04006659984588623,
-0.054104533046483994,
0.02028919942677021,
-0.0592590868473053,
-0.039006441831588745,
-0.02069132775068283,
0.019283879548311234,
0.082034170627594,
-0.009276368655264378,
0.0421869121491909,
-0.012511673383414745,
-0.052167005836963654,
-0.05044881999492645,
0.05392174795269966,
-0.0014211578527465463,
0.00044896709732711315,
-0.02513301745057106,
0.06583936512470245,
-0.07278522104024887,
-0.029154300689697266,
-0.026851201429963112,
-0.012438558973371983,
-0.014056211337447166,
-0.006452330853790045,
-0.01279499102383852,
0.06916606426239014,
0.027655458077788353,
0.03571630269289017,
0.010985413566231728,
0.0037105472292751074,
0.03688612952828407,
-0.02884356491267681,
-0.0026161186397075653,
0.016596930101513863,
0.021349355578422546,
0.030013391748070717,
-0.026942593976855278,
-0.026174895465373993,
0.012127823196351528,
-0.03783661499619484,
0.012877244502305984,
-0.04269871115684509,
-0.08905313909053802,
-0.052349790930747986,
0.02160525508224964,
0.014403504319489002,
-0.015655584633350372,
0.053775519132614136,
-0.03904300183057785,
0.030580027028918266,
0.033193860203027725,
0.014951860532164574,
-0.05224011838436127,
-0.0273447223007679,
-0.010354802943766117,
0.021660091355443,
0.03831185773015022,
0.04028594121336937,
-0.0017376054311171174,
-0.021459028124809265,
0.028934957459568977,
-0.028788728639483452,
0.0007391392136923969,
0.012950358912348747,
-0.023798683658242226,
0.014376086182892323,
0.008659467101097107,
-0.0344916395843029,
0.0358990877866745,
0.007370828650891781,
-0.00983386393636465,
-0.011789670214056969,
-0.00851780828088522,
-0.0015456805704161525,
-0.0029451327864080667,
0.0043822843581438065,
0.04119987040758133,
0.033760495483875275,
-0.05797958746552467,
-0.017958683893084526,
0.012548230588436127,
-0.017254959791898727,
-0.07991385459899902,
-0.022610576823353767,
0.02655874565243721,
-0.04353952407836914,
0.02359761856496334,
-0.007772956974804401,
0.03937201574444771,
0.04986390843987465,
-0.028788728639483452,
0.057760242372751236,
0.026467353105545044,
-0.0205085426568985,
-0.006913864519447088,
0.01447661779820919,
0.011204755865037441,
-0.044307224452495575,
0.0018107197247445583,
0.02153214067220688,
0.021294521167874336,
-0.01652381755411625,
-0.017474301159381866,
-0.0024287633132189512,
0.010217714123427868,
0.05384863168001175,
-0.0025361499283462763,
-0.020252643153071404,
0.02877045050263405,
-0.05607861652970314,
0.005945100914686918,
-0.011469795368611813,
-0.03083592839539051,
-0.01678885519504547,
0.003961877431720495,
-0.020069856196641922,
0.01507067121565342,
0.003063943237066269,
0.009477432817220688,
-0.06035580113530159,
0.027819965034723282,
-0.03536900877952576,
-0.02962954342365265,
0.04295461252331734,
0.03948168456554413,
-0.037416208535432816,
0.039627913385629654,
-0.05790647119283676,
-0.009450014680624008,
0.0049215019680559635,
0.05483567342162132,
-0.013946539722383022,
-0.03995692729949951,
-0.00260012480430305,
-0.007878058589994907,
-0.01259392686188221,
-0.02319549024105072,
-0.024493267759680748,
0.006667104084044695,
0.02250090427696705,
0.04540393874049187,
0.02564481645822525,
-0.030909042805433273,
-0.02091067098081112,
0.005972519051283598
] |
721,994
|
apprise.config.base
|
config_parse_text
|
Parse the specified content as though it were a simple text file only
containing a list of URLs.
Return a tuple that looks like (servers, configs) where:
- servers contains a list of loaded notification plugins
- configs contains a list of additional configuration files
referenced.
You may also optionally associate an asset with the notification.
The file syntax is:
#
# pound/hashtag allow for line comments
#
# One or more tags can be idenified using comma's (,) to separate
# them.
<Tag(s)>=<URL>
# Or you can use this format (no tags associated)
<URL>
# you can also use the keyword 'include' and identify a
# configuration location (like this file) which will be included
# as additional configuration entries when loaded.
include <ConfigURL>
# Assign tag contents to a group identifier
<Group(s)>=<Tag(s)>
|
@staticmethod
def config_parse_text(content, asset=None):
"""
Parse the specified content as though it were a simple text file only
containing a list of URLs.
Return a tuple that looks like (servers, configs) where:
- servers contains a list of loaded notification plugins
- configs contains a list of additional configuration files
referenced.
You may also optionally associate an asset with the notification.
The file syntax is:
#
# pound/hashtag allow for line comments
#
# One or more tags can be idenified using comma's (,) to separate
# them.
<Tag(s)>=<URL>
# Or you can use this format (no tags associated)
<URL>
# you can also use the keyword 'include' and identify a
# configuration location (like this file) which will be included
# as additional configuration entries when loaded.
include <ConfigURL>
# Assign tag contents to a group identifier
<Group(s)>=<Tag(s)>
"""
# A list of loaded Notification Services
servers = list()
# A list of additional configuration files referenced using
# the include keyword
configs = list()
# Track all of the tags we want to assign later on
group_tags = {}
# Track our entries to preload
preloaded = []
# Prepare our Asset Object
asset = asset if isinstance(asset, AppriseAsset) else AppriseAsset()
# Define what a valid line should look like
valid_line_re = re.compile(
r'^\s*(?P<line>([;#]+(?P<comment>.*))|'
r'(\s*(?P<tags>[a-z0-9, \t_-]+)\s*=|=)?\s*'
r'((?P<url>[a-z0-9]{1,12}://.*)|(?P<assign>[a-z0-9, \t_-]+))|'
r'include\s+(?P<config>.+))?\s*$', re.I)
try:
# split our content up to read line by line
content = re.split(r'\r*\n', content)
except TypeError:
# content was not expected string type
ConfigBase.logger.error(
'Invalid Apprise TEXT based configuration specified.')
return (list(), list())
for line, entry in enumerate(content, start=1):
result = valid_line_re.match(entry)
if not result:
# Invalid syntax
ConfigBase.logger.error(
'Invalid Apprise TEXT configuration format found '
'{} on line {}.'.format(entry, line))
# Assume this is a file we shouldn't be parsing. It's owner
# can read the error printed to screen and take action
# otherwise.
return (list(), list())
# Retrieve our line
url, assign, config = \
result.group('url'), \
result.group('assign'), \
result.group('config')
if not (url or config or assign):
# Comment/empty line; do nothing
continue
if config:
# CWE-312 (Secure Logging) Handling
loggable_url = config if not asset.secure_logging \
else cwe312_url(config)
ConfigBase.logger.debug(
'Include URL: {}'.format(loggable_url))
# Store our include line
configs.append(config.strip())
continue
# CWE-312 (Secure Logging) Handling
loggable_url = url if not asset.secure_logging \
else cwe312_url(url)
if assign:
groups = set(parse_list(result.group('tags'), cast=str))
if not groups:
# no tags were assigned
ConfigBase.logger.warning(
'Unparseable tag assignment - no group(s) '
'on line {}'.format(line))
continue
# Get our tags
tags = set(parse_list(assign, cast=str))
if not tags:
# no tags were assigned
ConfigBase.logger.warning(
'Unparseable tag assignment - no tag(s) to assign '
'on line {}'.format(line))
continue
# Update our tag group map
for tag_group in groups:
if tag_group not in group_tags:
group_tags[tag_group] = set()
# ensure our tag group is never included in the assignment
group_tags[tag_group] |= tags - set([tag_group])
continue
# Acquire our url tokens
results = plugins.url_to_dict(
url, secure_logging=asset.secure_logging)
if results is None:
# Failed to parse the server URL
ConfigBase.logger.warning(
'Unparseable URL {} on line {}.'.format(
loggable_url, line))
continue
# Build a list of tags to associate with the newly added
# notifications if any were set
results['tag'] = set(parse_list(result.group('tags'), cast=str))
# Set our Asset Object
results['asset'] = asset
# Store our preloaded entries
preloaded.append({
'results': results,
'line': line,
'loggable_url': loggable_url,
})
#
# Normalize Tag Groups
# - Expand Groups of Groups so that they don't exist
#
ConfigBase.__normalize_tag_groups(group_tags)
#
# URL Processing
#
for entry in preloaded:
# Point to our results entry for easier reference below
results = entry['results']
#
# Apply our tag groups if they're defined
#
for group, tags in group_tags.items():
# Detect if anything assigned to this tag also maps back to a
# group. If so we want to add the group to our list
if next((True for tag in results['tag']
if tag in tags), False):
results['tag'].add(group)
try:
# Attempt to create an instance of our plugin using the
# parsed URL information
plugin = N_MGR[results['schema']](**results)
# Create log entry of loaded URL
ConfigBase.logger.debug(
'Loaded URL: %s', plugin.url(
privacy=results['asset'].secure_logging))
except Exception as e:
# the arguments are invalid or can not be used.
ConfigBase.logger.warning(
'Could not load URL {} on line {}.'.format(
entry['loggable_url'], entry['line']))
ConfigBase.logger.debug('Loading Exception: %s' % str(e))
continue
# if we reach here, we successfully loaded our data
servers.append(plugin)
# Return what was loaded
return (servers, configs)
|
(content, asset=None)
|
[
0.007285201456397772,
-0.037710390985012054,
-0.09466550499200821,
-0.004100557882338762,
0.010790941305458546,
0.01452829223126173,
0.013780822046101093,
0.012475380674004555,
-0.008732766844332218,
-0.017297089099884033,
-0.006100829690694809,
0.01839197613298893,
-0.027561644092202187,
-0.00989081896841526,
-0.025792982429265976,
-0.020781774073839188,
-0.008985432796180248,
0.03265707194805145,
-0.006785133387893438,
-0.048722416162490845,
-0.04804864153265953,
-0.019823748618364334,
-0.009153876453638077,
0.05642872676253319,
0.029456637799739838,
0.00743785360828042,
0.060681939125061035,
-0.04082660749554634,
0.005479692947119474,
0.012517492286860943,
0.019423695281147957,
-0.01139102317392826,
0.02347687818109989,
-0.010811996646225452,
-0.02330843359231949,
-0.03141479939222336,
0.02406643144786358,
0.03632073104381561,
-0.0640508159995079,
0.03133057802915573,
-0.02120288461446762,
-0.03305712714791298,
0.05196496471762657,
-0.04539564996957779,
-0.016633842140436172,
0.04564831405878067,
-0.0441744290292263,
0.0791686624288559,
0.00022634657216258347,
-0.06472459435462952,
0.015454733744263649,
0.024782318621873856,
-0.017770837992429733,
0.044090207666158676,
-0.03330979496240616,
0.05912383273243904,
-0.00785369984805584,
0.10957279801368713,
0.019886914640665054,
0.00026549663743935525,
-0.0007112809689715505,
0.002546398900449276,
0.03964749723672867,
0.017581338062882423,
0.002795116975903511,
0.026361480355262756,
-0.004319008439779282,
-0.032762352377176285,
-0.03164640814065933,
-0.008248490281403065,
0.015044151805341244,
-0.03236229717731476,
-0.0187709741294384,
-0.0413319393992424,
0.05642872676253319,
-0.010980441235005856,
0.00015906768385320902,
0.07091490924358368,
0.02520342729985714,
0.002009483752772212,
0.0017041792161762714,
0.055544398725032806,
0.05684983730316162,
-0.0128543796017766,
0.07845277339220047,
-0.04425865039229393,
0.038531556725502014,
-0.0171918123960495,
-0.025477150455117226,
0.05032263323664665,
-0.02292943373322487,
0.03718400374054909,
0.012664880603551865,
0.009990832768380642,
-0.0016002176562324166,
0.008380087092518806,
-0.016033759340643883,
-0.051628075540065765,
0.011464716866612434,
-0.03088841214776039,
-0.014254570938646793,
-0.0016515403985977173,
-0.08173743635416031,
-0.06211371347308159,
0.002270045690238476,
-0.09508661925792694,
-0.044090207666158676,
0.034594178199768066,
0.01630748063325882,
0.039858054369688034,
-0.05478639900684357,
-0.09121240675449371,
-0.02785642072558403,
-0.013570266775786877,
0.00892752967774868,
-0.040173884481191635,
-0.03741561621427536,
-0.008069518953561783,
0.018781501799821854,
-0.018128782510757446,
-0.01842355914413929,
0.022045103833079338,
-0.05596550554037094,
0.056260284036397934,
0.025056039914488792,
-0.018781501799821854,
-0.0048585557378828526,
-0.03120424412190914,
0.047585420310497284,
-0.06421925872564316,
0.008380087092518806,
0.030277801677584648,
0.004103189799934626,
-0.06699858605861664,
0.005806053057312965,
-0.08632753044366837,
-0.02444542944431305,
0.016139037907123566,
-0.013085990212857723,
0.0010396151337772608,
0.010011888109147549,
0.01949738897383213,
-0.04147932678461075,
-0.052133407443761826,
-0.039921220391988754,
-0.04754330962896347,
0.044090207666158676,
-0.02735108882188797,
-0.050112079828977585,
-0.015433678403496742,
0.011738439090549946,
-0.06282959878444672,
-0.06485092639923096,
0.018497252836823463,
0.021434495225548744,
0.022129325196146965,
-0.028698639944195747,
0.02659309096634388,
0.001993692247197032,
-0.02246621437370777,
-0.005832372233271599,
-0.01307546254247427,
0.013791349716484547,
0.04539564996957779,
-0.046574756503105164,
-0.013138629496097565,
0.029856692999601364,
-0.02463492937386036,
-0.013886099681258202,
0.009427597746253014,
-0.0009067023056559265,
0.044090207666158676,
-0.07024113088846207,
0.03552062064409256,
0.0008033987251110375,
0.07078857719898224,
0.012296409346163273,
0.003742614295333624,
0.008917002007365227,
0.039226386696100235,
-0.04556409269571304,
-0.0034478374291211367,
-0.016602259129285812,
0.050238411873579025,
0.031098967418074608,
0.03253073990345001,
0.033773016184568405,
-0.021813493221998215,
0.012149021029472351,
0.029983025044202805,
-0.01038035936653614,
-0.05259662866592407,
0.011264690198004246,
-0.01452829223126173,
-0.004390070680528879,
0.02716158889234066,
-0.02028696984052658,
-0.003113581333309412,
-0.019318416714668274,
-0.023792710155248642,
-0.03189907595515251,
-0.05600761994719505,
-0.03385723754763603,
-0.002871443284675479,
0.013507100753486156,
-0.004705903120338917,
-0.009274945594370365,
-0.014980984851717949,
-0.04918563738465309,
0.09702372550964355,
-0.04804864153265953,
0.012864908203482628,
-0.03063574619591236,
0.0032451781444251537,
0.03552062064409256,
-0.056260284036397934,
0.011927938088774681,
0.08118999004364014,
-0.03392040356993675,
-0.01709706149995327,
0.018339335918426514,
-0.012117438018321991,
0.020371191203594208,
-0.0018857828108593822,
-0.04234260320663452,
0.031499020755290985,
0.03893161192536354,
0.035920675843954086,
0.01858147419989109,
0.04611153528094292,
0.04695375636219978,
-0.009285473264753819,
0.030741022899746895,
0.03141479939222336,
0.07714733481407166,
-0.0070746466517448425,
0.047080088406801224,
0.02905658446252346,
0.03863683342933655,
0.016960201784968376,
-0.0038005169481039047,
0.00491382647305727,
-0.014065071009099483,
-0.028509141877293587,
-0.03594173118472099,
-0.012591185979545116,
-0.02158188261091709,
-0.023392654955387115,
-0.031056856736540794,
-0.028846029192209244,
0.058786943554878235,
0.04779597371816635,
0.0039005305152386427,
0.005300721153616905,
-0.03160429745912552,
-0.033836182206869125,
0.034910012036561966,
-0.020371191203594208,
0.050870075821876526,
-0.07226245850324631,
0.04135299474000931,
-0.04310059919953346,
0.045100871473550797,
0.048090752214193344,
-0.02476126328110695,
0.012454325333237648,
0.024171708151698112,
0.0002691155532374978,
-0.040552884340286255,
0.03863683342933655,
0.09205462783575058,
0.07937921583652496,
0.00444007758051157,
-0.027182644233107567,
-0.022150380536913872,
0.029203971847891808,
0.032825518399477005,
-0.011001496575772762,
0.003258337965235114,
0.028066975995898247,
0.001131732831709087,
0.026698367670178413,
0.03539428859949112,
0.0015212595462799072,
0.0766420066356659,
-0.07280990481376648,
-0.031562186777591705,
0.041942548006772995,
-0.05120696499943733,
0.004926986061036587,
-0.014065071009099483,
0.015633706003427505,
0.014696735888719559,
-0.0173497274518013,
0.01560212206095457,
0.058155279606580734,
-0.029140805825591087,
0.04842764139175415,
-0.000438875489635393,
-0.06299804151058197,
-0.017612922936677933,
-0.02400326542556286,
0.0533125139772892,
-0.03196224197745323,
-0.03600489720702171,
0.008432726375758648,
0.021244995296001434,
-0.02564559318125248,
0.03787883743643761,
-0.031751688569784164,
0.047711752355098724,
-0.011127829551696777,
0.034594178199768066,
0.004645368549972773,
-0.031056856736540794,
0.018034031614661217,
-0.004634840879589319,
0.07200979441404343,
0.015402095392346382,
-0.0064271898008883,
0.0012633297592401505,
0.03907899931073189,
0.000475393608212471,
0.014180876314640045,
0.10856213420629501,
-0.02208721451461315,
0.05360729247331619,
0.005769205745309591,
-0.02233988046646118,
0.021371327340602875,
0.0004872373247053474,
0.01640223152935505,
-0.07057802379131317,
0.04703797772526741,
-0.0012337204534560442,
-0.030804190784692764,
-0.039858054369688034,
-0.08893841505050659,
0.03926849737763405,
-0.0766420066356659,
0.00018588054808788002,
-0.040868718177080154,
-0.07062013447284698,
0.026508869603276253,
0.03322557359933853,
-0.03863683342933655,
0.040742382407188416,
0.006132413167506456,
-0.011675272136926651,
0.024361208081245422,
0.03617333993315697,
-0.007627353072166443,
-0.008037935011088848,
0.04147932678461075,
0.061818934977054596,
-0.06767236441373825,
-0.06135571375489235,
-0.06224004551768303,
0.01810772530734539,
0.019044695422053337,
-0.025877203792333603,
0.027687976136803627,
-0.009174931794404984,
0.045311424881219864,
0.007611561566591263,
-0.027898531407117844,
0.0010501428041607141,
0.03381512686610222,
0.05154385417699814,
-0.04804864153265953,
-0.0206659696996212,
0.056386616080999374,
0.013191267848014832,
-0.06160838156938553,
0.03621545061469078,
-0.03381512686610222,
0.02196088247001171,
0.009095974266529083,
-0.08464309573173523,
0.007300992961972952,
-0.03413095697760582,
0.10401415079832077,
-0.01965530589222908,
-0.00962236151099205,
0.00867486372590065,
-0.05491273105144501,
0.009443390183150768,
-0.0187709741294384,
0.01231746468693018,
0.021223939955234528,
0.060555603355169296,
-0.0011494985083118081,
0.0039400095120072365,
0.02236093580722809,
-0.04065816104412079,
-0.04678530991077423,
-0.02678259089589119,
-0.0035662746522575617,
0.0257087592035532,
-0.017644505947828293,
-0.010743566788733006,
-0.052133407443761826,
0.013591322116553783,
0.038089390844106674,
-0.005732358433306217,
-0.008806461468338966,
0.08148476481437683,
0.039921220391988754,
-0.011464716866612434,
0.035352177917957306,
0.002159504219889641,
-0.005340199917554855,
-0.02009746991097927,
-0.0656089261174202,
-0.05823950096964836,
0.010701455175876617,
-0.008653808385133743,
0.010775149799883366,
-0.02488759532570839,
0.015244178473949432,
-0.012201659381389618,
-0.014738846570253372,
0.010606706142425537,
0.006011344026774168,
-0.019823748618364334,
-0.006816716864705086,
0.003013567766174674,
-0.00782211683690548,
-0.08489575982093811,
-0.038847390562295914,
0.015054679475724697,
0.04097399488091469,
-0.014138765633106232,
-0.05950282886624336,
-0.004142668563872576,
-0.0142756262794137,
0.005716566927731037,
-0.04695375636219978,
0.03644706308841705,
-0.04046866297721863,
-0.03192013129591942,
0.03838416934013367,
0.05032263323664665,
0.019518444314599037,
0.029983025044202805,
-0.004840131849050522,
-0.10553014278411865,
-0.008711711503565311,
-0.0053770472295582294,
-0.04221626743674278,
-0.12035321444272995,
0.01649698056280613,
0.01570739969611168,
0.014001904986798763,
-0.032825518399477005,
-0.004916458390653133,
0.06304015219211578,
0.027898531407117844,
-0.036362841725349426,
0.0033794071059674025,
0.011012024246156216,
0.025350816547870636,
0.04484820365905762,
-0.010290873236954212,
-0.011664744466543198,
-0.0054428456351161,
0.019286833703517914,
0.009332848712801933,
-0.03945799916982651,
-0.013443933799862862,
-0.006316648796200752,
-0.012728046625852585,
-0.001322548370808363,
0.01668648049235344,
-0.012454325333237648,
-0.021023912355303764,
0.05760783702135086,
0.018413031473755836,
-0.015170484781265259,
-0.05019630119204521,
-0.014254570938646793,
-0.03667867183685303,
-0.00011967088357778266,
0.0017844532849267125,
-0.012528019957244396,
-0.04522720351815224,
0.0848536491394043,
-0.0883488580584526,
-0.021602937951683998,
-0.008538003079593182,
-0.04103716090321541,
-0.05508117750287056,
0.012896491214632988,
-0.013949265703558922,
-0.03362562507390976,
0.013654489070177078,
0.01794981025159359,
0.06367181986570358,
0.06135571375489235,
-0.06590370088815689,
0.020276442170143127,
-0.06708280742168427,
-0.016475925222039223,
-0.008843308314681053,
0.024298042058944702,
0.02747742086648941,
0.0022555699106305838,
0.05908172205090523,
-0.03385723754763603,
-0.016296952962875366,
-0.06063982844352722,
-0.009690791368484497,
0.04019493982195854,
-0.015475789085030556,
0.009390750899910927,
-0.01801297627389431,
-0.007648408878594637,
0.03640495240688324,
-0.02899341657757759,
-0.01899205707013607,
-0.0012672776356339455,
0.00491382647305727,
0.021981937810778618,
-0.005261241924017668,
-0.010622497648000717,
0.009274945594370365,
0.01257013063877821,
-0.026382535696029663,
-0.06872513890266418,
0.00859590619802475,
-0.0031872757244855165,
0.004192675463855267,
0.0039321137592196465,
-0.06965158134698868,
0.04585886746644974,
0.03145691007375717,
0.004482188727706671,
-0.016128510236740112,
0.0015015200478956103,
0.020781774073839188,
-0.0026477286592125893,
-0.002997776260599494,
-0.017970865592360497,
-0.04842764139175415,
-0.010833052918314934,
-0.028972361236810684,
-0.005103325936943293,
0.056470837444067,
0.01687598042190075,
-0.036636561155319214,
0.007780005689710379,
0.02735108882188797,
0.0441744290292263,
-0.019171029329299927,
0.027709031477570534,
-0.056470837444067,
0.0035136358346790075,
-0.06472459435462952,
0.005827108398079872,
0.015486316755414009,
0.01560212206095457,
-0.002795116975903511,
-0.14410381019115448,
0.0324886292219162,
-0.014896763488650322,
-0.000659629178699106,
-0.02394009754061699,
0.03907899931073189,
-0.02495076134800911,
0.012612242251634598,
0.03615228459239006,
-0.03924744203686714,
-0.016096927225589752,
-0.020371191203594208,
-0.024298042058944702,
0.016633842140436172,
0.01652856357395649,
0.01993955485522747,
0.02564559318125248,
-0.0019305257592350245,
0.029519803822040558,
-0.001088963937945664,
0.04484820365905762,
-0.02297154627740383,
0.006269273813813925,
0.015949537977576256,
0.037141893059015274,
0.07596822828054428,
0.019613193348050117,
0.05082796514034271,
-0.021023912355303764,
0.043837543576955795,
0.01231746468693018,
-0.0017344465013593435,
-0.011896355077624321,
0.01139102317392826,
0.07992666214704514,
-0.01772872731089592,
-0.005195443518459797,
-0.0093854870647192,
-0.04493242874741554,
-0.046827420592308044,
-0.027456365525722504,
-0.0441744290292263,
0.003829468274489045,
-0.04649053514003754,
-0.0045111398212611675,
-0.0495225265622139,
-0.00809057429432869,
0.008964377455413342,
0.02425593137741089,
-0.022002993151545525,
0.020360663533210754,
0.02069755271077156,
0.007958977483212948,
0.009869763627648354,
-0.013496573083102703,
0.04590098187327385,
0.0750838965177536,
-0.03869999945163727,
0.036236509680747986,
0.029288195073604584,
0.020086942240595818,
0.015433678403496742,
-0.02836175262928009,
-0.011264690198004246,
-0.03899477794766426,
-0.053144071251153946,
-0.03442573547363281,
0.028909195214509964,
0.06287170946598053,
0.0035978578962385654,
0.022066159173846245,
0.04171093553304672,
-0.01602323167026043,
0.026887867599725723,
0.08978063613176346,
-0.03705767169594765,
0.03747878223657608,
-0.017644505947828293,
0.08270598948001862,
-0.09955038130283356,
-0.027077367529273033,
-0.01618114858865738,
0.009038071148097515,
0.05335462465882301,
-0.011854244396090508,
-0.01279121357947588,
0.05604973062872887,
0.0037636698689311743,
0.036236509680747986,
0.002046331064775586,
-0.020823884755373,
0.02170821651816368,
-0.07087279856204987,
0.10291926562786102,
0.012517492286860943,
0.007353631779551506,
-0.009817124344408512,
0.002853019628673792,
-0.030046192929148674,
0.028088031336665154,
0.0064008706249296665,
-0.009617097675800323,
-0.011948993429541588,
-0.06800924986600876,
0.03661550581455231,
0.00013447552919387817,
0.0020871260203421116,
0.04082660749554634,
0.027687976136803627,
-0.05305984988808632,
0.050238411873579025,
0.015875844284892082,
0.05407051369547844,
-0.032257020473480225,
-0.012243770994246006,
0.006300856824964285,
-0.01234904769808054,
0.008548530749976635,
0.030530467629432678,
0.013064934872090816,
0.01116994023323059,
0.000050335795094724745,
-0.023645320907235146,
0.01706547848880291,
0.03467839956283569,
-0.03227807581424713,
0.01905522309243679,
0.0203501358628273,
-0.02564559318125248,
0.05103852227330208,
-0.0007757634157314897,
0.03299396112561226,
0.009264417923986912,
-0.02785642072558403,
-0.02425593137741089,
-0.028824973851442337,
-0.0282354187220335,
0.010790941305458546,
0.05230185016989708,
-0.02684575691819191,
-0.0076326169073581696,
-0.012296409346163273,
-0.030677856877446175,
-0.03655233979225159,
-0.03455206751823425,
-0.01949738897383213,
-0.05322829261422157,
0.05209129676222801,
0.012222714722156525,
0.03994227573275566,
0.05975549668073654,
-0.01940263994038105,
0.036868173629045486,
0.011927938088774681,
-0.02558242715895176,
-0.039479054510593414,
-0.006827244535088539,
0.0454377606511116,
-0.014907291159033775,
-0.019665833562612534,
0.04400598630309105,
0.005140172783285379,
-0.003389934776350856,
0.016991784796118736,
0.024719152599573135,
-0.011212050914764404,
0.027624810114502907,
0.017265506088733673,
-0.021792437881231308,
0.04788019508123398,
-0.0520491860806942,
0.03166746348142624,
0.005616553593426943,
-0.06763025373220444,
0.014580930583178997,
-0.004682215861976147,
0.006585106253623962,
0.007337840273976326,
0.00783790834248066,
-0.07108335196971893,
-0.06101882457733154,
-0.004071606323122978,
-0.03678395226597786,
-0.013980848714709282,
0.05684983730316162,
0.026424646377563477,
-0.06459826231002808,
0.06889358162879944,
0.005974496714770794,
-0.00764314504340291,
-0.015402095392346382,
0.02085546776652336,
-0.00739047909155488,
-0.020708080381155014,
0.03777356073260307,
0.022066159173846245,
-0.026803646236658096,
0.012338520027697086,
0.050112079828977585,
-0.001127126975916326,
0.005040159448981285,
0.05221762880682945,
0.04518509283661842,
0.02406643144786358,
-0.027056312188506126,
0.03893161192536354
] |
721,995
|
apprise.config.base
|
config_parse_yaml
|
Parse the specified content as though it were a yaml file
specifically formatted for Apprise.
Return a tuple that looks like (servers, configs) where:
- servers contains a list of loaded notification plugins
- configs contains a list of additional configuration files
referenced.
You may optionally associate an asset with the notification.
|
@staticmethod
def config_parse_yaml(content, asset=None):
"""
Parse the specified content as though it were a yaml file
specifically formatted for Apprise.
Return a tuple that looks like (servers, configs) where:
- servers contains a list of loaded notification plugins
- configs contains a list of additional configuration files
referenced.
You may optionally associate an asset with the notification.
"""
# A list of loaded Notification Services
servers = list()
# A list of additional configuration files referenced using
# the include keyword
configs = list()
# Group Assignments
group_tags = {}
# Track our entries to preload
preloaded = []
try:
# Load our data (safely)
result = yaml.load(content, Loader=yaml.SafeLoader)
except (AttributeError,
yaml.parser.ParserError,
yaml.error.MarkedYAMLError) as e:
# Invalid content
ConfigBase.logger.error(
'Invalid Apprise YAML data specified.')
ConfigBase.logger.debug(
'YAML Exception:{}{}'.format(os.linesep, e))
return (list(), list())
if not isinstance(result, dict):
# Invalid content
ConfigBase.logger.error(
'Invalid Apprise YAML based configuration specified.')
return (list(), list())
# YAML Version
version = result.get('version', 1)
if version != 1:
# Invalid syntax
ConfigBase.logger.error(
'Invalid Apprise YAML version specified {}.'.format(version))
return (list(), list())
#
# global asset object
#
asset = asset if isinstance(asset, AppriseAsset) else AppriseAsset()
tokens = result.get('asset', None)
if tokens and isinstance(tokens, dict):
for k, v in tokens.items():
if k.startswith('_') or k.endswith('_'):
# Entries are considered reserved if they start or end
# with an underscore
ConfigBase.logger.warning(
'Ignored asset key "{}".'.format(k))
continue
if not (hasattr(asset, k) and
isinstance(getattr(asset, k),
(bool, str))):
# We can't set a function or non-string set value
ConfigBase.logger.warning(
'Invalid asset key "{}".'.format(k))
continue
if v is None:
# Convert to an empty string
v = ''
if (isinstance(v, (bool, str))
and isinstance(getattr(asset, k), bool)):
# If the object in the Asset is a boolean, then
# we want to convert the specified string to
# match that.
setattr(asset, k, parse_bool(v))
elif isinstance(v, str):
# Set our asset object with the new value
setattr(asset, k, v.strip())
else:
# we must set strings with a string
ConfigBase.logger.warning(
'Invalid asset value to "{}".'.format(k))
continue
#
# global tag root directive
#
global_tags = set()
tags = result.get('tag', None)
if tags and isinstance(tags, (list, tuple, str)):
# Store any preset tags
global_tags = set(parse_list(tags, cast=str))
#
# groups root directive
#
groups = result.get('groups', None)
if isinstance(groups, dict):
#
# Dictionary
#
for _groups, tags in groups.items():
for group in parse_list(_groups, cast=str):
if isinstance(tags, (list, tuple)):
_tags = set()
for e in tags:
if isinstance(e, dict):
_tags |= set(e.keys())
else:
_tags |= set(parse_list(e, cast=str))
# Final assignment
tags = _tags
else:
tags = set(parse_list(tags, cast=str))
if group not in group_tags:
group_tags[group] = tags
else:
group_tags[group] |= tags
elif isinstance(groups, (list, tuple)):
#
# List of Dictionaries
#
# Iterate over each group defined and store it
for no, entry in enumerate(groups):
if not isinstance(entry, dict):
ConfigBase.logger.warning(
'No assignment for group {}, entry #{}'.format(
entry, no + 1))
continue
for _groups, tags in entry.items():
for group in parse_list(_groups, cast=str):
if isinstance(tags, (list, tuple)):
_tags = set()
for e in tags:
if isinstance(e, dict):
_tags |= set(e.keys())
else:
_tags |= set(parse_list(e, cast=str))
# Final assignment
tags = _tags
else:
tags = set(parse_list(tags, cast=str))
if group not in group_tags:
group_tags[group] = tags
else:
group_tags[group] |= tags
# include root directive
#
includes = result.get('include', None)
if isinstance(includes, str):
# Support a single inline string or multiple ones separated by a
# comma and/or space
includes = parse_urls(includes)
elif not isinstance(includes, (list, tuple)):
# Not a problem; we simply have no includes
includes = list()
# Iterate over each config URL
for no, url in enumerate(includes):
if isinstance(url, str):
# Support a single inline string or multiple ones separated by
# a comma and/or space
configs.extend(parse_urls(url))
elif isinstance(url, dict):
# Store the url and ignore arguments associated
configs.extend(u for u in url.keys())
#
# urls root directive
#
urls = result.get('urls', None)
if not isinstance(urls, (list, tuple)):
# Not a problem; we simply have no urls
urls = list()
# Iterate over each URL
for no, url in enumerate(urls):
# Our results object is what we use to instantiate our object if
# we can. Reset it to None on each iteration
results = list()
# CWE-312 (Secure Logging) Handling
loggable_url = url if not asset.secure_logging \
else cwe312_url(url)
if isinstance(url, str):
# We're just a simple URL string...
schema = GET_SCHEMA_RE.match(url)
if schema is None:
# Log invalid entries so that maintainer of config
# config file at least has something to take action
# with.
ConfigBase.logger.warning(
'Invalid URL {}, entry #{}'.format(
loggable_url, no + 1))
continue
# We found a valid schema worthy of tracking; store it's
# details:
_results = plugins.url_to_dict(
url, secure_logging=asset.secure_logging)
if _results is None:
ConfigBase.logger.warning(
'Unparseable URL {}, entry #{}'.format(
loggable_url, no + 1))
continue
# add our results to our global set
results.append(_results)
elif isinstance(url, dict):
# We are a url string with additional unescaped options. In
# this case we want to iterate over all of our options so we
# can at least tell the end user what entries were ignored
# due to errors
it = iter(url.items())
# Track the URL to-load
|
(content, asset=None)
|
[
0.013769296929240227,
-0.030964234843850136,
-0.07781098783016205,
-0.02902897074818611,
-0.005321978125721216,
0.04600146412849426,
-0.008319414220750332,
-0.033833764493465424,
-0.03174278885126114,
-0.0024482766166329384,
-0.01425867434591055,
-0.013680319301784039,
-0.02856183797121048,
0.015615584328770638,
-0.009776423685252666,
-0.02538088522851467,
0.018440626561641693,
0.0569012314081192,
0.019597336649894714,
-0.0577465184032917,
-0.03189850226044655,
-0.016427505761384964,
-0.02306746505200863,
0.04226440191268921,
0.013302164152264595,
-0.011077722534537315,
0.06268478184938431,
-0.04066280275583267,
-0.017862271517515182,
0.007479686755686998,
-0.014948251657187939,
-0.026782283559441566,
0.03083076886832714,
-0.025670062750577927,
0.0010566100245341659,
-0.07527512311935425,
0.012390143238008022,
0.0763428583741188,
-0.09146906435489655,
0.043376624584198,
-0.012579220347106457,
-0.028361639007925987,
0.021299034357070923,
-0.04333213344216347,
-0.010427072644233704,
0.05965954065322876,
-0.03094199113547802,
0.09262577444314957,
-0.003901115618646145,
-0.051962971687316895,
0.024402130395174026,
0.009476124309003353,
-0.022756043821573257,
0.038416117429733276,
-0.018095837906003,
0.057835496962070465,
-0.00898674689233303,
0.12599240243434906,
0.03347785398364067,
0.008096969686448574,
-0.003775990568101406,
0.02602597326040268,
0.012323410250246525,
-0.011889643967151642,
-0.007640959229320288,
0.02607046253979206,
-0.03874978423118591,
-0.023467864841222763,
-0.041129935532808304,
-0.023890510201454163,
-0.041063204407691956,
-0.03241012245416641,
-0.007012553978711367,
-0.028272660449147224,
0.06811241805553436,
-0.035835765302181244,
-0.017317282035946846,
0.0318317674100399,
0.01597149483859539,
-0.009909889660775661,
-0.011589343659579754,
0.031075457111001015,
0.026782283559441566,
-0.0284506157040596,
0.06780099868774414,
-0.008497369475662708,
0.003770429641008377,
-0.006361904554069042,
0.03581352159380913,
0.0332331657409668,
-0.0023120297119021416,
0.039172425866127014,
0.024780286476016045,
0.036302898079156876,
-0.004921578336507082,
0.06246233731508255,
-0.017995737493038177,
-0.04404395446181297,
-0.009565101936459541,
-0.03886100649833679,
-0.009509490802884102,
-0.010332534089684486,
-0.08906666934490204,
-0.05263030156493187,
-0.028939994052052498,
-0.06321864575147629,
-0.024602331221103668,
0.03596923127770424,
0.04068504646420479,
0.021410256624221802,
-0.06731162220239639,
-0.08466227352619171,
-0.03187625855207443,
-0.0032504661940038204,
0.006473126821219921,
-0.03705920651555061,
-0.0421086922287941,
-0.010199067182838917,
0.022722676396369934,
-0.019819779321551323,
-0.03427865356206894,
0.0180291049182415,
-0.039639558643102646,
0.06544309109449387,
0.03616943210363388,
-0.02258921042084694,
-0.017094839364290237,
0.007463003508746624,
0.028650816529989243,
-0.026248417794704437,
0.004749184008687735,
0.016205061227083206,
-0.018629703670740128,
-0.0705593079328537,
0.058947719633579254,
-0.09743057191371918,
-0.04208644852042198,
0.007813353091478348,
-0.033655811101198196,
0.01147812232375145,
0.0053525641560554504,
0.022400133311748505,
-0.03398947790265083,
-0.04586799815297127,
-0.03685900941491127,
-0.033611323684453964,
0.051384616643190384,
-0.005227439105510712,
-0.07158254832029343,
-0.014403263106942177,
0.013346653431653976,
-0.05716816335916519,
-0.03236563503742218,
0.030741792172193527,
0.012390143238008022,
0.049115683883428574,
-0.033611323684453964,
0.019753046333789825,
-0.009392707608640194,
-0.03850509598851204,
-0.025959240272641182,
-0.018496237695217133,
0.004015118349343538,
0.029162436723709106,
-0.02691575139760971,
-0.03612494096159935,
0.0037732101045548916,
-0.03036363609135151,
-0.0005898247472941875,
0.008575224317610264,
-0.01649423874914646,
0.026270663365721703,
-0.07269477099180222,
0.029006727039813995,
0.006462004501372576,
0.05765754356980324,
0.0190857145935297,
0.010087845847010612,
-0.0053164167329669,
0.041129935532808304,
-0.028005728498101234,
0.008552980609238148,
-0.016116084530949593,
0.03421192243695259,
0.0180291049182415,
0.01491488516330719,
0.02818368375301361,
-0.008953380398452282,
0.009337096475064754,
0.02776103839278221,
-0.01950835809111595,
-0.037748783826828,
0.025736795738339424,
-0.024023976176977158,
0.009659640491008759,
-0.0012992132687941194,
-0.015237429179251194,
-0.018418380990624428,
0.02280053310096264,
-0.01914132572710514,
-0.03708145022392273,
-0.06797895580530167,
-0.018740925937891006,
0.006423077080398798,
0.010338095016777515,
0.013179820030927658,
-0.007946819998323917,
-0.017906760796904564,
-0.023467864841222763,
0.07567552477121353,
-0.0611276738345623,
0.021543722599744797,
-0.01835164800286293,
-0.012701565399765968,
0.02802797220647335,
-0.034345388412475586,
0.02740512788295746,
0.07523063570261002,
-0.047158174216747284,
-0.02638188563287258,
0.02691575139760971,
-0.03425640985369682,
0.040484849363565445,
-0.015793539583683014,
-0.05578901246190071,
0.015849150717258453,
0.036947984248399734,
0.021666066721081734,
0.0025678405072540045,
0.051696036010980606,
0.0619729608297348,
-0.005602813791483641,
0.037837762385606766,
0.0180291049182415,
0.0788787230849266,
-0.018340526148676872,
0.05752407759428024,
0.042909491807222366,
0.04235338047146797,
0.021354645490646362,
-0.007635397836565971,
0.022199932485818863,
-0.01303523126989603,
-0.021076589822769165,
-0.04956057295203209,
-0.006589910015463829,
-0.01009896770119667,
-0.017940126359462738,
-0.023868264630436897,
-0.02618168480694294,
0.04751408472657204,
0.01499274093657732,
-0.018952248618006706,
0.016694439575076103,
-0.01192301046103239,
-0.03174278885126114,
0.03109770268201828,
0.0025594988837838173,
0.0704258382320404,
-0.06931362301111221,
0.05716816335916519,
-0.03501272201538086,
0.043866001069545746,
0.035680051892995834,
-0.024135198444128036,
0.01420306321233511,
0.044244155287742615,
-0.029785281047225,
-0.04068504646420479,
0.028317149728536606,
0.08933360129594803,
0.0730951726436615,
0.0030085581820458174,
-0.028161438181996346,
-0.01301298663020134,
0.05356456711888313,
0.044244155287742615,
-0.0007444929797202349,
-0.0036035964731127024,
0.020275790244340897,
0.026671063154935837,
-0.01245687622576952,
0.032810524106025696,
0.03997322544455528,
0.075764499604702,
-0.0653541088104248,
-0.03988425061106682,
0.06304069608449936,
-0.038260407745838165,
0.015671195462346077,
-0.008324975147843361,
0.011383582837879658,
0.007090409751981497,
-0.021165568381547928,
0.007741058710962534,
0.03527965396642685,
-0.018062470480799675,
0.014347651973366737,
0.003036363748833537,
-0.024313153699040413,
-0.001505669322796166,
-0.009314851835370064,
0.0791456550359726,
-0.010365900583565235,
-0.03459007665514946,
0.01733952760696411,
0.04230888932943344,
-0.045089442282915115,
0.06522064656019211,
-0.027227172628045082,
0.039328139275312424,
0.00824711937457323,
0.020286913961172104,
0.022667067125439644,
-0.03654758632183075,
-0.009959939867258072,
-0.0021299035288393497,
0.03063056990504265,
0.02756083942949772,
0.006884648464620113,
-0.01306859776377678,
0.02876203879714012,
0.0015821345150470734,
-0.024090709164738655,
0.10410389304161072,
-0.008730935864150524,
0.0722498819231987,
0.005277489311993122,
-0.005878088530153036,
0.0309864804148674,
-0.03532414138317108,
-0.01081078965216875,
-0.06304069608449936,
0.05903669819235802,
0.0008751790155656636,
-0.03812693804502487,
-0.04933812841773033,
-0.08234885334968567,
0.020809657871723175,
-0.07594245672225952,
0.025047220289707184,
-0.012946253642439842,
-0.06562104821205139,
-0.008792107924818993,
0.007107092998921871,
-0.05316416919231415,
0.0373261421918869,
-0.0008313852595165372,
-0.01708371564745903,
0.031386878341436386,
0.019374892115592957,
0.020553845912218094,
0.03616943210363388,
0.04795897379517555,
0.06562104821205139,
-0.061483584344387054,
-0.02671555057168007,
-0.03739287331700325,
0.015181818045675755,
0.000543598085641861,
0.017962370067834854,
0.016371894627809525,
-0.007457442581653595,
0.03272154554724693,
0.028939994052052498,
-0.025736795738339424,
-0.02115444466471672,
0.003078071866184473,
0.07456330209970474,
-0.06441984325647354,
-0.018752047792077065,
0.04564555361866951,
0.03977302834391594,
-0.09244781732559204,
0.023245420306921005,
-0.001167832175269723,
0.0044210790656507015,
0.01612720638513565,
-0.06664428859949112,
-0.008541857823729515,
-0.02247798815369606,
0.10357002913951874,
0.0024482766166329384,
0.0028750915080308914,
0.01613832823932171,
-0.07425188273191452,
0.04072953760623932,
-0.01182291004806757,
0.015181818045675755,
0.02887325920164585,
0.08942257612943649,
-0.001358299981802702,
0.011967498809099197,
0.0284506157040596,
-0.04622390866279602,
-0.05970402806997299,
-0.040596071630716324,
0.008375025354325771,
0.022411255165934563,
-0.01441438589245081,
0.0167611725628376,
-0.04215317964553833,
0.02829490415751934,
0.02956283651292324,
0.0060504828579723835,
-0.04924914985895157,
0.08065827190876007,
0.018485113978385925,
-0.032076455652713776,
0.04373253509402275,
0.01200086623430252,
-0.021121079102158546,
-0.032120946794748306,
-0.05752407759428024,
-0.02902897074818611,
0.008052480407059193,
0.02426866441965103,
0.030497102066874504,
-0.005007775500416756,
0.010905328206717968,
0.007624275516718626,
-0.026426373049616814,
0.013513486832380295,
0.02173279970884323,
-0.011272360570728779,
0.0034923742059618235,
-0.009275924414396286,
0.0010281093418598175,
-0.09307066351175308,
-0.0369034968316555,
0.014058474451303482,
0.05623389780521393,
-0.014803662896156311,
-0.08848831057548523,
0.012201065197587013,
-0.03659207373857498,
-0.0021410256158560514,
-0.048937730491161346,
0.035413119941949844,
-0.025936996564269066,
-0.014013986103236675,
0.0383048951625824,
0.015281918458640575,
0.026826772838830948,
0.010143456980586052,
0.02257808856666088,
-0.11148904263973236,
0.02400173246860504,
-0.016405262053012848,
-0.060682784765958786,
-0.09556204080581665,
-0.007006993051618338,
0.030319146811962128,
-0.007040359545499086,
-0.018318282440304756,
-0.017016982659697533,
0.06046034023165703,
0.016104960814118385,
-0.035101696848869324,
-0.005933699663728476,
0.015693439170718193,
-0.030319146811962128,
0.03834938257932663,
0.030808525159955025,
-0.02882877178490162,
0.027850016951560974,
0.02311195433139801,
0.036058209836483,
-0.03585800901055336,
-0.006500932388007641,
-0.031653814017772675,
-0.04068504646420479,
-0.0005425553536042571,
0.04179726913571358,
-0.04840386286377907,
-0.027271661907434464,
0.05556656792759895,
0.0017225524643436074,
-0.039528340101242065,
-0.04081851616501808,
-0.009921012446284294,
-0.021510357037186623,
-0.006879087537527084,
0.01499274093657732,
-0.0033088577911257744,
-0.04399946704506874,
0.09992194175720215,
-0.0774550810456276,
-0.03728165104985237,
0.015782417729496956,
-0.05552207678556442,
-0.07776650041341782,
-0.012467999011278152,
-0.023512354120612144,
0.003756526857614517,
0.0238015316426754,
0.04266480356454849,
0.06731162220239639,
0.0629517138004303,
-0.07705467939376831,
0.016049351543188095,
-0.07376250624656677,
-0.009948818013072014,
-0.03592474013566971,
0.03305521234869957,
0.04448884353041649,
-0.0041902931407094,
0.03245461359620094,
-0.04368804395198822,
-0.0073629035614430904,
-0.0374596081674099,
-0.0008160922443494201,
0.037148185074329376,
0.01176729891449213,
0.025291908532381058,
-0.006940259598195553,
-0.008786546997725964,
0.01071068923920393,
-0.009787545539438725,
-0.0015028887428343296,
-0.000918972713407129,
-0.027672061696648598,
0.020909756422042847,
0.014347651973366737,
0.0070792874321341515,
0.03594698756933212,
-0.011644954793155193,
-0.029785281047225,
-0.06993646174669266,
0.0014444971457123756,
0.013413386419415474,
-0.0023453962057828903,
0.001505669322796166,
-0.010276922956109047,
0.05240785703063011,
0.03919467329978943,
0.028072461485862732,
-0.035680051892995834,
-0.03252134472131729,
0.024935998022556305,
0.018874391913414,
0.006840159650892019,
-0.0033894937951117754,
-0.012990742921829224,
0.007262804079800844,
0.0028125292155891657,
-0.006456443574279547,
0.021643823012709618,
0.030875258147716522,
-0.02664881758391857,
-0.01622730679810047,
0.017472993582487106,
0.021666066721081734,
-0.005327539052814245,
0.022933999076485634,
-0.0722498819231987,
0.006434198934584856,
-0.02798348292708397,
0.024557841941714287,
0.01740626059472561,
0.025469863787293434,
0.0009759740205481648,
-0.1114000678062439,
0.010082283988595009,
-0.003673110157251358,
-0.01192301046103239,
-0.027538593858480453,
0.024557841941714287,
-0.019430503249168396,
0.01956396922469139,
0.020387012511491776,
-0.05498821288347244,
-0.028495104983448982,
-0.023312155157327652,
-0.01804022677242756,
0.06081625074148178,
0.015170696191489697,
0.037526339292526245,
0.029051216319203377,
0.013869397342205048,
0.0068067931570112705,
-0.018807658925652504,
0.048848751932382584,
-0.02951834909617901,
0.011555977165699005,
0.011911887675523758,
0.06166153773665428,
0.07505267858505249,
0.02433539740741253,
0.04237562417984009,
-0.06628838181495667,
0.032343391329050064,
-0.01123899407684803,
0.01560446247458458,
-0.027805527672171593,
0.01739513874053955,
0.03701471909880638,
-0.045823510736227036,
-0.00007881129567977041,
-0.025358641520142555,
-0.017172694206237793,
-0.045089442282915115,
0.0002975191455334425,
0.0006037275306880474,
-0.0015890859067440033,
-0.017061471939086914,
0.024869263172149658,
-0.03443436697125435,
-0.004635181277990341,
0.011544855311512947,
0.012979620136320591,
-0.02914019301533699,
0.032120946794748306,
0.04099646955728531,
-0.02073180116713047,
-0.0028458957094699144,
-0.016694439575076103,
0.05583349987864494,
0.020587213337421417,
-0.05258581414818764,
0.02538088522851467,
0.02882877178490162,
-0.009715251624584198,
0.004988311789929867,
-0.050539325922727585,
-0.012890642508864403,
-0.019686313346028328,
-0.026248417794704437,
-0.03209870308637619,
0.019341524690389633,
0.060059938579797745,
-0.0029557275120168924,
0.01253473199903965,
0.0027583083137869835,
-0.008030236698687077,
0.019875390455126762,
0.1053495854139328,
-0.00026797575992532074,
0.028628570958971977,
-0.0030613886192440987,
0.08172600716352463,
-0.10036683082580566,
-0.0038232600782066584,
0.01650536060333252,
0.007018115371465683,
0.07500819116830826,
-0.004248684737831354,
0.0038594072684645653,
0.047736529260873795,
0.01761758327484131,
0.034345388412475586,
0.02369030937552452,
-0.03470129892230034,
0.0017169913044199347,
-0.05779100954532623,
0.10792993754148483,
0.0001690054778009653,
0.0005091887433081865,
-0.006884648464620113,
-0.017862271517515182,
-0.03592474013566971,
0.013769296929240227,
-0.003208757843822241,
-0.03919467329978943,
-0.016249550506472588,
-0.04827039688825607,
0.027071461081504822,
0.0016335747204720974,
-0.003019680269062519,
0.038683049380779266,
0.01729503832757473,
-0.06228438392281532,
0.024135198444128036,
0.014403263106942177,
0.021176690235733986,
-0.05160706117749214,
-0.022255543619394302,
0.013524608686566353,
-0.013357775285840034,
-0.012579220347106457,
0.010171261616051197,
0.028050215914845467,
0.022822776809334755,
-0.012501365505158901,
-0.029963236302137375,
-0.0026401348877698183,
0.05218541622161865,
-0.061172161251306534,
0.006039360538125038,
0.0193637702614069,
-0.0309864804148674,
0.04246460273861885,
0.015226307325065136,
0.017061471939086914,
-0.005091192200779915,
-0.03961731493473053,
-0.0067678652703762054,
-0.017328405752778053,
-0.029073460027575493,
0.012367898598313332,
0.05454332381486893,
-0.05409843474626541,
-0.01021018996834755,
-0.002153538167476654,
-0.04221991449594498,
-0.003695354564115405,
-0.018218182027339935,
-0.014792541041970253,
-0.0387275405228138,
0.02702697366476059,
0.02660432830452919,
0.053609058260917664,
0.04528964310884476,
-0.038215916603803635,
0.03185401111841202,
-0.009059040807187557,
-0.037570830434560776,
-0.016827905550599098,
0.01866307109594345,
0.03592474013566971,
0.006061605177819729,
0.012868397869169712,
0.035413119941949844,
-0.01681678369641304,
-0.009826473891735077,
0.0004386322107166052,
0.027160439640283585,
0.027783283963799477,
0.04724715277552605,
0.007463003508746624,
-0.03125341236591339,
0.05440985783934593,
-0.04564555361866951,
0.0052413418889045715,
-0.010749616660177708,
-0.058413852006196976,
-0.011622710153460503,
-0.01081635057926178,
-0.03670329600572586,
0.014269797131419182,
0.04030689224600792,
-0.04764755070209503,
-0.06477575749158859,
-0.018229303881525993,
-0.059793006628751755,
-0.03301072120666504,
0.05716816335916519,
0.03176503628492355,
-0.043866001069545746,
0.02840612642467022,
-0.008669763803482056,
-0.008402830921113491,
-0.01255697663873434,
0.014503363519906998,
-0.007257242687046528,
-0.010299167595803738,
0.025714552029967308,
0.030052214860916138,
0.006634398829191923,
0.011072161607444286,
0.028005728498101234,
-0.031498100608587265,
-0.002858408261090517,
0.04742510989308357,
0.0619729608297348,
0.034345388412475586,
-0.017039228230714798,
0.01078854501247406
] |
721,996
|
apprise.config.base
|
detect_config_format
|
Takes the specified content and attempts to detect the format type
The function returns the actual format type if detected, otherwise
it returns None
|
@staticmethod
def detect_config_format(content, **kwargs):
"""
Takes the specified content and attempts to detect the format type
The function returns the actual format type if detected, otherwise
it returns None
"""
# Detect Format Logic:
# - A pound/hashtag (#) is alawys a comment character so we skip over
# lines matched here.
# - Detection begins on the first non-comment and non blank line
# matched.
# - If we find a string followed by a colon, we know we're dealing
# with a YAML file.
# - If we find a string that starts with a URL, or our tag
# definitions (accepting commas) followed by an equal sign we know
# we're dealing with a TEXT format.
# Define what a valid line should look like
valid_line_re = re.compile(
r'^\s*(?P<line>([;#]+(?P<comment>.*))|'
r'(?P<text>((?P<tag>[ \t,a-z0-9_-]+)=)?[a-z0-9]+://.*)|'
r'((?P<yaml>[a-z0-9]+):.*))?$', re.I)
try:
# split our content up to read line by line
content = re.split(r'\r*\n', content)
except TypeError:
# content was not expected string type
ConfigBase.logger.error(
'Invalid Apprise configuration specified.')
return None
# By default set our return value to None since we don't know
# what the format is yet
config_format = None
# iterate over each line of the file to attempt to detect it
# stop the moment a the type has been determined
for line, entry in enumerate(content, start=1):
result = valid_line_re.match(entry)
if not result:
# Invalid syntax
ConfigBase.logger.error(
'Undetectable Apprise configuration found '
'based on line {}.'.format(line))
# Take an early exit
return None
# Attempt to detect configuration
if result.group('yaml'):
config_format = common.ConfigFormat.YAML
ConfigBase.logger.debug(
'Detected YAML configuration '
'based on line {}.'.format(line))
break
elif result.group('text'):
config_format = common.ConfigFormat.TEXT
ConfigBase.logger.debug(
'Detected TEXT configuration '
'based on line {}.'.format(line))
break
# If we reach here, we have a comment entry
# Adjust default format to TEXT
config_format = common.ConfigFormat.TEXT
return config_format
|
(content, **kwargs)
|
[
0.02075289934873581,
-0.10549867153167725,
0.05362595245242119,
-0.005245395470410585,
-0.02098158188164234,
-0.02747996523976326,
0.06033395975828171,
-0.005974319763481617,
-0.012606100179255009,
-0.017294082790613174,
0.010157296434044838,
0.027346566319465637,
-0.02340180054306984,
-0.019590431824326515,
0.0070939091965556145,
0.02035270631313324,
-0.020181193947792053,
0.04924287647008896,
0.017780032008886337,
-0.05789468437433243,
0.024773893877863884,
-0.04165825620293617,
-0.030300376936793327,
0.03283493593335152,
0.03165341168642044,
0.0067032440565526485,
0.05027194693684578,
-0.04607944190502167,
-0.02738468162715435,
-0.007341647986322641,
-0.0258601326495409,
-0.008589871227741241,
0.005321622826159,
0.014931035228073597,
-0.005188224837183952,
-0.047375306487083435,
-0.003449288196861744,
0.0517202652990818,
-0.07641793042421341,
0.00834689661860466,
-0.08293537050485611,
0.004821380600333214,
0.0035969787277281284,
-0.02534559927880764,
-0.0887286514043808,
0.018494663760066032,
-0.07470281422138214,
0.04043861851096153,
-0.06300191581249237,
-0.019190238788723946,
0.03380683809518814,
-0.03948577493429184,
-0.038837842643260956,
0.021343661472201347,
-0.04051484540104866,
-0.014330744743347168,
-0.0076084439642727375,
0.07714208960533142,
-0.010100126266479492,
0.02422124519944191,
-0.005059591494500637,
0.022372731938958168,
0.02525031380355358,
0.029366591945290565,
0.0020343177020549774,
0.027155999094247818,
0.011319763958454132,
-0.021648570895195007,
-0.004306846298277378,
0.009561769664287567,
0.013406488113105297,
-0.023439913988113403,
-0.0504625141620636,
-0.018399380147457123,
0.07965759932994843,
-0.02646995149552822,
-0.0452028289437294,
0.05682750046253204,
0.05473124608397484,
0.017036816105246544,
0.013577999547123909,
0.07866664230823517,
0.0551886111497879,
-0.051644038408994675,
0.04611755535006523,
-0.050424400717020035,
0.05000515282154083,
0.026622407138347626,
0.048823628574609756,
0.022715754806995392,
-0.005354972556233406,
-0.0013804299524053931,
0.021515173837542534,
0.02290632389485836,
-0.0066270167008042336,
0.03317796066403389,
0.01571236550807953,
-0.04912853613495827,
0.01863759011030197,
-0.03712272644042969,
-0.005407378543168306,
0.061515484005212784,
-0.048251923173666,
-0.09886689484119415,
-0.001990248914808035,
-0.06768990308046341,
-0.0391046367585659,
0.06871896982192993,
-0.020733842626214027,
-0.013549414463341236,
-0.036989327520132065,
-0.12821443378925323,
-0.05019572004675865,
-0.007413111161440611,
0.05061497166752815,
-0.04001936689019203,
-0.005164403934031725,
-0.02098158188164234,
-0.017694277688860893,
0.005678938701748848,
-0.02351614274084568,
0.03325418755412102,
-0.03361626714468002,
0.014035363681614399,
0.026527123525738716,
-0.006898576393723488,
-0.03514081612229347,
-0.01124353613704443,
0.05770411342382431,
-0.008284961804747581,
0.038323309272527695,
0.044821690768003464,
-0.0012791904155164957,
-0.046041328459978104,
-0.008670862764120102,
-0.02614598535001278,
-0.04996703937649727,
0.029328478500247,
-0.03125321865081787,
0.04234430193901062,
-0.0038256607949733734,
-0.008232555352151394,
-0.007508395239710808,
-0.05682750046253204,
-0.055417295545339584,
0.000631853414233774,
0.022372731938958168,
-0.037599146366119385,
-0.01955231837928295,
0.08102969080209732,
0.03773254528641701,
-0.026012588292360306,
-0.044135645031929016,
0.03407363221049309,
0.025383712723851204,
-0.037408579140901566,
-0.020829128101468086,
0.030910195782780647,
-0.023135004565119743,
-0.0006628207629546523,
0.017503708600997925,
-0.0009957199217751622,
0.04508848488330841,
0.030109809711575508,
-0.021400833502411842,
0.01802777126431465,
-0.016989173367619514,
-0.05819959193468094,
0.04855683073401451,
-0.03277776762843132,
-0.01873287558555603,
0.04790889844298363,
-0.04459301009774208,
0.027956385165452957,
0.05964791402220726,
0.07443602383136749,
0.016122087836265564,
0.004866641014814377,
-0.0067032440565526485,
0.027441851794719696,
0.0016019657487049699,
0.002062903018668294,
-0.030910195782780647,
0.04577453434467316,
0.04577453434467316,
0.03352098539471626,
0.004009082913398743,
-0.04775644466280937,
0.013273090124130249,
0.011510332114994526,
-0.0126156285405159,
-0.03481684997677803,
0.013882908970117569,
-0.010319279506802559,
0.008575578220188618,
0.010214466601610184,
-0.024068789556622505,
0.011824769899249077,
-0.008728032931685448,
-0.06715630739927292,
-0.014835750684142113,
-0.03971445560455322,
-0.0002980609133373946,
0.04078163951635361,
-0.019895343109965324,
-0.029766786843538284,
0.020638559013605118,
-0.015169245190918446,
-0.075579434633255,
0.06330682337284088,
-0.06795669347047806,
-0.04714662581682205,
-0.01826598308980465,
0.014025835320353508,
0.04566019028425217,
-0.0752745196223259,
0.04043861851096153,
0.08156327903270721,
-0.09086301922798157,
0.019142597913742065,
0.04139145836234093,
0.03630328178405762,
0.04684171453118324,
0.03142473101615906,
0.01974288746714592,
0.005045298486948013,
0.009890500456094742,
-0.0011737822787836194,
0.030357547104358673,
0.04485980421304703,
-0.0037232304457575083,
-0.0539308600127697,
-0.010376449674367905,
0.06586044281721115,
0.05835204944014549,
-0.013921022415161133,
0.03157718479633331,
-0.011033911257982254,
0.032110776752233505,
-0.004704657476395369,
0.025002576410770416,
0.03626516833901405,
-0.036474794149398804,
-0.006517439614981413,
-0.02961433120071888,
-0.0795813724398613,
-0.02372576668858528,
-0.017408424988389015,
-0.0452028289437294,
-0.03561723604798317,
0.015235944651067257,
0.01676049269735813,
0.02269669808447361,
-0.019352221861481667,
0.0015174009604379535,
-0.037599146366119385,
-0.011729485355317593,
-0.01932363770902157,
0.07416922599077225,
-0.03746575117111206,
0.05301613360643387,
-0.019333165138959885,
0.07176806032657623,
0.029595274478197098,
-0.06387852877378464,
-0.017760975286364555,
0.019781000912189484,
0.005002420861274004,
-0.0221821628510952,
0.00600290484726429,
0.04566019028425217,
0.04996703937649727,
-0.012253548949956894,
-0.03439759835600853,
-0.009985785000026226,
0.02189631015062332,
0.03571252152323723,
0.008356424979865551,
0.053702179342508316,
0.01322544738650322,
0.01800871454179287,
0.018685232847929,
0.042382415384054184,
0.042306188493967056,
0.08598446846008301,
-0.017275026068091393,
-0.05953357368707657,
0.007365469355136156,
-0.027251282706856728,
0.04139145836234093,
0.008961479179561138,
-0.0022868209052830935,
0.0421537309885025,
-0.004676072392612696,
0.025879191234707832,
0.06616535037755966,
0.008704212494194508,
-0.004004318732768297,
0.00278706313110888,
-0.1092338114976883,
-0.023954449221491814,
0.002021216321736574,
0.04356393963098526,
-0.023782938718795776,
-0.040857866406440735,
-0.0027584778144955635,
-0.027041656896471977,
-0.07039596885442734,
0.034035518765449524,
-0.02646995149552822,
0.01617925800383091,
-0.008270668797194958,
0.062125302851200104,
-0.03054811619222164,
-0.05385463312268257,
0.009947671554982662,
0.013778096064925194,
0.05015760660171509,
0.00988097209483385,
-0.015102546662092209,
0.0078180693089962,
0.04691794142127037,
-0.008913837373256683,
-0.007031974382698536,
0.08987206220626831,
-0.043297141790390015,
0.028775829821825027,
-0.014673767611384392,
-0.02879488654434681,
0.04996703937649727,
-0.02544088289141655,
0.012406003661453724,
-0.02401161938905716,
0.0486711710691452,
0.009604647755622864,
-0.04020993411540985,
-0.032606255263090134,
-0.05061497166752815,
0.0083707170560956,
-0.07538886368274689,
0.043906960636377335,
-0.036798760294914246,
-0.023859165608882904,
-0.03275870904326439,
0.0678042396903038,
0.025517109781503677,
0.041086550801992416,
0.009604647755622864,
0.0126156285405159,
0.05210140347480774,
0.017808618023991585,
-0.04672737419605255,
-0.012425060383975506,
-0.018513720482587814,
0.0038828314282000065,
-0.04912853613495827,
-0.05259688198566437,
-0.07455036044120789,
0.017456065863370895,
0.004399748053401709,
0.0486711710691452,
0.028127897530794144,
-0.017456065863370895,
0.04802323877811432,
-0.013149220496416092,
0.027613362297415733,
-0.06742310523986816,
0.06364984810352325,
0.06201096251606941,
-0.01232024747878313,
-0.017103515565395355,
0.05945734307169914,
0.009547477588057518,
-0.11556068807840347,
0.04577453434467316,
-0.052063290029764175,
0.01669379323720932,
-0.009328323416411877,
-0.06890954077243805,
0.03571252152323723,
-0.029328478500247,
0.08415500819683075,
-0.021305548027157784,
-0.02576484903693199,
-0.023782938718795776,
-0.08362141996622086,
-0.017427481710910797,
-0.03773254528641701,
-0.006565081886947155,
0.009352144785225391,
0.02361142635345459,
0.003861392382532358,
0.010128711350262165,
0.04001936689019203,
-0.02991924062371254,
-0.025974474847316742,
-0.04150579869747162,
0.04234430193901062,
0.007341647986322641,
0.028680546209216118,
-0.015188302844762802,
-0.03670347481966019,
0.00524063128978014,
0.00919016171246767,
-0.012606100179255009,
0.024888234212994576,
0.07752323150634766,
0.03634139522910118,
-0.0018747167196124792,
0.01672237738966942,
0.0521395169198513,
-0.017589464783668518,
-0.009075820446014404,
-0.05534106865525246,
-0.021000638604164124,
0.024145018309354782,
0.012301190756261349,
0.03796122595667839,
-0.03717989847064018,
-0.006141067016869783,
-0.006898576393723488,
0.021038752049207687,
0.02930942177772522,
0.05972414091229439,
0.04112466424703598,
0.06124868616461754,
-0.00023731723194941878,
0.008818552829325199,
-0.042077504098415375,
-0.026736747473478317,
-0.013196862302720547,
0.017103515565395355,
-0.02473578043282032,
-0.03275870904326439,
-0.03754197806119919,
-0.03519798442721367,
0.021191207692027092,
-0.045850761234760284,
-0.007932410575449467,
-0.06597478687763214,
-0.0005535417003557086,
0.02687014639377594,
-0.024716723710298538,
0.047794558107852936,
0.013120635412633419,
-0.034035518765449524,
-0.05713241174817085,
-0.02401161938905716,
-0.028166010975837708,
-0.03777065873146057,
-0.1103772222995758,
0.023135004565119743,
-0.03146284446120262,
0.005640824791043997,
-0.018999671563506126,
-0.01159608829766512,
0.006860462948679924,
0.061020005494356155,
0.021839139983057976,
0.008232555352151394,
0.045431509613990784,
0.006698479875922203,
0.016827190294861794,
-0.03115793503820896,
0.0052168103866279125,
-0.029176024720072746,
-0.008061043918132782,
0.00562653224915266,
-0.03626516833901405,
-0.040552958846092224,
-0.01955231837928295,
-0.019876284524798393,
0.020733842626214027,
0.03948577493429184,
-0.014035363681614399,
0.0060362545773386955,
0.03510270267724991,
0.02239178866147995,
-0.025288429111242294,
-0.020009683445096016,
0.0002201958413934335,
-0.03344475477933884,
-0.044021304696798325,
-0.035884030163288116,
0.027422795072197914,
-0.06395475566387177,
0.013797152787446976,
-0.07443602383136749,
-0.04383073374629021,
0.008313546888530254,
-0.0361127145588398,
0.0031801103614270687,
0.021458003669977188,
0.01236789021641016,
0.015255001373589039,
-0.0070081534795463085,
0.03704649955034256,
0.03285399451851845,
0.050119493156671524,
-0.055531635880470276,
0.025383712723851204,
-0.030452832579612732,
-0.008761382661759853,
-0.011529388837516308,
0.022448958829045296,
-0.004190123174339533,
0.008589871227741241,
0.028832999989390373,
-0.0073702335357666016,
0.019914399832487106,
-0.05515049770474434,
0.002458332572132349,
0.05362595245242119,
0.004978599958121777,
-0.00858034286648035,
-0.0012255931505933404,
0.03626516833901405,
0.0033325650729238987,
-0.009785687550902367,
-0.01638888381421566,
-0.048594944179058075,
-0.014006778597831726,
0.007922881282866001,
0.004509325139224529,
-0.002596494508907199,
0.06311625987291336,
0.05667504668235779,
-0.03294927999377251,
-0.03226323053240776,
-0.023325573652982712,
0.03838047757744789,
0.023782938718795776,
0.02258235774934292,
-0.01094815507531166,
0.02168668620288372,
0.003034801920875907,
-0.021248377859592438,
0.03971445560455322,
0.0014268809463828802,
0.013635169714689255,
-0.0058171008713543415,
-0.03533138334751129,
-0.02909979596734047,
0.0015483683673664927,
-0.01601727493107319,
-0.029804900288581848,
0.033330414444208145,
0.011386462487280369,
-0.006584138609468937,
-0.02494540438055992,
-0.00733211962506175,
0.02982395701110363,
0.06399287283420563,
0.010100126266479492,
0.018675703555345535,
0.01826598308980465,
0.02736562304198742,
-0.007079616654664278,
0.03714178502559662,
-0.014645182527601719,
-0.02075289934873581,
0.007822833023965359,
-0.061210572719573975,
0.0146642392501235,
-0.04527905583381653,
-0.001373283565044403,
-0.031062651425600052,
0.04040050506591797,
-0.027098828926682472,
0.01955231837928295,
0.047184739261865616,
-0.04093409329652786,
0.020124023780226707,
-0.025193143635988235,
-0.003330182982608676,
0.04135334491729736,
0.011948639526963234,
0.054311998188495636,
0.008637513034045696,
-0.002934753429144621,
-0.005054827313870192,
-0.04409753158688545,
0.0486711710691452,
-0.045545849949121475,
-0.01685577630996704,
-0.016560394316911697,
0.03426419943571091,
0.029652444645762444,
-0.04428809881210327,
0.0447835773229599,
-0.03233946114778519,
0.04261109605431557,
0.024392757564783096,
-0.022239333018660545,
-0.025726735591888428,
0.03214889019727707,
0.09353097528219223,
-0.04703228548169136,
0.03777065873146057,
-0.01328261848539114,
-0.06555553525686264,
-0.03937143459916115,
-0.04333525523543358,
-0.03914275020360947,
0.007656085770577192,
-0.002395206829532981,
-0.004380691330879927,
-0.012853839434683323,
0.019123539328575134,
-0.03163435682654381,
0.061934735625982285,
0.02075289934873581,
0.02227744646370411,
0.02656523697078228,
0.012996765784919262,
0.023668596521019936,
-0.00648885453119874,
0.010119182989001274,
0.03792311251163483,
-0.0578184574842453,
0.02951904758810997,
0.06094377860426903,
0.010157296434044838,
-0.019009198993444443,
-0.03990502655506134,
0.055607862770557404,
-0.0939883440732956,
-0.03921898081898689,
-0.04344959929585457,
0.00988097209483385,
0.0973423421382904,
0.020943468436598778,
0.011033911257982254,
0.019781000912189484,
-0.030795855447649956,
0.006936690304428339,
0.023744823411107063,
-0.010652774013578892,
0.000324264052323997,
0.0121677927672863,
0.04813757911324501,
-0.09581779688596725,
0.016941532492637634,
0.005478841718286276,
-0.005478841718286276,
0.040857866406440735,
0.0013113488676026464,
-0.04040050506591797,
0.03815179690718651,
0.002653665142133832,
0.018685232847929,
0.014769052155315876,
0.018704289570450783,
0.0011052967747673392,
-0.04150579869747162,
0.05301613360643387,
0.021305548027157784,
0.04001936689019203,
-0.024106904864311218,
-0.015512268990278244,
-0.03857104480266571,
0.030700571835041046,
-0.04283978044986725,
-0.015235944651067257,
0.010910041630268097,
-0.05179649591445923,
0.03304456174373627,
-0.014673767611384392,
0.025802962481975555,
0.0022451342083513737,
0.027327509596943855,
-0.023325573652982712,
0.06521251052618027,
0.03003358095884323,
0.04211561754345894,
-0.04303034767508507,
-0.036474794149398804,
-0.009685639292001724,
0.04752776026725769,
0.002956192474812269,
0.03218700364232063,
0.026222214102745056,
-0.036169882863759995,
0.037827830761671066,
-0.024773893877863884,
0.013358845375478268,
0.01964760385453701,
-0.015035848133265972,
-0.0038852135185152292,
-0.010204938240349293,
-0.04154391214251518,
0.0071606081910431385,
0.0006586520466953516,
0.02462143823504448,
0.010538432747125626,
-0.057056181132793427,
-0.020943468436598778,
0.013520828448235989,
-0.04261109605431557,
0.01791343092918396,
0.050119493156671524,
-0.02342085726559162,
-0.009361673146486282,
0.00788953248411417,
-0.04078163951635361,
-0.03136755898594856,
-0.04013370722532272,
0.004878551233559847,
-0.020905354991555214,
0.038513876497745514,
-0.0021010166965425014,
0.05819959193468094,
0.0551886111497879,
-0.03575063496828079,
0.02736562304198742,
0.015617080964148045,
-0.03188209608197212,
-0.035064589232206345,
0.019895343109965324,
-0.007022446021437645,
-0.04444055259227753,
0.009199690073728561,
-0.00323013449087739,
-0.003985262010246515,
-0.01170090027153492,
0.036894045770168304,
0.02422124519944191,
-0.004502178635448217,
0.031920209527015686,
-0.0021045899484306574,
-0.011129194870591164,
0.02635561116039753,
-0.011824769899249077,
0.04905230924487114,
0.01159608829766512,
-0.011462690308690071,
-0.01293006632477045,
-0.028127897530794144,
-0.012958652339875698,
-0.04489791765809059,
-0.0011535343946889043,
0.004040050320327282,
-0.08011496067047119,
0.0365319661796093,
-0.03458816558122635,
0.003861392382532358,
0.03971445560455322,
0.059800367802381516,
-0.029385648667812347,
0.051262903958559036,
-0.014540369622409344,
-0.046956054866313934,
-0.01683671958744526,
0.016617566347122192,
-0.00821826234459877,
-0.02258235774934292,
0.0252312570810318,
0.006698479875922203,
0.03519798442721367,
0.03746575117111206,
0.0417344830930233,
-0.017732391133904457,
0.023687653243541718,
0.07066276669502258,
0.009547477588057518,
-0.007646557409316301,
-0.08270668983459473,
0.009919085539877415
] |
721,998
|
apprise.config.base
|
expired
|
Simply returns True if the configuration should be considered
as expired or False if content should be retrieved.
|
def expired(self):
"""
Simply returns True if the configuration should be considered
as expired or False if content should be retrieved.
"""
if isinstance(self._cached_servers, list) and self.cache:
# We have enough reason to look further into our cached content
# and verify it has not expired.
if self.cache is True:
# we have not expired, return False
return False
# Verify our cache time to determine whether we will get our
# content again.
age_in_sec = time.time() - self._cached_time
if age_in_sec <= self.cache:
# We have not expired; return False
return False
# If we reach here our configuration should be considered
# missing and/or expired.
return True
|
(self)
|
[
0.06575079262256622,
-0.002032061805948615,
0.01735234074294567,
0.0023728960659354925,
0.08207631856203079,
0.01065646018832922,
-0.028284920379519463,
-0.021951446309685707,
0.02935488149523735,
-0.006238559260964394,
0.012106084264814854,
0.0010057843755930662,
0.012917183339595795,
0.00010826338257174939,
0.016679301857948303,
-0.02633483149111271,
-0.016938162967562675,
-0.012330430559813976,
0.009577871300280094,
-0.10209493339061737,
-0.0053843166679143906,
-0.014228747226297855,
0.013944000005722046,
-0.004612047225236893,
0.01519516296684742,
0.013469420373439789,
0.0409001000225544,
-0.02041553519666195,
-0.006009898614138365,
0.04694019630551338,
-0.034721940755844116,
0.04970138520002365,
0.03648219630122185,
-0.011622875928878784,
0.023815248161554337,
0.01715388149023056,
0.009879875928163528,
-0.008784029632806778,
-0.029147792607545853,
-0.0026770581025630236,
-0.022434653714299202,
-0.007459522224962711,
0.0181548111140728,
-0.009094662964344025,
-0.017740633338689804,
0.0070884875021874905,
-0.022193050011992455,
0.05767431482672691,
-0.018638020381331444,
-0.029130535200238228,
0.05598308891057968,
-0.010294054634869099,
0.015022588893771172,
0.049252692610025406,
0.015807801857590675,
-0.011812707409262657,
-0.002422511111944914,
0.13736911118030548,
0.02756010927259922,
0.015065732412040234,
-0.026283059269189835,
-0.029147792607545853,
0.00801176019012928,
-0.019103970378637314,
0.046560533344745636,
0.053774137049913406,
-0.03979562222957611,
-0.009293124079704285,
0.014116574078798294,
0.032133325934410095,
0.04328162223100662,
0.0041007958352565765,
-0.03537772223353386,
0.025282127782702446,
-0.006165215279906988,
-0.06550918519496918,
-0.06847746670246124,
0.04642247408628464,
-0.02856103889644146,
0.009784960187971592,
-0.015643855556845665,
-0.05346350371837616,
0.016808733344078064,
-0.009551985189318657,
0.03872566297650337,
0.015410881489515305,
0.041970059275627136,
-0.03972659260034561,
-0.013262331485748291,
0.051875822246074677,
0.027939772233366966,
0.06060807779431343,
0.009871247224509716,
-0.05798495188355446,
0.023849762976169586,
-0.014151088893413544,
-0.004426529631018639,
0.004823450464755297,
0.028077831491827965,
-0.07427596300840378,
0.03251298889517784,
0.03993368148803711,
-0.002103248843923211,
-0.0061522722244262695,
0.04445512965321541,
-0.008214534260332584,
-0.03506708890199661,
-0.0541883148252964,
-0.00712300231680274,
-0.04908011853694916,
-0.012028425931930542,
-0.03401438519358635,
-0.0015456181718036532,
0.002247779630124569,
0.04714728519320488,
-0.009897133335471153,
-0.04241875186562538,
0.006583707872778177,
-0.058364614844322205,
-0.01941460371017456,
0.011234584264457226,
0.009353525005280972,
0.018344642594456673,
0.010984351858496666,
0.04324710741639137,
0.023314781486988068,
-0.051047466695308685,
-0.034497592598199844,
0.034825485199689865,
0.005953812040388584,
0.0014442307874560356,
0.025506475940346718,
0.023418325930833817,
0.015436767600476742,
-0.0023297525476664305,
-0.04172845557332039,
0.04687116667628288,
0.041210733354091644,
-0.029648257419466972,
0.05266966298222542,
-0.021916931495070457,
0.026075970381498337,
0.01722291111946106,
-0.01293444074690342,
0.033065225929021835,
0.0026145000010728836,
-0.03820794075727463,
0.00857694074511528,
0.007640725001692772,
-0.018430931493639946,
0.05149615928530693,
-0.04093461483716965,
-0.0452144555747509,
-0.03720701113343239,
-0.03208155557513237,
-0.03197801113128662,
-0.06236833706498146,
0.04700922593474388,
-0.01962169259786606,
-0.041210733354091644,
-0.023263009265065193,
0.024591831490397453,
-0.025471961125731468,
-0.03480822592973709,
-0.024591831490397453,
-0.008085103705525398,
-0.05429185926914215,
-0.03175366297364235,
-0.0012166484957560897,
0.04131427779793739,
0.006195415742695332,
0.025144068524241447,
-0.01779240556061268,
0.009137806482613087,
-0.010992980562150478,
0.004676762502640486,
0.018396414816379547,
0.025213098153471947,
0.02792251482605934,
-0.02576533704996109,
-0.0451454259455204,
-0.028509266674518585,
-0.08545877039432526,
0.010216396301984787,
0.027283990755677223,
0.029941633343696594,
-0.0006234244792722166,
-0.0044869305565953255,
0.03225412964820862,
0.09153338521718979,
-0.03423873335123062,
-0.011243212968111038,
-0.04266035556793213,
-0.03599898889660835,
-0.03613704815506935,
-0.005159970372915268,
-0.03430776298046112,
0.008339650928974152,
0.049321722239255905,
0.08000542223453522,
-0.05691498890519142,
-0.04901108890771866,
-0.004469673149287701,
-0.04914914816617966,
0.043937407433986664,
-0.0019684250000864267,
-0.06678623706102371,
-0.01915574260056019,
-0.012856782414019108,
0.07903900742530823,
-0.08718451112508774,
-0.006734710186719894,
-0.017706118524074554,
0.012062940746545792,
0.0008995432872325182,
0.015376366674900055,
-0.001488453010097146,
0.03648219630122185,
-0.0729643926024437,
-0.008059217594563961,
0.07027223706245422,
-0.038415029644966125,
-0.007071230094879866,
-0.006691566668450832,
0.02170984074473381,
0.010311312042176723,
0.03869114816188812,
0.033565692603588104,
-0.0495978407561779,
-0.030304038897156715,
0.007873700000345707,
0.0635073259472847,
0.019725237041711807,
0.0030869219917804003,
0.11610796302556992,
-0.00019508980039972812,
0.05173776298761368,
0.056569840759038925,
0.031339485198259354,
0.04448964446783066,
0.003740546992048621,
0.024056851863861084,
0.021830642595887184,
-0.04348871111869812,
-0.009198207408189774,
-0.038449544459581375,
-0.017145251855254173,
0.07814162224531174,
-0.0360335037112236,
-0.0159631185233593,
-0.009845361113548279,
0.021899672225117683,
0.010432113893330097,
-0.03135674074292183,
0.003982150927186012,
-0.06071162223815918,
-0.046733107417821884,
-0.023124950006604195,
0.031667377799749374,
-0.027145929634571075,
0.05777785927057266,
-0.02523035556077957,
-0.025886138901114464,
0.0722050666809082,
0.003977836575359106,
0.0059192972257733345,
0.04531800001859665,
-0.0008466924191452563,
-0.010173252783715725,
0.027715425938367844,
0.04172845557332039,
-0.036620255559682846,
-0.010112851858139038,
-0.04728534445166588,
-0.017033079639077187,
0.020536337047815323,
0.0317191481590271,
-0.048320792615413666,
-0.06813231855630875,
0.04763049632310867,
-0.011208698153495789,
-0.00671745277941227,
0.0018217370379716158,
-0.02184790000319481,
-0.049425266683101654,
-0.009767702780663967,
-0.07745132595300674,
0.033237800002098083,
-0.012580662965774536,
0.03537772223353386,
-0.022814316675066948,
-0.003473056945949793,
0.016411811113357544,
-0.03827697038650513,
0.010932578705251217,
-0.020122157409787178,
-0.020156674087047577,
-0.017775148153305054,
0.023280266672372818,
0.061125800013542175,
-0.02799154445528984,
0.0010834427084773779,
-0.06440471112728119,
-0.037483129650354385,
0.05218645557761192,
0.02020844630897045,
-0.03965756297111511,
0.024591831490397453,
0.06081516668200493,
0.05988326668739319,
0.026818038895726204,
-0.05084037780761719,
-0.014668812043964863,
-0.030304038897156715,
0.054775070399045944,
0.008218849077820778,
-0.03800085186958313,
-0.010984351858496666,
-0.005449031945317984,
0.0359644740819931,
-0.02347009815275669,
0.08863414078950882,
-0.03876017779111862,
0.009733187966048717,
0.013771425932645798,
-0.044627703726291656,
0.033496662974357605,
0.04369580000638962,
0.004836393520236015,
0.009267237968742847,
-0.006018527317792177,
-0.04763049632310867,
0.01705896481871605,
0.006100500002503395,
0.003919592592865229,
-0.05525827780365944,
0.0201739314943552,
-0.045835722237825394,
0.05487861484289169,
-0.002864732639864087,
0.009621014818549156,
-0.03769021853804588,
-0.01409931667149067,
-0.02167532593011856,
0.0250405240803957,
-0.02773268334567547,
0.05732916668057442,
0.009681415744125843,
0.04452415928244591,
-0.025178583338856697,
-0.058192040771245956,
0.009301752783358097,
0.05373962223529816,
0.045732177793979645,
0.07579461485147476,
-0.03315151482820511,
0.004948566667735577,
0.03434227779507637,
-0.006665680557489395,
0.011545217595994473,
0.026507405564188957,
0.005047797225415707,
-0.015022588893771172,
0.024591831490397453,
-0.06416311115026474,
0.008904831483960152,
0.033134255558252335,
-0.052048396319150925,
0.035895444452762604,
-0.0900837630033493,
-0.051979366689920425,
-0.03235767409205437,
0.008818544447422028,
-0.028785385191440582,
0.06419762223958969,
-0.05984875187277794,
-0.030873535200953484,
0.031046109274029732,
-0.01080314815044403,
0.06440471112728119,
0.002075205324217677,
0.03879469260573387,
0.009353525005280972,
-0.008913460187613964,
-0.0041547250002622604,
0.0005031618056818843,
-0.01735234074294567,
-0.016480840742588043,
-0.007735641207545996,
-0.01635141111910343,
0.0026943155098706484,
-0.008335337042808533,
-0.06226479262113571,
0.03154657408595085,
-0.07565655559301376,
0.005082312040030956,
-0.011769563890993595,
0.025748079642653465,
-0.010397599078714848,
-0.046733107417821884,
0.07600170373916626,
0.04131427779793739,
0.021951446309685707,
0.028043316677212715,
0.007990187965333462,
-0.04052043706178665,
0.054775070399045944,
-0.0007776627317070961,
-0.02583436667919159,
0.05139261484146118,
-0.017145251855254173,
-0.027076900005340576,
-0.0035873872693628073,
0.001345000579021871,
-0.02583436667919159,
0.01535910926759243,
-0.021796127781271935,
-0.014116574078798294,
0.023418325930833817,
0.05964166298508644,
0.015911346301436424,
-0.02686981111764908,
-0.012261400930583477,
-0.023124950006604195,
-0.039415959268808365,
0.013305475004017353,
-0.013667881488800049,
-0.0011400686344131827,
-0.0810408741235733,
-0.018810594454407692,
0.025109553709626198,
0.03487725555896759,
0.00032384638325311244,
-0.002446240046992898,
0.04259132593870163,
-0.037517644464969635,
-0.026973355561494827,
-0.06813231855630875,
-0.06671720743179321,
-0.034566622227430344,
-0.028302177786827087,
0.00589341064915061,
0.025109553709626198,
0.03537772223353386,
0.06216124817728996,
-0.017041707411408424,
-0.01894865371286869,
0.018206583335995674,
0.08041960000991821,
0.012503004632890224,
-0.03689637780189514,
0.027888000011444092,
-0.013245074078440666,
-0.007584638427942991,
-0.02314220741391182,
0.01962169259786606,
0.008244735188782215,
0.03523966297507286,
-0.03806988149881363,
0.03731055557727814,
-0.029872603714466095,
0.01283089630305767,
-0.017283311113715172,
-0.0497359000146389,
0.017878692597150803,
0.010181881487369537,
-0.007351663429290056,
0.03501531481742859,
0.0113553861156106,
0.052048396319150925,
-0.036689285188913345,
-0.04801015928387642,
-0.05998681113123894,
-0.03039032593369484,
-0.03196075186133385,
-0.03903629630804062,
0.004251798149198294,
0.10554641485214233,
-0.004234540741890669,
-0.03365198150277138,
-0.02982083149254322,
0.051944851875305176,
0.004521445371210575,
-0.029406653717160225,
0.013063871301710606,
-0.10975722968578339,
-0.007127316668629646,
-0.0084431953728199,
-0.03025226667523384,
-0.024229425936937332,
-0.05077134445309639,
-0.04552508890628815,
-0.0007652589702047408,
-0.011044752784073353,
0.027715425938367844,
-0.016679301857948303,
-0.0014043230330571532,
0.049287207424640656,
0.03976110741496086,
-0.0005120601854287088,
0.004926994908601046,
0.0077744703739881516,
0.001802322338335216,
0.08897928893566132,
0.032564762979745865,
-0.025523733347654343,
0.0032724393531680107,
-0.02429845556616783,
-0.0037880048621445894,
-0.0026576435193419456,
-0.022296594455838203,
-0.0014258947921916842,
0.055672455579042435,
-0.002006175694987178,
-0.0012285129632800817,
0.035653840750455856,
-0.029700029641389847,
-0.0044653587974607944,
0.003518357640132308,
0.022831574082374573,
0.01955266296863556,
0.003755647223442793,
0.07613976299762726,
0.025144068524241447,
-0.07448305189609528,
0.05042619630694389,
0.027145929634571075,
-0.03480822592973709,
-0.016334153711795807,
0.0063981907442212105,
0.04607732594013214,
-0.03275459259748459,
0.013443534262478352,
-0.021865157410502434,
-0.023763475939631462,
0.04259132593870163,
-0.04152136668562889,
-0.0319262370467186,
-0.07151477038860321,
-0.02253819815814495,
0.05373962223529816,
-0.04014077037572861,
0.0730334222316742,
-0.014021658338606358,
-0.05342898890376091,
-0.004456730093806982,
-0.0018497803248465061,
0.02070891112089157,
0.04949429631233215,
-0.013391762040555477,
0.006031470373272896,
-0.004586160648614168,
0.07572558522224426,
-0.07724423706531525,
0.06930582225322723,
-0.005850267130881548,
0.02203773334622383,
-0.019656207412481308,
-0.011959396302700043,
0.010319940745830536,
0.03903629630804062,
-0.03544675186276436,
-0.019897811114788055,
0.0683739185333252,
-0.012563405558466911,
-0.0361025333404541,
0.04856239631772041,
-0.03620607778429985,
0.017309198155999184,
0.039519503712654114,
0.03408341482281685,
-0.018292870372533798,
0.014651554636657238,
-0.0026576435193419456,
0.012684207409620285,
0.00242682546377182,
-0.032668307423591614,
-0.00040905491914600134,
0.0033112685196101665,
-0.04331613704562187,
0.028837157413363457,
-0.05356704816222191,
0.03297894075512886,
-0.009051519446074963,
0.005224685650318861,
-0.05436089262366295,
-0.03002792038023472,
0.056500811129808426,
0.017145251855254173,
0.012045683339238167,
-0.02666272222995758,
0.05125455558300018,
0.01934557408094406,
-0.019328316673636436,
0.060297444462776184,
0.04421352595090866,
0.046733107417821884,
-0.019500890746712685,
-0.01722291111946106,
0.05004653334617615,
0.0065880222246050835,
-0.01798223704099655,
0.0003667202836368233,
-0.022917861118912697,
-0.02566179260611534,
-0.008339650928974152,
0.0014604096068069339,
0.007286948151886463,
-0.010276797227561474,
-0.05373962223529816,
0.03218510001897812,
-0.034394048154354095,
0.02120937593281269,
0.04000271111726761,
0.06402505189180374,
0.009940276853740215,
-0.0204500500112772,
0.004655190743505955,
-0.04262584075331688,
-0.024695375934243202,
0.003919592592865229,
0.0365167111158371,
0.012140599079430103,
-0.0009696516208350658,
-0.04141782224178314,
-0.04728534445166588,
0.04007174074649811,
0.021157603710889816,
-0.06164352595806122,
0.014461723156273365,
0.049425266683101654,
-0.02407410927116871,
0.026248544454574585,
0.0046508763916790485,
-0.09774605929851532,
0.014228747226297855,
0.02623128704726696,
0.04459318891167641,
0.029199564829468727,
-0.020605366677045822,
-0.00349894305691123,
-0.023521870374679565,
-0.051012951880693436,
0.002185221528634429,
-0.05501667410135269,
-0.026490148156881332,
0.018776079639792442,
0.01915574260056019,
0.09153338521718979,
0.00564317824319005,
-0.005815752316266298,
0.0018778236117213964,
0.09712479263544083,
-0.01672244630753994,
-0.0495978407561779,
-0.04904560372233391,
0.034929029643535614,
0.04604281112551689,
0.02956197038292885,
-0.0722050666809082,
0.009431183338165283,
-0.042039088904857635,
-0.042108118534088135,
-0.03879469260573387,
0.07386178523302078,
-0.08608003705739975,
-0.02020844630897045,
0.030045177787542343,
-0.038346000015735626,
0.08960055559873581,
-0.0026705865748226643,
-0.04231520742177963,
0.022382881492376328,
0.022365624085068703,
0.022624485194683075,
-0.042142633348703384,
-0.04410998150706291,
-0.023263009265065193,
-0.01991506852209568,
0.03187446668744087,
-0.002463497454300523,
0.04276390001177788,
-0.03889823704957962,
0.03234041482210159,
-0.006721767131239176,
0.013201930560171604,
0.024660861119627953,
-0.052082911133766174,
-0.02117486111819744,
-0.039450474083423615,
-0.05429185926914215,
-0.04141782224178314,
-0.005017596296966076,
0.027888000011444092,
-0.01012148056179285,
-0.05784689262509346,
-0.010527029633522034,
0.09560614079236984,
0.01205431204289198,
-0.011976653710007668,
-0.007990187965333462,
0.04694019630551338,
0.025972425937652588,
0.0018702734960243106,
0.021123088896274567,
-0.04773404076695442,
-0.02120937593281269,
-0.0025929282419383526,
-0.039519503712654114,
-0.001069960417225957,
-0.032461218535900116,
0.07689908891916275,
0.05501667410135269,
0.008167076855897903,
-0.018396414816379547,
-0.026438375934958458,
0.015255563892424107,
-0.018379157409071922,
0.0591239407658577,
0.03720701113343239,
-0.016437698155641556,
0.018689792603254318,
-0.020726168528199196,
0.005902039352804422,
-0.018896881490945816,
0.008844430558383465,
-0.022089505568146706,
-0.05315287038683891,
-0.006406819447875023,
-0.010052450001239777,
-0.01955266296863556,
0.0250405240803957,
0.049425266683101654,
0.026283059269189835,
-0.04335065186023712,
-0.011881737969815731,
-0.04138330742716789,
0.0021075631957501173,
-0.0010241203708574176,
0.07890094816684723,
0.05084037780761719,
0.03965756297111511,
0.029941633343696594,
-0.0030308354180306196,
-0.013124272227287292,
-0.06057356297969818,
-0.02956197038292885,
0.04321259260177612,
-0.012062940746545792,
0.026490148156881332,
-0.014090687967836857,
-0.014047544449567795,
0.005660435650497675,
0.014349549077451229,
0.014755099080502987,
0.018499961122870445,
-0.08021251112222672,
0.0015661113429814577,
-0.003712503705173731,
0.028612811118364334,
-0.024160396307706833,
-0.010630574077367783,
-0.01619609445333481,
0.03285813704133034,
-0.008930717594921589,
-0.042004574090242386,
0.011277727782726288,
0.040244314819574356
] |
722,002
|
apprise.config.base
|
parse_url
|
Parses the URL and returns it broken apart into a dictionary.
This is very specific and customized for Apprise.
Args:
url (str): The URL you want to fully parse.
verify_host (:obj:`bool`, optional): a flag kept with the parsed
URL which some child classes will later use to verify SSL
keys (if SSL transactions take place). Unless under very
specific circumstances, it is strongly recomended that
you leave this default value set to True.
Returns:
A dictionary is returned containing the URL fully parsed if
successful, otherwise None is returned.
|
@staticmethod
def parse_url(url, verify_host=True):
"""Parses the URL and returns it broken apart into a dictionary.
This is very specific and customized for Apprise.
Args:
url (str): The URL you want to fully parse.
verify_host (:obj:`bool`, optional): a flag kept with the parsed
URL which some child classes will later use to verify SSL
keys (if SSL transactions take place). Unless under very
specific circumstances, it is strongly recomended that
you leave this default value set to True.
Returns:
A dictionary is returned containing the URL fully parsed if
successful, otherwise None is returned.
"""
results = URLBase.parse_url(url, verify_host=verify_host)
if not results:
# We're done; we failed to parse our url
return results
# Allow overriding the default config format
if 'format' in results['qsd']:
results['format'] = results['qsd'].get('format')
if results['format'] not in common.CONFIG_FORMATS:
URLBase.logger.warning(
'Unsupported format specified {}'.format(
results['format']))
del results['format']
# Defines the encoding of the payload
if 'encoding' in results['qsd']:
results['encoding'] = results['qsd'].get('encoding')
# Our cache value
if 'cache' in results['qsd']:
# First try to get it's integer value
try:
results['cache'] = int(results['qsd']['cache'])
except (ValueError, TypeError):
# No problem, it just isn't an integer; now treat it as a bool
# instead:
results['cache'] = parse_bool(results['qsd']['cache'])
return results
|
(url, verify_host=True)
|
[
-0.011426625773310661,
-0.04815233498811722,
-0.037203412503004074,
0.014311944134533405,
-0.01112089678645134,
0.020273661240935326,
-0.01522913109511137,
-0.013566729612648487,
-0.004905996844172478,
-0.0236175749450922,
-0.002622582484036684,
0.06122225522994995,
0.017904261127114296,
0.032158881425857544,
-0.0016026893863454461,
-0.026942377910017967,
0.023904195055365562,
0.019394690170884132,
0.06978266686201096,
-0.0721902847290039,
-0.02174498327076435,
-0.022566629573702812,
-0.006019041873514652,
0.06294198334217072,
-0.006319994106888771,
0.037528250366449356,
0.050712816417217255,
-0.02862388826906681,
0.01686287112534046,
0.020216338336467743,
0.0012372474884614348,
0.0429549403488636,
0.030611127614974976,
0.05403761938214302,
0.015639955177903175,
-0.033248040825128555,
0.009811993688344955,
0.00014002632815390825,
-0.08552771806716919,
0.02145836129784584,
-0.058432478457689285,
-0.018200436607003212,
0.042267050594091415,
-0.035063307732343674,
0.03603781759738922,
0.06152798607945442,
-0.058356042951345444,
0.06729862093925476,
-0.03739449381828308,
-0.07364249974489212,
0.018257761374115944,
0.018047571182250977,
0.034528281539678574,
0.025834109634160995,
-0.04906952381134033,
0.00918620452284813,
-0.020235445350408554,
0.11113253235816956,
-0.02461119368672371,
0.05216503143310547,
-0.0006478829891420901,
0.00813526101410389,
-0.0012151538394391537,
0.015047605149447918,
-0.020808687433600426,
0.014789645560085773,
-0.05010135844349861,
-0.0016934527084231377,
-0.03737538307905197,
-0.030878640711307526,
0.030935965478420258,
-0.01163681410253048,
-0.08499269187450409,
-0.015143144875764847,
0.061298687011003494,
-0.029483752325177193,
-0.04734979569911957,
0.011684584431350231,
-0.05109497904777527,
0.020330986008048058,
0.052050381898880005,
0.00827857106924057,
0.04792303964495659,
-0.06962980329990387,
0.006176683586090803,
-0.02356025017797947,
0.07154061645269394,
0.01880234107375145,
0.04364283010363579,
0.08820284903049469,
-0.009530149400234222,
-0.00967823714017868,
-0.011331085115671158,
-0.00223206146620214,
0.03557922691106796,
0.029502859339118004,
-0.027152566239237785,
-0.02281503565609455,
0.0005627923528663814,
-0.06565532833337784,
0.004958543926477432,
0.043566398322582245,
-0.1411704123020172,
-0.07727303355932236,
-0.00028766601462848485,
-0.06852153688669205,
-0.016490263864398003,
-0.018745016306638718,
0.012926609255373478,
0.04291672259569168,
-0.024802275002002716,
-0.08598631620407104,
-0.05984647572040558,
0.029999669641256332,
0.00967823714017868,
-0.005140070803463459,
-0.0019442461198195815,
-0.01575460284948349,
-0.0016194089548662305,
0.02090422809123993,
-0.034031473100185394,
0.070929154753685,
0.007074762601405382,
0.016710007563233376,
0.0577445849776268,
0.03634354844689369,
-0.019404245540499687,
-0.0020780025515705347,
0.06313306093215942,
0.0030381830874830484,
0.03804416581988335,
0.013251446187496185,
-0.024553868919610977,
0.012955271638929844,
0.0022607233840972185,
-0.039324406534433365,
-0.008565192110836506,
0.05430513247847557,
-0.033783067017793655,
0.04975741356611252,
-0.01789470762014389,
0.018936097621917725,
-0.009520595893263817,
-0.0383116789162159,
-0.03661106154322624,
-0.042802076786756516,
0.02122906595468521,
-0.048037685453891754,
-0.05610129237174988,
0.02197428047657013,
0.06332414597272873,
-0.005082746502012014,
0.003850276116281748,
0.005412360653281212,
0.013987107202410698,
-0.022719494998455048,
0.0010706490138545632,
-0.03676392510533333,
-0.024840490892529488,
-0.014245065860450268,
-0.04719693213701248,
0.012343812733888626,
0.033267147839069366,
-0.08850857615470886,
-0.033744849264621735,
-0.01641383208334446,
0.049375250935554504,
-0.04047089070081711,
-0.005761083215475082,
0.027611160650849342,
-0.03687857463955879,
0.006047704257071018,
-0.0843048021197319,
0.01946156844496727,
0.042763859033584595,
0.036400873214006424,
0.008684617467224598,
-0.02335006184875965,
-0.009367731399834156,
-0.007581126410514116,
0.006640054285526276,
-0.013280108571052551,
-0.034585606306791306,
0.029254455119371414,
0.035636551678180695,
0.0363626554608345,
-0.01562084723263979,
-0.007609788794070482,
0.005713312886655331,
0.060801878571510315,
-0.0174647755920887,
-0.0331525020301342,
-0.009171873331069946,
-0.03284677118062973,
-0.0026918493676930666,
-0.017512544989585876,
-0.015945684164762497,
0.011321531608700752,
-0.028394591063261032,
0.014273728244006634,
-0.04020337760448456,
-0.0171112772077322,
-0.05755350738763809,
0.0027993321418762207,
-0.021057093515992165,
-0.0639738142490387,
-0.054419782012701035,
0.00839321967214346,
-0.023885086178779602,
0.06615214049816132,
-0.05036887153983116,
0.024037951603531837,
-0.04287850856781006,
-0.016834208741784096,
-0.00918620452284813,
-0.02942642755806446,
-0.004700585268437862,
0.06298019737005234,
-0.020827796310186386,
-0.01830553077161312,
0.044942181557416916,
-0.02912069857120514,
0.0566745363175869,
-0.016910642385482788,
-0.02837548404932022,
0.025547489523887634,
0.037222519516944885,
-0.004815233405679464,
-0.03406968712806702,
-0.018420178443193436,
0.022623954340815544,
-0.03043915517628193,
0.05740064010024071,
0.04578293487429619,
0.1058587059378624,
-0.04272564500570297,
0.0379677340388298,
0.0424199141561985,
0.0572095587849617,
0.0047507439740002155,
0.04792303964495659,
0.005159178748726845,
-0.03571298345923424,
0.014273728244006634,
-0.04608866572380066,
-0.033744849264621735,
0.02461119368672371,
0.013987107202410698,
-0.05747707188129425,
-0.04605044797062874,
0.01573549583554268,
-0.025738568976521492,
0.036974113434553146,
-0.01805712655186653,
0.029025157913565636,
-0.029980560764670372,
-0.007609788794070482,
0.019518893212080002,
0.012869284488260746,
-0.06057257950305939,
0.048572711646556854,
-0.04578293487429619,
0.04100591689348221,
0.01878323219716549,
-0.0705852061510086,
0.003140888875350356,
0.04184667393565178,
0.01418774202466011,
0.008756272494792938,
0.029445534572005272,
0.09141300618648529,
-0.018620813265442848,
-0.0075763496570289135,
0.015066713094711304,
-0.002240421250462532,
0.0310123972594738,
-0.0003493193944450468,
-0.01137885544449091,
0.026541108265519142,
-0.03556011617183685,
0.010987140238285065,
0.02520354464650154,
0.04310780391097069,
-0.006859797053039074,
0.050216007977724075,
-0.06676359474658966,
-0.0507892481982708,
0.043337102979421616,
-0.0076957750134170055,
0.02407616749405861,
-0.010404343716800213,
-0.016977520659565926,
-0.007776984479278326,
-0.029006049036979675,
-0.020866012200713158,
0.020789580419659615,
-0.011885219253599644,
-0.0005893644993193448,
0.0354645773768425,
-0.000052360588597366586,
-0.03521617129445076,
-0.007132086902856827,
0.01164636854082346,
0.001311291242018342,
0.010089061222970486,
0.023445600643754005,
-0.007251512259244919,
-0.018544381484389305,
0.006448973435908556,
0.021534794941544533,
0.027706701308488846,
0.00022855043062008917,
0.01630873791873455,
-0.02413349226117134,
-0.03812059760093689,
0.021859630942344666,
0.00348005723208189,
0.0132323382422328,
0.01205719169229269,
0.029082482680678368,
-0.02864299714565277,
0.0304773710668087,
-0.016069887205958366,
0.034298986196517944,
0.06057257950305939,
-0.04031802713871002,
0.03577030822634697,
0.01057631615549326,
-0.020866012200713158,
0.015467982739210129,
-0.027744917199015617,
0.05033065378665924,
-0.01456034928560257,
0.020732255652546883,
-0.007853416725993156,
-0.04666190594434738,
-0.02728632278740406,
-0.04799947142601013,
-0.03229263797402382,
-0.04998670890927315,
0.026617541909217834,
-0.058661773800849915,
-0.03859829902648926,
-0.022643063217401505,
-0.013318324461579323,
-0.025853218510746956,
0.00145460176281631,
-0.0050731925293803215,
0.019002975896000862,
-0.0754004418849945,
-0.032197099179029465,
-0.06764256954193115,
-0.0048104566521942616,
0.06007577106356621,
0.07712016999721527,
-0.03892313688993454,
-0.06489100307226181,
-0.11892862617969513,
0.018620813265442848,
-0.006568398792296648,
0.08201183378696442,
-0.004244380164891481,
-0.05266183987259865,
0.022719494998455048,
-0.020445633679628372,
-0.02487870678305626,
0.024458328261971474,
0.01810489594936371,
0.10272498428821564,
-0.01391067449003458,
-0.007581126410514116,
-0.017369234934449196,
0.009649574756622314,
-0.06019042059779167,
0.036993224173784256,
-0.007509471382945776,
0.021573010832071304,
-0.009907534345984459,
-0.059999339282512665,
0.02730543166399002,
-0.016490263864398003,
0.07402466237545013,
-0.04058554023504257,
-0.004144062753766775,
0.04475110024213791,
-0.08820284903049469,
-0.011082679964601994,
0.02566213719546795,
0.013366094790399075,
0.02359846606850624,
0.02380865439772606,
0.010757843032479286,
0.030840424820780754,
0.04203775152564049,
-0.04639439284801483,
0.004853449761867523,
-0.024248139932751656,
0.03899956867098808,
-0.03267480060458183,
-0.02489781565964222,
0.006807249970734119,
-0.0402798093855381,
0.0024506100453436375,
0.009128880687057972,
-0.00484389578923583,
-0.02275771088898182,
0.06668716669082642,
0.003599482588469982,
-0.002634525066241622,
-0.0021819027606397867,
0.027668485417962074,
-0.050483521074056625,
-0.03594227880239487,
-0.06619035452604294,
-0.03498687595129013,
0.011732354760169983,
-0.003948204685002565,
0.029980560764670372,
0.0073136137798428535,
0.028814969584345818,
0.032693907618522644,
-0.003635310335084796,
-0.00767188984900713,
0.002708568936213851,
-0.018859663978219032,
0.03815881535410881,
0.005780191160738468,
0.0021090530790388584,
-0.04738801345229149,
0.019260933622717857,
0.06011398881673813,
0.028165293857455254,
-0.030840424820780754,
-0.06458527594804764,
-0.0085556386038661,
0.04001229628920555,
0.0021138302981853485,
0.027420079335570335,
0.002634525066241622,
-0.04157916083931923,
-0.064164899289608,
-0.016729114577174187,
-0.010518992319703102,
0.030649343505501747,
0.07784627377986908,
-0.028547456488013268,
-0.04536255821585655,
-0.0025437618605792522,
-0.016996627673506737,
-0.03412701189517975,
-0.10807523876428604,
-0.028776753693819046,
0.0052069490775465965,
-0.026636648923158646,
-0.04922238737344742,
0.01778961345553398,
0.026101622730493546,
0.06775721162557602,
-0.02464940957725048,
0.04035624489188194,
0.058394260704517365,
-0.012831068597733974,
-0.011359747499227524,
-0.05296757072210312,
-0.02543283998966217,
0.06110760569572449,
0.0027037919498980045,
0.016356507316231728,
-0.04112056642770767,
-0.017780058085918427,
-0.05407583713531494,
-0.00396492425352335,
0.021515686064958572,
0.045438989996910095,
-0.01482786238193512,
0.011751462705433369,
0.0198723915964365,
-0.0023025223053991795,
-0.05541340261697769,
-0.02913980558514595,
-0.0513242743909359,
-0.022031603381037712,
0.00809226743876934,
0.010834275744855404,
0.002217730274423957,
-0.08942576497793198,
0.018916988745331764,
-0.058088529855012894,
0.012114516459405422,
0.02306343987584114,
-0.022834142670035362,
0.0424199141561985,
0.022451981902122498,
0.03898046165704727,
0.027095243334770203,
-0.008875698782503605,
0.023483818396925926,
0.03917154297232628,
0.04987206310033798,
-0.022127144038677216,
0.02224179357290268,
-0.05484015867114067,
0.01005084440112114,
0.045974016189575195,
0.025776786729693413,
0.03213977441191673,
-0.04368104785680771,
0.0754004418849945,
0.018936097621917725,
0.03363020345568657,
-0.06122225522994995,
0.05143892392516136,
0.06145155057311058,
-0.006549290847033262,
-0.029445534572005272,
-0.012114516459405422,
-0.0004197804082650691,
0.02036920189857483,
-0.029617508873343468,
-0.007399599999189377,
0.019967932254076004,
0.05350259318947792,
0.04154094308614731,
-0.019241826608777046,
-0.02407616749405861,
0.02675129659473896,
-0.0010270586935803294,
0.010031736455857754,
-0.055222321301698685,
-0.003587540006265044,
0.022547522559762,
0.010442559607326984,
0.016710007563233376,
0.004848672542721033,
0.04005051404237747,
0.06829223781824112,
-0.0424199141561985,
-0.026158947497606277,
-0.051209624856710434,
-0.0010318357963114977,
0.04696763679385185,
0.021668551489710808,
-0.05063638463616371,
-0.02541373297572136,
-0.028241727501153946,
0.014990280382335186,
0.016174981370568275,
0.0682540237903595,
-0.014808754436671734,
-0.029579291120171547,
-0.03768111392855644,
0.036993224173784256,
0.09829191118478775,
-0.03997408226132393,
0.038025058805942535,
-0.029732156544923782,
0.04425428807735443,
-0.0352926030755043,
0.022108037024736404,
-0.009897979907691479,
-0.0038192253559827805,
-0.058661773800849915,
-0.08835571259260178,
0.01798069290816784,
-0.09485245496034622,
-0.0021114416886121035,
-0.017025290057063103,
0.02619716338813305,
-0.03917154297232628,
-0.0015632789582014084,
0.039324406534433365,
-0.0349295511841774,
0.008369334042072296,
0.021897848695516586,
0.024171708151698112,
-0.007920295000076294,
-0.002553315833210945,
0.009668683633208275,
0.03594227880239487,
0.024286355823278427,
0.030611127614974976,
-0.001755553879775107,
0.008249908685684204,
-0.04131164774298668,
-0.010404343716800213,
-0.024286355823278427,
0.06015220284461975,
0.03657284379005432,
-0.018028464168310165,
0.00880404282361269,
-0.0700501799583435,
-0.031394559890031815,
-0.005302489269524813,
0.010251479223370552,
-0.013471188955008984,
-0.035101525485515594,
0.038005951792001724,
-0.02990412898361683,
0.01579281874001026,
0.02648378536105156,
-0.007332721725106239,
-0.005125739611685276,
0.010490329936146736,
-0.08124750852584839,
-0.01773228868842125,
0.007036546710878611,
-0.036974113434553146,
0.04532434046268463,
-0.015124036930501461,
-0.0566745363175869,
0.04318423569202423,
-0.02463030256330967,
-0.010910707525908947,
0.04284029081463814,
0.027095243334770203,
-0.001793770003132522,
-0.05170643702149391,
0.010155938565731049,
-0.0376046821475029,
-0.02650289237499237,
0.045171476900577545,
0.032693907618522644,
0.01508582103997469,
0.02069403976202011,
-0.05270005762577057,
-0.006229230668395758,
-0.013404310680925846,
0.014961618930101395,
-0.0705852061510086,
-0.01598390005528927,
0.09041938185691833,
0.024496546015143394,
0.04364283010363579,
-0.019432906061410904,
-0.0020791967399418354,
0.008077936246991158,
0.06538781523704529,
0.026865946128964424,
0.020617607980966568,
0.031948693096637726,
0.06840688735246658,
-0.009463271126151085,
-0.03842632845044136,
0.003188659204170108,
-0.013089027255773544,
0.014875631779432297,
0.008149591274559498,
-0.01614631898701191,
0.029445534572005272,
-0.009611358866095543,
0.0027396194636821747,
-0.004158393479883671,
0.0689801350235939,
0.03229263797402382,
-0.040432676672935486,
0.03414611890912056,
0.041235215961933136,
0.04322245344519615,
-0.014245065860450268,
-0.04211418703198433,
-0.046241529285907745,
0.016748223453760147,
-0.03500598296523094,
-0.039859432727098465,
0.020866012200713158,
-0.011579490266740322,
0.01857304386794567,
0.03250282630324364,
0.024171708151698112,
-0.022547522559762,
0.044903963804244995,
-0.007232404313981533,
0.011780125088989735,
0.07589725404977798,
0.04627974331378937,
-0.05583377927541733,
-0.05250897631049156,
-0.033821284770965576,
0.006300886161625385,
-0.005183063913136721,
0.03020985797047615,
0.008159145712852478,
-0.041502729058265686,
0.07796092331409454,
-0.010786505416035652,
0.006081143394112587,
0.07780805975198746,
-0.015276901423931122,
-0.06691645830869675,
-0.011503057554364204,
-0.0171112772077322,
-0.04845806583762169,
0.017550762742757797,
0.009090663865208626,
0.03708876296877861,
-0.040623754262924194,
-0.039362624287605286,
0.02304433286190033,
0.030649343505501747,
0.010662303306162357,
0.05659810081124306,
-0.02650289237499237,
-0.003979255445301533,
0.012783298268914223,
-0.005479238927364349,
0.009840656071901321,
-0.024324573576450348,
-0.00881359726190567,
-0.026636648923158646,
0.039056893438100815,
-0.01760808564722538,
0.012085854075849056,
0.01579281874001026,
-0.052012164145708084,
0.0043542515486478806,
0.023254521191120148,
-0.03727984428405762,
-0.02942642755806446,
-0.02302522398531437,
0.05040708929300308,
-0.023789547383785248,
-0.016490263864398003,
0.029521968215703964,
0.014846970327198505,
-0.007394822780042887,
0.013719594106078148,
0.002715734299272299,
0.004977652337402105,
0.04475110024213791,
-0.008173476904630661,
-0.054419782012701035,
0.06141333654522896,
-0.009663905948400497,
0.029025157913565636,
-0.02518443576991558,
-0.04180845618247986,
-0.0016253801295533776,
-0.0310123972594738,
0.022356441244482994,
0.024744950234889984,
0.03714608773589134,
0.015745049342513084,
-0.022184468805789948,
0.005765859968960285,
-0.004108234774321318,
-0.00461221020668745,
0.007323167752474546,
-0.0021771257743239403,
0.002851879457011819,
0.022547522559762,
-0.005842292215675116,
0.029521968215703964,
-0.005842292215675116,
0.018563490360975266,
0.02197428047657013,
-0.030076101422309875,
-0.03143277391791344,
0.028490131720900536,
0.024802275002002716,
0.0031982131768018007,
0.02117174118757248,
0.005445799790322781,
-0.019681312143802643,
0.056521669030189514,
0.0030787878204137087,
0.03556011617183685,
-0.005512678064405918,
-0.00357082043774426
] |
722,003
|
apprise.config.base
|
pop
|
Removes an indexed Notification Service from the stack and returns it.
By default, the last element of the list is removed.
|
def pop(self, index=-1):
"""
Removes an indexed Notification Service from the stack and returns it.
By default, the last element of the list is removed.
"""
if not isinstance(self._cached_servers, list):
# Generate ourselves a list of content we can pull from
self.servers()
# Pop the element off of the stack
return self._cached_servers.pop(index)
|
(self, index=-1)
|
[
-0.002631282201036811,
0.02151460014283657,
-0.09066744893789291,
-0.037938617169857025,
0.007433801889419556,
-0.026347216218709946,
-0.02239169552922249,
0.04505855590105057,
0.10401303321123123,
-0.023595549166202545,
-0.0248166024684906,
-0.01488480158150196,
-0.07690910995006561,
-0.05757864564657211,
-0.019433652982115746,
0.03425826132297516,
0.008315195329487324,
-0.0248166024684906,
0.03386270999908447,
-0.031111041083931923,
0.005365751683712006,
0.022735653445124626,
0.03618443012237549,
0.003525573993101716,
-0.012588879093527794,
0.012881243601441383,
0.03618443012237549,
-0.03257286548614502,
0.050389911979436874,
-0.041343804448843,
-0.030509114265441895,
-0.01630363054573536,
-0.016939952969551086,
-0.023526757955551147,
0.015589917078614235,
0.032693251967430115,
-0.05413905903697014,
-0.011539805680513382,
-0.011032466776669025,
0.029408447444438934,
0.01047353446483612,
-0.03291682153940201,
0.04667516052722931,
-0.03166137635707855,
0.052075307816267014,
0.06459539383649826,
0.043201182037591934,
0.0966523215174675,
0.05575566366314888,
0.010697107762098312,
-0.008177611976861954,
0.07006433606147766,
-0.02452423796057701,
-0.02234010025858879,
-0.06432022899389267,
0.02010437101125717,
0.01876293309032917,
0.06129339709877968,
0.01991519331932068,
0.010430539958178997,
0.003074128646403551,
-0.009424461051821709,
0.025882873684167862,
-0.008801036514341831,
0.04254765808582306,
0.0037663450930267572,
0.02983839437365532,
-0.012864045798778534,
0.00037781684659421444,
-0.033793918788433075,
-0.0012769456952810287,
0.011565602384507656,
-0.018126610666513443,
-0.003456782316789031,
-0.008611859753727913,
-0.04643439128994942,
0.07677152752876282,
0.029907187446951866,
0.02431786246597767,
0.002489399164915085,
-0.021291028708219528,
0.01678517274558544,
0.028256187215447426,
0.06566166877746582,
0.03480859473347664,
0.029597625136375427,
0.0937630757689476,
-0.009845810942351818,
-0.07326314598321915,
0.02784343622624874,
-0.009347070939838886,
0.03721630573272705,
-0.008951518684625626,
-0.017490286380052567,
0.019210079684853554,
-0.034378647804260254,
-0.020310746505856514,
-0.032658856362104416,
0.005378650035709143,
-0.03484299033880234,
0.013319791294634342,
0.01215033233165741,
-0.05964239314198494,
-0.015503927133977413,
0.023320382460951805,
0.0690668597817421,
0.03886730596423149,
0.010757300071418285,
-0.06844773143529892,
0.05995195731520653,
0.04853253811597824,
-0.0049530016258358955,
-0.03807619959115982,
-0.05695951730012894,
0.04560888931155205,
0.04075907543301582,
-0.07040829211473465,
-0.011066863313317299,
-0.014678427018225193,
0.005597923882305622,
-0.003708302043378353,
-0.008749443106353283,
-0.049254849553108215,
0.018711339682340622,
-0.024936987087130547,
0.03338116779923439,
-0.015632910653948784,
-0.04282282665371895,
0.07092422991991043,
-0.009063305333256721,
-0.029580427333712578,
0.009295476600527763,
-0.023629944771528244,
0.019674424082040787,
0.03704432398080826,
-0.020775090903043747,
0.022460486739873886,
-0.050596289336681366,
-0.0385577417910099,
-0.0386265330016613,
-0.018625350669026375,
0.04117182642221451,
0.021445808932185173,
0.07635877281427383,
-0.0005256115109659731,
-0.05049309879541397,
-0.013947514817118645,
-0.030285540968179703,
-0.02015596441924572,
-0.002730170264840126,
-0.027533873915672302,
0.006707189604640007,
-0.016630390658974648,
-0.05468939244747162,
-0.004095255397260189,
0.023079611361026764,
-0.012038545683026314,
0.011505410075187683,
-0.009622237645089626,
-0.06404506415128708,
-0.013208004646003246,
0.045092951506376266,
-0.021291028708219528,
-0.07388227432966232,
-0.049805182963609695,
0.006053668446838856,
0.06469858437776566,
0.02928806096315384,
-0.06827574968338013,
0.06961718946695328,
-0.03498057276010513,
0.052556850016117096,
-0.012098737992346287,
-0.012434097938239574,
-0.07525810599327087,
0.022271309047937393,
-0.010447737760841846,
0.027155518531799316,
0.036322012543678284,
-0.02264966443181038,
-0.0746389850974083,
-0.018023421987891197,
-0.053691912442445755,
-0.099541574716568,
-0.005163676105439663,
0.039589617401361465,
0.006806077901273966,
0.030801478773355484,
0.03472260385751724,
0.035169750452041626,
-0.010783097706735134,
-0.00407590763643384,
0.034069083631038666,
0.0007599332020618021,
0.02928806096315384,
0.00338584091514349,
0.01656159944832325,
0.03087026998400688,
-0.015013786032795906,
-0.018866119906306267,
-0.04278843104839325,
-0.0024636024609208107,
0.02674276940524578,
-0.05052749440073967,
-0.0331919901072979,
0.0031859150622040033,
0.015589917078614235,
-0.004007115960121155,
-0.0633571445941925,
0.0688604786992073,
-0.03449903056025505,
0.03198813647031784,
0.04781022295355797,
-0.04251326248049736,
-0.007816455326974392,
-0.02978680096566677,
-0.018573755398392677,
0.004157597664743662,
0.06397627294063568,
-0.013242400251328945,
-0.005890288390219212,
-0.0636323094367981,
-0.043166786432266235,
-0.0012769456952810287,
-0.052316080778837204,
0.03181615471839905,
-0.021755371242761612,
-0.0052152699790894985,
0.06868850439786911,
-0.04299480468034744,
0.021910153329372406,
0.04110303521156311,
0.07064906507730484,
-0.053107183426618576,
0.04832616075873375,
-0.022254111245274544,
0.0015628611436113715,
-0.017180724069476128,
0.050905849784612656,
0.0635635182261467,
0.006629799026995897,
0.009914602153003216,
0.02732749842107296,
0.07684031873941422,
-0.0053528533317148685,
0.07787219434976578,
0.00405870983377099,
0.036322012543678284,
0.05812897905707359,
0.04051830619573593,
0.02454143576323986,
-0.008607559837400913,
-0.010740102268755436,
-0.0009990917751565576,
0.029889989644289017,
-0.05981437489390373,
-0.03666597232222557,
-0.02978680096566677,
0.02019036002457142,
-0.015615713782608509,
-0.023285986855626106,
-0.031145436689257622,
0.03700992837548256,
0.016939952969551086,
-0.011935357935726643,
0.007825054228305817,
0.011703185737133026,
0.04674395173788071,
0.04299480468034744,
0.08874128013849258,
0.04492097347974777,
-0.033260781317949295,
0.05358872562646866,
-0.022787246853113174,
0.013001629151403904,
0.004232838749885559,
-0.04529932886362076,
0.00854736752808094,
-0.038798511028289795,
-0.002216382184997201,
0.03893609717488289,
-0.0037706445436924696,
-0.013457374647259712,
0.00856456533074379,
0.0017305408837273717,
0.031076645478606224,
0.07257523387670517,
-0.02839376963675022,
0.06098383292555809,
0.0014908448792994022,
0.03417227044701576,
0.036597177386283875,
-0.03362193703651428,
-0.04547130689024925,
-0.027189915999770164,
-0.008224906399846077,
-0.06700310856103897,
0.042341284453868866,
0.03362193703651428,
0.0744326114654541,
-0.03615003451704979,
-0.06208449974656105,
-0.10373786836862564,
-0.0179202351719141,
0.03283083438873291,
0.02729310281574726,
0.05468939244747162,
0.06751904636621475,
0.005997775588184595,
0.014239879325032234,
0.015650108456611633,
-0.028548551723361015,
-0.07016752660274506,
-0.009639435447752476,
0.026656780391931534,
0.0016316529363393784,
-0.023251591250300407,
-0.0014833208406344056,
0.03444743901491165,
0.06985796242952347,
-0.01766226626932621,
-0.012219123542308807,
-0.0441298671066761,
-0.0015359894605353475,
0.025504518300294876,
0.013784134760499,
-0.08213727921247482,
0.025882873684167862,
-0.0018122310284525156,
-0.010327352210879326,
0.025728091597557068,
-0.05750985071063042,
-0.01905529759824276,
-0.022150924429297447,
0.03210851922631264,
-0.018969308584928513,
0.027809040620923042,
0.01771385967731476,
0.009192289784550667,
-0.022735653445124626,
-0.04244447126984596,
-0.047328680753707886,
-0.013637952506542206,
0.03162698075175285,
0.023028017953038216,
-0.006088064517825842,
0.030216749757528305,
-0.02949443645775318,
-0.004935803823173046,
-0.01908969320356846,
0.010662712156772614,
-0.009243883192539215,
0.014824609272181988,
0.05737226828932762,
0.047363076359033585,
0.02452423796057701,
-0.0024464044254273176,
0.04798220470547676,
0.03477419912815094,
-0.027740249410271645,
-0.04020874202251434,
0.03181615471839905,
0.0033793917391449213,
-0.016716379672288895,
-0.031902145594358444,
-0.030990656465291977,
-0.008121718652546406,
0.02903009206056595,
-0.006548108998686075,
-0.059160854667425156,
-0.00641912454739213,
0.008173312991857529,
-0.021394215524196625,
0.02842816524207592,
-0.013147811405360699,
-0.013594957999885082,
0.0018036321271210909,
0.035978052765131,
-0.06418264657258987,
-0.06370110809803009,
-0.016991546377539635,
-0.0082722008228302,
-0.026123644784092903,
0.0387297198176384,
0.045092951506376266,
0.05138739198446274,
-0.0496332049369812,
-0.05627160146832466,
-0.001612305175513029,
-0.013973311521112919,
-0.015194364823400974,
-0.09878486394882202,
-0.06552408635616302,
-0.023664340376853943,
-0.023096809163689613,
-0.035978052765131,
-0.002562490524724126,
-0.011058264411985874,
-0.04784461855888367,
-0.012511488050222397,
0.05403587222099304,
0.02899569645524025,
0.00696945795789361,
-0.0007040399359539151,
0.01433446817100048,
-0.03334677219390869,
0.033518750220537186,
0.013173608109354973,
-0.030715489760041237,
0.004970199428498745,
0.02037953771650791,
-0.0056151216849684715,
-0.015340547077357769,
-0.04997716099023819,
0.03697553277015686,
-0.02674276940524578,
0.032160114496946335,
0.052247289568185806,
0.03814499080181122,
0.03252127021551132,
-0.01651860401034355,
-0.017782650887966156,
-0.017748255282640457,
-0.018109412863850594,
-0.037147510796785355,
-0.021480204537510872,
-0.01986359991133213,
-0.021205037832260132,
-0.09032348543405533,
0.034361448138952255,
0.007493994664400816,
-0.04798220470547676,
-0.009080503135919571,
0.014300072565674782,
0.039348848164081573,
-0.024421049281954765,
-0.0331403948366642,
-0.056993912905454636,
-0.0386265330016613,
0.05458620563149452,
-0.02428346686065197,
0.031351812183856964,
0.024438247084617615,
0.0014951443299651146,
0.008345291949808598,
-0.0002931708295363933,
-0.015005187131464481,
-0.03786982595920563,
0.05210970342159271,
-0.022494882345199585,
-0.04997716099023819,
-0.04382030665874481,
0.043201182037591934,
0.008775239810347557,
0.01872853748500347,
-0.08660873770713806,
-0.061362188309431076,
0.04564328491687775,
-0.028359374031424522,
-0.01738709956407547,
-0.028548551723361015,
0.008259302005171776,
-0.009089102037250996,
-0.06105262413620949,
-0.006053668446838856,
0.05217849463224411,
0.028496956452727318,
0.0013005929067730904,
-0.05468939244747162,
0.00787664856761694,
-0.00995759665966034,
-0.05623720586299896,
-0.038488950580358505,
-0.07911044359207153,
0.0003514825366437435,
-0.00710704131051898,
0.0037147512193769217,
0.03358754143118858,
0.017559079453349113,
-0.016484208405017853,
-0.042582057416439056,
0.04192853346467018,
0.008848330937325954,
0.0193648599088192,
-0.05183453857898712,
-0.02701793611049652,
0.05953920632600784,
-0.036046843975782394,
0.010129576548933983,
-0.018298588693141937,
-0.0005003520636819303,
-0.038488950580358505,
-0.010206966660916805,
0.029649218544363976,
0.09507011622190475,
-0.0032160114496946335,
-0.03955522179603577,
-0.003289102576673031,
0.050389911979436874,
-0.016664786264300346,
0.01571890152990818,
-0.04670955613255501,
-0.024988580495119095,
-0.005198072176426649,
0.011256040073931217,
-0.06287560611963272,
0.004613342694938183,
0.05028672516345978,
0.0035492212045937777,
-0.06149977073073387,
0.00019549200078472495,
0.05905766412615776,
0.00559362443163991,
0.0022679760586470366,
0.032951220870018005,
0.021910153329372406,
-0.027103925123810768,
-0.012709264643490314,
0.03700992837548256,
0.05331356078386307,
0.03965840861201286,
-0.01793743297457695,
0.01350896805524826,
0.05159376561641693,
0.018023421987891197,
-0.055618081241846085,
-0.022580871358513832,
0.0041941432282328606,
0.018573755398392677,
0.018608152866363525,
-0.028015416115522385,
0.04306359589099884,
-0.0008152889786288142,
-0.03277923911809921,
0.053347956389188766,
-0.034619417041540146,
-0.041275013238191605,
-0.03807619959115982,
0.02927086316049099,
-0.008650555275380611,
-0.020620308816432953,
-0.020001184195280075,
-0.013870124705135822,
-0.07615239918231964,
-0.10435698926448822,
-0.02235729992389679,
-0.04529932886362076,
0.0024571530520915985,
-0.02316560223698616,
-0.0013177908258512616,
-0.0496332049369812,
-0.030165156349539757,
0.08138056844472885,
-0.03455062583088875,
0.042926013469696045,
0.04168776422739029,
-0.02591726928949356,
0.015933874994516373,
0.03425826132297516,
0.050630684942007065,
-0.013766936957836151,
-0.012778055854141712,
0.021652184426784515,
0.04856693372130394,
-0.004505855496972799,
0.04860132932662964,
0.004673535469919443,
-0.02624402940273285,
0.03441304340958595,
-0.014067900367081165,
-0.0000036612764233723283,
-0.03210851922631264,
0.036046843975782394,
-0.0028699033427983522,
-0.01678517274558544,
0.02873772755265236,
0.050114747136831284,
-0.028806520625948906,
0.008005633018910885,
0.014867603778839111,
0.01714632846415043,
0.012872644700109959,
0.0853704884648323,
-0.040449514985084534,
-0.024885393679142,
0.0580601841211319,
-0.027379091829061508,
0.011780576780438423,
-0.025796882808208466,
0.031867749989032745,
0.042066119611263275,
0.011935357935726643,
0.0440954715013504,
-0.0054775383323431015,
0.03642519935965538,
0.035978052765131,
0.04364832863211632,
0.023062413558363914,
-0.051696956157684326,
0.02923646755516529,
0.004965899977833033,
0.011041066609323025,
0.05049309879541397,
-0.031609781086444855,
0.04302920028567314,
-0.02123943343758583,
-0.053726308047771454,
-0.03389710560441017,
0.01881452649831772,
-0.019726017490029335,
-0.0011060413671657443,
0.017172126099467278,
-0.01764506846666336,
0.04020874202251434,
0.035771679133176804,
-0.009562044404447079,
0.021703777834773064,
0.03369072824716568,
-0.06174053996801376,
-0.012176129035651684,
0.03007916547358036,
0.05575566366314888,
-0.022856038063764572,
-0.007425202988088131,
0.0032998514361679554,
-0.03893609717488289,
0.014618233777582645,
-0.03510095924139023,
-0.02431786246597767,
0.07491414994001389,
0.01049073226749897,
-0.04093105345964432,
-0.004583246540278196,
0.015865083783864975,
-0.05957360193133354,
-0.0030956261325627565,
0.010318753309547901,
0.01605425961315632,
-0.0523848719894886,
0.0030225347727537155,
0.05702831223607063,
-0.08764061331748962,
-0.025796882808208466,
-0.02431786246597767,
-0.025246549397706985,
-0.003357894252985716,
0.0055334316566586494,
-0.018608152866363525,
0.04075907543301582,
-0.0031321716960519552,
0.0003966270887758583,
-0.022770049050450325,
-0.016355223953723907,
0.04643439128994942,
-0.03731949254870415,
0.039348848164081573,
0.0771154835820198,
0.027705853804945946,
-0.025298144668340683,
-0.04846374690532684,
-0.007257523015141487,
-0.015409338288009167,
-0.023922309279441833,
0.023647142574191093,
0.04254765808582306,
-0.031128238886594772,
0.013053223490715027,
0.02706952951848507,
0.0006777056260034442,
0.042410075664520264,
0.03762905299663544,
-0.04020874202251434,
0.0026914747431874275,
0.010447737760841846,
0.004806819371879101,
-0.02206493355333805,
-0.013061822392046452,
0.03642519935965538,
-0.010413342155516148,
0.036597177386283875,
0.041790951043367386,
-0.004361823201179504,
-0.011728983372449875,
0.017154928296804428,
-0.024455444887280464,
0.034378647804260254,
0.060330312699079514,
-0.021359819918870926,
-0.022959226742386818,
-0.04120622202754021,
-0.02237449772655964,
-0.054792579263448715,
0.012872644700109959,
0.0386265330016613,
-0.031850554049015045,
0.025538913905620575,
-0.005013194400817156,
-0.0745701938867569,
-0.0031321716960519552,
0.014239879325032234,
0.009347070939838886,
0.0413094088435173,
0.023922309279441833,
-0.057269081473350525,
0.029408447444438934,
0.03897049278020859,
-0.011814972385764122,
-0.02672557160258293,
-0.04392349347472191,
0.010757300071418285,
0.0037383984308689833,
0.035496510565280914,
0.056993912905454636,
0.035204146057367325,
-0.014497848227620125,
0.0385921373963356,
-0.04547130689024925,
-0.0013317641569301486,
-0.04798220470547676,
0.0908738225698471,
-0.03155818581581116,
-0.014979390427470207,
0.017326906323432922,
0.006303038448095322,
0.045368120074272156,
0.012081540189683437,
0.05685633048415184,
-0.02208213321864605,
-0.0578882060945034,
0.0606742687523365,
-0.018298588693141937,
-0.03260726109147072,
0.046468786895275116,
0.00913209654390812,
0.014678427018225193,
-0.0772530660033226,
0.05221289396286011,
-0.00245070387609303,
0.030268343165516853,
0.009441659785807133,
0.006285840645432472,
-0.023079611361026764,
-0.004875611048191786,
0.03093906305730343,
-0.007902445271611214,
-0.04003676399588585,
-0.032951220870018005,
-0.010955076664686203,
-0.021445808932185173,
-0.0051464783027768135,
0.039039283990859985,
-0.0012651222059503198,
-0.03694113716483116,
-0.01172038447111845,
-0.00813461747020483,
-0.01201274897903204,
-0.0066083017736673355,
0.008375388570129871,
-0.0289441030472517,
0.02818739414215088,
0.008237805217504501,
-0.003510525915771723,
-0.03062949888408184,
0.008362489752471447,
-0.044577013701200485,
0.008242104202508926,
-0.0009722200338728726,
-0.0103531489148736
] |
722,007
|
apprise.config.base
|
read
|
This object should be implimented by the child classes
|
def read(self):
"""
This object should be implimented by the child classes
"""
return None
|
(self)
|
[
-0.010167705826461315,
-0.025533555075526237,
-0.047545239329338074,
0.024940932169556618,
0.006125174928456545,
-0.03298366442322731,
0.024263650178909302,
0.06346138566732407,
0.0316629633307457,
-0.05052528530359268,
0.009930656291544437,
-0.004465832374989986,
-0.02570287510752678,
0.04578430578112602,
-0.040433771908283234,
0.041991524398326874,
0.00286363554187119,
0.06413866579532623,
-0.02409433014690876,
-0.025330370292067528,
-0.06380002200603485,
0.00785224512219429,
-0.0024614990688860416,
-0.028716783970594406,
-0.03217092528939247,
0.07226605713367462,
-0.009194111451506615,
-0.03123966045677662,
0.04233016446232796,
-0.017914125695824623,
-0.05377624183893204,
-0.02428058162331581,
0.012605923227965832,
0.06617051362991333,
0.012097961269319057,
0.021893160417675972,
-0.04720659926533699,
0.05489375814795494,
-0.09109451621770859,
0.04090787097811699,
-0.02370489202439785,
0.024602292105555534,
0.022959880530834198,
-0.03711508959531784,
-0.0037483361084014177,
0.014620838686823845,
0.04131424054503441,
0.011996368877589703,
-0.005198144353926182,
-0.015679093077778816,
0.03181535005569458,
0.040399909019470215,
-0.015569034032523632,
0.029902027919888496,
-0.035049375146627426,
0.009033257141709328,
0.002897499827668071,
0.042939718812704086,
-0.032475702464580536,
0.032509565353393555,
-0.03156137093901634,
0.005905057769268751,
0.032712750136852264,
-0.05076233297586441,
-0.011632328853011131,
-0.007809915114194155,
0.008745412342250347,
-0.013367866165935993,
0.01835436001420021,
0.07274015247821808,
-0.007644827477633953,
-0.03391492739319801,
0.019505739212036133,
0.0672203004360199,
0.07924206554889679,
-0.03995967656373978,
-0.026803459972143173,
0.009922190569341183,
0.01483248919248581,
-0.007780284155160189,
0.03816487640142441,
0.02570287510752678,
-0.04954322427511215,
0.03552347421646118,
0.009761336259543896,
-0.012148757465183735,
0.040806278586387634,
-0.03471073508262634,
-0.022079413756728172,
0.04229630157351494,
-0.06505299359560013,
0.052828043699264526,
-0.021486790850758553,
0.048527300357818604,
0.027785519137978554,
-0.03438902646303177,
-0.01798185333609581,
0.001532351947389543,
-0.005612979643046856,
-0.008118925616145134,
-0.0636984333395958,
0.07321425527334213,
-0.00956661719828844,
-0.016254782676696777,
0.0007645885925740004,
-0.041009463369846344,
-0.012030232697725296,
-0.004213967826217413,
0.032865140587091446,
0.014011284336447716,
-0.029580319300293922,
-0.007919973693788052,
-0.03515096753835678,
0.0718596875667572,
-0.008406770415604115,
-0.04483611136674881,
-0.025753671303391457,
0.021656112745404243,
-0.006315660662949085,
-0.015696024522185326,
-0.006654301658272743,
0.04287198930978775,
-0.049881864339113235,
-0.02785324864089489,
0.04243175685405731,
0.04270267114043236,
-0.032729681581258774,
0.0007815206772647798,
0.07849705964326859,
-0.014197536744177341,
0.015120334923267365,
-0.015247325412929058,
-0.026126177981495857,
-0.0177786685526371,
-0.0057865334674716,
0.05570649728178978,
0.027700860053300858,
0.010396288707852364,
-0.04764683172106743,
0.020250750705599785,
0.015543635934591293,
0.01154766883701086,
0.08174801617860794,
-0.054250337183475494,
-0.04781615361571312,
0.03100261278450489,
-0.005134649109095335,
-0.0359298437833786,
-0.08174801617860794,
-0.0414835624396801,
0.028191888704895973,
-0.01855754479765892,
-0.04764683172106743,
0.010548677295446396,
-0.019624264910817146,
0.013943555764853954,
-0.03340696543455124,
-0.036844175308942795,
-0.04263494163751602,
-0.020657120272517204,
-0.024365242570638657,
-0.03361015021800995,
0.03144284710288048,
-0.03421970456838608,
-0.022570444270968437,
0.031171932816505432,
0.0028805676847696304,
-0.07964843511581421,
0.025787536054849625,
0.038605108857154846,
-0.06623823940753937,
-0.008423702791333199,
-0.04470065236091614,
-0.0038986080326139927,
0.010904250666499138,
0.03381333500146866,
-0.004821405746042728,
0.01165772695094347,
0.011869378387928009,
0.05594354495406151,
0.029885096475481987,
-0.0481547936797142,
-0.02370489202439785,
0.04659704491496086,
0.06691552698612213,
0.04270267114043236,
0.03579438850283623,
-0.000206624114071019,
0.032729681581258774,
0.030105212703347206,
0.009710540063679218,
0.01690666750073433,
-0.0059262230060994625,
-0.00887240283191204,
0.028936900198459625,
-0.03403345122933388,
-0.005308202467858791,
0.022790560498833656,
-0.04439587518572807,
0.0705728530883789,
-0.010167705826461315,
0.03887602314352989,
0.015061072073876858,
-0.02155452035367489,
-0.03708122298121452,
0.0687103196978569,
0.02748074196279049,
-0.009930656291544437,
-0.08594716340303421,
-0.00898246094584465,
-0.055232398211956024,
-0.02489013597369194,
-0.004351540934294462,
0.007987702265381813,
0.08858856558799744,
-0.016838939860463142,
-0.04182220250368118,
-0.03398265689611435,
0.0005481756525114179,
0.07213059812784195,
0.09509047865867615,
0.0342535674571991,
-0.026143109425902367,
-0.024365242570638657,
-0.02983430027961731,
-0.007547468412667513,
-0.006472282111644745,
-0.06396934390068054,
-0.022790560498833656,
-0.04724046215415001,
-0.018269699066877365,
0.002954645548015833,
-0.012673650868237019,
0.037250544875860214,
0.07897115498781204,
0.04161901772022247,
-0.014036682434380054,
0.01996290497481823,
-0.08770810067653656,
0.008770810440182686,
-0.00007963362440932542,
-0.014773227274417877,
-0.018709933385252953,
0.0034562579821795225,
-0.02588912844657898,
0.009541219100356102,
0.030122144147753716,
0.04510702192783356,
0.009134849533438683,
-0.03670872002840042,
0.06840554624795914,
-0.03616689145565033,
-0.038232605904340744,
0.004078511148691177,
0.010184637270867825,
-0.041788339614868164,
-0.06586573272943497,
-0.062140680849552155,
0.008008867502212524,
-0.026007652282714844,
-0.0034372094087302685,
-0.036810312420129776,
0.02213020995259285,
0.06149726361036301,
0.006501913070678711,
0.017829464748501778,
0.018269699066877365,
-0.022451918572187424,
-0.027396082878112793,
-0.017677076160907745,
0.07768432050943375,
0.03198467195034027,
-0.03178148716688156,
0.013063088990747929,
-0.041009463369846344,
-0.06396934390068054,
-0.019200962036848068,
0.03528642654418945,
-0.022401122376322746,
0.023433979600667953,
0.02311226911842823,
0.043176766484975815,
0.03025760129094124,
0.024416038766503334,
-0.018625272437930107,
-0.0837121307849884,
-0.012013300321996212,
0.017626279965043068,
-0.06159885600209236,
-0.033085256814956665,
0.004406569991260767,
0.021249743178486824,
-0.06864259392023087,
-0.013317069970071316,
0.0529635027050972,
-0.029072357341647148,
-0.09014631807804108,
-0.0024572659749537706,
0.0146293044090271,
-0.03813101351261139,
-0.008537993766367435,
-0.03846965357661247,
-0.03515096753835678,
0.026346294209361076,
-0.029072357341647148,
-0.014646236784756184,
0.016948997974395752,
-0.0008640644955448806,
-0.04270267114043236,
0.030850224196910858,
0.026346294209361076,
0.05391169711947441,
0.018269699066877365,
0.08526988327503204,
-0.01612779311835766,
0.001566216116771102,
0.015823015943169594,
0.029902027919888496,
0.023366250097751617,
0.09319408982992172,
-0.10301468521356583,
0.026329362764954567,
0.01774480566382408,
-0.025330370292067528,
0.010370890609920025,
0.013765769079327583,
-0.01712678372859955,
0.03217092528939247,
-0.02294294908642769,
0.01779560185968876,
-0.03471073508262634,
0.002196935471147299,
0.02329852245748043,
-0.017694009467959404,
-0.046529315412044525,
-0.015179596841335297,
-0.014908683486282825,
-0.04774842411279678,
0.05435192957520485,
-0.04700341448187828,
0.02307840622961521,
-0.004694415256381035,
-0.007403545547276735,
0.02014915831387043,
-0.01381656527519226,
0.0014349925331771374,
0.040027402341365814,
-0.012089494615793228,
0.06007497012615204,
-0.005113483872264624,
-0.019268691539764404,
-0.009786734357476234,
0.01134448405355215,
0.036607127636671066,
-0.01263132132589817,
-0.05584195256233215,
-0.028970764949917793,
0.012588990852236748,
-0.008228983730077744,
-0.05160893499851227,
0.022773629054427147,
-0.01721991039812565,
-0.04998345673084259,
0.018726864829659462,
-0.04676636680960655,
-0.014214469119906425,
-0.020470866933465004,
0.017914125695824623,
0.02570287510752678,
-0.0012593223946169019,
-0.035828251391649246,
-0.07971616834402084,
-0.030494650825858116,
-0.021808501332998276,
-0.0006968603120185435,
-0.014375323429703712,
-0.01918403059244156,
0.015137266367673874,
0.010345492511987686,
0.040603093802928925,
0.007746419869363308,
0.050660740584135056,
-0.06224227324128151,
-0.0261092446744442,
-0.04026445373892784,
-0.039621032774448395,
0.005278571508824825,
0.05631605163216591,
-0.005684941075742245,
0.02311226911842823,
0.019234826788306236,
-0.0014434586046263576,
-0.08283166587352753,
-0.07511064410209656,
-0.05120256543159485,
-0.022197937592864037,
0.01737229898571968,
0.01854061149060726,
-0.0076956236734986305,
-0.015425112098455429,
0.023941941559314728,
-0.028936900198459625,
0.03235717862844467,
0.027328353375196457,
-0.02131747081875801,
0.03196774050593376,
0.06874419003725052,
-0.01740616373717785,
-0.0013408079976215959,
-0.05394556000828743,
0.009422694332897663,
0.014070546254515648,
-0.030562378466129303,
-0.009854461997747421,
0.04233016446232796,
0.005841562524437904,
0.09536139667034149,
-0.029123153537511826,
0.01916709914803505,
0.017423095181584358,
-0.008588789962232113,
0.044158827513456345,
0.008245916105806828,
0.041991524398326874,
0.006239466369152069,
-0.00523624150082469,
-0.03995967656373978,
0.02211327850818634,
0.021198946982622147,
0.00523624150082469,
0.0004944692482240498,
0.038029421120882034,
-0.061700448393821716,
-0.026007652282714844,
0.0418560653924942,
0.0008487197919748724,
-0.010802658274769783,
-0.03127352520823479,
-0.04033217951655388,
0.06258091330528259,
0.0019694108050316572,
-0.003604413475841284,
0.04581816866993904,
0.01670348271727562,
0.043379951268434525,
-0.03569279611110687,
-0.029394065961241722,
0.09163633733987808,
-0.006683933082967997,
-0.07436563074588776,
-0.017931057140231133,
0.0003645685501396656,
0.054453521966934204,
-0.01592460833489895,
-0.08249302208423615,
-0.07409472018480301,
0.020115293562412262,
-0.03162910044193268,
0.05526626110076904,
-0.006671234034001827,
-0.02548275887966156,
0.04564885050058365,
-0.012368873693048954,
-0.07626202702522278,
-0.003951520659029484,
0.04026445373892784,
-0.01341866236180067,
-0.03134125471115112,
-0.05807698518037796,
0.004931464325636625,
0.07307879626750946,
0.014417653903365135,
-0.02290908433496952,
-0.09346500039100647,
-0.03294980153441429,
0.004271113779395819,
0.022062482312321663,
-0.006010883487761021,
-0.0002730295527726412,
0.0007312535890378058,
0.0015926724299788475,
-0.06989556550979614,
0.007263856008648872,
0.039451714605093,
-0.021046558395028114,
-0.0509316548705101,
0.008377139456570148,
-0.01312235090881586,
0.05526626110076904,
-0.045140888541936874,
-0.005528319627046585,
0.061734311282634735,
0.004575890954583883,
0.016060063615441322,
0.03379640355706215,
0.012013300321996212,
0.02924167737364769,
0.007759118918329477,
0.004491230472922325,
-0.04486997425556183,
0.009151781909167767,
-0.03391492739319801,
-0.02507638931274414,
0.0029377134051173925,
-0.0065908064134418964,
-0.054385796189308167,
-0.037216681987047195,
-0.008516829460859299,
0.00846179947257042,
0.005253173410892487,
0.00210910034365952,
0.05316668748855591,
0.009871394373476505,
-0.011471474543213844,
0.0059262230060994625,
-0.030139077454805374,
-0.04578430578112602,
0.04700341448187828,
-0.00907558761537075,
0.01501874253153801,
0.08283166587352753,
-0.006484981160610914,
0.01818503811955452,
-0.026193905621767044,
-0.022367259487509727,
-0.021960889920592308,
-0.06363070011138916,
0.024263650178909302,
0.03799555450677872,
0.020233819261193275,
0.022248733788728714,
-0.05807698518037796,
-0.011107435449957848,
-0.028208822011947632,
0.020301546901464462,
0.021029625087976456,
-0.010895784012973309,
0.02231646329164505,
-0.019895177334547043,
0.017626279965043068,
0.03931625559926033,
-0.0017069638706743717,
0.024060465395450592,
0.009829063899815083,
0.03135818615555763,
-0.058991316705942154,
-0.0422285720705986,
-0.011217493563890457,
0.02905542403459549,
0.01794799044728279,
0.006247932091355324,
-0.04903526231646538,
0.014849421568214893,
-0.006184436846524477,
0.07876797020435333,
-0.03972262516617775,
0.018117310479283333,
-0.027514606714248657,
0.025398097932338715,
0.022621240466833115,
0.02668493613600731,
0.044158827513456345,
-0.013723439536988735,
0.0247208159416914,
0.018439019098877907,
0.015772219747304916,
0.012749845162034035,
0.05198144167661667,
-0.023417046293616295,
-0.035625066608190536,
0.026007652282714844,
0.029478726908564568,
0.008863936178386211,
0.0670509785413742,
0.032865140587091446,
0.04646158963441849,
0.020013701170682907,
0.06410480290651321,
-0.011810115538537502,
-0.04998345673084259,
0.028141092509031296,
-0.013003826141357422,
-0.017084455117583275,
-0.07375607639551163,
-0.02903849259018898,
-0.06085384264588356,
-0.023163065314292908,
0.04290585592389107,
0.07443336397409439,
-0.03420277312397957,
-0.002387421205639839,
-0.01975972019135952,
0.0037631515879184008,
-0.0746365487575531,
0.04321063309907913,
0.009719005785882473,
0.006904049776494503,
-0.0705728530883789,
0.021283606067299843,
-0.026515614241361618,
-0.03968876227736473,
0.05394556000828743,
0.006929447874426842,
0.0039853849448263645,
0.03381333500146866,
-0.004948396235704422,
-0.03501551225781441,
-0.004770609550178051,
-0.0021016926039010286,
0.04795160889625549,
-0.00014140921120997518,
-0.016957463696599007,
-0.003064703894779086,
-0.020183023065328598,
-0.009067120961844921,
-0.005752669181674719,
-0.05113483965396881,
-0.013274739496409893,
0.03281434252858162,
0.0012117009609937668,
0.0387067012488842,
-0.01952267251908779,
0.002584256464615464,
0.03186614811420441,
-0.0774134024977684,
0.029140084981918335,
0.005219309125095606,
-0.025719808414578438,
-0.012529728934168816,
-0.016347909346222878,
0.05252326652407646,
0.007183428853750229,
0.039587169885635376,
-0.027159033343195915,
-0.01164079550653696,
-0.005088085774332285,
0.003282704157754779,
-0.02924167737364769,
0.022959880530834198,
0.054859891533851624,
0.02863212302327156,
-0.021656112745404243,
0.010531744919717312,
-0.03752145916223526,
-0.054826028645038605,
-0.04588589817285538,
0.013706507161259651,
-0.01707598753273487,
0.032695818692445755,
-0.03491391986608505,
-0.03779236972332001,
0.06559482216835022,
0.0012603806098923087,
-0.0003079519374296069,
0.026227770373225212,
-0.04818866029381752,
0.00844486802816391,
0.05272645130753517,
-0.006971777882426977,
0.02392500825226307,
-0.03711508959531784,
0.010447084903717041,
0.03379640355706215,
0.012021766975522041,
0.06298728287220001,
0.035049375146627426,
-0.050491418689489365,
0.01996290497481823,
-0.005058454815298319,
0.0068236226215958595,
-0.01894698105752468,
0.09488729387521744,
0.036065299063920975,
-0.028598258271813393,
-0.016110859811306,
-0.021605316549539566,
0.037013497203588486,
-0.07375607639551163,
0.06393548101186752,
0.015645228326320648,
-0.013579516671597958,
0.03552347421646118,
-0.021046558395028114,
-0.00041377736488357186,
0.032661955803632736,
0.07206287235021591,
-0.003909190651029348,
-0.0071326326578855515,
0.02390807680785656,
-0.09190725535154343,
-0.0071326326578855515,
-0.021605316549539566,
-0.00009616884199203923,
0.0037356370594352484,
0.0011439727386459708,
-0.018405156210064888,
-0.03748759254813194,
-0.028903035447001457,
-0.005591814871877432,
0.040975600481033325,
0.05096551775932312,
-0.025601282715797424,
-0.002113333437591791,
-0.014265265315771103,
0.0379616916179657,
-0.0021461392752826214,
-0.050660740584135056,
0.02409433014690876,
0.0073485164903104305,
-0.043549273163080215,
0.004283812828361988,
0.07429790496826172,
0.0124535346403718,
-0.061158619821071625,
0.025042524561285973,
-0.01104817260056734,
0.012208019383251667,
0.07707476615905762,
-0.02783631533384323,
-0.013164681382477283,
-0.025601282715797424,
0.006493447348475456,
0.03374560549855232,
-0.005913523957133293,
0.04341381788253784,
0.036640990525484085,
-0.1059270054101944,
-0.06356297433376312,
-0.006201369222253561,
0.06603505462408066,
0.05171052739024162,
-0.014586974866688251,
-0.0842539593577385,
0.023857280611991882,
0.005871193949133158,
-0.05377624183893204,
0.039790354669094086,
0.015916142612695694,
0.009007859043776989,
-0.0030096746049821377,
-0.03154443949460983,
-0.02307840622961521,
-0.011446076445281506,
0.032289449125528336,
0.001878401031717658,
0.0061124758794903755,
0.03548961132764816,
0.037623051553964615,
-0.003045655321329832,
0.047545239329338074,
0.03846965357661247,
0.011530736461281776,
0.016695016995072365,
0.050051186233758926,
0.003248840104788542,
-0.01879459246993065,
-0.013469458557665348,
0.017694009467959404,
0.01224188320338726,
-0.004694415256381035,
-0.03752145916223526,
-0.006662767846137285,
-0.018218902871012688,
0.019691992551088333,
0.04984800145030022,
0.03968876227736473,
0.015162664465606213,
0.004243598785251379
] |
722,009
|
apprise.config.base
|
servers
|
Performs reads loaded configuration and returns all of the services
that could be parsed and loaded.
|
def servers(self, asset=None, **kwargs):
"""
Performs reads loaded configuration and returns all of the services
that could be parsed and loaded.
"""
if not self.expired():
# We already have cached results to return; use them
return self._cached_servers
# Our cached response object
self._cached_servers = list()
# read() causes the child class to do whatever it takes for the
# config plugin to load the data source and return unparsed content
# None is returned if there was an error or simply no data
content = self.read(**kwargs)
if not isinstance(content, str):
# Set the time our content was cached at
self._cached_time = time.time()
# Nothing more to do; return our empty cache list
return self._cached_servers
# Our Configuration format uses a default if one wasn't one detected
# or enfored.
config_format = \
self.default_config_format \
if self.config_format is None else self.config_format
# Dynamically load our parse_ function based on our config format
fn = getattr(ConfigBase, 'config_parse_{}'.format(config_format))
# Initialize our asset object
asset = asset if isinstance(asset, AppriseAsset) else self.asset
# Execute our config parse function which always returns a tuple
# of our servers and our configuration
servers, configs = fn(content=content, asset=asset)
self._cached_servers.extend(servers)
# Configuration files were detected; recursively populate them
# If we have been configured to do so
for url in configs:
if self.recursion > 0:
# Attempt to acquire the schema at the very least to allow
# our configuration based urls.
schema = GET_SCHEMA_RE.match(url)
if schema is None:
# Plan B is to assume we're dealing with a file
schema = 'file'
if not os.path.isabs(url):
# We're dealing with a relative path; prepend
# our current config path
url = os.path.join(self.config_path, url)
url = '{}://{}'.format(schema, URLBase.quote(url))
else:
# Ensure our schema is always in lower case
schema = schema.group('schema').lower()
# Some basic validation
if schema not in C_MGR:
ConfigBase.logger.warning(
'Unsupported include schema {}.'.format(schema))
continue
# CWE-312 (Secure Logging) Handling
loggable_url = url if not asset.secure_logging \
else cwe312_url(url)
# Parse our url details of the server object as dictionary
# containing all of the information parsed from our URL
results = C_MGR[schema].parse_url(url)
if not results:
# Failed to parse the server URL
self.logger.warning(
'Unparseable include URL {}'.format(loggable_url))
continue
# Handle cross inclusion based on allow_cross_includes rules
if (C_MGR[schema].allow_cross_includes ==
common.ContentIncludeMode.STRICT
and schema not in self.schemas()
and not self.insecure_includes) or C_MGR[schema] \
.allow_cross_includes == \
common.ContentIncludeMode.NEVER:
# Prevent the loading if insecure base protocols
ConfigBase.logger.warning(
'Including {}:// based configuration is prohibited. '
'Ignoring URL {}'.format(schema, loggable_url))
continue
# Prepare our Asset Object
results['asset'] = asset
# No cache is required because we're just lumping this in
# and associating it with the cache value we've already
# declared (prior to our recursion)
results['cache'] = False
# Recursion can never be parsed from the URL; we decrement
# it one level
results['recursion'] = self.recursion - 1
# Insecure Includes flag can never be parsed from the URL
results['insecure_includes'] = self.insecure_includes
try:
# Attempt to create an instance of our plugin using the
# parsed URL information
cfg_plugin = C_MGR[results['schema']](**results)
except Exception as e:
# the arguments are invalid or can not be used.
self.logger.warning(
'Could not load include URL: {}'.format(loggable_url))
self.logger.debug('Loading Exception: {}'.format(str(e)))
continue
# if we reach here, we can now add this servers found
# in this configuration file to our list
self._cached_servers.extend(
cfg_plugin.servers(asset=asset))
# We no longer need our configuration object
del cfg_plugin
else:
# CWE-312 (Secure Logging) Handling
loggable_url = url if not asset.secure_logging \
else cwe312_url(url)
self.logger.debug(
'Recursion limit reached; ignoring Include URL: %s',
loggable_url)
if self._cached_servers:
self.logger.info(
'Loaded {} entries from {}'.format(
len(self._cached_servers),
self.url(privacy=asset.secure_logging)))
else:
self.logger.warning(
'Failed to load Apprise configuration from {}'.format(
self.url(privacy=asset.secure_logging)))
# Set the time our content was cached at
self._cached_time = time.time()
return self._cached_servers
|
(self, asset=None, **kwargs)
|
[
0.010125967673957348,
-0.05710382014513016,
-0.0526120699942112,
0.013309252448379993,
-0.0010545848635956645,
0.02562250755727291,
-0.00458695599809289,
-0.005385218188166618,
-0.045581504702568054,
-0.022009577602148056,
0.0012681871885433793,
0.030954020097851753,
-0.030329080298542976,
-0.002975784707814455,
-0.00369592965580523,
-0.029547907412052155,
-0.012117961421608925,
0.027223914861679077,
-0.007147742435336113,
-0.09170982986688614,
-0.049409255385398865,
-0.01596524380147457,
0.013836544938385487,
0.03269213065505028,
0.026149800047278404,
0.020134760066866875,
0.04671420529484749,
-0.01883605867624283,
0.013670545071363449,
0.023454749956727028,
-0.025114744901657104,
0.03538718447089195,
0.007050095591694117,
-0.022185342386364937,
0.04101163521409035,
-0.02132605016231537,
0.03724247217178345,
0.019031351432204247,
-0.09530322998762131,
0.03935164213180542,
-0.010975494980812073,
-0.044058214873075485,
0.05440877005457878,
-0.027048150077462196,
0.003554341848939657,
0.07253200560808182,
-0.015408657491207123,
0.09585005044937134,
-0.018054883927106857,
-0.05503370985388756,
-0.007357682567089796,
0.022419694811105728,
-0.009950203821063042,
0.042730219662189484,
0.02161899022758007,
0.03364907205104828,
-0.03189142793416977,
0.10405237972736359,
0.013221370056271553,
0.0027756087947636843,
-0.023825807496905327,
-0.02745826728641987,
0.04105069488286972,
0.017625238746404648,
-0.008397620171308517,
0.005082513205707073,
-0.05964263528585434,
-0.004516162443906069,
0.0005394982872530818,
0.01078020129352808,
0.015994537621736526,
-0.009208088740706444,
-0.008905383758246899,
-0.029352612793445587,
0.060580044984817505,
-0.04171469062566757,
-0.0009618204785510898,
0.030504845082759857,
-0.008319503627717495,
0.010096673853695393,
0.015447716228663921,
0.009466852992773056,
0.0003173519507981837,
-0.0539400652050972,
0.0735865905880928,
-0.020251935347914696,
0.020212877541780472,
-0.03734011948108673,
-0.00046687352005392313,
0.04573773965239525,
-0.03122743032872677,
0.04694855958223343,
0.03292648494243622,
0.024099217727780342,
-0.01032126136124134,
0.012059373781085014,
-0.037808820605278015,
-0.029372142627835274,
0.027770735323429108,
-0.032887425273656845,
-0.020251935347914696,
0.0029391671996563673,
-0.02958696521818638,
-0.04101163521409035,
0.026579445227980614,
-0.07089154422283173,
-0.028102735057473183,
0.020212877541780472,
-0.005336394999176264,
0.024567922577261925,
-0.03917587548494339,
-0.034762244671583176,
-0.021814284846186638,
-0.02835661731660366,
-0.019871113821864128,
0.005414512474089861,
-0.07136024534702301,
-0.0027878147084265947,
0.019031351432204247,
0.010907142423093319,
-0.04003516957163811,
0.03630506247282028,
-0.0006163951475173235,
0.03650035709142685,
0.03921493515372276,
0.003932722844183445,
-0.029918964952230453,
-0.018230648711323738,
0.02058393508195877,
-0.04616738483309746,
0.039078228175640106,
0.0259349774569273,
0.01590665616095066,
-0.040972575545310974,
0.028590969741344452,
-0.043706685304641724,
-0.025290507823228836,
0.003918075934052467,
-0.04761255532503128,
0.03208672255277634,
0.011532081291079521,
0.034957535564899445,
-0.01296748872846365,
-0.03534812480211258,
-0.009876969270408154,
-0.03702764958143234,
0.03722294047474861,
-0.045581504702568054,
-0.06737625598907471,
0.008256033062934875,
0.03195001557469368,
-0.04913584515452385,
-0.04073822498321533,
0.013494781218469143,
-0.036890942603349686,
-0.00035671578370966017,
-0.05198713019490242,
0.04933113977313042,
-0.017840061336755753,
-0.025974035263061523,
-0.0435895100235939,
-0.012323020026087761,
0.014197837561368942,
-0.018064649775624275,
-0.06991507112979889,
-0.019021587446331978,
-0.0409335196018219,
-0.03702764958143234,
0.004328192211687565,
0.021150287240743637,
-0.024821804836392403,
0.026188857853412628,
-0.07628164440393448,
0.024919450283050537,
0.01111220009624958,
0.03892199695110321,
0.00746997632086277,
-0.021911930292844772,
0.013865838758647442,
0.022204870358109474,
-0.037144824862480164,
-0.02064252272248268,
-0.020056642591953278,
0.014022073708474636,
0.00134752516169101,
0.025700625032186508,
0.027731677517294884,
-0.014900893904268742,
0.04933113977313042,
0.06979789584875107,
-0.03771117702126503,
-0.006888978183269501,
0.003385901218280196,
-0.05374477058649063,
-0.020935462787747383,
-0.035621535032987595,
0.005287571810185909,
0.002780491253361106,
0.018201354891061783,
0.013533839955925941,
-0.0926472395658493,
-0.025095215067267418,
-0.008856560103595257,
-0.037808820605278015,
0.03931258246302605,
0.016121478751301765,
-0.029411202296614647,
-0.02769261784851551,
-0.030290022492408752,
0.12623772025108337,
-0.06749343127012253,
0.007191683165729046,
-0.017351828515529633,
-0.02296651527285576,
0.01639488898217678,
-0.028083205223083496,
0.006596038118004799,
0.04878431558609009,
-0.023669572547078133,
0.0007933798478916287,
0.02118934504687786,
-0.004975101910531521,
-0.0057904524728655815,
-0.0047553968615829945,
-0.08264821022748947,
0.015164540149271488,
-0.004152427893131971,
0.03273119032382965,
0.010223614983260632,
0.007435800042003393,
-0.0024509334471076727,
0.0347231850028038,
0.04409727454185486,
0.01338736992329359,
0.09709993004798889,
-0.008797972463071346,
0.061009690165519714,
0.07057907432317734,
0.04323798045516014,
0.028454262763261795,
-0.008544091135263443,
-0.002070111222565174,
-0.007250271271914244,
-0.061009690165519714,
-0.06358756124973297,
-0.021345579996705055,
-0.030504845082759857,
0.029528377577662468,
-0.024431217461824417,
0.01579924486577511,
0.026755210012197495,
0.04237869009375572,
-0.00826091505587101,
-0.01478371862322092,
-0.020388642325997353,
-0.050737250596284866,
-0.009007913060486317,
-0.014481013640761375,
0.045347150415182114,
-0.04741726070642471,
0.03734011948108673,
-0.03816035017371178,
0.024099217727780342,
0.026696622371673584,
-0.04757349565625191,
0.010653260163962841,
0.031246960163116455,
-0.02739967778325081,
-0.042613040655851364,
0.061673689633607864,
0.05944734066724777,
0.04839373007416725,
0.00847085565328598,
-0.002465580590069294,
-0.03218436986207962,
0.042964570224285126,
0.00572209944948554,
-0.04835467040538788,
-0.018611470237374306,
0.038101762533187866,
0.009017677046358585,
0.019392644986510277,
0.03417636454105377,
-0.03359048068523407,
0.035680122673511505,
-0.07952351123094559,
-0.03773070499300957,
0.057494405657052994,
-0.05476029962301254,
0.020915934816002846,
-0.020427700132131577,
-0.00039089214988052845,
-0.01032126136124134,
-0.042417749762535095,
0.0004128626605961472,
0.0030075199902057648,
-0.03903917223215103,
0.0003063666808884591,
0.027048150077462196,
-0.020818287506699562,
-0.05202618986368179,
-0.03505518287420273,
0.023161809891462326,
-0.009808615781366825,
0.006703449413180351,
-0.017332298681139946,
0.015350068919360638,
-0.031676605343818665,
0.05679135024547577,
0.031559430062770844,
0.029684612527489662,
-0.02296651527285576,
0.01652183011174202,
0.0006755934446118772,
-0.0007921592914499342,
0.001655112486332655,
-0.02939167246222496,
0.07003224641084671,
0.012381607666611671,
0.01138561125844717,
-0.0333951897919178,
0.0901474803686142,
-0.009212970733642578,
0.005863687489181757,
0.0873352512717247,
0.00986720435321331,
0.06608732044696808,
0.05194807052612305,
-0.03321942314505577,
-0.007406506221741438,
-0.019519586116075516,
0.011063377372920513,
-0.059916045516729355,
0.03839470446109772,
0.02544674277305603,
-0.03630506247282028,
-0.0041597518138587475,
-0.09241288900375366,
0.03833611309528351,
-0.03407871723175049,
0.062220510095357895,
-0.0011381949298083782,
-0.05858805030584335,
-0.0021299198269844055,
0.004452691879123449,
-0.029899435117840767,
0.06737625598907471,
-0.00019117402553092688,
-0.030133787542581558,
0.011180552653968334,
-0.01827947236597538,
-0.037633057683706284,
0.011981256306171417,
0.0477297306060791,
0.061790864914655685,
-0.06557955592870712,
-0.050502900034189224,
-0.06624355912208557,
-0.00387169374153018,
0.002181184245273471,
-0.006005275063216686,
0.040347639471292496,
-0.02253687009215355,
0.03722294047474861,
-0.028649557381868362,
-0.013865838758647442,
0.005966216325759888,
-0.03073919750750065,
0.07155553996562958,
-0.08975689113140106,
-0.026442740112543106,
0.021697107702493668,
0.025290507823228836,
-0.08178891986608505,
0.0437457449734211,
-0.03421542048454285,
-0.010370085015892982,
0.01749829761683941,
-0.07757057994604111,
0.04030857980251312,
-0.010604437440633774,
0.09788110107183456,
-0.03794552758336067,
-0.04554244503378868,
0.006000393070280552,
-0.03378577530384064,
0.017888884991407394,
-0.03388342261314392,
0.012342548929154873,
0.014568895101547241,
0.048979610204696655,
-0.008055857382714748,
-0.016307007521390915,
0.026930974796414375,
-0.053705714643001556,
-0.031969547271728516,
0.02271263487637043,
0.04030857980251312,
0.04190998524427414,
-0.02538815513253212,
0.023767219856381416,
-0.0409335196018219,
0.06796213984489441,
0.061673689633607864,
-0.009940438903868198,
-0.06307980418205261,
0.11576998978853226,
0.03921493515372276,
-0.009891616180539131,
0.04288645461201668,
-0.019177822396159172,
-0.0409335196018219,
-0.042417749762535095,
-0.0131530174985528,
-0.06089251488447189,
0.0066350968554615974,
0.011590668931603432,
-0.010604437440633774,
0.011698081158101559,
0.0526120699942112,
0.0252709798514843,
-0.020447229966521263,
0.0272629726678133,
-0.019587937742471695,
-0.0019810085650533438,
0.021482285112142563,
-0.020915934816002846,
0.00651303818449378,
-0.10709895938634872,
-0.04343327507376671,
0.03384436294436455,
0.05315889045596123,
-0.02374769002199173,
-0.07960163056850433,
0.02587638981640339,
-0.034957535564899445,
-0.0033175484277307987,
-0.051166899502277374,
0.016258183866739273,
-0.050620075315237045,
-0.020974522456526756,
0.014256426133215427,
0.007416270673274994,
0.004503956530243158,
0.030582962557673454,
0.006986625026911497,
-0.05768970027565956,
0.0068352725356817245,
0.02909873239696026,
-0.050737250596284866,
-0.10170885920524597,
-0.003505518427118659,
-0.01908017508685589,
-0.0027951381634920835,
-0.04421444982290268,
-0.01651206612586975,
0.05800217017531395,
0.03698858991265297,
-0.03921493515372276,
0.01502783503383398,
-0.002144566737115383,
-0.016775712370872498,
0.05831464007496834,
-0.040347639471292496,
-0.019949231296777725,
0.006283568684011698,
0.05362759530544281,
0.04620644450187683,
-0.014051367528736591,
0.01165902242064476,
-0.028454262763261795,
-0.016658535227179527,
-0.028688615188002586,
-0.00422322191298008,
0.015477010048925877,
-0.014441954903304577,
0.02970414236187935,
0.01338736992329359,
-0.01590665616095066,
-0.0443316251039505,
-0.022029107436537743,
0.021638520061969757,
-0.00974514614790678,
-0.014861835166811943,
0.01932429149746895,
-0.11428575962781906,
0.07823457568883896,
-0.049760784953832626,
-0.011395376175642014,
-0.005014160647988319,
-0.010457967408001423,
-0.015203598886728287,
0.0014524954603984952,
0.011502787470817566,
-0.007133095059543848,
0.03985940292477608,
0.0358363576233387,
0.036949530243873596,
0.07069624960422516,
-0.030172845348715782,
0.006493508815765381,
-0.06479838490486145,
-0.03544577211141586,
0.02648179978132248,
-0.02458745241165161,
0.040894459933042526,
-0.038589995354413986,
0.02798555977642536,
-0.010243143886327744,
0.011131729930639267,
-0.03316083550453186,
-0.00047663820441812277,
0.03868764266371727,
0.008290208876132965,
0.0024899921845644712,
-0.005932040046900511,
-0.040113285183906555,
0.033688127994537354,
-0.02812226489186287,
-0.013231134973466396,
0.029294025152921677,
-0.005736746825277805,
0.05229960009455681,
0.003791135037317872,
-0.025173332542181015,
0.02003711275756359,
0.038101762533187866,
-0.03903917223215103,
-0.05835369974374771,
0.028590969741344452,
-0.026345092803239822,
-0.004377015400677919,
-0.014441954903304577,
-0.010457967408001423,
0.04519091546535492,
0.02466556988656521,
-0.0181037075817585,
-0.018299000337719917,
-0.01701006479561329,
-0.013582662679255009,
0.03505518287420273,
0.002070111222565174,
0.043511390686035156,
-0.038531407713890076,
-0.026403682306408882,
-0.05374477058649063,
-0.002250757534056902,
0.0358363576233387,
0.02023240737617016,
-0.052065249532461166,
0.02915732003748417,
-0.0009142177295871079,
0.06503273546695709,
-0.021775225177407265,
0.05518994480371475,
-0.06331415474414825,
0.027184855192899704,
-0.0579240545630455,
-0.01269407756626606,
0.04179280996322632,
0.035680122673511505,
0.0034737831447273493,
-0.10827071964740753,
0.025661565363407135,
-0.02386486530303955,
-0.02058393508195877,
0.027926970273256302,
0.04761255532503128,
-0.004252516198903322,
-0.004767602775245905,
0.036168355494737625,
0.02970414236187935,
-0.02179475501179695,
0.0010033203288912773,
-0.023708630353212357,
0.03685188293457031,
0.006068745627999306,
0.007596917450428009,
0.02976273000240326,
-0.016199596226215363,
0.025368625298142433,
-0.03554341569542885,
0.02095499262213707,
-0.0040840753354132175,
-0.002668197499588132,
0.007260036189109087,
0.012069138698279858,
0.07245388627052307,
0.03321942314505577,
0.03126648813486099,
-0.026891915127635002,
0.029899435117840767,
0.01539889257401228,
-0.010106438770890236,
0.00024060769646894187,
0.07784399390220642,
0.01907041110098362,
-0.01590665616095066,
0.01754712127149105,
0.0072063300758600235,
-0.05636170506477356,
-0.016502300277352333,
0.012615960091352463,
-0.026891915127635002,
-0.01263548992574215,
-0.023298515006899834,
-0.007323506288230419,
-0.019587937742471695,
-0.002336198464035988,
0.024060159921646118,
0.01148325763642788,
-0.01078020129352808,
0.04398009553551674,
-0.004015722777694464,
0.024372629821300507,
0.016990534961223602,
-0.010575143620371819,
0.015262187458574772,
0.036402709782123566,
-0.054682180285453796,
0.03542624041438103,
0.038785289973020554,
0.025778742507100105,
0.021658049896359444,
-0.07194612920284271,
0.00965726375579834,
-0.011307493783533573,
-0.021658049896359444,
-0.03491847962141037,
0.04894055053591728,
0.07522705942392349,
0.004823749419301748,
0.007601799443364143,
0.04530809447169304,
-0.047651614993810654,
0.019021587446331978,
0.09061618894338608,
0.03198907524347305,
0.02878626249730587,
0.004879896529018879,
0.12522219121456146,
-0.07069624960422516,
-0.02156040258705616,
-0.030172845348715782,
-0.043628569692373276,
0.001996875973418355,
0.005590276326984167,
-0.011746903881430626,
0.06522803008556366,
0.002616932848468423,
0.004672396928071976,
-0.006937801837921143,
-0.019949231296777725,
0.0384923480451107,
-0.028395675122737885,
0.04030857980251312,
0.0392344631254673,
0.012567137368023396,
0.01992970146238804,
-0.010731377638876438,
-0.02204863727092743,
0.0074553294107317924,
0.011082906275987625,
-0.07303977012634277,
0.02204863727092743,
-0.07874234020709991,
0.029723670333623886,
-0.024880392476916313,
0.002326433779671788,
0.05640076473355293,
0.03341471776366234,
-0.0656186193227768,
-0.014988776296377182,
0.017234651371836662,
0.005927157588303089,
-0.04069916531443596,
-0.05800217017531395,
-0.0073332712054252625,
-0.015145011246204376,
0.013836544938385487,
0.015603951178491116,
0.015203598886728287,
-0.019519586116075516,
0.05616641044616699,
-0.01296748872846365,
0.013865838758647442,
0.05253395065665245,
-0.04222245514392853,
-0.003307783743366599,
0.02064252272248268,
-0.02216581255197525,
0.027184855192899704,
0.004157310351729393,
0.017205357551574707,
0.011043847538530827,
-0.013133487664163113,
0.007367447484284639,
-0.03193048760294914,
-0.012098432518541813,
0.04780784994363785,
0.07003224641084671,
-0.0031002843752503395,
-0.015145011246204376,
0.007758034393191338,
-0.0282980278134346,
-0.006141980644315481,
-0.00819744449108839,
-0.018425941467285156,
-0.015623480081558228,
0.034898947924375534,
0.01816229522228241,
0.06464214622974396,
0.10124015063047409,
-0.007411388214677572,
-0.0036837237421423197,
0.0009416808607056737,
-0.00031338504049926996,
-0.020251935347914696,
0.026755210012197495,
0.04050387069582939,
-0.025563919916749,
-0.030817314982414246,
0.0386485829949379,
-0.007362565025687218,
0.015896890312433243,
0.01924617402255535,
0.024333570152521133,
-0.008397620171308517,
0.049643609672784805,
0.028747202828526497,
-0.019421938806772232,
-0.0005651305546052754,
-0.031246960163116455,
0.028219910338521004,
0.019724644720554352,
-0.063392274081707,
0.011493022553622723,
-0.0025925212539732456,
-0.00309051969088614,
0.013641251251101494,
0.01924617402255535,
-0.05397912487387657,
-0.039273522794246674,
0.009066500701010227,
-0.04933113977313042,
-0.010623966343700886,
0.042964570224285126,
0.04710479453206062,
-0.022380635142326355,
0.04468315467238426,
-0.02648179978132248,
-0.021970519796013832,
-0.007845916785299778,
0.02945026010274887,
-0.043706685304641724,
-0.02392345480620861,
-0.037633057683706284,
0.02368910238146782,
0.008602678775787354,
-0.013445957563817501,
0.045151859521865845,
-0.04562056064605713,
-0.0012510990491136909,
0.05003419518470764,
0.06698567420244217,
0.009335029870271683,
0.02702862024307251,
0.007958210073411465
] |
722,016
|
apprise.common
|
ConfigFormat
|
A list of pre-defined config formats that can be passed via the
apprise library.
|
class ConfigFormat:
"""
A list of pre-defined config formats that can be passed via the
apprise library.
"""
# A text based configuration. This consists of a list of URLs delimited by
# a new line. pound/hashtag (#) or semi-colon (;) can be used as comment
# characters.
TEXT = 'text'
# YAML files allow a more rich of an experience when settig up your
# apprise configuration files.
YAML = 'yaml'
|
()
|
[
-0.005426529794931412,
-0.07440989464521408,
0.026283996179699898,
-0.06719392538070679,
0.013384470716118813,
-0.011978131718933582,
0.0017373140435665846,
-0.011949034407734871,
0.003828637534752488,
0.0033679401967674494,
-0.021453948691487312,
0.0080694779753685,
-0.004163249395787716,
0.055749230086803436,
0.015246657654643059,
-0.008578670211136341,
-0.004902789834886789,
-0.00015639462799299508,
0.02963981404900551,
-0.03615747019648552,
0.01881585083901882,
-0.029407039284706116,
-0.012414581142365932,
0.022889384999871254,
0.034469861537218094,
0.07359518855810165,
0.04702022671699524,
-0.03842701017856598,
-0.05035664513707161,
-0.050123874098062515,
-0.04686504602432251,
-0.015479431487619877,
0.026225803419947624,
0.01133800484240055,
0.013879113830626011,
-0.056408755481243134,
-0.00552351912483573,
0.06502137333154678,
-0.09155753999948502,
0.01766168139874935,
-0.025585677474737167,
0.010251728817820549,
0.0044129956513643265,
-0.03931930661201477,
-0.028223775327205658,
0.07359518855810165,
-0.0302023496478796,
0.055710434913635254,
-0.06405147910118103,
0.006934707518666983,
0.016284439712762833,
-0.003954723011702299,
-0.0569130964577198,
0.041006915271282196,
-0.06967683881521225,
0.004539081361144781,
0.034469861537218094,
0.10536876320838928,
-0.007545738015323877,
0.021376358345150948,
-0.038543395698070526,
0.01574130170047283,
0.047990117222070694,
-0.03514878451824188,
0.010901554487645626,
0.03984304890036583,
-0.04597274586558342,
0.01403429638594389,
0.022753600031137466,
0.003729223972186446,
0.017128242179751396,
-0.032918039709329605,
-0.05338270217180252,
-0.02191949635744095,
0.06707753241062164,
-0.043994173407554626,
-0.06529293954372406,
0.0852726548910141,
-0.01844729296863079,
0.014819907024502754,
0.013937307521700859,
0.03367455303668976,
-0.0001829150423873216,
-0.03144380822777748,
0.040114615112543106,
-0.046593476086854935,
-0.00958250556141138,
-0.02599303051829338,
0.0737115815281868,
0.01771017722785473,
-0.02442180924117565,
0.005649604368954897,
0.0011378012131899595,
0.016720889136195183,
-0.037321336567401886,
-0.01237578596919775,
-0.0059502702206373215,
-0.03528456762433052,
0.0066000958904623985,
-0.0264973733574152,
-0.040968120098114014,
0.005799937527626753,
-0.05043423920869827,
-0.07157782465219498,
-0.03253008425235748,
-0.06397388875484467,
-0.03109464794397354,
0.06253845244646072,
-0.026380985975265503,
0.011900540441274643,
-0.009209097363054752,
-0.041356075555086136,
-0.052063651382923126,
-0.0016500239726155996,
0.0284565482288599,
0.02442180924117565,
0.0011323456419631839,
-0.019717847928404808,
0.01395670510828495,
0.008161617442965508,
-0.036409638822078705,
0.04267512261867523,
-0.024848561733961105,
0.03528456762433052,
0.05404222384095192,
0.039920639246702194,
-0.03545914962887764,
0.011890841647982597,
0.017855659127235413,
-0.023936865851283073,
0.06661199033260345,
0.043994173407554626,
-0.04147246107459068,
-0.09233345091342926,
0.040812935680150986,
-0.027292681857943535,
0.010183836333453655,
0.033073220402002335,
0.005639905575662851,
0.11173123121261597,
-0.016187449917197227,
0.03349997103214264,
0.004980381112545729,
-0.010610587894916534,
-0.06502137333154678,
-0.01661420240998268,
-0.00432328088209033,
-0.023801080882549286,
-0.02931005135178566,
0.08713484555482864,
0.03497420251369476,
0.029038481414318085,
-0.005184057634323835,
0.03163778409361839,
0.002727813320234418,
-0.021473346278071404,
-0.017603488638997078,
0.015537625178694725,
0.026090018451213837,
0.0007880349876359105,
0.016410525888204575,
-0.004342678934335709,
0.05594320967793465,
0.03018295206129551,
-0.039571478962898254,
0.039222318679094315,
-0.01694396324455738,
-0.048882413655519485,
0.05357667803764343,
-0.01720583438873291,
0.014170081354677677,
-0.0523352213203907,
-0.04896000772714615,
0.031308021396398544,
0.055710434913635254,
0.03778688237071037,
0.011163424700498581,
0.042054396122694016,
0.007996736094355583,
-0.012851031497120857,
0.006609794683754444,
0.01818542182445526,
-0.03945509344339371,
0.038853760808706284,
0.043955378234386444,
0.019203806295990944,
-0.01034871768206358,
0.00399594334885478,
0.026031825691461563,
0.015081777237355709,
0.03229730948805809,
-0.009761935099959373,
-0.012928622774779797,
-0.026264598593115807,
-0.03831062093377113,
-0.05543886497616768,
-0.024693379178643227,
-0.044343333691358566,
0.01578979566693306,
-0.019397784024477005,
-0.04263632744550705,
0.023626500740647316,
-0.01519816368818283,
-0.0129771176725626,
0.06855176389217377,
-0.000022144540707813576,
0.024266626685857773,
-0.05210244655609131,
-0.044110558927059174,
0.04570117965340614,
-0.029698006808757782,
-0.02717629447579384,
0.00445906538516283,
0.019940922036767006,
0.035885900259017944,
-0.039377499371767044,
0.03865978121757507,
0.06936647742986679,
-0.08302251249551773,
0.027835819870233536,
0.061180610209703445,
-0.001101430389098823,
0.06742669641971588,
-0.004975531715899706,
0.012336990796029568,
0.00820041261613369,
0.027603046968579292,
-0.03988184407353401,
0.0028078292962163687,
0.018486088141798973,
-0.03163778409361839,
-0.020813822746276855,
-0.009941363707184792,
0.06622403115034103,
0.028650525957345963,
-0.012230302207171917,
0.0006625555688515306,
0.003513423493131995,
0.0043014585971832275,
0.022404439747333527,
0.025760257616639137,
0.04698143154382706,
-0.030105359852313995,
-0.01280253753066063,
0.00672133220359683,
-0.05268438160419464,
-0.04515803977847099,
0.008811443112790585,
-0.0148296058177948,
-0.023102760314941406,
0.01615835353732109,
0.0017239779699593782,
-0.015401840209960938,
-0.0014366483082994819,
-0.022171666845679283,
0.00016412344120908529,
-0.0414336659014225,
-0.021686721593141556,
0.035168182104825974,
-0.05508970469236374,
0.029407039284706116,
-0.0307454876601696,
0.03214212879538536,
0.04073534533381462,
-0.00008274367428384721,
0.007298415992408991,
0.042403556406497955,
-0.020445264875888824,
0.0038989544846117496,
0.0022695406805723906,
0.1899431049823761,
0.0719657763838768,
-0.043994173407554626,
-0.01395670510828495,
-0.01457743439823389,
-0.005203455686569214,
0.039377499371767044,
0.022501429542899132,
0.03373274579644203,
0.014257371425628662,
0.027156896889209747,
0.004318431485444307,
0.03280165046453476,
0.0414336659014225,
0.08333288133144379,
-0.05916323885321617,
-0.061180610209703445,
0.03584710508584976,
-0.05419740825891495,
0.028863901272416115,
0.057650212198495865,
0.025003742426633835,
0.005736894439905882,
-0.027428466826677322,
0.049425553530454636,
0.020290082320570946,
0.006250935606658459,
-0.02228805422782898,
0.012763741426169872,
-0.0966009646654129,
-0.00803553219884634,
-0.022191064432263374,
0.0036443585995584726,
0.0010202021803706884,
-0.04702022671699524,
0.01044570654630661,
-0.0071092876605689526,
-0.06021071970462799,
0.016255343332886696,
0.03421768918633461,
0.011619272641837597,
-0.0013323852326720953,
0.03388792648911476,
0.0026720447931438684,
-0.045041654258966446,
0.04224837198853493,
-0.018224216997623444,
0.020309479907155037,
0.001109310775063932,
-0.014499843120574951,
-0.030978260561823845,
0.05024025961756706,
-0.001177203026600182,
-0.042752716690301895,
0.0558268204331398,
-0.01609046198427677,
0.008539874106645584,
0.015149668790400028,
-0.03580830991268158,
0.02843715064227581,
-0.06622403115034103,
0.021143583580851555,
-0.00001830855217122007,
0.04166644066572189,
-0.02122117578983307,
-0.04286910220980644,
0.014121586456894875,
-0.022326849400997162,
-0.025740858167409897,
-0.06560330092906952,
0.05586561560630798,
-0.024344218894839287,
-0.06335315853357315,
-0.002628399757668376,
-0.02108539082109928,
0.018660668283700943,
0.0073129646480083466,
-0.0014463472180068493,
0.027428466826677322,
0.001356632448732853,
-0.01587708666920662,
-0.005101616960018873,
0.008598067797720432,
0.011619272641837597,
0.028922095894813538,
-0.05155931040644646,
-0.0610642246901989,
-0.07968609780073166,
0.0009638273622840643,
-0.008006434887647629,
0.023238545283675194,
-0.0036589070223271847,
-0.00003627612750278786,
0.024673981592059135,
-0.05194726586341858,
0.02752545475959778,
-0.0008613828103989363,
0.02457699179649353,
0.06428425759077072,
-0.008176165632903576,
-0.0060036140494048595,
0.028514742851257324,
0.021861301735043526,
-0.07953090965747833,
0.020581047981977463,
-0.030473917722702026,
0.006430365145206451,
0.012424280866980553,
-0.09714409708976746,
0.02878631092607975,
-0.02564387023448944,
0.06936647742986679,
0.0061781941913068295,
0.012220603413879871,
-0.026380985975265503,
-0.05334390327334404,
-0.003566767554730177,
-0.006706783547997475,
-0.01966935209929943,
0.022249257192015648,
0.007177180144935846,
-0.012133313342928886,
-0.020328877493739128,
0.044110558927059174,
-0.09419563412666321,
-0.04961952939629555,
-0.054662954062223434,
0.06315918266773224,
0.027603046968579292,
0.03452805429697037,
0.04721420630812645,
-0.06354714184999466,
0.0019603886175900698,
-0.011473788879811764,
-0.014257371425628662,
0.008127671666443348,
0.07188818603754044,
0.04407176375389099,
0.002054952783510089,
0.011813250370323658,
0.0519084706902504,
-0.04123968631029129,
-0.03163778409361839,
-0.05198606103658676,
0.00045524173765443265,
0.012695849873125553,
-0.012327291071414948,
0.013093504123389721,
-0.023801080882549286,
-0.01570250652730465,
-0.01643962226808071,
-0.015236958861351013,
0.049425553530454636,
0.07693161070346832,
0.05008507892489433,
0.06839658319950104,
0.023102760314941406,
0.016003170982003212,
-0.00789489783346653,
-0.014334961771965027,
-0.025566278025507927,
0.03173477575182915,
-0.02667195163667202,
-0.06936647742986679,
0.0034140099305659533,
-0.05962878838181496,
0.019552966579794884,
-0.07390555739402771,
-0.02950402908027172,
-0.07929813861846924,
-0.007773661985993385,
-0.025760257616639137,
0.02141515351831913,
0.0270405113697052,
-0.00562050798907876,
-0.00527134770527482,
-0.07557376474142075,
-0.021686721593141556,
0.04418815299868584,
-0.04938675835728645,
-0.08247937262058258,
-0.0036079876590520144,
-0.032277911901474,
-0.019921524450182915,
0.039590876549482346,
-0.06812501698732376,
0.00982497725635767,
0.006900761742144823,
-0.036584220826625824,
0.012191507034003735,
0.05086098983883858,
-0.01640082523226738,
0.0048979404382407665,
-0.02878631092607975,
0.007933693937957287,
-0.044149354100227356,
0.034159496426582336,
0.03419829159975052,
-0.02387867122888565,
-0.01982453465461731,
-0.054313793778419495,
0.01834060437977314,
-0.0071432339027523994,
0.0569130964577198,
-0.0135202556848526,
0.055361274629831314,
0.03330599516630173,
0.03703036904335022,
-0.0909368097782135,
-0.048416867852211,
-0.034683238714933395,
-0.04550720006227493,
-0.05753382667899132,
0.030085962265729904,
0.02671074867248535,
-0.08403120189905167,
0.013937307521700859,
-0.033616360276937485,
-0.03708856180310249,
-0.00942247360944748,
0.017506498843431473,
0.005882377736270428,
-0.016148654744029045,
-0.008258606307208538,
0.026574963703751564,
0.04721420630812645,
0.05245160683989525,
0.03584710508584976,
-0.001431798911653459,
-0.005465325433760881,
0.044498514384031296,
-0.06789224594831467,
-0.02226865477859974,
-0.013908211141824722,
0.034275881946086884,
-0.029038481414318085,
-0.019446277990937233,
0.002941188868135214,
-0.013112901709973812,
0.02034827508032322,
-0.026419781148433685,
-0.004391173366457224,
0.04248114675283432,
-0.012569763697683811,
0.029232459142804146,
-0.019659653306007385,
-0.023645898327231407,
0.03472203388810158,
-0.005901775788515806,
0.02738966979086399,
-0.057145871222019196,
-0.0348966121673584,
0.033441778272390366,
0.01167746540158987,
-0.006023011635988951,
0.014451349154114723,
0.03472203388810158,
-0.02319975011050701,
-0.04969712346792221,
0.056447550654411316,
0.04155005142092705,
0.029232459142804146,
0.01403429638594389,
0.005669002421200275,
-0.00040705036371946335,
0.050123874098062515,
-0.06482739001512527,
0.039590876549482346,
0.03375214338302612,
0.04158884659409523,
0.02512012980878353,
-0.017894456163048744,
0.013064407743513584,
0.0017385263927280903,
-0.018806152045726776,
-0.03687518835067749,
0.014616229571402073,
-0.047097817063331604,
0.04178282618522644,
-0.057301051914691925,
0.03266586735844612,
0.007831854745745659,
0.03318960964679718,
0.01678878255188465,
0.011842346750199795,
-0.013083805330097675,
0.03833002224564552,
-0.009795880876481533,
0.036933381110429764,
-0.0009389739716425538,
-0.04158884659409523,
-0.004752457141876221,
-0.06370232254266739,
0.05443017929792404,
-0.01561521552503109,
0.00737600727006793,
-0.02634219080209732,
0.00509676756337285,
-0.029407039284706116,
0.0026187007315456867,
0.060094334185123444,
-0.020231887698173523,
0.060288310050964355,
0.015052679926156998,
-0.03827182576060295,
0.030144155025482178,
0.044343333691358566,
0.07037515938282013,
-0.006925008725374937,
-0.01574130170047283,
-0.033364187926054,
0.012366087175905704,
-0.012482473626732826,
-0.07293566316366196,
-0.02368469350039959,
0.00468941405415535,
0.043257057666778564,
0.017390113323926926,
-0.009306087158620358,
0.021453948691487312,
0.0012875278480350971,
0.016895469278097153,
0.037107959389686584,
-0.008753249421715736,
-0.02473217435181141,
-0.012754042632877827,
0.03474143147468567,
-0.09054885059595108,
0.04147246107459068,
0.014121586456894875,
-0.03039632737636566,
0.009989858604967594,
-0.03086187317967415,
-0.0210465956479311,
0.003016355447471142,
0.00811312347650528,
0.008782346732914448,
-0.033965520560741425,
-0.011803551577031612,
-0.006750428583472967,
0.04003702476620674,
0.00224893051199615,
-0.008602917194366455,
-0.006958954967558384,
0.021201778203248978,
0.027952205389738083,
0.03330599516630173,
0.0020270682871341705,
0.0014402854721993208,
-0.060288310050964355,
0.012569763697683811,
0.05249040201306343,
-0.009723138995468616,
0.003232155693694949,
-0.0477573424577713,
0.027816422283649445,
-0.07270289212465286,
-0.02492615208029747,
-0.05873648822307587,
-0.05322751775383949,
0.08379842340946198,
0.011493186466395855,
0.003118193708360195,
-0.025740858167409897,
-0.0375153124332428,
-0.014839304611086845,
0.02793280780315399,
-0.0010535421315580606,
0.03126922622323036,
-0.0016973060555756092,
0.03964906930923462,
-0.05458536371588707,
0.01834060437977314,
-0.015489130280911922,
-0.014955691061913967,
0.03858219087123871,
-0.04725300148129463,
-0.04612793028354645,
0.026361588388681412,
-0.028340162709355354,
0.015149668790400028,
0.03476082906126976,
-0.009349731728434563,
0.04861084744334221,
-0.056447550654411316,
0.06773705780506134,
-0.0071092876605689526,
0.05411981791257858,
-0.0006219414644874632,
-0.05353788286447525,
-0.042752716690301895,
0.01932019181549549,
-0.021706119179725647,
-0.04015341401100159,
-0.008830840699374676,
-0.039920639246702194,
-0.0009559470345266163,
0.0023228845093399286,
0.006920159328728914,
0.039765454828739166,
0.017002157866954803,
0.002275602426379919,
0.05225763097405434,
0.017458004876971245,
0.04085173085331917,
-0.029232459142804146,
-0.03635144606232643,
-0.002088898792862892,
0.06525414437055588,
-0.013937307521700859,
-0.03551734238862991,
0.012094518169760704,
-0.014325262978672981,
0.00448088813573122,
0.00413172785192728,
0.03673940151929855,
0.018544280901551247,
0.024615786969661713,
-0.008491380140185356,
0.03737952932715416,
-0.051481716334819794,
0.010251728817820549,
-0.013694834895431995,
0.006667987909168005,
0.04934796318411827,
-0.03703036904335022,
0.012860730290412903,
-0.03134681656956673,
-0.031870558857917786,
-0.00017427696730010211,
0.056098390370607376,
-0.008059779182076454,
-0.009563107043504715,
0.01577039808034897,
-0.023898068815469742,
-0.02073623053729534,
0.013452363200485706,
-0.024867959320545197,
0.006750428583472967,
-0.00033643029746599495,
0.007555436808615923,
0.09419563412666321,
0.04337344318628311,
-0.06021071970462799,
0.041860416531562805,
-0.0145580368116498,
0.02261781506240368,
-0.011774454265832901,
0.009019969031214714,
-0.005106466356664896,
-0.028495343402028084,
0.02335493080317974,
0.011997529305517673,
-0.03305382281541824,
0.023122157901525497,
0.005188907030969858,
-0.03929990902543068,
-0.009495215490460396,
-0.006086054723709822,
-0.014916895888745785,
-0.017264027148485184,
0.03435347601771355,
-0.06544812023639679,
0.0540810227394104,
0.01087245810776949,
0.005057971924543381,
-0.01886434480547905,
-0.021822506561875343,
0.020134899765253067,
-0.011696863919496536,
0.03179296851158142,
0.025508085265755653,
-0.03210333362221718,
0.0017142791766673326,
-0.04919277876615524,
-0.011056737042963505,
0.041705235838890076,
0.008559271693229675,
-0.029426438733935356,
0.0702199786901474,
-0.030803680419921875,
0.005542916711419821,
-0.054662954062223434,
0.00468941405415535,
0.0070559438318014145,
-0.039377499371767044,
0.0023616801481693983,
-0.0030575755517929792,
-0.010077148675918579,
0.0010990056907758117,
-0.008709604851901531,
-0.020484060049057007,
0.030241144821047783,
0.04003702476620674,
0.06409027427434921,
-0.01928139664232731,
-0.040618959814310074,
-0.01884494721889496
] |
722,017
|
apprise.common
|
ContentIncludeMode
|
The different Content inclusion modes. All content based plugins will
have one of these associated with it.
|
class ContentIncludeMode:
"""
The different Content inclusion modes. All content based plugins will
have one of these associated with it.
"""
# - Content inclusion of same type only; hence a file:// can include
# a file://
# - Cross file inclusion is not allowed unless insecure_includes (a flag)
# is set to True. In these cases STRICT acts as type ALWAYS
STRICT = 'strict'
# This content type can never be included
NEVER = 'never'
# This content can always be included
ALWAYS = 'always'
|
()
|
[
0.014415815472602844,
-0.07991298288106918,
-0.02462850883603096,
-0.022696860134601593,
0.08291776478290558,
0.05018706992268562,
0.06911006569862366,
0.01033789198845625,
-0.0564112663269043,
-0.02035384252667427,
0.026452841237187386,
-0.008692414499819279,
-0.04771885275840759,
0.000015064798390085343,
-0.018922993913292885,
-0.07308067381381989,
-0.015327982604503632,
-0.0026426012627780437,
0.021480638533830643,
-0.04925701767206192,
-0.012305310927331448,
0.009246869012713432,
0.0015471067745238543,
-0.009881808422505856,
0.02745443768799305,
0.016338519752025604,
0.011813456192612648,
-0.030459223315119743,
-0.049900900572538376,
-0.018654709681868553,
-0.023984625935554504,
-0.01725962944328785,
0.018055539578199387,
-0.042567793279886246,
-0.016374291852116585,
-0.02784792147576809,
0.004677091259509325,
0.08971430361270905,
-0.04689611494541168,
-0.03199738636612892,
-0.08034223318099976,
0.04074345901608467,
0.010302120819687843,
-0.04879198968410492,
-0.04972204193472862,
0.05136752128601074,
-0.023161886259913445,
0.05165369063615799,
-0.009604581631720066,
0.0013011794071644545,
0.06395900249481201,
-0.007078236900269985,
0.005066103767603636,
0.003782810177654028,
-0.04160196706652641,
0.051904089748859406,
-0.011169574223458767,
0.064638651907444,
-0.057126693427562714,
0.05523081496357918,
0.02564798854291439,
0.031246190890669823,
0.010919175110757351,
-0.02344805747270584,
0.012823994271457195,
0.045751433819532394,
0.006908323150128126,
-0.027168266475200653,
-0.02459273673593998,
0.029153572395443916,
-0.05168946087360382,
-0.056375496089458466,
0.03106733411550522,
0.011375258676707745,
0.06102575734257698,
-0.04872044920921326,
-0.03024459443986416,
0.09100206941366196,
0.029350314289331436,
0.06750035285949707,
0.019674189388751984,
-0.03201527148485184,
-0.0013134757755324244,
-0.04428481310606003,
0.013503648340702057,
-0.021677380427718163,
-0.006228669546544552,
-0.044177498668432236,
0.10652679204940796,
-0.018654709681868553,
-0.031013676896691322,
0.013163821771740913,
0.011133803054690361,
-0.011106974445283413,
-0.011893942020833492,
0.04757576808333397,
0.004632377531379461,
-0.04038574546575546,
-0.00669816741719842,
0.015676751732826233,
-0.038883354514837265,
0.08069995045661926,
-0.004744162317365408,
-0.05487310141324997,
0.00994440820068121,
-0.03510948643088341,
-0.02291148714721203,
0.01229636836796999,
-0.061204615980386734,
-0.013432106003165245,
0.053513795137405396,
-0.07197175920009613,
-0.05007975548505783,
0.03346400707960129,
0.03349977731704712,
-0.08971430361270905,
-0.06878811866044998,
0.0018332767067477107,
0.011965484358370304,
0.017384828999638557,
-0.049364328384399414,
0.04485715180635452,
-0.04886353388428688,
-0.02266108989715576,
0.10366509109735489,
0.008048532530665398,
0.02196354977786541,
-0.017518971115350723,
-0.0427466481924057,
-0.006103469990193844,
0.009541981853544712,
-0.012028084136545658,
-0.061598099768161774,
-0.06184849888086319,
-0.0466814860701561,
0.018055539578199387,
-0.014129645191133022,
0.006693695671856403,
0.06492482870817184,
0.059559136629104614,
-0.05161792039871216,
0.0257731880992651,
0.020568471401929855,
-0.013673561625182629,
-0.024145595729351044,
-0.006859137676656246,
0.02436022460460663,
-0.014997097663581371,
-0.06088267266750336,
0.0037224460393190384,
0.07519117742776871,
-0.0257731880992651,
-0.04811233654618263,
0.009935465641319752,
-0.01811813935637474,
0.022804174572229385,
0.001637652749195695,
0.014567842707037926,
0.009108255617320538,
-0.020407499745488167,
0.05075940862298012,
-0.017277516424655914,
0.015989750623703003,
0.05726977810263634,
-0.014272729866206646,
-0.015006041154265404,
0.019978245720267296,
-0.07061245292425156,
0.004829119425266981,
-0.0019059370970353484,
0.017858797684311867,
0.03688016161322594,
-0.008638758212327957,
0.008915985003113747,
0.07418958097696304,
0.059630680829286575,
-0.023930968716740608,
0.019012421369552612,
0.0022021678742021322,
0.022535890340805054,
0.03094213455915451,
-0.01415647380053997,
-0.05365687981247902,
0.04839850589632988,
0.026524385437369347,
0.024682164192199707,
0.04585874825716019,
-0.06835886836051941,
0.07612122595310211,
0.028545459732413292,
-0.009631410241127014,
-0.04117271304130554,
0.0006701520760543644,
-0.03485908731818199,
-0.07211484760046005,
-0.054730016738176346,
-0.022303376346826553,
-0.07619277387857437,
0.01784091256558895,
0.06478174030780792,
-0.06592641770839691,
-0.06342243403196335,
0.014442644082009792,
0.019352247938513756,
0.04110116884112358,
0.06106153130531311,
0.036772847175598145,
-0.06689224392175674,
-0.028151975944638252,
0.06896697729825974,
-0.057162463665008545,
-0.04346207156777382,
-0.02784792147576809,
0.03201527148485184,
0.021122924983501434,
-0.03323149308562279,
-0.0710059404373169,
0.034930627793073654,
-0.03144293278455734,
-0.004010851960629225,
0.05830714479088783,
0.03999226167798042,
-0.025361819192767143,
0.03727364540100098,
-0.0002942744467873126,
-0.014335329644382,
0.025952044874429703,
-0.009631410241127014,
-0.03110310435295105,
-0.014102816581726074,
0.008433072827756405,
0.0520114041864872,
-0.020836755633354187,
0.0393841490149498,
0.06807269901037216,
0.02732923813164234,
0.05251219868659973,
0.05791366100311279,
0.02216029167175293,
-0.019388020038604736,
0.014558900147676468,
0.025522788986563683,
0.01910184882581234,
-0.020246529951691628,
-0.04242470860481262,
-0.0476115383207798,
-0.031872186809778214,
0.017223859205842018,
0.0015348104061558843,
0.0003118806052953005,
0.02314400114119053,
-0.01231425441801548,
-0.038847580552101135,
-0.07125633955001831,
-0.014576786197721958,
0.00870582927018404,
-0.021087154746055603,
-0.03738095983862877,
-0.003114334773272276,
-0.048148106783628464,
-0.029940539970993996,
-0.029350314289331436,
0.043318986892700195,
0.00974766630679369,
0.004460228141397238,
-0.033159952610731125,
-0.038883354514837265,
0.005575844086706638,
-0.029207227751612663,
0.010266349650919437,
0.12806108593940735,
0.03391114994883537,
-0.017268572002649307,
0.0001342120667686686,
-0.025397589430212975,
-0.013262192718684673,
-0.006085584405809641,
0.02537970431149006,
-0.007829433307051659,
0.05204717442393303,
-0.03242664039134979,
0.01564992405474186,
0.021069267764687538,
-0.025540675967931747,
0.011473629623651505,
-0.03791752830147743,
-0.037702903151512146,
0.03698747605085373,
-0.047396909445524216,
0.013467877171933651,
-0.044499438256025314,
0.06657030433416367,
0.0030003138817846775,
-0.04145888239145279,
-0.002032254356890917,
0.0398491770029068,
-0.017205972224473953,
-0.03383960574865341,
0.024968335404992104,
0.022285491228103638,
-0.0018712837481871247,
0.029189342632889748,
0.003626310732215643,
-0.0022524711675941944,
-0.020103445276618004,
-0.024449652060866356,
-0.00190258352085948,
-0.04263933375477791,
-0.020854640752077103,
0.05526658520102501,
0.03999226167798042,
-0.005240488797426224,
-0.012680909596383572,
0.02121235430240631,
-0.03478754311800003,
0.03628993779420853,
0.016097065061330795,
0.02042538672685623,
-0.03262338414788246,
-0.010024894028902054,
-0.02580896019935608,
0.024091938510537148,
-0.009980179369449615,
0.04314013198018074,
0.0030181994661688805,
-0.030065739527344704,
0.02741866558790207,
-0.05855754390358925,
-0.00503033259883523,
0.020657898858189583,
-0.006908323150128126,
0.02788369171321392,
-0.04507178068161011,
0.05297722667455673,
-0.0407792292535305,
-0.01658891886472702,
0.011786628514528275,
-0.05619664117693901,
0.03215835615992546,
0.010534633882343769,
0.029153572395443916,
0.03169333189725876,
-0.0607038177549839,
0.019030306488275528,
-0.03705902025103569,
-0.019638419151306152,
0.014710928313434124,
0.01815391145646572,
0.0568762943148613,
-0.06088267266750336,
0.004332792945206165,
-0.06496059894561768,
-0.018332768231630325,
-0.03362497687339783,
0.015417410060763359,
-0.03974186256527901,
-0.015184896998107433,
-0.03113887645304203,
-0.018726252019405365,
0.03748827427625656,
0.09422148019075394,
0.01231425441801548,
0.030960019677877426,
0.05179677531123161,
-0.04356938600540161,
0.02584473043680191,
0.04231739416718483,
0.037559814751148224,
0.03385749086737633,
-0.06091844663023949,
-0.025522788986563683,
0.018815679475665092,
-0.02706095390021801,
-0.03267703950405121,
0.02466427907347679,
-0.025147192180156708,
0.0024436237290501595,
0.009640352800488472,
-0.05988107994198799,
0.011294773779809475,
0.0033714405726641417,
0.10459514707326889,
-0.026578040793538094,
-0.04804079234600067,
-0.10259195417165756,
-0.008835500106215477,
0.0398491770029068,
0.010543577373027802,
-0.04403441399335861,
0.00171813799533993,
0.07122056931257248,
-0.019191278144717216,
-0.04392709955573082,
0.007055879570543766,
-0.08263159543275833,
-0.07662202417850494,
-0.03385749086737633,
0.042066995054483414,
0.06517522782087326,
0.012922365218400955,
0.08048532158136368,
-0.006930680479854345,
-0.00433502858504653,
0.03952723369002342,
-0.007114008069038391,
0.014952383935451508,
0.02607724443078041,
0.0034765186719596386,
0.02038961462676525,
-0.007927804253995419,
-0.030369793996214867,
-0.036576107144355774,
-0.02117658220231533,
-0.013673561625182629,
-0.0034139191266149282,
-0.01709865964949131,
0.05115289241075516,
-0.008549329824745655,
-0.04299704730510712,
-0.011858170852065086,
0.029547056183218956,
-0.015623095445334911,
0.029815340414643288,
-0.00812007486820221,
0.00955092441290617,
-0.014675157144665718,
-0.0018936407286673784,
-0.026095129549503326,
-0.007467249408364296,
-0.008817614056169987,
-0.02765117958188057,
0.02427079528570175,
-0.024181367829442024,
-0.05376419425010681,
0.025755302980542183,
-0.028420260176062584,
0.0044021001085639,
-0.032569725066423416,
-0.024288680404424667,
-0.03015516698360443,
-0.05369265004992485,
-0.0013671326451003551,
-0.05848599970340729,
0.00900094211101532,
0.02639918588101864,
-0.01725068688392639,
-0.03659399226307869,
0.03509160131216049,
-0.01074926182627678,
0.00001138811421697028,
-0.0359143391251564,
0.06531830877065659,
-0.004297021776437759,
0.026953639462590218,
-0.0359143391251564,
-0.04231739416718483,
0.038454096764326096,
0.020139215514063835,
-0.048219650983810425,
-0.04224584996700287,
0.026989411562681198,
-0.009881808422505856,
0.004770990926772356,
-0.0582713708281517,
0.06363706290721893,
0.0064656538888812065,
0.022839944809675217,
0.025755302980542183,
-0.012949193827807903,
-0.003621839452534914,
0.013119107112288475,
0.030405566096305847,
0.0022837710566818714,
-0.045000236481428146,
0.052297573536634445,
0.0267032403498888,
0.0014453822514042258,
0.05526658520102501,
-0.014961326494812965,
-0.03239087015390396,
-0.014719870872795582,
-0.01933436281979084,
-0.03149658814072609,
-0.010069607757031918,
0.007860733196139336,
-0.0661410465836525,
0.03662976250052452,
-0.04238893464207649,
0.0442490391433239,
-0.010534633882343769,
0.07322375476360321,
0.006259969435632229,
-0.03094213455915451,
-0.04728959873318672,
0.04789770767092705,
0.029547056183218956,
-0.012350025586783886,
0.05855754390358925,
0.01937013305723667,
-0.025737417861819267,
0.01824333891272545,
-0.06306471675634384,
-0.07293758541345596,
0.005432758945971727,
0.002651544287800789,
-0.016803545877337456,
0.022965144366025925,
0.012752451933920383,
0.00016390500240959227,
0.02732923813164234,
-0.041315797716379166,
0.02521873451769352,
0.03442983329296112,
0.01867259480059147,
0.062492381781339645,
0.03856141120195389,
-0.034411944448947906,
0.0684661790728569,
0.022339148446917534,
-0.01584666594862938,
0.008638758212327957,
-0.06975394487380981,
0.03673707693815231,
0.010928117670118809,
-0.00596038531512022,
0.032372985035181046,
-0.07762362062931061,
-0.03403634950518608,
-0.028062548488378525,
0.06914583593606949,
0.023000916466116905,
-0.0003342376439832151,
-0.029994195327162743,
0.020657898858189583,
0.007306278683245182,
0.07554888725280762,
-0.03113887645304203,
0.05158214643597603,
0.00027820534887723625,
0.024217138066887856,
-0.018583165481686592,
-0.0038409384433180094,
0.02548701874911785,
0.022088749334216118,
0.03745250403881073,
-0.006854666396975517,
-0.009211097843945026,
-0.010248464532196522,
0.06481751054525375,
0.004084629938006401,
-0.017420601099729538,
-0.03097790665924549,
0.002452566521242261,
-0.030799049884080887,
0.06431671231985092,
-0.0625639259815216,
0.030226709321141243,
0.0030696208123117685,
-0.011983370408415794,
-0.013315849006175995,
0.037559814751148224,
-0.02482525072991848,
-0.0520114041864872,
0.008710300549864769,
-0.052691057324409485,
-0.023591142147779465,
0.028992600739002228,
0.02055058442056179,
-0.014818241819739342,
0.007248150184750557,
0.03097790665924549,
0.03219413012266159,
0.011697200126945972,
0.005016918294131756,
0.013378448784351349,
0.04993667080998421,
0.04113694280385971,
0.044105954468250275,
0.03636147826910019,
-0.0015828779432922602,
-0.060453418642282486,
-0.036808621138334274,
0.05905833840370178,
0.0013168292352929711,
-0.004654734395444393,
-0.03289166837930679,
0.03487697243690491,
0.02266108989715576,
0.06538984924554825,
0.004413278307765722,
0.0009250222356058657,
0.025987815111875534,
0.060059934854507446,
-0.04396286979317665,
0.044535212218761444,
0.012877651490271091,
-0.007458306383341551,
-0.04922124370932579,
0.06481751054525375,
-0.03366075083613396,
0.03525257110595703,
-0.03913374990224838,
-0.029439741745591164,
0.007261564489454031,
-0.00731522124260664,
0.014210130088031292,
-0.006859137676656246,
-0.02886740118265152,
0.008737129159271717,
-0.02176680788397789,
-0.015748294070363045,
-0.03140716254711151,
-0.009103784337639809,
-0.020926183089613914,
0.009461496956646442,
0.050652094185352325,
-0.017983997240662575,
0.0006600914057344198,
-0.017894569784402847,
-0.05369265004992485,
0.02321554347872734,
0.0347517728805542,
-0.009009884670376778,
-0.02137332409620285,
0.004350678529590368,
0.05126020684838295,
-0.049006618559360504,
0.030691735446453094,
-0.03369652107357979,
0.022464348003268242,
0.049829356372356415,
0.013816646300256252,
0.04632377251982689,
0.023519599810242653,
-0.01055251993238926,
-0.01632063463330269,
-0.005124232266098261,
0.015739351511001587,
0.024413879960775375,
-0.016374291852116585,
0.04628800228238106,
-0.03748827427625656,
-0.018994536250829697,
-0.03215835615992546,
-0.06320780515670776,
0.014022331684827805,
-0.012582538649439812,
-0.04067191481590271,
-0.0022535889875143766,
-0.05866485461592674,
0.03510948643088341,
0.04829119145870209,
0.03507371246814728,
-0.018815679475665092,
-0.005602672696113586,
0.07755208015441895,
-0.008321288041770458,
0.028491804376244545,
0.04203122481703758,
-0.016222262755036354,
0.013235364109277725,
0.015497895888984203,
0.03798907250165939,
-0.012555710040032864,
0.027597522363066673,
-0.015989750623703003,
0.01512229721993208,
-0.06199158355593681,
0.009738723747432232,
0.005669743753969669,
-0.013727218843996525,
0.03199738636612892,
-0.031907957047224045,
-0.015077583491802216,
0.002381024183705449,
-0.025862615555524826,
-0.03600376844406128,
-0.0313892737030983,
-0.04678880050778389,
-0.019674189388751984,
0.014478415250778198,
-0.018180739134550095,
0.009291582740843296,
0.011616714298725128,
-0.02133755199611187,
0.02137332409620285,
0.0029086500871926546,
-0.0006137005984783173,
-0.01933436281979084,
-0.024342337623238564,
-0.02176680788397789,
0.043676700443029404,
0.010901289992034435,
-0.018296996131539345,
0.05115289241075516,
0.02548701874911785,
0.05616086721420288,
0.01453207153826952,
-0.00000272039687843062,
0.00040270606405101717,
0.0077265906147658825,
0.02443176694214344,
-0.011035432107746601,
-0.02294725924730301,
-0.03448348864912987,
0.0015985278878360987,
0.012350025586783886,
-0.025898387655615807,
-0.00035827147075906396,
-0.001731552300043404,
-0.043748244643211365,
0.043712470680475235,
-0.024020396173000336,
0.01650843396782875,
0.034930627793073654,
-0.02462850883603096,
0.01698240265250206,
0.015131240710616112,
0.0480765663087368,
-0.005848600063472986,
0.001458796439692378,
0.013136993162333965,
0.03140716254711151,
0.015551552176475525,
0.0005519392434507608,
0.010793975554406643,
0.017045002430677414,
-0.018762022256851196,
0.042066995054483414,
0.011482572183012962,
0.02373422682285309,
0.04832696542143822,
-0.046144917607307434,
0.03877604007720947,
0.001111703459173441,
-0.0023161887656897306,
0.013056507334113121,
-0.008813142776489258,
-0.03827524185180664,
-0.012251654639840126,
0.03047710843384266,
-0.01693768799304962,
-0.0316217876970768,
-0.003628546604886651,
-0.05333494022488594,
-0.017626285552978516,
0.06420940160751343,
0.011035432107746601,
-0.024682164192199707,
0.1414395421743393,
-0.025916272774338722,
-0.06982548534870148,
0.002022193744778633,
0.0080798314884305,
-0.002410088200122118,
0.017581570893526077,
-0.0602387897670269,
-0.0120191415771842,
-0.026542270556092262,
-0.02466427907347679,
-0.038418326526880264,
-0.05694783478975296,
0.007100593764334917,
0.0187083650380373,
0.002984663937240839,
-0.021587951108813286,
0.01504181232303381,
0.031746987253427505
] |
722,018
|
apprise.common
|
ContentLocation
|
This is primarily used for handling file attachments. The idea is
to track the source of the attachment itself. We don't want
remote calls to a server to access local attachments for example.
By knowing the attachment type and cross-associating it with how
we plan on accessing the content, we can make a judgement call
(for security reasons) if we will allow it.
Obviously local uses of apprise can access both local and remote
type files.
|
class ContentLocation:
"""
This is primarily used for handling file attachments. The idea is
to track the source of the attachment itself. We don't want
remote calls to a server to access local attachments for example.
By knowing the attachment type and cross-associating it with how
we plan on accessing the content, we can make a judgement call
(for security reasons) if we will allow it.
Obviously local uses of apprise can access both local and remote
type files.
"""
# Content is located locally (on the same server as apprise)
LOCAL = 'local'
# Content is located in a remote location
HOSTED = 'hosted'
# Content is inaccessible
INACCESSIBLE = 'n/a'
|
()
|
[
0.0667002946138382,
-0.05392304062843323,
-0.06860166788101196,
0.038008518517017365,
0.06259331852197647,
-0.05365685001015663,
0.037970490753650665,
0.004083206411451101,
-0.0015817077364772558,
-0.006849709432572126,
-0.01024841982871294,
0.02156161144375801,
-0.011027984321117401,
0.005390402860939503,
-0.052363913506269455,
-0.0015187246026471257,
-0.03236142918467522,
-0.016903238371014595,
0.00317767565138638,
-0.01470714807510376,
0.014488490298390388,
-0.017692308872938156,
0.03226635977625847,
-0.02057289518415928,
0.0015579405007883906,
0.0943082794547081,
0.008166412822902203,
-0.04167817533016205,
0.026809411123394966,
-0.03947257995605469,
0.006916257552802563,
-0.05860042944550514,
0.02722771279513836,
-0.019812343642115593,
0.004839003551751375,
0.0037076843436807394,
0.02831149846315384,
0.05601455643773079,
-0.03441491723060608,
-0.005561526864767075,
-0.07019882649183273,
0.03730500862002373,
0.012007193639874458,
-0.01604761928319931,
0.018738066777586937,
0.08054231107234955,
-0.03920638561248779,
-0.007928740233182907,
0.036867693066596985,
-0.029091062024235725,
0.025212254375219345,
0.012929361313581467,
-0.016846196725964546,
-0.03506138548254967,
-0.033540282398462296,
0.04761046916246414,
0.010457571595907211,
0.11872195452451706,
-0.07403960824012756,
0.017197951674461365,
0.007928740233182907,
-0.013119499199092388,
0.0884520411491394,
-0.0608060248196125,
0.023558055981993675,
0.056242719292640686,
-0.015667343512177467,
-0.019793331623077393,
-0.01276774425059557,
0.061832766979932785,
-0.012568099424242973,
-0.0444541871547699,
-0.03675360977649689,
0.012111769057810307,
0.089060477912426,
-0.016513455659151077,
-0.022987643256783485,
0.07392552495002747,
0.027417851611971855,
0.02720869891345501,
0.03215228021144867,
-0.040119048207998276,
0.00609866576269269,
-0.03947257995605469,
0.03150581195950508,
-0.0248700063675642,
0.03228537365794182,
-0.025744639337062836,
0.09697020798921585,
0.030631177127361298,
-0.00749142374843359,
0.041868314146995544,
-0.02717067301273346,
-0.02707560360431671,
0.025288309901952744,
0.004299487918615341,
-0.030174847692251205,
-0.03840780630707741,
-0.04723019525408745,
0.015695864334702492,
-0.04928368330001831,
0.07316496968269348,
-0.006227008532732725,
-0.015648329630494118,
-0.02211301028728485,
-0.035669825971126556,
-0.011227629147469997,
-0.03759021684527397,
-0.031353700906038284,
0.024071428924798965,
-0.021865831688046455,
-0.0669664815068245,
-0.06396231055259705,
0.05882859230041504,
0.00821870006620884,
-0.0276840440928936,
-0.015857480466365814,
-0.011370232328772545,
-0.01580994762480259,
0.0018645374802872539,
0.04259083792567253,
0.021827803924679756,
-0.029167117550969124,
0.007268012035638094,
0.060159556567668915,
0.035764895379543304,
0.0014022652758285403,
-0.03255156800150871,
-0.026429135352373123,
-0.05472161993384361,
0.0005802169907838106,
-0.02825445681810379,
-0.046279508620500565,
0.011798041872680187,
-0.014421941712498665,
0.04548092931509018,
-0.0075342049822211266,
0.04008102044463158,
-0.01683668978512287,
0.08366057276725769,
-0.025402391329407692,
0.03397760167717934,
0.032475512474775314,
-0.01715041697025299,
-0.004667879547923803,
0.018814122304320335,
0.006802174728363752,
-0.030612163245677948,
-0.05202166363596916,
-0.01415574923157692,
0.017064854502677917,
-0.04004299268126488,
-0.01923242397606373,
0.018728559836745262,
0.007638780400156975,
-0.02608688734471798,
-0.039738770574331284,
-0.0003202631196472794,
-0.007120655383914709,
0.011817055754363537,
0.0047510648146271706,
-0.026961520314216614,
0.002061805222183466,
0.006621544249355793,
-0.019089821726083755,
-0.012168810702860355,
0.009273964911699295,
-0.032969869673252106,
-0.0021093396935611963,
0.004558550659567118,
-0.031391728669404984,
0.01919439621269703,
-0.03888315334916115,
-0.0006464680773206055,
0.05396106839179993,
0.04274294525384903,
0.0037480886094272137,
-0.0009364279685541987,
0.052934326231479645,
-0.0006815246888436377,
0.003788492875173688,
0.022360188886523247,
-0.043541524559259415,
0.07833671569824219,
0.021846817806363106,
0.034110695123672485,
0.0013000662438571453,
-0.02055388130247593,
0.08951681107282639,
0.04164014756679535,
-0.02549746073782444,
0.01158889103680849,
-0.021751748397946358,
-0.027531933039426804,
-0.03643037751317024,
-0.019622206687927246,
0.005052908323705196,
-0.05050056427717209,
-0.05263010412454605,
0.06342992186546326,
-0.044111937284469604,
-0.03500434383749962,
0.006150953471660614,
0.049625929445028305,
0.013803994283080101,
0.08259580284357071,
0.04087959602475166,
-0.031353700906038284,
-0.10921507328748703,
0.06894391775131226,
-0.01411772146821022,
-0.013148019090294838,
-0.03722895309329033,
-0.041792258620262146,
0.0331980362534523,
-0.057383548468351364,
-0.08198735862970352,
0.06278345733880997,
-0.0048675243742764,
0.05088083818554878,
0.027417851611971855,
-0.009269211441278458,
-0.018262723460793495,
-0.0249840896576643,
0.009849131107330322,
-0.002275710226967931,
0.03325507789850235,
-0.04331335797905922,
-0.026467163115739822,
-0.02825445681810379,
-0.0012180694611743093,
-0.034110695123672485,
-0.0016910368576645851,
0.035726867616176605,
0.04772455245256424,
0.0024979335721582174,
0.008613236248493195,
0.040765516459941864,
0.014992354437708855,
-0.006274542771279812,
0.0023006657138466835,
0.01588600128889084,
0.01024841982871294,
0.016522962599992752,
-0.0333121195435524,
-0.10693342238664627,
-0.023995373398065567,
0.0034486218355596066,
-0.003990514203906059,
-0.07632125914096832,
0.033426202833652496,
0.022854547947645187,
-0.05654694139957428,
-0.030117806047201157,
0.0552920326590538,
-0.00095068832160905,
-0.04118381813168526,
-0.012273386120796204,
0.017492664977908134,
-0.04643161594867706,
-0.01832927018404007,
-0.04251478239893913,
0.06559749692678452,
-0.0075342049822211266,
-0.07046502083539963,
-0.015591287985444069,
-0.026219984516501427,
-0.005466457922011614,
-0.022873561829328537,
0.018947217613458633,
0.16792958974838257,
0.0832802951335907,
-0.009012524969875813,
-0.02553548850119114,
-0.014716655015945435,
0.005171744618564844,
-0.0067023527808487415,
0.014583558775484562,
-0.017274007201194763,
-0.009906171821057796,
-0.011760014109313488,
0.03532757610082626,
0.02443268895149231,
-0.010381516069173813,
0.046887949109077454,
-0.09080974757671356,
-0.07483818382024765,
0.017749350517988205,
-0.04673583805561066,
-0.0037671024911105633,
0.0018502771854400635,
0.04392179846763611,
0.008066589944064617,
-0.062327127903699875,
0.002010705880820751,
0.025193240493535995,
-0.04160211980342865,
-0.0031752989161759615,
0.053466711193323135,
-0.0036387594882398844,
-0.026847438886761665,
0.034605056047439575,
0.034129709005355835,
0.016713101416826248,
-0.030345970764756203,
0.0015828961040824652,
-0.0004355340788606554,
-0.05217377468943596,
-0.0015971563989296556,
0.033540282398462296,
0.038559917360544205,
-0.013100485317409039,
-0.0194700974971056,
0.004076076205819845,
0.00031937184394337237,
0.060691941529512405,
-0.004280474036931992,
0.019422562792897224,
-0.017140910029411316,
0.04000496491789818,
0.02996569499373436,
0.0554061159491539,
-0.03279874846339226,
0.00500537408515811,
0.05339065566658974,
-0.007272765506058931,
0.029224159196019173,
0.006241268943995237,
-0.01165543869137764,
0.04608936980366707,
-0.02669532783329487,
0.03002273663878441,
-0.015610301867127419,
0.007139669265598059,
-0.011113546788692474,
0.016713101416826248,
-0.032988883554935455,
-0.05213574692606926,
0.04030918329954147,
-0.03200016915798187,
0.03173397481441498,
-0.0358789786696434,
-0.05323854461312294,
0.023120740428566933,
0.03838879242539406,
0.004411194007843733,
0.01950812339782715,
0.0060463775880634785,
0.04099367931485176,
-0.07076923549175262,
-0.047876663506031036,
-0.016922252252697945,
-0.05224983021616936,
-0.07331708073616028,
0.00805233046412468,
-0.008979251608252525,
-0.002459906041622162,
-0.0719480887055397,
0.016817675903439522,
0.0776522234082222,
0.07594098150730133,
-0.04061340540647507,
-0.022550327703356743,
-0.040119048207998276,
-0.06137643754482269,
-0.005195511505007744,
0.05110900476574898,
0.016190221533179283,
0.04783863574266434,
-0.024527758359909058,
-0.01054313313215971,
-0.007700575515627861,
-0.035156454890966415,
-0.012758237309753895,
0.028653746470808983,
-0.034738149493932724,
0.020135577768087387,
-0.019308479502797127,
-0.08099864423274994,
0.03928244113922119,
-0.002344635082408786,
0.06825941801071167,
0.009554417803883553,
0.018177160993218422,
-0.02156161144375801,
-0.041868314146995544,
0.006203241180628538,
0.03255156800150871,
-0.05377092957496643,
0.048523131757974625,
0.05936097726225853,
-0.05088083818554878,
-0.011598397046327591,
0.00017691715038381517,
-0.02045881189405918,
-0.07084529101848602,
-0.02990865521132946,
0.034738149493932724,
0.01906130090355873,
0.005637581925839186,
0.05764973908662796,
-0.006117679178714752,
-0.09255901724100113,
-0.0009566301014274359,
0.013471253216266632,
0.008066589944064617,
0.009131361730396748,
-0.008394577540457249,
-0.014992354437708855,
-0.011113546788692474,
0.0179965291172266,
-0.03658248484134674,
0.017891954630613327,
-0.011303683742880821,
0.0027023316361010075,
-0.007187203504145145,
0.0031230112072080374,
-0.025801680982112885,
0.012168810702860355,
0.01077129878103733,
-0.007106394972652197,
0.0027142150793224573,
0.03445294499397278,
-0.0003698771761264652,
-0.03171496093273163,
-0.028368540108203888,
-0.008175919763743877,
-0.07286075502634048,
-0.023386932909488678,
0.02990865521132946,
-0.012672674842178822,
0.05042450875043869,
-0.05612863972783089,
-0.03002273663878441,
0.052858270704746246,
0.005062415264546871,
0.005390402860939503,
-0.03483321890234947,
-0.057839877903461456,
-0.015401151031255722,
-0.039054274559020996,
-0.030136819928884506,
-0.010733271017670631,
0.04380771890282631,
0.010276940651237965,
-0.0554821714758873,
-0.088756263256073,
-0.003916835878044367,
0.0250411294400692,
0.025972804054617882,
-0.030954411253333092,
0.00037463061744347215,
0.020116563886404037,
0.01891869679093361,
-0.06593973934650421,
0.005319101270288229,
-0.004199665505439043,
0.011798041872680187,
-0.025687597692012787,
-0.021998926997184753,
0.005609061103314161,
-0.0012846175814047456,
-0.001756396610289812,
-0.12047122418880463,
0.01832927018404007,
0.0003918618313036859,
-0.02542140521109104,
0.0024088064674288034,
-0.016133179888129234,
0.010429050773382187,
0.024755923077464104,
-0.010657216422259808,
-0.011969165876507759,
-0.011693466454744339,
0.04730625078082085,
0.025174226611852646,
0.009692267514765263,
0.05647088587284088,
-0.04783863574266434,
-0.038559917360544205,
-0.03156285360455513,
-0.07141570746898651,
-0.031239617615938187,
0.02047782577574253,
0.01608564704656601,
-0.05053859204053879,
0.00821870006620884,
-0.024736909195780754,
-0.0021818296518176794,
-0.00031283588032238185,
0.04259083792567253,
0.06879180669784546,
-0.034129709005355835,
-0.006588269956409931,
0.03002273663878441,
0.07069317996501923,
-0.011474807746708393,
0.0938519537448883,
-0.011598397046327591,
-0.03057413548231125,
0.027836153283715248,
-0.08540983498096466,
-0.022569339722394943,
-0.01158889103680849,
0.005998843349516392,
-0.020648950710892677,
0.011750507168471813,
-0.028729800134897232,
0.03255156800150871,
0.017397595569491386,
-0.011845576576888561,
0.033597324043512344,
0.0554061159491539,
-0.024584800004959106,
-0.011712480336427689,
0.022436244413256645,
-0.0444161593914032,
0.024033401161432266,
0.024850992485880852,
-0.0152110131457448,
-0.010647709481418133,
-0.047876663506031036,
0.033635351806879044,
-0.018452860414981842,
-0.015724385157227516,
-0.02059190906584263,
-0.004684516694396734,
0.01327160932123661,
-0.057345520704984665,
0.05373290181159973,
0.013813501223921776,
0.008232960477471352,
0.0007789702503941953,
0.014345887117087841,
0.07403960824012756,
0.1387244462966919,
-0.046773865818977356,
-0.040195103734731674,
-0.0554821714758873,
0.03500434383749962,
-0.012929361313581467,
0.013889556750655174,
-0.03559377044439316,
-0.05605258420109749,
0.02114330790936947,
-0.04262886568903923,
-0.008518167771399021,
-0.054113179445266724,
0.05822015181183815,
-0.03272269293665886,
0.04662175476551056,
-0.03648741915822029,
0.01024841982871294,
-0.027912208810448647,
0.04373166337609291,
0.006169967353343964,
0.018595462664961815,
-0.039586663246154785,
0.00651221489533782,
-0.025611544027924538,
0.015239533968269825,
-0.0053999098017811775,
-0.04255281016230583,
0.07544662803411484,
-0.05164138972759247,
-0.0014272208791226149,
0.031943127512931824,
-0.008656017482280731,
-0.04665978252887726,
-0.017055347561836243,
0.008713058196008205,
0.048561159521341324,
0.02555450238287449,
0.0021426137536764145,
0.037400078028440475,
0.006559749599546194,
0.019013766199350357,
0.04251478239893913,
0.05091886594891548,
0.014925806783139706,
0.020420784130692482,
-0.041259873658418655,
0.007001819554716349,
-0.03433886170387268,
-0.027284754440188408,
-0.003355929860845208,
0.026809411123394966,
0.027493905276060104,
-0.021428514271974564,
-0.01618071459233761,
0.01638036035001278,
-0.0041830288246273994,
0.013870542868971825,
-0.008256727829575539,
0.02047782577574253,
-0.009121854789555073,
0.046849921345710754,
-0.057839877903461456,
0.030916383489966393,
-0.004606084898114204,
0.014184270054101944,
-0.03766627237200737,
-0.06396231055259705,
0.011626917868852615,
-0.013461746275424957,
-0.03873104229569435,
-0.06255529075860977,
-0.007985781878232956,
-0.022892573848366737,
-0.011465300805866718,
0.007686315104365349,
-0.012092755176126957,
-0.012929361313581467,
0.03713388741016388,
0.012720209546387196,
0.045062627643346786,
-0.020211633294820786,
0.051223088055849075,
-0.009226430207490921,
-0.0005629857187159359,
-0.03873104229569435,
-0.011902617290616035,
0.00567085575312376,
0.010657216422259808,
-0.003306018654257059,
0.030631177127361298,
-0.013689911924302578,
0.04110776260495186,
-0.012111769057810307,
0.040765516459941864,
0.04890340566635132,
0.015562768094241619,
0.06308767944574356,
0.034129709005355835,
0.01667507365345955,
-0.023158768191933632,
-0.01884264312684536,
-0.030612163245677948,
0.01683668978512287,
0.02663828618824482,
0.00022563993115909398,
-0.0012115334393456578,
-0.039586663246154785,
-0.004786715842783451,
-0.06354400515556335,
0.013965611346065998,
0.02445170283317566,
-0.04373166337609291,
-0.02158062532544136,
-0.028387553989887238,
0.0005240669124759734,
0.06400033831596375,
0.04145001247525215,
-0.004786715842783451,
-0.01693175919353962,
0.07841277122497559,
0.01139875315129757,
0.0005632828106172383,
0.022341175004839897,
-0.030745260417461395,
-0.03544165939092636,
-0.014574051834642887,
0.04483446106314659,
-0.03827471286058426,
0.04164014756679535,
-0.008541934192180634,
0.025953790172934532,
-0.029604434967041016,
0.03272269293665886,
0.0553300604224205,
0.024185510352253914,
0.03528955206274986,
0.028615718707442284,
0.0002727287064772099,
0.015020875260233879,
-0.03285578638315201,
0.0222651194781065,
-0.024128468707203865,
0.010904395021498203,
-0.010999463498592377,
0.03314099460840225,
0.0023695905692875385,
0.0011473619379103184,
0.018947217613458633,
0.040841568261384964,
0.05103294923901558,
0.04004299268126488,
0.0042115491814911366,
-0.012368454597890377,
-0.006383872125297785,
-0.02275947853922844,
-0.02334890514612198,
0.022816520184278488,
0.014032159931957722,
0.007657794281840324,
0.009887158870697021,
0.03106849454343319,
0.005342868156731129,
0.01132269762456417,
-0.0050148810259997845,
0.03810358792543411,
0.04259083792567253,
-0.005975075997412205,
0.0030778534710407257,
-0.02431860752403736,
-0.05339065566658974,
-0.01571487821638584,
0.034719135612249374,
0.0013202683767303824,
0.019850371405482292,
0.0330839529633522,
0.008955484256148338,
0.015562768094241619,
-0.05053859204053879,
0.05814409628510475,
0.0023303746711462736,
0.011969165876507759,
0.027436865493655205,
0.026238998398184776,
0.004641735926270485,
0.002975654322654009,
-0.008000042289495468,
0.033540282398462296,
-0.02380523458123207,
0.02933824062347412,
-0.018890175968408585,
0.0014129604678601027,
-0.031886085867881775,
0.012292400002479553,
0.027474893257021904,
-0.007153929676860571,
0.02829248458147049,
-0.030840329825878143,
0.06848758459091187,
-0.009530650451779366,
-0.017312034964561462,
-0.019108835607767105,
-0.017397595569491386,
-0.030174847692251205,
0.05662299692630768,
0.03500434383749962,
0.03445294499397278,
-0.034167736768722534,
-0.029547393321990967,
-0.0497400127351284,
-0.0386740006506443,
0.018595462664961815,
0.0138420220464468,
-0.032931841909885406,
0.0999363586306572,
0.03272269293665886,
-0.014307859353721142,
0.002828297670930624,
-0.001944157644174993,
0.005609061103314161,
-0.03810358792543411,
-0.004938825964927673,
-0.022873561829328537,
0.006336337421089411,
-0.0028829623479396105,
-0.04593725875020027,
-0.0720621719956398,
-0.02724672667682171,
0.039662715047597885,
-0.019489111378788948,
0.018148640170693398,
-0.06476088613271713,
0.04004299268126488
] |
722,019
|
apprise.logger
|
LogCapture
|
A class used to allow one to instantiate loggers that write to
memory for temporary purposes. e.g.:
1. with LogCapture() as captured:
2.
3. # Send our notification(s)
4. aobj.notify("hello world")
5.
6. # retrieve our logs produced by the above call via our
7. # `captured` StringIO object we have access to within the `with`
8. # block here:
9. print(captured.getvalue())
|
class LogCapture:
"""
A class used to allow one to instantiate loggers that write to
memory for temporary purposes. e.g.:
1. with LogCapture() as captured:
2.
3. # Send our notification(s)
4. aobj.notify("hello world")
5.
6. # retrieve our logs produced by the above call via our
7. # `captured` StringIO object we have access to within the `with`
8. # block here:
9. print(captured.getvalue())
"""
def __init__(self, path=None, level=None, name=LOGGER_NAME, delete=True,
fmt='%(asctime)s - %(levelname)s - %(message)s'):
"""
Instantiate a temporary log capture object
If a path is specified, then log content is sent to that file instead
of a StringIO object.
You can optionally specify a logging level such as logging.INFO if you
wish, otherwise by default the script uses whatever logging has been
set globally. If you set delete to `False` then when using log files,
they are not automatically cleaned up afterwards.
Optionally over-ride the fmt as well if you wish.
"""
# Our memory buffer placeholder
self.__buffer_ptr = StringIO()
# Store our file path as it will determine whether or not we write to
# memory and a file
self.__path = path
self.__delete = delete
# Our logging level tracking
self.__level = level
self.__restore_level = None
# Acquire a pointer to our logger
self.__logger = logging.getLogger(name)
# Prepare our handler
self.__handler = logging.StreamHandler(self.__buffer_ptr) \
if not self.__path else logging.FileHandler(
self.__path, mode='a', encoding='utf-8')
# Use the specified level, otherwise take on the already
# effective level of our logger
self.__handler.setLevel(
self.__level if self.__level is not None
else self.__logger.getEffectiveLevel())
# Prepare our formatter
self.__handler.setFormatter(logging.Formatter(fmt))
def __enter__(self):
"""
Allows logger manipulation within a 'with' block
"""
if self.__level is not None:
# Temporary adjust our log level if required
self.__restore_level = self.__logger.getEffectiveLevel()
if self.__restore_level > self.__level:
# Bump our log level up for the duration of our `with`
self.__logger.setLevel(self.__level)
else:
# No restoration required
self.__restore_level = None
else:
# Do nothing but enforce that we have nothing to restore to
self.__restore_level = None
if self.__path:
# If a path has been identified, ensure we can write to the path
# and that the file exists
with open(self.__path, 'a'):
os.utime(self.__path, None)
# Update our buffer pointer
self.__buffer_ptr = open(self.__path, 'r')
# Add our handler
self.__logger.addHandler(self.__handler)
# return our memory pointer
return self.__buffer_ptr
def __exit__(self, exc_type, exc_value, tb):
"""
removes the handler gracefully when the with block has completed
"""
# Flush our content
self.__handler.flush()
self.__buffer_ptr.flush()
# Drop our handler
self.__logger.removeHandler(self.__handler)
if self.__restore_level is not None:
# Restore level
self.__logger.setLevel(self.__restore_level)
if self.__path:
# Close our file pointer
self.__buffer_ptr.close()
self.__handler.close()
if self.__delete:
try:
# Always remove file afterwards
os.unlink(self.__path)
except OSError:
# It's okay if the file does not exist
pass
if exc_type is not None:
# pass exception on if one was generated
return False
return True
|
(path=None, level=None, name='apprise', delete=True, fmt='%(asctime)s - %(levelname)s - %(message)s')
|
[
0.022850919514894485,
-0.03378496319055557,
-0.04410473257303238,
0.043613314628601074,
0.05397403612732887,
-0.00790875218808651,
-0.027294153347611427,
0.07027272135019302,
0.00027690231218002737,
-0.06335192173719406,
0.021049054339528084,
-0.004737573210150003,
0.024304697290062904,
0.00002501478957128711,
-0.03319116681814194,
0.051271237432956696,
-0.022134268656373024,
-0.05495687201619148,
-0.014865383505821228,
0.02909601852297783,
0.009429075755178928,
0.016349874436855316,
-0.004169371444731951,
0.02614751271903515,
-0.03149167820811272,
0.03644680604338646,
-0.04664372280240059,
0.008906944654881954,
0.05143504589796066,
-0.0008670194074511528,
0.003445042297244072,
-0.07154221832752228,
0.007376383524388075,
0.002974100410938263,
-0.010304413735866547,
-0.04492375999689102,
-0.0251032505184412,
0.006608543451875448,
-0.011763309128582478,
-0.004489304963499308,
0.008528143167495728,
0.02154047228395939,
0.002379024401307106,
-0.021601900458335876,
-0.01693343184888363,
0.06941273808479309,
-0.012602814473211765,
0.06503093242645264,
0.02062930166721344,
-0.017946980893611908,
0.044964712113142014,
0.07522784918546677,
-0.029464581981301308,
0.006567591801285744,
0.029833145439624786,
0.01639082469046116,
0.07543260604143143,
-0.0019631111063063145,
-0.016134878620505333,
-0.06539949774742126,
-0.02571752294898033,
0.03742964193224907,
0.04189335182309151,
-0.015192994847893715,
-0.037818681448698044,
-0.004543053451925516,
-0.035893961787223816,
0.014742529019713402,
0.02032216638326645,
0.00787291955202818,
-0.005620589014142752,
-0.07272981107234955,
0.02323995903134346,
-0.009101464413106441,
-0.0297717172652483,
0.014507058076560497,
-0.05209026858210564,
0.020485972985625267,
0.02676178514957428,
-0.015776554122567177,
-0.005748562514781952,
-0.004320379812270403,
0.003017611335963011,
0.020301690325140953,
0.06503093242645264,
-0.04627516120672226,
0.0075964974239468575,
0.012346867471933365,
0.04426853731274605,
0.039518166333436966,
-0.044227585196495056,
0.05012459680438042,
-0.01033000834286213,
-0.013800645247101784,
0.040132440626621246,
-0.06122244521975517,
-0.04693038389086723,
0.028072232380509377,
-0.0016047856770455837,
0.038228195160627365,
-0.055202580988407135,
0.02219569683074951,
-0.010012634098529816,
0.00022107394761405885,
-0.021090006455779076,
-0.015182756818830967,
0.0026464886032044888,
-0.004164252430200577,
0.05364642292261124,
-0.023383289575576782,
-0.03620109707117081,
-0.060075804591178894,
-0.045988500118255615,
0.00222289701923728,
-0.016278209164738655,
-0.018336020410060883,
-0.036672040820121765,
-0.011036421172320843,
-0.03783915564417839,
-0.056349221616983414,
0.04299904406070709,
-0.03499303013086319,
-0.0372658371925354,
0.04123812913894653,
0.03380543738603592,
0.007033414673060179,
0.002010461175814271,
-0.004494423512369394,
0.057536814361810684,
0.002620893996208906,
-0.015008713118731976,
0.030160756781697273,
0.014466105960309505,
0.014732290990650654,
0.024611832574009895,
0.014486582018435001,
-0.04291713982820511,
0.04271238297224045,
-0.02541038580238819,
0.025615144520998,
-0.024939443916082382,
-0.05454735830426216,
-0.05962533876299858,
0.0019810274243354797,
0.02448897808790207,
0.014455868862569332,
0.03800296410918236,
0.016421539708971977,
-0.03386686369776726,
-0.036508236080408096,
0.015704888850450516,
-0.030201708897948265,
-0.031184542924165726,
0.08820946514606476,
0.019861461594700813,
-0.021601900458335876,
-0.04312189668416977,
0.037859633564949036,
0.004077230580151081,
-0.024202318862080574,
0.0016815697308629751,
-0.01728151924908161,
-0.0027565457858145237,
-0.010155964642763138,
0.0067262789234519005,
0.023055676370859146,
0.013534460216760635,
-0.018469111993908882,
-0.01724056899547577,
-0.011527838185429573,
-0.050083648413419724,
0.04983793944120407,
0.005743443500250578,
0.07358978688716888,
-0.04693038389086723,
0.070886991918087,
-0.0049039386212825775,
-0.00198614620603621,
-0.04332665354013443,
-0.02276901714503765,
0.018336020410060883,
-0.04946937412023544,
-0.027007494121789932,
0.020475734025239944,
0.016964146867394447,
-0.02473468706011772,
0.014865383505821228,
-0.023936133831739426,
0.027662716805934906,
0.037716303020715714,
-0.03239261358976364,
-0.026884639635682106,
0.05512067675590515,
-0.04897795617580414,
0.05319595709443092,
0.04125860333442688,
-0.06036246567964554,
-0.04076718911528587,
0.03327306732535362,
0.01283828541636467,
-0.038023438304662704,
0.034665416926145554,
0.0037982487119734287,
-0.07178792357444763,
0.006639257073402405,
0.0019784679170697927,
0.053236909210681915,
0.04631610959768295,
-0.13210943341255188,
0.06855276226997375,
-0.0019093622686341405,
0.009434194304049015,
-0.0022920025512576103,
0.045046616345644,
0.04007101058959961,
-0.029259825125336647,
-0.0007742387242615223,
0.0698632076382637,
-0.02831794135272503,
0.03308878839015961,
0.03204452618956566,
-0.012561863288283348,
-0.11720310151576996,
0.03601681813597679,
-0.04353141039609909,
0.01568441279232502,
0.05037030577659607,
0.006654613651335239,
0.03507493436336517,
-0.0026899995282292366,
0.03851485624909401,
0.030672650784254074,
0.006152958143502474,
-0.0004050356219522655,
-0.010985231958329678,
-0.030099330469965935,
-0.018182452768087387,
0.024263745173811913,
0.013943974860012531,
0.015254422090947628,
-0.01373921800404787,
0.0013437201268970966,
0.0662594735622406,
0.034235429018735886,
0.032433561980724335,
-0.04725799337029457,
-0.016605820506811142,
0.047544654458761215,
0.033723533153533936,
-0.004489304963499308,
0.0058458223938941956,
0.047954171895980835,
-0.037962011992931366,
-0.04373616725206375,
0.007079485338181257,
-0.025840377435088158,
0.01724056899547577,
-0.010616668500006199,
-0.00039415789069607854,
-0.034030672162771225,
0.030406465753912926,
-0.004973044153302908,
0.05802823230624199,
-0.020793108269572258,
0.019451947882771492,
-0.022277599200606346,
0.025881327688694,
-0.12670384347438812,
0.049715083092451096,
0.05094362795352936,
0.026925591751933098,
0.047749411314725876,
0.004647991620004177,
0.005139409564435482,
-0.07846301794052124,
-0.03317068889737129,
0.0007985536358319223,
-0.006280931644141674,
-0.0205678753554821,
0.04799512028694153,
-0.010022872127592564,
0.05082077160477638,
0.06855276226997375,
0.012787096202373505,
0.02852269820868969,
0.0034578396007418633,
-0.0406443327665329,
-0.012152348645031452,
0.06175481528043747,
-0.015377276577055454,
-0.02971029095351696,
0.015766315162181854,
-0.030508844181895256,
0.022298075258731842,
0.028850309550762177,
0.015520607121288776,
-0.14201968908309937,
-0.02835889160633087,
0.023383289575576782,
-0.012254727073013783,
-0.02805175632238388,
-0.013821120373904705,
0.01958503946661949,
0.05786442384123802,
-0.0125516252592206,
-0.01505990233272314,
-0.0036293240264058113,
-0.03290450572967529,
0.008625403046607971,
-0.005436307284981012,
0.012387819588184357,
0.021417617797851562,
0.03251546621322632,
-0.03685632348060608,
0.04799512028694153,
0.0067928247153759,
0.03458351641893387,
0.010800950229167938,
0.008922301232814789,
0.06347477436065674,
-0.013534460216760635,
0.026208940893411636,
-0.002910113660618663,
0.009516097605228424,
0.02665940672159195,
-0.03659013658761978,
-0.0007115317857824266,
0.055980656296014786,
-0.021704278886318207,
0.016912955790758133,
-0.07191077619791031,
0.00030089731444604695,
-0.05602160841226578,
-0.006270693615078926,
0.00953657366335392,
0.008942777290940285,
-0.055366385728120804,
-0.05360547453165054,
0.02111048251390457,
-0.07162412256002426,
-0.0016265411395579576,
0.009582643397152424,
-0.026106560602784157,
-0.0055745188146829605,
-0.04197525605559349,
-0.017158664762973785,
0.04611135274171829,
-0.010094537399709225,
0.027969853952527046,
0.025348959490656853,
0.05258168652653694,
-0.04078766331076622,
-0.05004269629716873,
-0.016851529479026794,
-0.0031609414145350456,
-0.057536814361810684,
-0.012408294714987278,
-0.018039122223854065,
0.011312843300402164,
0.014609436504542828,
-0.00880968477576971,
0.04254857450723648,
-0.01363683957606554,
-0.04680752754211426,
0.029177920892834663,
-0.017762700095772743,
0.0023585485760122538,
0.0046275160275399685,
-0.024407075718045235,
0.01581750437617302,
-0.00438692606985569,
-0.045210421085357666,
0.039149604737758636,
0.04590659588575363,
-0.03747059404850006,
-0.002432773122563958,
0.014486582018435001,
-0.010759998112916946,
-0.032535940408706665,
0.037654876708984375,
0.05491591989994049,
0.031696438789367676,
-0.010841901414096355,
-0.02039383165538311,
-0.03265879675745964,
-0.05241788178682327,
-0.015694649890065193,
0.01907314732670784,
0.010708808898925781,
0.0318397656083107,
0.006316764280200005,
-0.0243251733481884,
-0.004566088784486055,
-0.01845887489616871,
0.004886022303253412,
-0.012275203131139278,
-0.007314956281334162,
0.06789753586053848,
-0.011671168729662895,
0.017332708463072777,
-0.034399233758449554,
0.05077982321381569,
-0.07616972923278809,
0.004374128766357899,
-0.0045328158885240555,
0.03204452618956566,
0.03851485624909401,
0.006552235223352909,
0.05671778321266174,
-0.010002396069467068,
-0.008354099467396736,
-0.024837065488100052,
-0.001066017895936966,
-0.033928293734788895,
0.059911999851465225,
-0.039620544761419296,
0.036835845559835434,
-0.015274898149073124,
-0.004128419794142246,
0.03300688415765762,
-0.03601681813597679,
0.04328570142388344,
-0.00518292048946023,
0.018008409067988396,
0.023936133831739426,
-0.03149167820811272,
-0.07461357861757278,
0.005743443500250578,
-0.005436307284981012,
0.030037902295589447,
-0.00891206320375204,
0.011005707085132599,
-0.009121939539909363,
0.021151434630155563,
0.0000334930227836594,
0.015459179878234863,
-0.02364947274327278,
0.0192779041826725,
0.010473337955772877,
0.04357236251235008,
0.016790103167295456,
0.007688638288527727,
0.033047836273908615,
0.006142720580101013,
-0.0328635536134243,
0.0028486866503953934,
0.003992768004536629,
0.0375320203602314,
0.0025313126388937235,
0.0466027706861496,
0.024448027834296227,
-0.02526705712080002,
-0.025123726576566696,
-0.017322471365332603,
-0.04623420909047127,
-0.052458830177783966,
-0.0071869827806949615,
-0.023362813517451286,
0.03691774979233742,
0.008154461160302162,
0.041074324399232864,
0.05143504589796066,
0.0019362366292625666,
-0.04819987714290619,
-0.03712250664830208,
0.010447743348777294,
0.07207458466291428,
-0.011701881885528564,
-0.035115886479616165,
-0.01815173774957657,
0.08771804720163345,
0.02287139557301998,
-0.06122244521975517,
-0.0015625545056536794,
0.009127059020102024,
-0.03562777861952782,
0.004087468609213829,
-0.013268276117742062,
0.0067928247153759,
-0.02096715196967125,
-0.02209331840276718,
-0.021806657314300537,
0.004333177115768194,
-0.0027514267712831497,
-0.04054195433855057,
-0.007857562974095345,
0.09336934983730316,
-0.01842816174030304,
0.017506752163171768,
0.030201708897948265,
-0.03777772933244705,
-0.010002396069467068,
-0.03847390413284302,
-0.049141764640808105,
-0.015377276577055454,
0.0014269027160480618,
-0.04688943177461624,
0.001910642022266984,
0.010068942792713642,
-0.06720136106014252,
-0.006623900029808283,
-0.04701228812336922,
-0.02966933883726597,
0.00003865194958052598,
0.05241788178682327,
0.006398667115718126,
0.0067928247153759,
0.025799425318837166,
-0.03208547458052635,
-0.02784699946641922,
-0.0006229102145880461,
0.06859371066093445,
-0.04183192551136017,
0.00124070153106004,
-0.06900322437286377,
-0.020619064569473267,
-0.05995295196771622,
-0.013728979974985123,
-0.010811188258230686,
-0.05364642292261124,
0.02747843600809574,
0.10909471660852432,
0.03777772933244705,
-0.05749586224555969,
-0.01028393767774105,
-0.02713034860789776,
0.03507493436336517,
0.035013504326343536,
0.024366123601794243,
0.022379977628588676,
0.009290864691138268,
-0.02618846483528614,
-0.003445042297244072,
-0.02971029095351696,
0.05262263864278793,
0.05835584178566933,
0.01395421288907528,
-0.08771804720163345,
-0.023321861401200294,
-0.04680752754211426,
0.001647016848437488,
0.06683279573917389,
-0.06748802214860916,
-0.05843774601817131,
-0.03652871027588844,
0.005228990688920021,
0.0071972208097577095,
-0.009577524848282337,
0.04471900314092636,
-0.04729894548654556,
0.048691295087337494,
-0.0455380342900753,
0.08276291936635971,
0.030549796298146248,
-0.0052085150964558125,
-0.03601681813597679,
0.03220833092927933,
-0.004392045084387064,
0.056349221616983414,
-0.005405594129115343,
0.013831358402967453,
0.04093099385499954,
-0.08251720666885376,
0.022339025512337685,
-0.009541692212224007,
-0.011415221728384495,
0.06150910630822182,
0.07182887941598892,
0.01842816174030304,
-0.014507058076560497,
0.02790842577815056,
0.02262568660080433,
0.02174522913992405,
-0.006219504401087761,
-0.03634442761540413,
0.0328635536134243,
0.025451337918639183,
0.041115276515483856,
0.07678400725126266,
0.0605672225356102,
0.027519386261701584,
-0.021519996225833893,
-0.06150910630822182,
-0.06863465905189514,
-0.006408904679119587,
-0.03370305895805359,
0.023076152428984642,
0.061263397336006165,
-0.023731376975774765,
0.06036246567964554,
-0.014118018560111523,
0.024099938571453094,
-0.003089276375249028,
-0.08714472502470016,
0.019533850252628326,
0.022789493203163147,
0.039006274193525314,
-0.01031465083360672,
0.01948266103863716,
0.03790058568120003,
-0.06842990219593048,
-0.017332708463072777,
-0.07801254838705063,
-0.026700356975197792,
-0.036979176104068756,
-0.0062348609790205956,
0.02618846483528614,
0.02154047228395939,
-0.01143569778650999,
0.03738868981599808,
-0.058724407106637955,
0.008492310531437397,
0.03986625373363495,
0.03159405663609505,
-0.008830160833895206,
0.005871417000889778,
-0.022891871631145477,
0.01883767545223236,
-0.00503191165626049,
0.07629258930683136,
0.018653394654393196,
-0.04095146805047989,
-0.030304087325930595,
0.0034603991080075502,
-0.039272457361221313,
-0.01636011153459549,
-0.001146641094237566,
-0.01488585863262415,
-0.0615910105407238,
-0.00027018372202292085,
-0.019298380240797997,
-0.013821120373904705,
0.008558857254683971,
0.016790103167295456,
-0.009326697327196598,
0.02184760943055153,
0.00023915017663966864,
0.010545003227889538,
0.004394604358822107,
-0.016892481595277786,
0.043818071484565735,
-0.07956870645284653,
-0.020209550857543945,
-0.07641544193029404,
-0.018346257507801056,
-0.03742964193224907,
0.083336241543293,
-0.05037030577659607,
0.018438398838043213,
-0.04574279114603996,
0.00265928590670228,
0.05720920115709305,
-0.01585845649242401,
-0.012868999503552914,
-0.03220833092927933,
0.03751154616475105,
0.041647642850875854,
0.026024658232927322,
0.01602226309478283,
0.09484360367059708,
-0.011067134328186512,
0.01710747554898262,
0.00215891026891768,
0.025226105004549026,
0.03153263032436371,
-0.03323211893439293,
0.022339025512337685,
0.03859676048159599,
0.025635618716478348,
0.005379999056458473,
-0.01560250949114561,
-0.008584451861679554,
-0.013698266819119453,
-0.015510369092226028,
-0.016779864206910133,
-0.025881327688694,
0.03859676048159599,
0.017629606649279594,
-0.009065631777048111,
-0.019892176613211632,
-0.00010805748752318323,
0.08714472502470016,
0.0014486581785604358,
-0.034603990614414215,
0.03296593204140663,
0.059911999851465225,
-0.013462795875966549,
-0.007043652702122927,
-0.013800645247101784,
-0.04072623699903488,
0.00033752969466149807,
0.012858761474490166,
0.02046549692749977,
-0.011159275658428669,
-0.09983967989683151,
-0.0018658513436093926,
-0.02184760943055153,
-0.023997560143470764,
-0.01180426124483347,
-0.047749411314725876,
0.03327306732535362,
-0.006378191523253918,
0.06810229271650314,
-0.04043957591056824,
-0.005044708959758282,
-0.08419621735811234,
-0.03378496319055557,
-0.016186067834496498,
0.029157446697354317,
0.022482356056571007,
0.022850919514894485,
0.02784699946641922,
0.02659797854721546,
-0.023219482973217964,
0.04377711936831474,
0.017639845609664917,
-0.07444977015256882,
-0.04803607240319252,
-0.02438659965991974,
0.013217086903750896,
-0.01431253831833601,
0.002042454434558749,
0.01585845649242401,
-0.05032935366034508,
-0.020434783771634102,
0.0015599949983879924,
-0.0331297367811203,
0.025615144520998,
0.020301690325140953,
-0.05000174418091774,
-0.033109262585639954,
0.015233946032822132,
-0.04475995525717735,
0.03235166147351265,
0.007499237544834614,
-0.02221617102622986,
-0.040091488510370255,
-0.0372658371925354,
0.08010107278823853,
0.0313073992729187,
0.012684717774391174,
-0.010780474171042442,
-0.005190598778426647,
0.04672562703490257,
0.008906944654881954,
-0.034194476902484894,
0.0341535247862339,
0.07690685987472534,
-0.058724407106637955,
0.0046326350420713425,
0.038330573588609695,
-0.04136098548769951,
-0.007279123645275831,
0.03925198316574097,
0.00916289072483778,
-0.0466027706861496,
-0.022113792598247528,
-0.02909601852297783,
0.006787706166505814,
-0.0026311317924410105,
-0.018817199394106865,
-0.03272022306919098,
-0.017148427665233612,
0.06589091569185257,
0.015172519721090794,
0.06310621649026871,
-0.03994815796613693,
0.060321513563394547
] |
722,020
|
apprise.logger
|
__enter__
|
Allows logger manipulation within a 'with' block
|
def __enter__(self):
"""
Allows logger manipulation within a 'with' block
"""
if self.__level is not None:
# Temporary adjust our log level if required
self.__restore_level = self.__logger.getEffectiveLevel()
if self.__restore_level > self.__level:
# Bump our log level up for the duration of our `with`
self.__logger.setLevel(self.__level)
else:
# No restoration required
self.__restore_level = None
else:
# Do nothing but enforce that we have nothing to restore to
self.__restore_level = None
if self.__path:
# If a path has been identified, ensure we can write to the path
# and that the file exists
with open(self.__path, 'a'):
os.utime(self.__path, None)
# Update our buffer pointer
self.__buffer_ptr = open(self.__path, 'r')
# Add our handler
self.__logger.addHandler(self.__handler)
# return our memory pointer
return self.__buffer_ptr
|
(self)
|
[
0.027016060426831245,
-0.03263525664806366,
-0.026247311383485794,
0.07032229006290436,
0.03567364811897278,
-0.003155076876282692,
-0.0429401621222496,
0.046637482941150665,
0.009380576200783253,
-0.055386584252119064,
0.023520080372691154,
-0.0761428251862526,
0.01396561972796917,
0.021030794829130173,
-0.05718033388257027,
0.053556229919195175,
-0.03353212773799896,
-0.029358917847275734,
-0.033312488347291946,
0.04736962541937828,
-0.01456963736563921,
0.013517182320356369,
0.014917404390871525,
0.0032946416176855564,
-0.05004194378852844,
0.04945623129606247,
-0.03585668280720711,
0.009238723665475845,
0.06827229261398315,
-0.03289150446653366,
0.014706913381814957,
-0.06871157884597778,
0.023666508495807648,
-0.004530132282525301,
0.0032809139229357243,
-0.03122588060796261,
-0.03957230597734451,
0.0042029558680951595,
-0.0061774528585374355,
-0.019712937995791435,
0.02743704244494438,
0.0019127224804833531,
0.004644529428333044,
-0.013324994593858719,
0.009920531883835793,
0.05619194358587265,
0.035069629549980164,
0.02705266699194908,
0.08082854002714157,
-0.041366055607795715,
0.04645444452762604,
0.03549060970544815,
-0.009096871130168438,
0.0016553285531699657,
0.0066441940143704414,
0.03887677192687988,
0.06497765332460403,
0.002988056745380163,
-0.020207135006785393,
-0.04121962562203407,
0.007728680036962032,
-0.006543524097651243,
0.05308033525943756,
0.017562270164489746,
-0.055899083614349365,
-0.025551775470376015,
-0.0624883696436882,
0.01463369932025671,
0.008982473984360695,
0.006214059889316559,
-0.005280578043311834,
-0.06973657757043839,
0.02178124152123928,
0.01532923523336649,
-0.04436783865094185,
0.00885434914380312,
-0.06915086507797241,
0.013370753265917301,
0.025734812021255493,
-0.025862935930490494,
0.0033015054650604725,
-0.0028965389356017113,
-0.025753114372491837,
0.047149982303380966,
0.06215890496969223,
-0.045429445803165436,
0.008360153064131737,
-0.001823492581024766,
-0.005344640929251909,
0.026814721524715424,
-0.04158569872379303,
0.08390353620052338,
0.0020534310024231672,
0.006017296575009823,
0.05505711957812309,
-0.04356248304247856,
-0.015951557084918022,
0.0315004326403141,
0.001892130938358605,
0.05454462021589279,
-0.06856515258550644,
0.01777276024222374,
-0.0044797975569963455,
0.00132472044788301,
0.0007252787472680211,
-0.03294641524553299,
0.015411601401865482,
-0.021872758865356445,
0.0509205162525177,
-0.009453791193664074,
-0.026704899966716766,
-0.05999908223748207,
-0.024673204869031906,
0.023959364742040634,
-0.02869998849928379,
-0.007728680036962032,
-0.04385533928871155,
-0.01523771695792675,
-0.0029285703785717487,
-0.030072756111621857,
0.030969630926847458,
0.028224095702171326,
-0.031903114169836044,
0.03494150564074516,
0.04747944697737694,
-0.004541571717709303,
-0.009517853148281574,
0.00021277893392834812,
0.03840087726712227,
-0.0053995512425899506,
-0.029304007068276405,
0.040084805339574814,
0.016592180356383324,
-0.01108280848711729,
0.01586003787815571,
0.023099098354578018,
-0.03916962817311287,
0.014780128374695778,
-0.035399094223976135,
0.03766873478889465,
-0.026082579046487808,
-0.046381231397390366,
-0.07489818334579468,
-0.03300132602453232,
0.021360259503126144,
0.024087490513920784,
0.011705129407346249,
0.02538704313337803,
0.0044889491982758045,
-0.02901114895939827,
0.03726605698466301,
-0.029560256749391556,
-0.005966961849480867,
0.10623388737440109,
0.01840423420071602,
-0.014276780188083649,
-0.0486142672598362,
0.03836426883935928,
0.00733515340834856,
-0.024728115648031235,
0.00805814377963543,
-0.03510623425245285,
-0.000790485180914402,
-0.0158142801374197,
0.021250437945127487,
0.017434144392609596,
0.0007738975691609085,
-0.006273546721786261,
-0.028937935829162598,
-0.0411464124917984,
-0.036094628274440765,
0.0072756665758788586,
-0.006991961505264044,
0.0740562230348587,
-0.0594133697450161,
0.0491267666220665,
-0.02152499184012413,
0.016043074429035187,
-0.025661597028374672,
-0.01726026087999344,
0.020463384687900543,
-0.02024374157190323,
-0.012071200646460056,
0.035454005002975464,
0.018010707572102547,
-0.03104284405708313,
0.013105352409183979,
-0.024874543771147728,
0.016024770215153694,
0.03397141396999359,
-0.01599731482565403,
-0.0037613825406879187,
0.028901327401399612,
-0.052274979650974274,
0.034447308629751205,
0.03512454032897949,
-0.06871157884597778,
-0.026430346071720123,
0.008428791537880898,
0.050005339086055756,
-0.03785176947712898,
-0.0025236038491129875,
-0.019841063767671585,
-0.023080794140696526,
0.015951557084918022,
-0.008154237642884254,
0.049675874412059784,
0.04729640856385231,
-0.0822928249835968,
0.07369014620780945,
-0.04129284247756004,
-0.008273211307823658,
0.002266210038214922,
0.07006604224443436,
0.032415613532066345,
-0.022549990564584732,
-0.0065709794871509075,
0.07101783156394958,
0.01018593367189169,
0.06442854553461075,
0.021744634956121445,
0.0034547976683825254,
-0.09290888905525208,
-0.012235932983458042,
-0.031262487173080444,
-0.03902319818735123,
0.03865712881088257,
-0.022238830104470253,
0.003193971933797002,
0.0034753892105072737,
0.015256021171808243,
0.026393739506602287,
-0.02514909766614437,
-0.007179573178291321,
-0.037741947919130325,
-0.01413035113364458,
-0.009330241940915585,
0.021305348724126816,
-0.004946538247168064,
0.00844251923263073,
-0.01155870035290718,
0.016271868720650673,
0.06464818865060806,
0.009398880414664745,
0.022934366017580032,
-0.028809810057282448,
-0.0018406521994620562,
0.02502097189426422,
0.04312319681048393,
0.018074769526720047,
-0.03592989593744278,
0.039389271289110184,
-0.036790162324905396,
0.0011639923322945833,
-0.03204954043030739,
-0.02939552441239357,
0.006392519921064377,
-0.009165509603917599,
-0.01650066301226616,
-0.025368740782141685,
0.004594194702804089,
-0.008653010241687298,
0.0501517653465271,
-0.022641509771347046,
0.02654016762971878,
-0.010158478282392025,
0.050517838448286057,
-0.11516602337360382,
0.042500875890254974,
0.032086148858070374,
-0.037998199462890625,
0.051396407186985016,
0.01980445720255375,
0.029816506430506706,
-0.03840087726712227,
-0.03669864684343338,
-0.00952700525522232,
0.00888638012111187,
-0.031061148270964622,
0.06062140315771103,
0.01260200422257185,
0.07317765057086945,
0.017498208209872246,
0.013160262256860733,
-0.005513948854058981,
-0.008547764271497726,
-0.03516114503145218,
-0.000865987385623157,
0.020920973271131516,
-0.03887677192687988,
-0.025606686249375343,
0.02875489927828312,
-0.01631762832403183,
0.04261069744825363,
0.060841046273708344,
0.005880020093172789,
-0.11048031598329544,
-0.012263388372957706,
0.026137489825487137,
0.011018745601177216,
-0.0019047146197408438,
-0.04693033918738365,
0.005408703349530697,
0.07376336306333542,
0.017132136970758438,
-0.009975442662835121,
-0.011659370735287666,
0.030054451897740364,
-0.027144186198711395,
0.019127223640680313,
0.00008093607175396755,
0.03770534321665764,
0.02337365224957466,
-0.02970668487250805,
0.02476472221314907,
-0.008209148421883583,
0.020719634369015694,
0.032214272767305374,
-0.019017403945326805,
0.05835176259279251,
-0.05282408744096756,
0.02399597316980362,
0.010259147733449936,
-0.007531916722655296,
0.019712937995791435,
-0.019639724865555763,
0.05319015681743622,
0.06311068683862686,
-0.027382131665945053,
0.02253168821334839,
-0.07658211141824722,
0.012455575168132782,
-0.046051766723394394,
-0.025295525789260864,
-0.0753374695777893,
-0.008502005599439144,
-0.0416589118540287,
-0.0581321194767952,
0.015283475629985332,
-0.049749087542295456,
0.009847317822277546,
0.023154009133577347,
-0.03862052038311958,
-0.033239271491765976,
-0.055716048926115036,
-0.0486142672598362,
0.04601516202092171,
0.004324216861277819,
0.025423651561141014,
0.05725354701280594,
0.012501334771513939,
0.0028050211258232594,
-0.04067051783204079,
-0.00866673793643713,
-0.009893076494336128,
-0.05582587048411369,
-0.021762937307357788,
-0.03680846840143204,
0.011833254247903824,
0.014926556497812271,
-0.03027409501373768,
0.06505087018013,
-0.02502097189426422,
-0.028553560376167297,
0.025057578459382057,
-0.015448207966983318,
-0.017315171658992767,
-0.001482588704675436,
-0.012629459612071514,
-0.010359817184507847,
-0.009325666353106499,
-0.059962477535009384,
0.0496392659842968,
0.07138390094041824,
-0.04099998250603676,
-0.0015226277755573392,
-0.0038414604496210814,
-0.0051433015614748,
-0.03644239529967308,
0.031463827937841415,
0.06113390251994133,
0.02965177409350872,
0.011540397070348263,
-0.021616509184241295,
-0.02335534803569317,
-0.0653071179986,
0.01095468271523714,
-0.005353792570531368,
0.028077667579054832,
0.05059105157852173,
-0.01260200422257185,
-0.015310931019484997,
0.0030155121348798275,
-0.0021026218309998512,
-0.028077667579054832,
-0.005536828190088272,
-0.00465139327570796,
0.024856239557266235,
-0.008524885401129723,
0.0024092067033052444,
0.010350666008889675,
0.01336160209029913,
-0.03466695174574852,
-0.002898826962336898,
-0.0008556916145607829,
0.021415170282125473,
0.04919997975230217,
0.02121383138000965,
0.06889461725950241,
-0.0029102666303515434,
-0.02965177409350872,
-0.022129008546471596,
-0.013544637709856033,
-0.015210261568427086,
0.03547230735421181,
-0.0828053280711174,
0.08375710994005203,
-0.024087490513920784,
-0.01422186940908432,
0.04766248166561127,
-0.019950885325670242,
0.03682677075266838,
-0.01701316237449646,
0.005042632110416889,
0.022769633680582047,
-0.08031603693962097,
-0.09034639596939087,
-0.007229907903820276,
-0.022129008546471596,
0.004909931216388941,
-0.03497811034321785,
0.012730129063129425,
0.0486142672598362,
0.009984593838453293,
-0.0024549656081944704,
0.0026883359532803297,
-0.028297310695052147,
0.006021872628480196,
0.009883924387395382,
0.05827854946255684,
0.05403212085366249,
-0.0005190776428207755,
0.04048748314380646,
-0.021433474496006966,
-0.02564329281449318,
-0.01463369932025671,
-0.0003797989629674703,
0.06311068683862686,
-0.00389637122862041,
0.010689281858503819,
0.02361159771680832,
0.000718414899893105,
-0.018138831481337547,
0.021433474496006966,
-0.06406247615814209,
-0.0414026640355587,
0.025240615010261536,
-0.041732124984264374,
0.051689263433218,
0.030237488448619843,
0.02507588267326355,
0.05223837122321129,
0.03356873616576195,
-0.0045804670080542564,
-0.008643858134746552,
-0.018376778811216354,
0.05264104902744293,
-0.020683027803897858,
-0.00206258287653327,
-0.019639724865555763,
0.04052409157156944,
0.02399597316980362,
-0.083830326795578,
-0.024105794727802277,
0.021671419963240623,
-0.04762587323784828,
-0.0007967770216055214,
-0.018687939271330833,
0.0007790454546920955,
-0.016482358798384666,
-0.03404463082551956,
-0.05205533653497696,
0.021360259503126144,
0.029926327988505363,
-0.02705266699194908,
0.008369305171072483,
0.09759460389614105,
-0.01846829615533352,
0.030420523136854172,
0.045099981129169464,
-0.03360534459352493,
-0.0074541266076266766,
-0.053739264607429504,
-0.02013392001390457,
-0.0006028736243024468,
0.012720976956188679,
-0.049602657556533813,
-0.010433031246066093,
0.0060630557127296925,
-0.050700873136520386,
-0.010387272574007511,
-0.03942587599158287,
-0.01613459177315235,
-0.011329906061291695,
0.039389271289110184,
0.03351382538676262,
0.0007613138877786696,
-0.025734812021255493,
0.011274995282292366,
-0.029102666303515434,
0.0006474885740317404,
0.0624883696436882,
-0.05436158552765846,
0.035893287509679794,
-0.04627140983939171,
-0.0077515593729913235,
-0.06380622833967209,
0.005957810208201408,
0.005614618305116892,
-0.05436158552765846,
0.027784811332821846,
0.0745687186717987,
0.0684187263250351,
-0.09576424956321716,
-0.02119552716612816,
-0.01943838596343994,
0.03865712881088257,
0.02913927473127842,
0.01508213672786951,
0.035911593586206436,
-0.00889095664024353,
-0.03721114620566368,
-0.006982809863984585,
-0.03433748707175255,
0.04001159220933914,
0.051652658730745316,
0.0069645061157643795,
-0.059083905071020126,
-0.0660758689045906,
-0.057107120752334595,
0.017891734838485718,
0.03592989593744278,
-0.02857186459004879,
-0.06263479590415955,
0.0058845956809818745,
0.016857583075761795,
-0.027089275419712067,
-0.029670078307390213,
0.03219597041606903,
-0.05022497847676277,
0.0509205162525177,
-0.05718033388257027,
0.03814462944865227,
0.03345891460776329,
-0.0004318497085478157,
-0.04919997975230217,
0.017159590497612953,
-0.028846416622400284,
0.05110355094075203,
0.00013155686610843986,
0.006818077526986599,
0.05985265597701073,
-0.09173746407032013,
0.0192919559776783,
-0.014944859780371189,
-0.03530757501721382,
0.04693033918738365,
0.06329372525215149,
0.012345753610134125,
0.04469730332493782,
0.048724088817834854,
0.010936379432678223,
0.030585255473852158,
-0.00828236248344183,
-0.028590166941285133,
0.0158142801374197,
0.0035211481153964996,
0.046381231397390366,
0.05809551104903221,
0.012437271885573864,
0.03356873616576195,
-0.018944188952445984,
-0.05677765607833862,
-0.04312319681048393,
-0.008520308881998062,
-0.04502676799893379,
0.015384146012365818,
0.07299461215734482,
-0.010652674362063408,
0.07218925654888153,
-0.03499641641974449,
-0.007056023925542831,
0.019401777535676956,
-0.0812678262591362,
0.027912935242056847,
-0.00843794271349907,
0.017635483294725418,
-0.009243300184607506,
0.04528301954269409,
0.02037186734378338,
-0.05022497847676277,
-0.01802900992333889,
-0.07760711014270782,
0.0050700874999165535,
-0.035783469676971436,
-0.004099998157471418,
0.044733911752700806,
0.0055963145568966866,
-0.023977668955922127,
0.012181022204458714,
-0.055459801107645035,
0.0016358810244128108,
0.040231235325336456,
0.031262487173080444,
-0.0012938332511112094,
0.015576332807540894,
-0.021671419963240623,
-0.001607281737960875,
0.013691065832972527,
0.08844282478094101,
0.012849101796746254,
-0.03003614954650402,
-0.028022756800055504,
-0.010057808831334114,
-0.020975884050130844,
-0.028937935829162598,
0.028022756800055504,
-0.00040124845691025257,
-0.03179329261183739,
-0.008314394392073154,
-0.03186650574207306,
-0.01942008174955845,
0.02081115171313286,
-0.007046872284263372,
0.0071429661475121975,
0.03708302229642868,
0.015402449294924736,
-0.005427006632089615,
-0.006863836664706469,
0.012775887735188007,
0.02298927679657936,
-0.05725354701280594,
-0.00008586945477873087,
-0.08426961302757263,
-0.027638381347060204,
-0.03873034194111824,
0.04524641111493111,
-0.0380714125931263,
0.019822759553790092,
-0.022842848673462868,
0.010057808831334114,
0.04806515946984291,
-0.006516068708151579,
-0.027711596339941025,
-0.0018944188486784697,
0.007609706837683916,
0.04678390920162201,
0.021232133731245995,
0.013645307160913944,
0.07153032720088959,
-0.0313723087310791,
0.037302665412425995,
0.006003568880259991,
0.026887936517596245,
0.05670444294810295,
-0.03611293062567711,
-0.014935708604753017,
0.0390964113175869,
0.04579551890492439,
0.0003097306180279702,
-0.027089275419712067,
0.0028256126679480076,
-0.05619194358587265,
0.027089275419712067,
-0.021891063079237938,
-0.029047755524516106,
0.05124998092651367,
-0.01739753782749176,
0.008858924731612206,
-0.03206784278154373,
-0.023025883361697197,
0.05791247636079788,
0.018651332706212997,
-0.026082579046487808,
-0.0001484304666519165,
0.07753390073776245,
-0.015246869064867496,
-0.007321425713598728,
0.01611628755927086,
-0.04597855359315872,
0.0017273988341912627,
-0.01738838665187359,
0.019456688314676285,
0.005797653924673796,
-0.09466603398323059,
0.008895532228052616,
-0.02026204578578472,
-0.03556382656097412,
-0.018047314137220383,
-0.056594621390104294,
0.03979194909334183,
0.009069415740668774,
0.07464193552732468,
-0.06552676111459732,
0.01406628917902708,
-0.06516069173812866,
0.014551333151757717,
-0.0004318497085478157,
0.004644529428333044,
0.01841338537633419,
0.01371852122247219,
0.015164502896368504,
0.03135400637984276,
0.022714722901582718,
0.07570353895425797,
0.04067051783204079,
-0.07760711014270782,
-0.06369640678167343,
-0.008314394392073154,
-0.007618858478963375,
-0.03700980544090271,
0.018440840765833855,
0.011384816840291023,
-0.03016427345573902,
-0.006337609142065048,
-0.02126874215900898,
-0.06032854691147804,
0.02101249247789383,
0.04330623149871826,
-0.029102666303515434,
-0.029249096289277077,
-0.015649547800421715,
-0.05326336994767189,
0.02445356175303459,
0.016152895987033844,
-0.014203566126525402,
-0.019639724865555763,
0.021506687626242638,
0.07511782646179199,
0.043452661484479904,
0.02934061363339424,
0.015146199613809586,
-0.029926327988505363,
0.07068836688995361,
0.03865712881088257,
-0.03279998525977135,
0.03312944993376732,
0.08544103801250458,
-0.08170711249113083,
0.006017296575009823,
0.04843123257160187,
-0.01903570629656315,
0.02114061638712883,
0.0630008652806282,
0.02921248786151409,
-0.0776803269982338,
0.020115617662668228,
-0.03111605904996395,
0.040341056883335114,
0.005257698707282543,
-0.02247677743434906,
-0.025753114372491837,
0.003974161576479673,
0.050700873136520386,
-0.0025533472653478384,
0.04323301836848259,
-0.01605222560465336,
0.040597304701805115
] |
722,021
|
apprise.logger
|
__exit__
|
removes the handler gracefully when the with block has completed
|
def __exit__(self, exc_type, exc_value, tb):
"""
removes the handler gracefully when the with block has completed
"""
# Flush our content
self.__handler.flush()
self.__buffer_ptr.flush()
# Drop our handler
self.__logger.removeHandler(self.__handler)
if self.__restore_level is not None:
# Restore level
self.__logger.setLevel(self.__restore_level)
if self.__path:
# Close our file pointer
self.__buffer_ptr.close()
self.__handler.close()
if self.__delete:
try:
# Always remove file afterwards
os.unlink(self.__path)
except OSError:
# It's okay if the file does not exist
pass
if exc_type is not None:
# pass exception on if one was generated
return False
return True
|
(self, exc_type, exc_value, tb)
|
[
0.011495301499962807,
-0.014416311867535114,
-0.027340661734342575,
0.029497716575860977,
0.014703919179737568,
-0.029983052983880043,
-0.04454316943883896,
0.09771455824375153,
-0.024248884990811348,
-0.03000102937221527,
0.03285912424325943,
-0.029192132875323296,
0.01210646703839302,
-0.0325535424053669,
-0.03828771039843559,
0.03904268145561218,
-0.022631093859672546,
-0.008012557402253151,
-0.030720047652721405,
-0.011872786097228527,
-0.028527041897177696,
0.03298495337367058,
-0.008682142943143845,
0.0007448577671311796,
-0.01624980755150318,
0.003727659350261092,
-0.03611268103122711,
0.019719069823622704,
0.042745623737573624,
-0.006484644021838903,
-0.02468029409646988,
-0.05349494516849518,
0.042278263717889786,
0.011477326042950153,
0.0023075987119227648,
0.009868523105978966,
-0.008488906547427177,
0.0075317141599953175,
0.008461943827569485,
0.014955575577914715,
0.005091546569019556,
0.0005179176805540919,
-0.02935391291975975,
-0.009482050314545631,
0.025183606892824173,
0.04493862763047218,
-0.0018615827430039644,
0.012232295237481594,
0.004460158757865429,
-0.02356581762433052,
0.012897386215627193,
0.0493246391415596,
-0.0007476664613932371,
0.030036980286240578,
0.0597863532602787,
0.024752195924520493,
0.04483077675104141,
0.009868523105978966,
-0.031079554930329323,
-0.047634948045015335,
0.0049117919988930225,
0.031079554930329323,
0.005504982080310583,
-0.027556367218494415,
0.000017062635379261337,
0.003920895513147116,
-0.021336860954761505,
0.006421729922294617,
0.009778645820915699,
-0.007949643768370152,
-0.0482461117208004,
-0.04914488643407822,
-0.000336758850608021,
0.06884597986936569,
0.001769458525814116,
-0.020761646330356598,
-0.017714807763695717,
0.0055768839083611965,
0.04310513287782669,
-0.024500541388988495,
0.028023729100823402,
-0.021894099190831184,
-0.001735754543915391,
0.02827538549900055,
0.05924708768725395,
-0.037712495774030685,
0.05076267570257187,
-0.024806123226881027,
-0.011827846989035606,
0.06251861900091171,
-0.058995433151721954,
0.003085036762058735,
0.000830802891869098,
-0.022523241117596626,
0.03240973874926567,
-0.019053978845477104,
-0.03285912424325943,
0.027987778186798096,
0.021103180944919586,
-0.025615017861127853,
0.01053361501544714,
0.015126342885196209,
0.023547841235995293,
0.004718556068837643,
0.051589544862508774,
0.01086616050451994,
0.028401212766766548,
-0.0490729846060276,
-0.005064583383500576,
-0.031079554930329323,
-0.01789456233382225,
-0.0626983717083931,
-0.008408017456531525,
0.011693031527101994,
-0.01584536023437977,
-0.053962305188179016,
-0.053962305188179016,
0.027915876358747482,
0.013265883550047874,
-0.040660470724105835,
0.027556367218494415,
-0.019359560683369637,
-0.0739869549870491,
-0.020869499072432518,
0.04975605010986328,
0.034638695418834686,
0.021121155470609665,
0.04037286341190338,
-0.00551396980881691,
0.05187715217471123,
-0.03951004147529602,
0.05683837831020355,
-0.020797597244381905,
-0.05367469787597656,
-0.020492015406489372,
0.008574290201067924,
0.00625096308067441,
-0.011207694187760353,
0.027915876358747482,
0.008237251080572605,
-0.01701376400887966,
-0.01889219880104065,
-0.03359612077474594,
-0.024464590474963188,
0.032805200666189194,
0.03343433886766434,
0.018496738746762276,
0.02020440809428692,
-0.020474039018154144,
-0.041415441781282425,
-0.008443968370556831,
0.014488213695585728,
-0.019719069823622704,
0.07542499154806137,
0.0006207147962413728,
0.0022637834772467613,
-0.05820451304316521,
0.0729084312915802,
-0.01189974881708622,
-0.030360538512468338,
0.0670124813914299,
-0.014712907373905182,
0.021876124665141106,
-0.06747984886169434,
-0.001109422417357564,
-0.01693287491798401,
-0.0019851638935506344,
0.053746599704027176,
-0.000415401445934549,
0.002316586207598448,
-0.08117713779211044,
0.046232860535383224,
-0.01669020764529705,
0.05683837831020355,
-0.04145139083266258,
0.08412511646747589,
0.007023907732218504,
0.006345334462821484,
-0.022667044773697853,
-0.010506651364266872,
0.022415388375520706,
-0.08175235241651535,
-0.0021357082296162844,
0.027017103508114815,
0.03343433886766434,
-0.025399312376976013,
-0.004026500973850489,
-0.024392688646912575,
-0.004433195572346449,
0.009544964879751205,
-0.044902678579092026,
0.00535219069570303,
0.008659673854708672,
-0.010830209590494633,
0.07657542079687119,
0.05949874594807625,
-0.021318886429071426,
-0.010551590472459793,
0.03807200491428375,
-0.0306840967386961,
-0.04885727912187576,
0.012286221608519554,
-0.005639798007905483,
-0.05565199628472328,
0.006367803551256657,
0.0327153205871582,
0.08477222919464111,
0.02672949619591236,
-0.09196241199970245,
0.07844486832618713,
0.006529582664370537,
-0.0009796620579436421,
-0.011270607821643353,
0.056910280138254166,
0.06445997208356857,
-0.030054954811930656,
-0.04705973342061043,
0.04856967180967331,
-0.02457244321703911,
0.06082892790436745,
-0.025579066947102547,
-0.00004781750976690091,
-0.025740846991539,
0.018964100629091263,
-0.040193110704422,
0.005140979308634996,
0.0018143971683457494,
0.013805147260427475,
0.04900108277797699,
-0.014272508211433887,
-0.01297827623784542,
0.07071542739868164,
0.009625853970646858,
-0.017606955021619797,
0.00576113210991025,
0.0038759566377848387,
-0.0068980795331299305,
0.008704612031579018,
0.005392635241150856,
0.01265471801161766,
-0.011693031527101994,
-0.03514200821518898,
0.026387963443994522,
-0.03871912136673927,
0.0314750149846077,
0.0234579648822546,
0.049288686364889145,
0.03032458759844303,
0.05029531195759773,
-0.021121155470609665,
0.010524626821279526,
0.010515639558434486,
0.006974474992603064,
-0.05043911561369896,
0.001497579854913056,
-0.06582610309123993,
0.01790354959666729,
-0.04062452167272568,
0.026693545281887054,
0.014389349147677422,
0.01140542421489954,
0.004123119171708822,
0.02530943602323532,
0.028850600123405457,
0.019341586157679558,
-0.03100765310227871,
0.07600020617246628,
-0.06891787797212601,
0.038359612226486206,
0.028850600123405457,
0.011773920617997646,
-0.016887936741113663,
-0.03951004147529602,
-0.033236611634492874,
-0.05000770464539528,
0.021588517352938652,
-0.020581891760230064,
-0.030845874920487404,
-0.05795285478234291,
0.048066359013319016,
0.05424991250038147,
0.05504083260893822,
0.08369370549917221,
0.009356222115457058,
-0.01671716943383217,
0.04051666706800461,
-0.028329310938715935,
-0.0031030122190713882,
0.003633288200944662,
-0.008610241115093231,
-0.03571722283959389,
0.009419136680662632,
-0.06773149967193604,
0.06208720803260803,
0.02552514150738716,
0.007473294157534838,
-0.07851677387952805,
-0.04252991825342178,
0.01693287491798401,
-0.0010560577502474189,
-0.028742747381329536,
-0.030917776748538017,
0.007653048727661371,
0.047958504408597946,
-0.027538392692804337,
-0.012699656188488007,
0.027987778186798096,
0.009100072085857391,
-0.005118509754538536,
0.047203537076711655,
0.019593242555856705,
0.006502619478851557,
0.022091830149292946,
-0.03864721953868866,
0.07060757279396057,
0.03668789565563202,
0.027664219960570335,
0.016456525772809982,
-0.03219403326511383,
0.04529813677072525,
-0.0755687952041626,
0.015413949266076088,
0.02741256356239319,
0.013274870812892914,
0.025399312376976013,
-0.05130193755030632,
0.009580915793776512,
0.05191310495138168,
-0.04519028589129448,
-0.017517076805233955,
-0.048929180949926376,
-0.009266344830393791,
-0.03925838693976402,
-0.040984030812978745,
-0.0065116072073578835,
-0.046340715140104294,
0.018802322447299957,
-0.05324328690767288,
0.018730420619249344,
-0.048965130001306534,
-0.03327256068587303,
0.0037321532145142555,
0.019790971651673317,
0.013562478125095367,
-0.08247137069702148,
-0.00823275651782751,
0.01336474809795618,
0.0016301487339660525,
0.06381285190582275,
0.01878434605896473,
0.05424991250038147,
-0.03929433599114418,
-0.027466490864753723,
0.008556314744055271,
0.019665144383907318,
-0.06640131771564484,
-0.004105143714696169,
0.011279596015810966,
0.033668022602796555,
0.01363437995314598,
0.031043604016304016,
0.028239434584975243,
-0.034099429845809937,
0.003260297467932105,
0.033668022602796555,
-0.05220071226358414,
-0.014335422776639462,
0.010776283219456673,
-0.011693031527101994,
0.019251707941293716,
-0.018074316903948784,
-0.046556420624256134,
0.02050998993217945,
0.03535771369934082,
0.0010363971814513206,
0.008003570139408112,
0.021444713696837425,
0.008938292972743511,
-0.0213009100407362,
0.03503415361046791,
0.006938524078577757,
0.040444765239953995,
-0.030863849446177483,
-0.061943404376506805,
-0.03724513575434685,
-0.06057727336883545,
-0.015216220170259476,
0.016995789483189583,
-0.03391967713832855,
0.024752195924520493,
0.041954703629016876,
-0.030917776748538017,
-0.014119717292487621,
-0.02575882151722908,
-0.009949412196874619,
0.0073115150444209576,
-0.02390735037624836,
0.03986955061554909,
0.009715731255710125,
0.0377843976020813,
-0.02151661552488804,
0.048749424517154694,
-0.07671922445297241,
0.034674644470214844,
0.031079554930329323,
-0.020222382619976997,
0.03699347749352455,
0.004206255543977022,
0.11554620414972305,
-0.015773458406329155,
-0.012016589753329754,
-0.022019928321242332,
-0.00032299640588462353,
-0.015962200239300728,
0.038683172315359116,
-0.007608110085129738,
0.05205690860748291,
0.0031277285888791084,
0.00559485936537385,
0.04705973342061043,
0.010686405934393406,
0.10317908972501755,
0.006974474992603064,
-0.03043244034051895,
-0.012250270694494247,
-0.055831752717494965,
-0.08081763237714767,
0.0007150859455578029,
-0.04680807515978813,
0.006102665793150663,
-0.05209285765886307,
-0.02575882151722908,
0.009760670363903046,
0.018406862393021584,
-0.015773458406329155,
0.034440964460372925,
-0.04616095870733261,
0.0134726008400321,
0.020581891760230064,
0.033452317118644714,
-0.01244799979031086,
0.016393611207604408,
-0.017768733203411102,
-0.026675570756196976,
0.02543526329100132,
-0.04213446006178856,
0.04069642350077629,
0.03684967756271362,
0.02838323824107647,
-0.005001669283956289,
-0.0056038470938801765,
-0.006812696345150471,
-0.026387963443994522,
-0.015027477405965328,
-0.02795182727277279,
-0.048929180949926376,
-0.002184017328545451,
-0.004875841084867716,
-0.0015121848555281758,
0.026244159787893295,
-0.017004776746034622,
0.06730008870363235,
0.057377640157938004,
-0.04749114438891411,
-0.010686405934393406,
-0.0009813472861424088,
0.05806070938706398,
-0.003559139324352145,
0.014784809201955795,
0.01715756766498089,
-0.017301371321082115,
0.026675570756196976,
-0.05913923680782318,
0.01746315136551857,
-0.011117816902697086,
-0.033146731555461884,
0.025794772431254387,
0.028095630928874016,
0.04181089997291565,
0.013769196346402168,
0.004269169643521309,
-0.03614863380789757,
-0.005280288867652416,
-0.012807508930563927,
-0.041631147265434265,
-0.004017513245344162,
0.046987831592559814,
-0.0613681934773922,
0.02892250195145607,
-0.0035861025098711252,
-0.0027479971759021282,
-0.06514303386211395,
-0.03764059394598007,
-0.0426018200814724,
0.0685943216085434,
-0.05252426862716675,
-0.05698218196630478,
0.005509475711733103,
0.02816753275692463,
-0.08225566893815994,
0.01216039340943098,
-0.06129629164934158,
-0.07244107127189636,
-0.012367110699415207,
0.030845874920487404,
-0.01801140233874321,
0.05119408667087555,
-0.0015088145155459642,
-0.03309280797839165,
-0.023062504827976227,
-0.05683837831020355,
0.030360538512468338,
-0.03764059394598007,
0.03427918627858162,
-0.00019449999672360718,
0.0001745584886521101,
-0.020150480791926384,
-0.033560167998075485,
0.032589495182037354,
0.013274870812892914,
0.038575317710638046,
0.051373839378356934,
0.03631041198968887,
-0.03043244034051895,
-0.0323018878698349,
-0.013409687206149101,
0.018290022388100624,
0.04231421276926994,
0.05151764303445816,
0.03199630230665207,
0.011261620558798313,
-0.02838323824107647,
0.014667968265712261,
-0.05957064777612686,
-0.008268707431852818,
0.036508142948150635,
-0.024410663172602654,
-0.06158389523625374,
-0.03622053563594818,
-0.062266964465379715,
0.026765447109937668,
0.0661856159567833,
-0.014982539229094982,
-0.036615993827581406,
-0.024141032248735428,
-0.003040098352357745,
-0.01690591312944889,
0.022433362901210785,
0.047311387956142426,
-0.018038365989923477,
0.03242771327495575,
0.007356453686952591,
0.12216117233037949,
0.00616557989269495,
-0.002756984904408455,
-0.028670845553278923,
0.008641698397696018,
0.0013796158600598574,
0.021983977407217026,
-0.0021469430066645145,
-0.018164193257689476,
0.04637666419148445,
-0.032014280557632446,
0.022756921127438545,
0.01811925508081913,
0.029102256521582603,
0.04583740234375,
0.0323018878698349,
0.03154691681265831,
-0.011800884269177914,
-0.03129526227712631,
0.026459865272045135,
0.030288636684417725,
-0.02991115115582943,
-0.02119305729866028,
0.00572967529296875,
0.011000975966453552,
-0.0046151974238455296,
0.025255508720874786,
-0.008425992913544178,
0.017301371321082115,
-0.028455140069127083,
-0.025291459634900093,
-0.05993015691637993,
-0.032697346061468124,
-0.029767347499728203,
0.018946126103401184,
0.052452366799116135,
-0.025021828711032867,
0.08261517435312271,
-0.014011864550411701,
0.041091881692409515,
-0.013409687206149101,
-0.12999846041202545,
0.03507010638713837,
0.04867752268910408,
0.03307482972741127,
0.023080479353666306,
-0.006417236290872097,
0.03320065885782242,
-0.03055826760828495,
-0.012376097962260246,
-0.032140105962753296,
0.0075631714425981045,
-0.020815573632717133,
0.01867649331688881,
-0.01758897863328457,
0.008677649311721325,
-0.0314750149846077,
0.027915876358747482,
-0.07093112915754318,
-0.01887422427535057,
0.08024241775274277,
0.04238611459732056,
-0.03359612077474594,
0.018730420619249344,
0.006008294876664877,
-0.00668237404897809,
-0.0114593505859375,
0.07729443907737732,
-0.0027794542256742716,
-0.04885727912187576,
0.00030249313567765057,
0.004195020999759436,
-0.036526117473840714,
-0.0008656303398311138,
0.001408825977705419,
0.03720918297767639,
-0.05173334851861,
0.04759899526834488,
-0.04813826084136963,
-0.0332186333835125,
0.027987778186798096,
0.005203893408179283,
0.0013796158600598574,
0.05453751981258392,
-0.015144318342208862,
0.023278210312128067,
0.01200760155916214,
-0.014658981002867222,
0.10087823122739792,
-0.06697653234004974,
-0.011648092418909073,
-0.05827641487121582,
-0.04252991825342178,
-0.013346772640943527,
0.0710030347108841,
-0.041523292660713196,
0.04170304909348488,
-0.045370038598775864,
0.020258333534002304,
0.06179960072040558,
-0.029192132875323296,
-0.0552205890417099,
-0.008736069314181805,
-0.03413538262248039,
0.025075754150748253,
0.004428701940923929,
-0.025147655978798866,
0.07427456229925156,
-0.005990319419652224,
-0.015351035632193089,
0.014056802727282047,
-0.0018907928606495261,
0.046017155051231384,
-0.008381054736673832,
-0.010299934074282646,
0.014847722835838795,
-0.013265883550047874,
-0.044471267610788345,
-0.0211750827729702,
-0.009589903056621552,
-0.06906168162822723,
-0.0325535424053669,
-0.057773102074861526,
-0.0007330614025704563,
0.01726542040705681,
-0.0029367394745349884,
-0.03391967713832855,
-0.013274870812892914,
-0.013904011808335781,
0.0332186333835125,
-0.020060604438185692,
-0.01898207701742649,
0.05511273443698883,
0.054178010672330856,
-0.03458476811647415,
0.004107390530407429,
-0.00518591795116663,
-0.06201530620455742,
-0.006996944546699524,
-0.014029840007424355,
0.000001255121901522216,
-0.014209594577550888,
-0.12518104910850525,
0.01271763164550066,
0.018838273361325264,
-0.031133482232689857,
-0.017975451424717903,
-0.02151661552488804,
0.05123003572225571,
-0.026441888883709908,
0.04803040623664856,
-0.03900672867894173,
0.011585178785026073,
-0.020366186276078224,
0.008030532859265804,
-0.02500385232269764,
-0.0052488320507109165,
0.04626881331205368,
0.0034490397665649652,
0.010380823165178299,
0.0001867761748144403,
0.025021828711032867,
0.0117918960750103,
0.011396436020731926,
-0.11389245837926865,
-0.046089056879282,
0.029174158349633217,
-0.010272970423102379,
-0.04903703182935715,
0.014227570034563541,
-0.004278157372027636,
-0.015899287536740303,
-0.018964100629091263,
-0.052236661314964294,
-0.04975605010986328,
-0.00031148086418397725,
0.038791023194789886,
0.011270607821643353,
-0.04986390098929405,
-0.07200966030359268,
-0.05806070938706398,
0.04670022428035736,
-0.008686636574566364,
-0.03287710249423981,
0.035645321011543274,
0.016106003895401955,
0.06413640826940536,
0.019898824393749237,
-0.0037591164000332355,
-0.017984438687562943,
0.008915823884308338,
0.031582869589328766,
0.08268707990646362,
0.004215243272483349,
0.013868060894310474,
0.11015357077121735,
-0.08232756704092026,
0.011045915074646473,
0.04583740234375,
-0.025075754150748253,
0.03767654672265053,
0.08491603285074234,
0.009769657626748085,
-0.06399260461330414,
-0.0020671768579632044,
-0.018460789695382118,
-0.0007701357244513929,
0.03122335858643055,
-0.0007746295887045562,
-0.004163564182817936,
0.0045567769557237625,
-0.02270299568772316,
0.06010990962386131,
0.025255508720874786,
0.017067691311240196,
0.027017103508114815
] |
722,022
|
apprise.logger
|
__init__
|
Instantiate a temporary log capture object
If a path is specified, then log content is sent to that file instead
of a StringIO object.
You can optionally specify a logging level such as logging.INFO if you
wish, otherwise by default the script uses whatever logging has been
set globally. If you set delete to `False` then when using log files,
they are not automatically cleaned up afterwards.
Optionally over-ride the fmt as well if you wish.
|
def __init__(self, path=None, level=None, name=LOGGER_NAME, delete=True,
fmt='%(asctime)s - %(levelname)s - %(message)s'):
"""
Instantiate a temporary log capture object
If a path is specified, then log content is sent to that file instead
of a StringIO object.
You can optionally specify a logging level such as logging.INFO if you
wish, otherwise by default the script uses whatever logging has been
set globally. If you set delete to `False` then when using log files,
they are not automatically cleaned up afterwards.
Optionally over-ride the fmt as well if you wish.
"""
# Our memory buffer placeholder
self.__buffer_ptr = StringIO()
# Store our file path as it will determine whether or not we write to
# memory and a file
self.__path = path
self.__delete = delete
# Our logging level tracking
self.__level = level
self.__restore_level = None
# Acquire a pointer to our logger
self.__logger = logging.getLogger(name)
# Prepare our handler
self.__handler = logging.StreamHandler(self.__buffer_ptr) \
if not self.__path else logging.FileHandler(
self.__path, mode='a', encoding='utf-8')
# Use the specified level, otherwise take on the already
# effective level of our logger
self.__handler.setLevel(
self.__level if self.__level is not None
else self.__logger.getEffectiveLevel())
# Prepare our formatter
self.__handler.setFormatter(logging.Formatter(fmt))
|
(self, path=None, level=None, name='apprise', delete=True, fmt='%(asctime)s - %(levelname)s - %(message)s')
|
[
0.0019557634368538857,
-0.019856400787830353,
-0.048832036554813385,
0.03235857933759689,
0.03131060302257538,
-0.019801244139671326,
-0.018716495484113693,
0.06490100920200348,
-0.02671421319246292,
-0.017015831544995308,
0.009928200393915176,
0.038425810635089874,
-0.004293027333915234,
0.009652417153120041,
0.003550710389390588,
0.04747150465846062,
0.003304803743958473,
-0.04511815309524536,
-0.01952546089887619,
0.03544735163450241,
0.01773286797106266,
0.02007702738046646,
-0.022154593840241432,
0.05934857204556465,
-0.004403340630233288,
0.04489752650260925,
-0.04386793449521065,
-0.00848953053355217,
0.03730429336428642,
-0.015829963609576225,
-0.012640069238841534,
-0.03090611845254898,
-0.02143755741417408,
0.035006098449230194,
-0.021878810599446297,
-0.07641036808490753,
-0.03570475056767464,
-0.027155466377735138,
-0.06512163579463959,
0.017981072887778282,
0.03285498917102814,
0.026603899896144867,
-0.021952353417873383,
-0.042544174939394,
0.005676540546119213,
0.05324456840753555,
0.0348222441971302,
0.037432990968227386,
-0.025905247777700424,
-0.02386445179581642,
0.002083313185721636,
0.09038339555263519,
-0.016638927161693573,
-0.019047435373067856,
0.0011824211105704308,
0.04114687442779541,
0.07994039356708527,
0.008029891178011894,
-0.04074238985776901,
-0.046919938176870346,
-0.06398173421621323,
0.046552225947380066,
0.03528188169002533,
-0.00467682583257556,
-0.026695827022194862,
-0.020371194928884506,
-0.047140564769506454,
0.010783128440380096,
0.011307116597890854,
0.015103734098374844,
0.00762540940195322,
-0.0618857815861702,
0.03186216950416565,
-0.0031462281476706266,
-0.018845194950699806,
0.03235857933759689,
-0.06317277252674103,
0.025280138477683067,
0.04188229516148567,
-0.012116081081330776,
-0.0017856970662251115,
0.0029876527842134237,
0.016638927161693573,
0.011343888007104397,
0.028295369818806648,
-0.06651894003152847,
-0.001292734406888485,
0.015793193131685257,
0.024360861629247665,
0.03941863030195236,
-0.056259799748659134,
0.007317451294511557,
-0.043500225991010666,
-0.028938865289092064,
0.0014133895747363567,
-0.0500822551548481,
-0.01828443445265293,
0.023846065625548363,
-0.0000888395807123743,
0.02540883794426918,
-0.0667763352394104,
-0.0026728000957518816,
-0.030667107552289963,
-0.028019586578011513,
-0.041624899953603745,
-0.04857463762164116,
0.0024544717743992805,
-0.022908402606844902,
0.023386426270008087,
-0.007850632071495056,
0.007078438997268677,
-0.011775948107242584,
-0.017291614785790443,
0.02371736615896225,
-0.0038379847537726164,
-0.031200287863612175,
-0.032174721360206604,
-0.02822182886302471,
-0.037837475538253784,
-0.046772852540016174,
0.052251748740673065,
-0.02331288531422615,
-0.03414197638630867,
0.06504809856414795,
0.03697335347533226,
0.004612476099282503,
-0.008609036915004253,
-0.033480096608400345,
0.06387142091989517,
0.0060212695971131325,
0.021713340654969215,
0.02219136618077755,
0.019047435373067856,
-0.0006141924532130361,
0.038572896271944046,
-0.01015801914036274,
-0.02198912389576435,
0.05004548281431198,
-0.03353525325655937,
0.053023941814899445,
-0.00882506649941206,
-0.0914129838347435,
-0.009974163956940174,
-0.022798089310526848,
0.031145131215453148,
0.031770240515470505,
0.03601730242371559,
0.009004325605928898,
-0.038278728723526,
-0.006848619319498539,
0.011794334277510643,
-0.02009541168808937,
-0.01877165213227272,
0.07313773781061172,
0.036329858005046844,
-0.0364401713013649,
-0.01838555559515953,
0.017576592043042183,
-0.0003547837841324508,
-0.02217298001050949,
0.011628864333033562,
0.006039654836058617,
0.006002883892506361,
-0.03769038990139961,
-0.0005992542137391865,
0.027063537389039993,
0.01176675595343113,
-0.026125874370336533,
-0.012649262323975563,
-0.0029164087027311325,
-0.029435275122523308,
0.03360879421234131,
-0.010360260494053364,
0.05706876516342163,
-0.039749570190906525,
0.052251748740673065,
0.00045935160596854985,
0.016234446316957474,
-0.04879526421427727,
0.005308829247951508,
0.017153723165392876,
-0.02599717490375042,
-0.008880223147571087,
0.010608465410768986,
0.045963890850543976,
-0.005625979974865913,
0.021180160343647003,
-0.000511922815348953,
-0.003681707428768277,
0.0462212860584259,
0.0038885450921952724,
-0.028938865289092064,
0.03912446275353432,
-0.06159161031246185,
0.06537903845310211,
0.053796134889125824,
-0.04346345365047455,
-0.06376110762357712,
0.051479555666446686,
0.027063537389039993,
-0.034031663089990616,
0.04074238985776901,
-0.02596040442585945,
-0.0649377852678299,
0.010452188551425934,
0.017420314252376556,
0.0808228999376297,
0.05364905297756195,
-0.11825589090585709,
0.045191697776317596,
-0.00583741394802928,
0.013375491835176945,
-0.0017167512560263276,
0.04225000739097595,
0.02103307656943798,
-0.04136750102043152,
-0.05059704929590225,
0.058907318860292435,
-0.011205996386706829,
0.03695496544241905,
0.06309922784566879,
0.028405683115124702,
-0.0826614573597908,
0.038609668612480164,
-0.028313755989074707,
0.024213775992393494,
0.05703199282288551,
-0.014257998205721378,
-0.003723075147718191,
-0.005952323786914349,
0.03131060302257538,
0.003054300555959344,
0.017824796959757805,
0.02371736615896225,
-0.01850506104528904,
0.0021557065192610025,
-0.020720520988106728,
0.009542103856801987,
-0.030483251437544823,
-0.002790007973089814,
-0.008273500017821789,
-0.008098836988210678,
0.05901763215661049,
0.03447291627526283,
0.04059530794620514,
-0.042580947279930115,
-0.021143389865756035,
0.062143176794052124,
0.02007702738046646,
-0.012575720436871052,
0.018027037382125854,
0.04206615313887596,
-0.06585706025362015,
-0.0178156029433012,
0.016767626628279686,
-0.03465677425265312,
0.017622554674744606,
-0.021106617525219917,
-0.02123531699180603,
-0.03985988348722458,
0.000981329008936882,
-0.05239883437752724,
0.06802655756473541,
-0.025886861607432365,
0.012511370703577995,
-0.02583170495927334,
0.013614503666758537,
-0.08920671790838242,
0.04111010208725929,
0.04250740632414818,
0.04710379242897034,
0.03824195638298988,
0.01537032425403595,
-0.0011824211105704308,
-0.09001567959785461,
-0.06423912942409515,
-0.012364285998046398,
-0.034785471856594086,
0.02939850278198719,
0.06048847734928131,
0.018431520089507103,
0.0390876904129982,
0.08324979990720749,
0.010645236819982529,
0.019635774195194244,
-0.010700393468141556,
-0.03723074868321419,
0.013237600214779377,
0.03791101649403572,
0.007266890723258257,
-0.03239534795284271,
0.05203112214803696,
-0.0431692861020565,
0.01991155743598938,
0.014000601135194302,
-0.017788024619221687,
-0.09310445189476013,
-0.0386832095682621,
0.011022140271961689,
0.007648391183465719,
-0.0409262478351593,
-0.03469354286789894,
0.021290473639965057,
0.039712801575660706,
-0.017374349758028984,
-0.019194521009922028,
-0.02710030972957611,
-0.012667647562921047,
0.03853612393140793,
0.016280408948659897,
0.029435275122523308,
0.04004374146461487,
0.02011379785835743,
-0.013494998216629028,
0.03246889263391495,
0.04945714399218559,
0.02125370316207409,
0.009114638902246952,
0.014524589292705059,
0.07516015321016312,
-0.03741460666060448,
0.02882855199277401,
-0.0004811844555661082,
0.014359119348227978,
0.011509357951581478,
-0.04945714399218559,
0.01950707472860813,
0.04247063398361206,
-0.01785237528383732,
0.04747150465846062,
-0.08420584350824356,
0.024342475458979607,
-0.023809295147657394,
-0.017475470900535583,
0.01858779601752758,
-0.03362718224525452,
-0.047912757843732834,
-0.038278728723526,
0.01657457835972309,
-0.05423738807439804,
-0.014110914431512356,
0.011003755033016205,
-0.014414275996387005,
0.005699522327631712,
-0.02822182886302471,
-0.0013088217237964272,
0.03504287078976631,
-0.03780070319771767,
0.052987173199653625,
0.01950707472860813,
0.07357899099588394,
-0.06721758842468262,
-0.04717733711004257,
-0.022908402606844902,
0.005915552377700806,
-0.05728939175605774,
-0.03333301097154617,
-0.015048577450215816,
0.01681359112262726,
0.0008526301244273782,
0.018459098413586617,
0.024379247799515724,
-0.03809487074613571,
-0.053391654044389725,
0.05166340991854668,
-0.013044551946222782,
-0.00353232491761446,
-0.009307687170803547,
-0.028534382581710815,
0.031917326152324677,
0.002431489760056138,
-0.05044996365904808,
0.027412863448262215,
0.05004548281431198,
-0.05239883437752724,
0.021731726825237274,
-0.004628563765436411,
-0.01490149274468422,
-0.030648721382021904,
-0.016565386205911636,
0.02713708020746708,
0.0364401713013649,
-0.015324360691010952,
-0.01685955375432968,
-0.035171568393707275,
-0.02425054833292961,
-0.012106887996196747,
0.0519208088517189,
0.04291188716888428,
0.033480096608400345,
0.019194521009922028,
-0.01590350642800331,
-0.006972722243517637,
-0.06482747197151184,
0.02903079241514206,
-0.0010899187764152884,
0.004853786900639534,
0.08413230627775192,
-0.005189323332160711,
0.018845194950699806,
-0.03791101649403572,
0.03849935531616211,
-0.04004374146461487,
0.028111515566706657,
-0.009937392547726631,
0.04085270315408707,
0.019488688558340073,
0.0019052032148465514,
0.05067059025168419,
-0.023974765092134476,
0.06015753746032715,
-0.015995433554053307,
0.004628563765436411,
-0.02881016582250595,
0.037469763308763504,
-0.020260881632566452,
0.020904377102851868,
-0.023478355258703232,
-0.0033944332972168922,
0.004596388898789883,
-0.05059704929590225,
0.07049021869897842,
-0.005230690818279982,
0.009459368884563446,
0.03890383616089821,
-0.0084481630474329,
-0.06350371241569519,
0.001352487481199205,
0.013825938105583191,
0.011729984544217587,
-0.04195583984255791,
0.02219136618077755,
-0.011095683090388775,
0.02391960844397545,
0.021897196769714355,
0.04324282705783844,
-0.03302045911550522,
0.04592711851000786,
-0.008953765965998173,
0.05743647739291191,
0.007423168048262596,
-0.022522306069731712,
0.04158812761306763,
-0.014552167616784573,
-0.005979902110993862,
-0.004775648005306721,
-0.0038977377116680145,
0.048832036554813385,
0.0106360437348485,
0.040668848901987076,
0.02713708020746708,
0.018008651211857796,
-0.026769369840621948,
-0.04629483073949814,
-0.019856400787830353,
-0.06295214593410492,
-0.016565386205911636,
-0.014837143011391163,
0.0602678507566452,
-0.012557334266602993,
0.03541057929396629,
0.047287650406360626,
0.01785237528383732,
-0.0545683279633522,
-0.0592382587492466,
0.015397902578115463,
0.08317625522613525,
0.009808694012463093,
-0.025703007355332375,
-0.047912757843732834,
0.09001567959785461,
0.052435606718063354,
-0.06957094371318817,
0.03449130430817604,
-0.02579493448138237,
-0.012492985464632511,
0.02331288531422615,
-0.04555940628051758,
0.009408808313310146,
0.0021235316526144743,
-0.023000329732894897,
-0.03412359207868576,
0.013752395287156105,
0.01137146633118391,
-0.03982311487197876,
-0.013632889837026596,
0.030078768730163574,
-0.019617388024926186,
0.014487817883491516,
0.03371910750865936,
-0.025868477299809456,
0.01956223137676716,
-0.05409030616283417,
-0.05633334442973137,
-0.0027969025541096926,
0.0095696821808815,
-0.03171508386731148,
0.00014097987150307745,
-0.012566527351737022,
-0.020058641210198402,
0.001032463856972754,
-0.03204602375626564,
-0.022044280543923378,
0.003033616580069065,
0.02391960844397545,
-0.008765313774347305,
0.039712801575660706,
0.004690614994615316,
-0.048648182302713394,
-0.02410346269607544,
-0.0032749271485954523,
0.06563643366098404,
-0.07346867769956589,
0.025739777833223343,
-0.06236380338668823,
0.005662751384079456,
-0.08405876159667969,
-0.051332470029592514,
-0.03474869951605797,
-0.023662209510803223,
0.03153122961521149,
0.09545780718326569,
0.0011950611369684339,
-0.06633508205413818,
-0.032928530126810074,
-0.034436147660017014,
0.03769038990139961,
0.05611271783709526,
0.045449092984199524,
0.029674286022782326,
-0.0016569981817156076,
-0.05228852108120918,
-0.015039384365081787,
-0.012272358871996403,
0.0470302514731884,
0.09192778170108795,
-0.012465407140552998,
-0.0598633699119091,
-0.026291344314813614,
-0.03769038990139961,
-0.001424880581907928,
0.03241373598575592,
-0.030262624844908714,
-0.07692516595125198,
-0.03625631704926491,
-0.008117223158478737,
0.0013616802170872688,
0.02031603828072548,
0.03890383616089821,
-0.022651005536317825,
0.0557817779481411,
-0.04802307114005089,
0.041257187724113464,
-0.007901192642748356,
-0.01547144539654255,
-0.013062937185168266,
0.013807551935315132,
-0.03691819682717323,
0.055083125829696655,
-0.02220975048840046,
0.007910385727882385,
0.019010664895176888,
-0.049788083881139755,
0.03791101649403572,
-0.04136750102043152,
-0.019764471799135208,
0.04736119136214256,
0.07413055747747421,
-0.005607594270259142,
-0.019856400787830353,
-0.004936521872878075,
0.0390876904129982,
-0.01480956468731165,
0.016381530091166496,
-0.03835226967930794,
0.04085270315408707,
0.051111843436956406,
0.060782648622989655,
0.07210814952850342,
0.07846955209970474,
0.031935710459947586,
-0.009064079262316227,
-0.044088561087846756,
-0.04850109666585922,
-0.03417874872684479,
-0.03677111119031906,
0.03469354286789894,
0.036311473697423935,
-0.023018715903162956,
0.04184552654623985,
0.005028449464589357,
0.016160903498530388,
0.0012283849064260721,
-0.06295214593410492,
-0.025372067466378212,
0.005736293271183968,
0.051111843436956406,
-0.029472045600414276,
-0.0008451610337942839,
0.0296191293746233,
-0.047508276998996735,
-0.009013518691062927,
-0.06850457936525345,
0.011353081092238426,
-0.02502274140715599,
-0.03702851012349129,
0.027045153081417084,
0.05228852108120918,
-0.018762459978461266,
0.046736083924770355,
-0.0443827323615551,
-0.0033645567018538713,
0.02426893264055252,
0.0333881676197052,
0.007597831077873707,
-0.002539504785090685,
-0.0030359148513525724,
0.02482050098478794,
0.0023499038070440292,
0.042985428124666214,
0.0070922281593084335,
-0.02822182886302471,
-0.02695322409272194,
0.01724565215408802,
-0.05181049555540085,
-0.021566256880760193,
-0.013550154864788055,
-0.03642178699374199,
-0.03805810213088989,
-0.003890843130648136,
-0.0015581758925691247,
-0.012584912590682507,
-0.016786012798547745,
0.00009731417230796069,
0.008894012309610844,
0.008039084263145924,
-0.017870759591460228,
0.002482050098478794,
0.029122719541192055,
0.013945444487035275,
0.05236206203699112,
-0.0557817779481411,
-0.01773286797106266,
-0.047545045614242554,
-0.03697335347533226,
-0.04327959939837456,
0.07111532986164093,
-0.03316754102706909,
0.020426351577043533,
-0.03245050460100174,
-0.0048354011960327625,
0.035355422645807266,
0.013026165775954723,
0.02369898185133934,
-0.03682626783847809,
0.0036311473231762648,
0.05199434980750084,
0.03160477057099342,
0.02882855199277401,
0.07508660852909088,
-0.022669389843940735,
0.014864722266793251,
0.031237058341503143,
0.04243386164307594,
0.0042378706857562065,
-0.05390644818544388,
0.03180701285600662,
0.004548126831650734,
0.017319193109869957,
0.02371736615896225,
-0.033480096608400345,
-0.020996304228901863,
-0.011867876164615154,
-0.0016489545814692974,
-0.014781986363232136,
0.011877069249749184,
0.055634692311286926,
0.00892618764191866,
0.0184223260730505,
-0.0029324961360543966,
-0.008852644823491573,
0.09685510396957397,
-0.0015892015071585774,
-0.06159161031246185,
0.03564959391951561,
0.07192429155111313,
-0.023459969088435173,
0.01858779601752758,
-0.0039896657690405846,
-0.04291188716888428,
0.0032358577009290457,
0.025133054703474045,
-0.014230419881641865,
-0.03642178699374199,
-0.09148652851581573,
0.007087631616741419,
-0.0019810437224805355,
-0.03342493996024132,
0.01575642079114914,
-0.04261771962046623,
-0.0036977948620915413,
-0.017576592043042183,
0.03506125509738922,
-0.014110914431512356,
-0.004072400741279125,
-0.08435293287038803,
-0.017383543774485588,
-0.007561059668660164,
0.02581332065165043,
0.007308258209377527,
0.028920479118824005,
0.05695845186710358,
0.036715954542160034,
-0.013706431724131107,
0.01937837526202202,
0.030244238674640656,
-0.04842755198478699,
-0.047508276998996735,
-0.0519208088517189,
0.016455072909593582,
-0.008370024152100086,
-0.017806410789489746,
0.0013122690143063664,
-0.03226665034890175,
-0.000022551033907802776,
-0.018900351598858833,
-0.0877358689904213,
0.00977192260324955,
0.035962145775556564,
-0.06953417509794235,
-0.027412863448262215,
0.017291614785790443,
-0.060562022030353546,
0.007368011400103569,
-0.00006973584095248953,
-0.041661668568849564,
-0.02996845543384552,
-0.03355363756418228,
0.0845000147819519,
0.050707362592220306,
-0.017705289646983147,
-0.014184456318616867,
-0.004106873646378517,
0.05515666678547859,
-0.008549283258616924,
-0.009735152125358582,
0.03296530246734619,
0.050523508340120316,
-0.06883551925420761,
-0.020628593862056732,
0.024324091151356697,
-0.03397650644183159,
-0.00626487797126174,
0.04386793449521065,
-0.009882235899567604,
-0.07971976697444916,
-0.029453659430146217,
-0.01808219403028488,
0.007956349290907383,
0.009114638902246952,
-0.03883029520511627,
-0.032174721360206604,
-0.020702136680483818,
0.050008710473775864,
0.019102592021226883,
0.0861179456114769,
-0.004715894814580679,
0.01590350642800331
] |
722,023
|
apprise.plugins.base
|
NotifyBase
|
This is the base class for all notification services
|
class NotifyBase(URLBase):
"""
This is the base class for all notification services
"""
# An internal flag used to test the state of the plugin. If set to
# False, then the plugin is not used. Plugins can disable themselves
# due to enviroment issues (such as missing libraries, or platform
# dependencies that are not present). By default all plugins are
# enabled.
enabled = True
# The category allows for parent inheritance of this object to alter
# this when it's function/use is intended to behave differently. The
# following category types exist:
#
# native: Is a native plugin written/stored in `apprise/plugins/Notify*`
# custom: Is a custom plugin written/stored in a users plugin directory
# that they loaded at execution time.
category = 'native'
# Some plugins may require additional packages above what is provided
# already by Apprise.
#
# Use this section to relay this information to the users of the script to
# help guide them with what they need to know if they plan on using your
# plugin. The below configuration should otherwise accomodate all normal
# situations and will not requrie any updating:
requirements = {
# Use the description to provide a human interpretable description of
# what is required to make the plugin work. This is only nessisary
# if there are package dependencies. Setting this to default will
# cause a general response to be returned. Only set this if you plan
# on over-riding the default. Always consider language support here.
# So before providing a value do the following in your code base:
#
# from apprise.AppriseLocale import gettext_lazy as _
#
# 'details': _('My detailed requirements')
'details': None,
# Define any required packages needed for the plugin to run. This is
# an array of strings that simply look like lines residing in a
# `requirements.txt` file...
#
# As an example, an entry may look like:
# 'packages_required': [
# 'cryptography < 3.4`,
# ]
'packages_required': [],
# Recommended packages identify packages that are not required to make
# your plugin work, but would improve it's use or grant it access to
# full functionality (that might otherwise be limited).
# Similar to `packages_required`, you would identify each entry in
# the array as you would in a `requirements.txt` file.
#
# - Do not re-provide entries already in the `packages_required`
'packages_recommended': [],
}
# The services URL
service_url = None
# A URL that takes you to the setup/help of the specific protocol
setup_url = None
# Most Servers do not like more then 1 request per 5 seconds, so 5.5 gives
# us a safe play range. Override the one defined already in the URLBase
request_rate_per_sec = 5.5
# Allows the user to specify the NotifyImageSize object
image_size = None
# The maximum allowable characters allowed in the body per message
body_maxlen = 32768
# Defines the maximum allowable characters in the title; set this to zero
# if a title can't be used. Titles that are not used but are defined are
# automatically placed into the body
title_maxlen = 250
# Set the maximum line count; if this is set to anything larger then zero
# the message (prior to it being sent) will be truncated to this number
# of lines. Setting this to zero disables this feature.
body_max_line_count = 0
# Default Notify Format
notify_format = NotifyFormat.TEXT
# Default Overflow Mode
overflow_mode = OverflowMode.UPSTREAM
# Default Emoji Interpretation
interpret_emojis = False
# Support Attachments; this defaults to being disabled.
# Since apprise allows you to send attachments without a body or title
# defined, by letting Apprise know the plugin won't support attachments
# up front, it can quickly pass over and ignore calls to these end points.
# You must set this to true if your application can handle attachments.
# You must also consider a flow change to your notification if this is set
# to True as well as now there will be cases where both the body and title
# may not be set. There will never be a case where a body, or attachment
# isn't set in the same call to your notify() function.
attachment_support = False
# Default Title HTML Tagging
# When a title is specified for a notification service that doesn't accept
# titles, by default apprise tries to give a plesant view and convert the
# title so that it can be placed into the body. The default is to just
# use a <b> tag. The below causes the <b>title</b> to get generated:
default_html_tag_id = 'b'
# Here is where we define all of the arguments we accept on the url
# such as: schema://whatever/?overflow=upstream&format=text
# These act the same way as tokens except they are optional and/or
# have default values set if mandatory. This rule must be followed
template_args = dict(URLBase.template_args, **{
'overflow': {
'name': _('Overflow Mode'),
'type': 'choice:string',
'values': OVERFLOW_MODES,
# Provide a default
'default': overflow_mode,
# look up default using the following parent class value at
# runtime. The variable name identified here (in this case
# overflow_mode) is checked and it's result is placed over-top of
# the 'default'. This is done because once a parent class inherits
# this one, the overflow_mode already set as a default 'could' be
# potentially over-ridden and changed to a different value.
'_lookup_default': 'overflow_mode',
},
'format': {
'name': _('Notify Format'),
'type': 'choice:string',
'values': NOTIFY_FORMATS,
# Provide a default
'default': notify_format,
# look up default using the following parent class value at
# runtime.
'_lookup_default': 'notify_format',
},
'emojis': {
'name': _('Interpret Emojis'),
# SSL Certificate Authority Verification
'type': 'bool',
# Provide a default
'default': interpret_emojis,
# look up default using the following parent class value at
# runtime.
'_lookup_default': 'interpret_emojis',
},
})
#
# Overflow Defaults / Configuration applicable to SPLIT mode only
#
# Display Count [X/X]
# ^^^^^^
# \\\\\\
# 6 characters (space + count)
# Display Count [XX/XX]
# ^^^^^^^^
# \\\\\\\\
# 8 characters (space + count)
# Display Count [XXX/XXX]
# ^^^^^^^^^^
# \\\\\\\\\\
# 10 characters (space + count)
# Display Count [XXXX/XXXX]
# ^^^^^^^^^^^^
# \\\\\\\\\\\\
# 12 characters (space + count)
#
# Given the above + some buffer we come up with the following:
# If this value is exceeded, display counts automatically shut off
overflow_max_display_count_width = 12
# The number of characters to reserver for whitespace buffering
# This is detected automatically, but you can enforce a value if
# you desire:
overflow_buffer = 0
# the min accepted length of a title to allow for a counter display
overflow_display_count_threshold = 130
# Whether or not when over-flow occurs, if the title should be repeated
# each time the message is split up
# - None: Detect
# - True: Always display title once
# - False: Display the title for each occurance
overflow_display_title_once = None
# If this is set to to True:
# The titl
|
(**kwargs)
|
[
-0.004718120209872723,
-0.086675263941288,
-0.05102476850152016,
-0.0018786139553412795,
0.06350243836641312,
-0.01975260116159916,
0.006773593835532665,
0.026671025902032852,
-0.025668354704976082,
-0.025356413796544075,
0.010567029006779194,
0.0018410137854516506,
0.026871560141444206,
-0.01016596145927906,
-0.052361663430929184,
0.010277369059622288,
0.048083603382110596,
-0.047103215008974075,
0.0386139415204525,
-0.05646146833896637,
0.019630052149295807,
-0.03781180456280708,
0.018114907667040825,
0.011653254739940166,
0.01983058638870716,
0.03092680312693119,
0.018738791346549988,
0.008583970367908478,
0.008383436128497124,
-0.022805174812674522,
-0.054322440177202225,
0.009269128553569317,
-0.002799120731651783,
0.026203112676739693,
0.010243946686387062,
-0.030035540461540222,
-0.016599761322140694,
0.03241966664791107,
-0.06354700773954391,
0.041354574263095856,
-0.02464340440928936,
-0.0038992727641016245,
0.055793020874261856,
-0.051514964550733566,
-0.001753280172124505,
0.04311481490731239,
-0.016009299084544182,
0.09402817487716675,
0.04429573938250542,
-0.012165730819106102,
0.0056706564500927925,
-0.024955345317721367,
-0.03128330782055855,
0.013680877164006233,
-0.07482147216796875,
0.10071264207363129,
0.04017364978790283,
0.10472332686185837,
-0.03605156019330025,
-0.022326121106743813,
-0.018437989056110382,
0.020911242812871933,
0.02941165678203106,
0.0011837078491225839,
0.00022438225278165191,
0.0021585258655250072,
0.04231267794966698,
-0.008840207941830158,
-0.019897431135177612,
-0.013435780070722103,
0.02129002846777439,
-0.022927723824977875,
-0.05115845799446106,
0.005893472116440535,
0.08088205754756927,
-0.01137473527342081,
0.011218764819204807,
0.00843357015401125,
0.004542652517557144,
0.02457655966281891,
0.05712991580367088,
0.01252223551273346,
0.05106933042407036,
0.001690613222308457,
0.07901040464639664,
-0.02361845225095749,
0.05227253586053848,
0.016131848096847534,
0.05712991580367088,
0.06564147025346756,
-0.03805690258741379,
-0.009024031460285187,
0.013079274445772171,
-0.016243256628513336,
-0.00939724687486887,
-0.022114446386694908,
-0.027851948514580727,
-0.044696807861328125,
-0.0051164026372134686,
-0.030614862218499184,
-0.05512457713484764,
0.01232170220464468,
-0.06688924133777618,
-0.07433127611875534,
0.02468796633183956,
-0.06974127888679504,
-0.021880490705370903,
0.04538753628730774,
-0.01373658049851656,
0.006935134995728731,
0.0023423489183187485,
-0.0962563306093216,
-0.06800331920385361,
-0.03184034675359726,
0.003214114811271429,
0.005617737770080566,
-0.04048559069633484,
0.005589886102825403,
0.06314593553543091,
-0.022404106333851814,
-0.05253991484642029,
-0.009213424287736416,
-0.05855593457818031,
-0.013212963938713074,
0.024866219609975815,
0.03531626984477043,
-0.003492634277790785,
0.011530706658959389,
0.07339545339345932,
-0.033533744513988495,
-0.02174680121243,
0.024286897853016853,
-0.016811436042189598,
-0.0433821938931942,
0.009898582473397255,
-0.03155068680644035,
-0.009369395673274994,
0.030035540461540222,
-0.00919671356678009,
0.05548107996582985,
-0.025935733690857887,
0.02994641475379467,
-0.014828377403318882,
0.014483013190329075,
-0.0032280408777296543,
-0.031082773581147194,
0.07803001999855042,
-0.015173741616308689,
-0.04527612775564194,
0.00458443071693182,
0.02745088003575802,
-0.01422677468508482,
-0.025802044197916985,
0.0013605676358565688,
0.0482172928750515,
0.024286897853016853,
-0.013758862391114235,
-0.02130117081105709,
-0.01086226012557745,
-0.005016135983169079,
0.020454470068216324,
-0.031617529690265656,
0.012990148738026619,
0.008333303034305573,
-0.03348918259143829,
-0.012722769752144814,
0.05614952743053436,
-0.034491851925849915,
0.03705423325300217,
0.09572157263755798,
0.0072637880221009254,
0.006840438582003117,
-0.025334132835268974,
0.0067178900353610516,
-0.03128330782055855,
0.096434585750103,
0.003915983717888594,
-0.009770463220775127,
-0.019886290654540062,
0.04445170983672142,
-0.0045649344101548195,
-0.017669275403022766,
-0.07147923856973648,
0.0028353282250463963,
0.015630513429641724,
0.03803462162613869,
0.06087321788072586,
-0.0010026701493188739,
0.004414533730596304,
0.023551607504487038,
-0.04097578674554825,
-0.026403646916151047,
0.04598913714289665,
0.012288279831409454,
-0.020621582865715027,
0.043137095868587494,
0.005283514503389597,
-0.06368069350719452,
-0.013959396630525589,
-0.01107950508594513,
-0.06332419067621231,
0.023306509479880333,
-0.012199153192341328,
-0.0241754911839962,
0.01636580377817154,
-0.004099806770682335,
0.029344812035560608,
0.003063714364543557,
-0.03678685426712036,
-0.008918194100260735,
-0.045097872614860535,
-0.0001881747302832082,
-0.04538753628730774,
0.01833772286772728,
0.009820597246289253,
-0.06439370661973953,
0.006027161609381437,
0.05209428444504738,
-0.046122826635837555,
0.00043797187390737236,
0.009982137940824032,
-0.013346653431653976,
-0.03444729000329971,
-0.006818156689405441,
-0.05360943078994751,
0.05837768316268921,
0.061096034944057465,
0.008205183781683445,
0.05606039986014366,
-0.014338183216750622,
-0.00020714887068606913,
0.0007687137695029378,
0.003364515257999301,
0.06889458000659943,
0.02129002846777439,
-0.02361845225095749,
-0.011708959005773067,
0.030570298433303833,
0.0011649077059701085,
0.030703987926244736,
0.026269957423210144,
-0.012611362151801586,
0.02273833006620407,
0.020432189106941223,
-0.01740189641714096,
-0.06965215504169464,
-0.018103767186403275,
0.0002738194598350674,
-0.02756228856742382,
-0.02994641475379467,
0.029099715873599052,
-0.06965215504169464,
-0.021379156038165092,
-0.031149618327617645,
-0.013803425244987011,
-0.015106896869838238,
-0.013324371539056301,
0.010555888526141644,
0.015162600204348564,
-0.04585544764995575,
-0.0033088114578276873,
-0.028720928356051445,
-0.03727704659104347,
0.08141681551933289,
0.02118976227939129,
0.009007319808006287,
-0.006550778169184923,
-0.0011398409260436893,
-0.026180831715464592,
0.005411633290350437,
0.03192947432398796,
0.05570389702916145,
-0.0483064204454422,
-0.0002529305056668818,
-0.04097578674554825,
0.0032363964710384607,
-0.013680877164006233,
-0.002825580071657896,
-0.03975030034780502,
-0.04723690450191498,
0.00915772095322609,
0.004097021650522947,
0.07139011472463608,
0.013814566656947136,
0.04393923282623291,
-0.04157738760113716,
0.0041248733177781105,
0.03491520136594772,
-0.04164423421025276,
-0.021568547934293747,
-0.013948255218565464,
0.08819040656089783,
0.01973032020032406,
-0.011965196579694748,
-0.05209428444504738,
0.048484671860933304,
-0.03344462066888809,
0.04959874972701073,
0.018437989056110382,
-0.07348457723855972,
-0.009603351354598999,
-0.014772673137485981,
0.006606481969356537,
-0.043137095868587494,
-0.04723690450191498,
-0.0169117022305727,
0.03807918354868889,
-0.0042724888771772385,
0.05846681073307991,
-0.014739250764250755,
0.041354574263095856,
-0.017023110762238503,
0.007497744634747505,
-0.008784504607319832,
-0.01636580377817154,
0.029835006222128868,
0.0725933164358139,
0.013424638658761978,
0.02077755331993103,
0.06047214940190315,
-0.020900102332234383,
0.013803425244987011,
-0.007731700781732798,
0.03480379283428192,
0.07112273573875427,
0.0041025918908417225,
0.02553466521203518,
0.004169436637312174,
0.0009302550461143255,
-0.017658134922385216,
-0.01016039028763771,
0.013368935324251652,
-0.02843126840889454,
-0.02754000574350357,
-0.02747316099703312,
-0.04576632007956505,
0.007915523834526539,
-0.04393923282623291,
0.011430439539253712,
-0.06501758843660355,
0.02361845225095749,
0.012299420312047005,
-0.09411730617284775,
0.027762820944190025,
0.00662319315597415,
-0.03812374547123909,
0.049063991755247116,
-0.01645493134856224,
0.06697836518287659,
-0.03317724168300629,
-0.003935480490326881,
-0.039393793791532516,
-0.0032057592179626226,
0.01499548926949501,
0.05949176102876663,
-0.1110512837767601,
-0.033088114112615585,
-0.0625220537185669,
0.039393793791532516,
-0.010583740659058094,
-0.019084155559539795,
-0.0006545207579620183,
-0.036875978112220764,
0.049019429832696915,
-0.0630568116903305,
-0.015630513429641724,
0.0436050109565258,
0.05352030321955681,
0.06225467473268509,
-0.019440660253167152,
0.015574809163808823,
0.015686217695474625,
0.01209888607263565,
-0.03460326045751572,
0.006222125142812729,
-0.011920633725821972,
0.015340852551162243,
0.012388546951115131,
-0.07032059878110886,
-0.03587330877780914,
0.022972287610173225,
0.05445612967014313,
-0.05641690641641617,
0.018014639616012573,
0.007302780635654926,
-0.03090452216565609,
0.016053862869739532,
0.02370757795870304,
-0.025668354704976082,
-0.01355832815170288,
0.0483955442905426,
-0.008104916661977768,
-0.023417918011546135,
0.024799374863505363,
-0.061541665345430374,
-0.055837586522102356,
0.01877221278846264,
0.0386362224817276,
0.007235935889184475,
-0.032597921788692474,
0.03533855080604553,
-0.0482172928750515,
0.015630513429641724,
0.01594245433807373,
0.020877819508314133,
-0.007146809715777636,
0.06564147025346756,
0.027339471504092216,
0.01012139767408371,
0.048039041459560394,
-0.001204596715979278,
-0.004837883170694113,
-0.07281613349914551,
-0.03511573746800423,
-0.04683583602309227,
-0.019217845052480698,
-0.056684285402297974,
0.021479422226548195,
-0.02026507817208767,
-0.013825707137584686,
-0.016009299084544182,
0.024019520729780197,
0.044741369783878326,
0.028208453208208084,
-0.044184330850839615,
0.02222585491836071,
-0.01544111967086792,
-0.00003881865268340334,
-0.0339348129928112,
0.005523041356354952,
0.01745760068297386,
0.031617529690265656,
-0.03950520232319832,
-0.05472350865602493,
0.0039326949045062065,
-0.022014180198311806,
0.023841267451643944,
-0.04220127314329147,
-0.042713746428489685,
-0.03669772669672966,
-0.026225393638014793,
0.004590000957250595,
0.048529233783483505,
0.013212963938713074,
0.05062370002269745,
-0.009937575086951256,
-0.07321719825267792,
-0.022860879078507423,
-0.05614952743053436,
-0.033110395073890686,
-0.07491059601306915,
0.03660859912633896,
0.012967866845428944,
-0.01139144692569971,
-0.06813700497150421,
-0.0529855452477932,
-0.003049788298085332,
0.03143927827477455,
-0.022805174812674522,
-0.016711167991161346,
0.005105262156575918,
0.006511785555630922,
-0.07397477328777313,
-0.019061872735619545,
0.0032113296911120415,
0.016142988577485085,
0.033154960721731186,
-0.027161220088601112,
-0.05944719910621643,
0.010099116712808609,
0.005247307009994984,
-0.019061872735619545,
0.015563668683171272,
0.030570298433303833,
-0.007698278408497572,
0.0019231770420446992,
0.03137243539094925,
0.039371512830257416,
-0.03143927827477455,
-0.04407292231917381,
0.02263806387782097,
-0.038391124457120895,
-0.0016279463889077306,
-0.02952306531369686,
-0.032664764672517776,
-0.06635448336601257,
0.07054341584444046,
-0.0580657422542572,
-0.014137648977339268,
-0.004484163597226143,
-0.01840456761419773,
0.006550778169184923,
-0.02269376814365387,
0.03273160755634308,
0.036452628672122955,
0.019986558705568314,
-0.008918194100260735,
0.0007492174045182765,
0.05022263154387474,
-0.07553448528051376,
-0.009553218260407448,
-0.04982156306505203,
0.006433799862861633,
0.0016585835255682468,
0.05035632103681564,
-0.004542652517557144,
-0.0009086697828024626,
0.06426001340150833,
0.011965196579694748,
-0.011319031938910484,
-0.05227253586053848,
-0.01836000382900238,
0.031639814376831055,
-0.003993969410657883,
-0.004035747144371271,
-0.04195617511868477,
0.01736847497522831,
0.05111389607191086,
-0.003668101504445076,
-0.04786078631877899,
0.043181661516427994,
-0.002808868885040283,
0.003342233831062913,
-0.0240640826523304,
-0.0032503223046660423,
0.036029279232025146,
-0.02843126840889454,
-0.006060583982616663,
-0.0024356527719646692,
0.03997311741113663,
0.0019802735187113285,
0.028876900672912598,
0.036474909633398056,
-0.027606850489974022,
0.06020477041602135,
0.03968345746397972,
-0.10302992910146713,
-0.01647721230983734,
-0.006339103449136019,
0.01782524585723877,
-0.02562379278242588,
0.023507043719291687,
-0.06483933329582214,
-0.05347574129700661,
-0.007664856035262346,
-0.033622872084379196,
0.06408176571130753,
0.030681705102324486,
-0.005035632289946079,
-0.06376981735229492,
-0.021590830758213997,
-0.0008362547378055751,
0.05164865404367447,
-0.01735733449459076,
-0.0010326110059395432,
-0.005531396716833115,
0.02901058830320835,
-0.009870730340480804,
0.05204971879720688,
0.012165730819106102,
-0.05106933042407036,
-0.017179081216454506,
-0.045097872614860535,
-0.013992819003760815,
-0.039260104298591614,
0.0484401099383831,
0.0035511234309524298,
0.03970573842525482,
-0.05031175911426544,
0.008790074847638607,
0.0132463863119483,
-0.008221895433962345,
-0.021134058013558388,
0.010739711113274097,
0.009302550926804543,
-0.0027670911513268948,
0.049063991755247116,
0.022437529638409615,
0.020688427612185478,
0.02033192291855812,
-0.006890572141855955,
0.0021724519319832325,
0.01232170220464468,
-0.05552564188838005,
-0.0241754911839962,
0.026804715394973755,
0.046657584607601166,
0.06354700773954391,
0.034023940563201904,
0.04719234257936478,
-0.027718259021639824,
-0.013212963938713074,
0.01256679929792881,
-0.02077755331993103,
0.00026563796564005315,
0.03471466898918152,
0.06488389521837234,
-0.051470398902893066,
0.042334962636232376,
0.012722769752144814,
-0.009881870821118355,
0.018126048147678375,
-0.04387238994240761,
-0.027673695236444473,
0.03799005597829819,
-0.02943393960595131,
-0.03680913522839546,
0.021579690277576447,
-0.018192892894148827,
-0.0025080679915845394,
0.019496364519000053,
-0.009274698793888092,
-0.002403623191639781,
0.059135254472494125,
-0.052406225353479385,
0.022860879078507423,
-0.03411306440830231,
0.00821075402200222,
0.03571733832359314,
-0.03819059208035469,
0.005876760929822922,
0.05686253681778908,
-0.0033561596646904945,
-0.0068794311955571175,
-0.029545346274971962,
0.023462481796741486,
-0.014917503111064434,
-0.04581088572740555,
-0.05499088764190674,
0.0009977960726246238,
0.042736027389764786,
0.02264920435845852,
0.018983887508511543,
0.016811436042189598,
0.00819961354136467,
0.02069956809282303,
0.0024078008718788624,
0.0016725094756111503,
0.009709188714623451,
-0.000623883621301502,
0.08052555471658707,
-0.07834196090698242,
0.0007513063028454781,
-0.033065833151340485,
-0.008533837273716927,
0.07985710352659225,
0.00640594819560647,
-0.03665316477417946,
0.013569469563663006,
0.01745760068297386,
0.006729030515998602,
0.01495092548429966,
-0.00677916407585144,
0.03050345368683338,
-0.0532083623111248,
0.11078391224145889,
0.013045852072536945,
0.008333303034305573,
-0.013257527723908424,
0.008684237487614155,
-0.05409962311387062,
0.007714989595115185,
0.0020123033318668604,
0.0013717084657400846,
0.02375214174389839,
-0.012421968393027782,
0.057753801345825195,
-0.030548017472028732,
0.025267288088798523,
0.009542077779769897,
0.0530301108956337,
0.008979467675089836,
0.04688039794564247,
0.013925974257290363,
0.061051469296216965,
-0.006923994515091181,
-0.016243256628513336,
0.03582874685525894,
-0.003219685284420848,
0.00010836148430826142,
0.03709879517555237,
-0.014159930869936943,
-0.03963889181613922,
0.03090452216565609,
0.01017710193991661,
-0.010489043779671192,
0.0481727309525013,
-0.005244521889835596,
-0.0914435163140297,
-0.014003959484398365,
0.0036207532975822687,
0.029790444299578667,
0.009174431674182415,
-0.008823497220873833,
0.02357388846576214,
-0.0722813755273819,
-0.06639904528856277,
-0.04431802034378052,
-0.001988629112020135,
-0.05757554620504379,
0.06065040081739426,
-0.05360943078994751,
0.012533376924693584,
0.007174661848694086,
-0.012132308445870876,
0.05160408839583397,
-0.04786078631877899,
-0.06189816817641258,
0.012722769752144814,
0.03966117277741432,
0.013825707137584686,
0.04008452221751213,
0.06332419067621231,
-0.030102385208010674,
-0.01745760068297386,
-0.012778474017977715,
0.006790305022150278,
0.0077261305414140224,
-0.02564607374370098,
0.056817974895238876,
-0.01161983236670494,
0.010934675112366676,
0.061586227267980576,
-0.026916122063994408,
0.03244194760918617,
0.05062370002269745,
0.03774496167898178,
0.008132768794894218,
0.0014956495724618435,
-0.0012665673857554793,
-0.030035540461540222,
0.015842188149690628,
-0.05356486514210701,
0.0577983632683754,
0.04088665917515755,
-0.04202301800251007,
0.05360943078994751,
0.002403623191639781,
-0.007876531220972538,
-0.006500644609332085,
0.024509714916348457,
-0.09349341690540314,
-0.05543651804327965,
0.005673442035913467,
0.007987938821315765,
0.024420587345957756,
0.04387238994240761,
0.020554738119244576,
-0.013101556338369846,
0.055748458951711655,
0.011430439539253712,
-0.010778703726828098,
-0.04146597906947136,
-0.023774422705173492,
0.018727649003267288,
-0.02264920435845852,
-0.01734619401395321,
0.045097872614860535,
-0.004640134517103434,
0.020053403452038765,
0.058645062148571014,
-0.05057913810014725,
-0.008890341967344284,
0.07165749371051788,
0.05209428444504738,
0.08872516453266144,
-0.023841267451643944,
0.04520928114652634
] |
722,025
|
apprise.plugins.base
|
__init__
|
Initialize some general configuration that will keep things consistent
when working with the notifiers that will inherit this class.
|
def __init__(self, **kwargs):
"""
Initialize some general configuration that will keep things consistent
when working with the notifiers that will inherit this class.
"""
super().__init__(**kwargs)
# Store our interpret_emoji's setting
# If asset emoji value is set to a default of True and the user
# specifies it to be false, this is accepted and False over-rides.
#
# If asset emoji value is set to a default of None, a user may
# optionally over-ride this and set it to True from the Apprise
# URL. ?emojis=yes
#
# If asset emoji value is set to a default of False, then all emoji's
# are turned off (no user over-rides allowed)
#
# Take a default
self.interpret_emojis = self.asset.interpret_emojis
if 'emojis' in kwargs:
# possibly over-ride default
self.interpret_emojis = True if self.interpret_emojis \
in (None, True) and \
parse_bool(
kwargs.get('emojis', False),
default=NotifyBase.template_args['emojis']['default']) \
else False
if 'format' in kwargs:
# Store the specified format if specified
notify_format = kwargs.get('format', '')
if notify_format.lower() not in NOTIFY_FORMATS:
msg = 'Invalid notification format {}'.format(notify_format)
self.logger.error(msg)
raise TypeError(msg)
# Provide override
self.notify_format = notify_format
if 'overflow' in kwargs:
# Store the specified format if specified
overflow = kwargs.get('overflow', '')
if overflow.lower() not in OVERFLOW_MODES:
msg = 'Invalid overflow method {}'.format(overflow)
self.logger.error(msg)
raise TypeError(msg)
# Provide override
self.overflow_mode = overflow
|
(self, **kwargs)
|
[
0.004246877506375313,
-0.09720732271671295,
0.023350968956947327,
0.010066334158182144,
0.027355559170246124,
-0.02861727960407734,
0.00013607207802124321,
0.03474302217364311,
0.019053805619478226,
0.0035200167912989855,
0.04805508628487587,
0.0672917515039444,
0.004091448150575161,
0.020699527114629745,
-0.04476364329457283,
0.0016560079529881477,
0.02185153402388096,
-0.03706531971693039,
0.03721160814166069,
-0.05829513445496559,
0.026550984010100365,
-0.020571526139974594,
-0.002245725132524967,
0.01472921296954155,
0.015990933403372765,
0.0849924087524414,
-0.01271777506917715,
0.013741780072450638,
-0.007638893555849791,
-0.02192467637360096,
-0.03655331954360008,
0.004054876510053873,
0.032603584229946136,
0.06517060101032257,
0.01949266530573368,
-0.029348712414503098,
-0.04308135062456131,
0.06334201991558075,
-0.11417654901742935,
0.06440259516239166,
-0.03176243603229523,
-0.02609383873641491,
0.05664941295981407,
-0.03284129872918129,
-0.034925881773233414,
-0.012086914852261543,
-0.013394350185990334,
0.07709293812513351,
0.011291482485830784,
-0.035840172320604324,
0.03719332069158554,
-0.0031177292112261057,
0.0009960047900676727,
0.03898533061146736,
-0.1097148135304451,
0.05551569536328316,
0.04706765338778496,
0.10766679793596268,
-0.05226081982254982,
0.00802746694535017,
-0.05544254928827286,
0.02015095390379429,
0.03304244205355644,
-0.05818542093038559,
-0.013970352709293365,
-0.0029965857975184917,
-0.004589736461639404,
-0.008516612462699413,
-0.0034994452726095915,
0.026514412835240364,
0.06597517430782318,
-0.026496127247810364,
-0.0672917515039444,
-0.006816032808274031,
0.05006652697920799,
-0.03221958130598068,
-0.02786756120622158,
0.04319106414914131,
0.002658298471942544,
0.02962299808859825,
0.06908375769853592,
0.04395906627178192,
0.024265259504318237,
0.006669746246188879,
0.06290315836668015,
-0.055259693413972855,
0.038400184363126755,
0.02101038582623005,
0.03388359025120735,
0.014436640776693821,
-0.021302958950400352,
0.008896042592823505,
0.013650351203978062,
-0.01568007469177246,
0.012653774581849575,
0.050176240503787994,
0.0005148596246726811,
-0.039351046085357666,
0.024118972942233086,
-0.016283506527543068,
-0.023881256580352783,
0.023844685405492783,
-0.04571450501680374,
-0.118053138256073,
0.013156634755432606,
-0.04052133858203888,
-0.020864099264144897,
0.04074076563119888,
-0.0031611579470336437,
-0.0021337245125323534,
-0.015442359261214733,
-0.08192039281129837,
-0.05770999193191528,
0.016777222976088524,
-0.003888018662109971,
-0.005942885763943195,
-0.03112243488430977,
-0.029385283589363098,
0.05756370350718498,
-0.0030377288348972797,
-0.04461735486984253,
0.0420207716524601,
-0.014628641307353973,
0.0031794437672942877,
0.019035520032048225,
0.031671009957790375,
-0.020864099264144897,
0.031579580157995224,
0.08243239670991898,
-0.04370306804776192,
-0.04366649314761162,
0.02009609527885914,
-0.02521612122654915,
-0.008580612950026989,
0.009380616247653961,
-0.021577246487140656,
0.002884585177525878,
0.016365792602300644,
-0.00487316632643342,
0.09391587972640991,
-0.0010234335204586387,
0.029696142300963402,
0.012123486958444118,
0.015899505466222763,
-0.05310196802020073,
-0.0069714621640741825,
0.030610432848334312,
0.014116639271378517,
-0.019913237541913986,
-0.01866980455815792,
0.04128934070467949,
0.00934404507279396,
-0.03598645702004433,
0.03527331352233887,
0.04582421854138374,
0.010496050119400024,
-0.015277787111699581,
-0.01607321947813034,
0.006066314876079559,
0.04074076563119888,
-0.009042329154908657,
-0.0010662907734513283,
0.016795508563518524,
0.026386411860585213,
-0.036736175417900085,
-0.0002982871374115348,
0.056905414909124374,
-0.028214992955327034,
0.08060381561517715,
0.08682098984718323,
-0.0030537289567291737,
-0.009856047108769417,
0.018212659284472466,
0.006500602699816227,
0.0017760085174813867,
0.1016690582036972,
-0.014445783570408821,
-0.014107496477663517,
-0.032493870705366135,
0.01728922501206398,
0.016694936901330948,
-0.005412597209215164,
-0.04128934070467949,
-0.0019965809769928455,
0.057636845856904984,
0.062135156244039536,
0.06374430656433105,
-0.018304087221622467,
-0.00935318786650896,
-0.001187434303574264,
0.04790880158543587,
0.026843557134270668,
0.004304020665585995,
0.03435902297496796,
-0.009229758754372597,
0.006057171616703272,
0.01391549501568079,
-0.07424035668373108,
-0.08155467361211777,
-0.03620588779449463,
-0.03796132281422615,
0.016027504578232765,
-0.02876356616616249,
0.013421778567135334,
-0.004491450265049934,
-0.026825271546840668,
0.028361279517412186,
0.024667546153068542,
-0.012562345713376999,
-0.016228649765253067,
-0.060196857899427414,
0.0045623076148331165,
-0.013165777549147606,
0.011501769535243511,
0.026587555184960365,
-0.06864490360021591,
0.062135156244039536,
0.0840415433049202,
-0.07840951532125473,
0.011254911310970783,
0.026368126273155212,
0.01522293034940958,
-0.012251487001776695,
0.015021786093711853,
-0.018779518082737923,
0.06568259745836258,
0.035949885845184326,
0.013677779585123062,
0.04575107619166374,
0.04787223041057587,
-0.020608099177479744,
-0.028068706393241882,
-0.007501750253140926,
0.05752713233232498,
-0.006537174340337515,
-0.005929171107709408,
0.025106405839323997,
-0.014235496520996094,
-0.017590941861271858,
0.018889233469963074,
0.049298521131277084,
0.008530326187610626,
0.0002634298289194703,
0.009526902809739113,
0.033426444977521896,
-0.08594326674938202,
0.01822180114686489,
0.006189743988215923,
-0.05317511036992073,
-0.018852662295103073,
0.045933935791254044,
-0.03225615620613098,
-0.012726917862892151,
-0.004745165351778269,
-0.007282320410013199,
-0.02624012529850006,
-0.0044800215400755405,
-0.00010150048910873011,
0.035017311573028564,
-0.027373844757676125,
0.014436640776693821,
-0.005801170598715544,
0.028470993041992188,
0.03620588779449463,
-0.00021242958609946072,
-0.031671009957790375,
-0.008969185873866081,
0.011904057115316391,
-0.032384153455495834,
-0.010880052112042904,
0.033426444977521896,
0.010742908343672752,
-0.014162353239953518,
0.005929171107709408,
0.0042903064750134945,
0.010368050076067448,
0.010038904845714569,
0.024886976927518845,
-0.0033851589541882277,
-0.023972686380147934,
0.018550945445895195,
0.014866356737911701,
0.07731237262487411,
0.051090531051158905,
0.05749056115746498,
-0.07255806028842926,
0.014857213944196701,
0.05661284178495407,
-0.0003588588733691722,
-0.017910942435264587,
0.02790413424372673,
0.058514565229415894,
0.03697388991713524,
0.008658327162265778,
-0.008265182375907898,
-0.020553240552544594,
0.024009257555007935,
0.0588802807033062,
-0.014784070663154125,
-0.09728046506643295,
0.021394388750195503,
-0.017033224925398827,
-0.0008314325241371989,
-0.022564679384231567,
-0.014098352752625942,
0.0168046522885561,
0.017563512548804283,
0.0006720031960867345,
0.0505419559776783,
-0.0048091658391058445,
0.06458545476198196,
-0.018660660833120346,
0.022454963997006416,
-0.002765727462247014,
-0.0211749579757452,
0.034139592200517654,
0.0589534267783165,
0.01764579862356186,
0.03280472755432129,
0.041874486953020096,
0.015670932829380035,
0.017563512548804283,
-0.057783134281635284,
0.04476364329457283,
0.010038904845714569,
-0.03291444480419159,
0.0211383868008852,
0.011465197429060936,
-0.0010857194429263473,
0.01719779707491398,
-0.03051900304853916,
-0.01313834823668003,
-0.028434421867132187,
-0.030866432934999466,
-0.024320116266608238,
-0.03039100207388401,
-0.007986323907971382,
-0.014034353196620941,
-0.0031771580688655376,
-0.056173983961343765,
0.00780803756788373,
0.005412597209215164,
-0.054528262466192245,
0.03982647508382797,
-0.01951095089316368,
-0.0148297855630517,
0.02607555314898491,
-0.006057171616703272,
0.03227443993091583,
0.01348577905446291,
-0.020626384764909744,
0.019145233556628227,
0.019090376794338226,
0.007460607215762138,
0.048384230583906174,
-0.10591136664152145,
-0.05664941295981407,
-0.03785160928964615,
0.02858070842921734,
0.001246863161213696,
-0.010230906307697296,
0.0036160172894597054,
-0.005453740246593952,
0.03040928766131401,
-0.03799789771437645,
0.0001394292339682579,
0.0334995873272419,
0.027995562180876732,
0.06630431860685349,
-0.0294035691767931,
0.00963661726564169,
0.02283896692097187,
-0.04882309213280678,
-0.03534645587205887,
0.03796132281422615,
-0.009097186848521233,
-0.02357039786875248,
0.029696142300963402,
-0.04030190780758858,
-0.020022952929139137,
-0.016722366213798523,
0.029933856800198555,
-0.0422036312520504,
0.045970506966114044,
0.013942924328148365,
-0.04154534265398979,
0.014400068670511246,
0.004571450408548117,
0.02280239574611187,
-0.01094405259937048,
0.02373497001826763,
-0.020918957889080048,
-0.006441173609346151,
0.013997781090438366,
-0.06586545705795288,
-0.0211749579757452,
-0.03551102802157402,
0.04779908433556557,
0.0019405806669965386,
0.011145195923745632,
0.014153210446238518,
-0.025581836700439453,
0.049481380730867386,
-0.011538340710103512,
0.01228805910795927,
0.06158658117055893,
0.052004821598529816,
0.02457611821591854,
0.02020581066608429,
0.03459673747420311,
-0.008900614455342293,
0.010870909318327904,
-0.02622183971107006,
-0.046957939863204956,
-0.033335015177726746,
-0.01925494894385338,
-0.02442983165383339,
-0.04366649314761162,
-0.02371668443083763,
-0.005572597961872816,
-0.0508711002767086,
0.03558417037129402,
0.020736100152134895,
0.01859666034579277,
0.009371473453938961,
0.015186358243227005,
0.028928138315677643,
0.00126972037833184,
-0.007350892294198275,
0.02704470045864582,
-0.024886976927518845,
0.05544254928827286,
-0.03938761726021767,
-0.04289849102497101,
-0.0016765794716775417,
-0.034249305725097656,
0.026715556159615517,
-0.07332606613636017,
-0.07003462314605713,
-0.028214992955327034,
-0.04809165745973587,
0.0019028662936761975,
0.04469050094485283,
0.04041162133216858,
0.016548650339245796,
-0.013366920873522758,
-0.09398902207612991,
0.027282416820526123,
-0.03139672055840492,
-0.044434498995542526,
-0.021632103249430656,
0.002793156309053302,
0.012233201414346695,
-0.041764769703149796,
0.02035209722816944,
-0.028416136279702187,
-0.017453797161579132,
0.020827528089284897,
0.0038994471542537212,
-0.04019219055771828,
0.0071360343135893345,
-0.004059447906911373,
-0.11176282167434692,
-0.04154534265398979,
-0.0074651786126196384,
0.01816694438457489,
0.017106367275118828,
-0.0424230620265007,
-0.10203477740287781,
0.008333753794431686,
0.03792475163936615,
-0.033207014203071594,
0.06304944306612015,
0.016256077215075493,
-0.050212811678647995,
0.00977376103401184,
0.03898533061146736,
0.02781270444393158,
-0.05324825644493103,
-0.04136248305439949,
-0.00587431387975812,
-0.027264131233096123,
-0.0506150983273983,
-0.022656109184026718,
-0.00284344214014709,
-0.05986771360039711,
0.02951328456401825,
-0.0508711002767086,
-0.019638951867818832,
0.037668753415346146,
-0.049298521131277084,
0.04030190780758858,
-0.02453954517841339,
0.025892695412039757,
0.04915223643183708,
0.011154338717460632,
-0.00864461250603199,
-0.005568026565015316,
0.05635683983564377,
-0.04823794588446617,
0.00023314397549256682,
-0.06359802186489105,
0.00506973871961236,
0.0002634298289194703,
0.03986304625868797,
-0.012205773033201694,
-0.022528108209371567,
0.0762152224779129,
0.009275472722947598,
0.023003539070487022,
-0.00506973871961236,
0.01732579804956913,
0.049517951905727386,
-0.002523440634831786,
0.01269034668803215,
-0.06502430886030197,
0.007574893534183502,
0.016658365726470947,
-0.002797727705910802,
-0.04121619835495949,
0.022546393796801567,
0.02958642691373825,
-0.0148297855630517,
-0.027666417881846428,
0.008443469181656837,
0.001403435249812901,
0.02261953614652157,
-0.0021474389359354973,
-0.016722366213798523,
-0.006134886294603348,
0.0031314436346292496,
-0.005312025547027588,
0.0004805737407878041,
-0.04706765338778496,
0.010203476995229721,
0.042642489075660706,
-0.034999024122953415,
0.030775004997849464,
-0.016137219965457916,
0.009901762008666992,
0.005860599689185619,
-0.01562521792948246,
-0.03640703111886978,
-0.06385401636362076,
-0.013284634798765182,
-0.034322451800107956,
0.0009685760596767068,
0.030647004023194313,
0.024813832715153694,
-0.03523673862218857,
-0.06667003035545349,
-0.0007611464825458825,
0.02188810519874096,
0.02616698294878006,
-0.017243511974811554,
-0.018550945445895195,
0.03141500800848007,
-0.032567013055086136,
0.04066762328147888,
0.049408234655857086,
-0.06096486374735832,
-0.03854646906256676,
-0.012955490499734879,
-0.006464031059294939,
-0.09662217646837234,
0.04476364329457283,
-0.01741722598671913,
0.03724817931652069,
-0.055113404989242554,
0.008320040069520473,
0.005906314123421907,
-0.04289849102497101,
-0.04699451103806496,
0.0001059290807461366,
-0.012544060125946999,
0.01940123550593853,
0.04066762328147888,
0.03615102916955948,
0.004987452644854784,
-0.0004437164170667529,
-0.02263782173395157,
0.013595493510365486,
0.0034811594523489475,
-0.09135586768388748,
-0.004690308123826981,
0.017261797562241554,
0.025801265612244606,
0.04447107017040253,
0.007104034069925547,
0.03026300109922886,
-0.008169181644916534,
-0.028342992067337036,
0.020022952929139137,
-0.008790899068117142,
-0.018102943897247314,
0.014482354745268822,
0.06315916031599045,
-0.05412597209215164,
0.008379468694329262,
-0.010477764531970024,
-0.0032160154078155756,
-0.00003567874227883294,
-0.0507979579269886,
-0.04560479149222374,
0.011017195880413055,
-0.05343111231923103,
-0.006852604448795319,
0.03706531971693039,
-0.03110414929687977,
-0.027318987995386124,
-0.0025280120316892862,
0.010697194375097752,
-0.021485816687345505,
0.06176943704485893,
0.010349763557314873,
-0.011949771083891392,
-0.04074076563119888,
0.03968019038438797,
0.03552931174635887,
-0.001380578032694757,
-0.030976148322224617,
0.04282534867525101,
-0.03516359627246857,
-0.01600007712841034,
-0.04139905422925949,
-0.03547445684671402,
-0.023131540045142174,
-0.011291482485830784,
-0.05427226051688194,
-0.017472082749009132,
0.0933307334780693,
0.01431778259575367,
0.030957862734794617,
-0.013860637322068214,
-0.014034353196620941,
0.011593198403716087,
-0.0210835300385952,
0.015414930880069733,
0.0043977354653179646,
0.017042366787791252,
0.07460606843233109,
-0.09062443673610687,
0.005636598449200392,
0.0031360150314867496,
-0.03708360716700554,
0.0672186091542244,
-0.02622183971107006,
-0.02786756120622158,
-0.01431778259575367,
0.014025210402905941,
0.022546393796801567,
0.003067443147301674,
-0.008502897806465626,
0.03456016629934311,
-0.037559036165475845,
0.07296034693717957,
0.012809203937649727,
0.03898533061146736,
-0.0028731566853821278,
-0.017316654324531555,
-0.0589899979531765,
0.0591362826526165,
-0.031597863882780075,
0.05288253724575043,
0.03642531856894493,
-0.03024471551179886,
-0.012132629752159119,
-0.012324630282819271,
0.02179667539894581,
0.007748608477413654,
0.03598645702004433,
0.010816051624715328,
0.006349744740873575,
0.01432692538946867,
0.07855580747127533,
0.009993190877139568,
-0.019126947969198227,
-0.006422888021916151,
0.04918880760669708,
0.0016457221936434507,
0.019675523042678833,
-0.009526902809739113,
-0.04370306804776192,
0.047762513160705566,
-0.022400107234716415,
-0.033298444002866745,
0.051968250423669815,
0.013174920342862606,
-0.051053959876298904,
-0.013165777549147606,
-0.013622921891510487,
-0.012425201945006847,
-0.01936466433107853,
0.019693808630108833,
0.047835659235715866,
-0.11249425262212753,
-0.11366454511880875,
-0.030555574223399162,
-0.0424230620265007,
-0.0336458757519722,
0.056210555136203766,
-0.04139905422925949,
-0.031707581132650375,
-0.013604636304080486,
-0.02181496098637581,
0.03887561336159706,
-0.029824143275618553,
-0.0419476293027401,
0.017764655873179436,
0.018925804644823074,
0.03858304023742676,
0.08908842504024506,
0.055223122239112854,
-0.06304944306612015,
-0.01217834372073412,
-0.016009218990802765,
0.01177605614066124,
-0.032347582280635834,
-0.02289382368326187,
0.02194296196103096,
-0.013641208410263062,
0.020534954965114594,
-0.00022471536067314446,
-0.008576041087508202,
-0.0032320155296474695,
0.011492626741528511,
-0.032621871680021286,
-0.03194529563188553,
0.01351320743560791,
-0.030738431960344315,
-0.01564350351691246,
0.02269268035888672,
-0.08148153126239777,
0.017088081687688828,
0.00975547544658184,
-0.060270003974437714,
0.02773956209421158,
-0.021467531099915504,
-0.02446640282869339,
-0.006386316381394863,
-0.011309768073260784,
-0.043410494923591614,
-0.05471111834049225,
0.034084733575582504,
0.011949771083891392,
0.03362758830189705,
0.021760104224085808,
-0.0058285994455218315,
-0.0061211721040308475,
0.04538536071777344,
0.007561178877949715,
0.026605840772390366,
-0.04549507424235344,
-0.008150896057486534,
0.09062443673610687,
-0.0253806933760643,
-0.021522387862205505,
0.027172701433300972,
-0.0034263022243976593,
0.021632103249430656,
0.004946309607475996,
-0.02442983165383339,
-0.002923442516475916,
0.03644360229372978,
-0.007515464443713427,
0.06334201991558075,
-0.04319106414914131,
0.011986343190073967
] |
722,026
|
apprise.url
|
__len__
|
Should be over-ridden and allows the tracking of how many targets
are associated with each URLBase object.
Default is always 1
|
def __len__(self):
"""
Should be over-ridden and allows the tracking of how many targets
are associated with each URLBase object.
Default is always 1
"""
return 1
|
(self)
|
[
-0.051818329840898514,
-0.031164880841970444,
-0.07979284226894379,
0.03432166948914528,
-0.035429902374744415,
0.07139713317155838,
-0.014474206604063511,
-0.01676623523235321,
-0.02782338671386242,
-0.0056838965974748135,
0.01999858394265175,
0.007295873016119003,
0.028612583875656128,
0.005616731010377407,
0.045974913984537125,
-0.03069472126662731,
0.055848270654678345,
0.032172366976737976,
0.05363180488348007,
-0.044396523386240005,
-0.03825085982680321,
0.09859923273324966,
0.047049567103385925,
-0.05057576671242714,
-0.0648820549249649,
0.04782197251915932,
0.016035808250308037,
0.012996560893952847,
0.053732551634311676,
0.015255007892847061,
-0.08288246393203735,
-0.02564050257205963,
0.025858791545033455,
0.062464091926813126,
0.0842929407954216,
-0.012543193064630032,
-0.009974105283617973,
0.07139713317155838,
-0.04238155111670494,
-0.0071615418419241905,
-0.023323286324739456,
-0.03522840514779091,
-0.03835161030292511,
-0.03378434106707573,
0.0648820549249649,
0.036269474774599075,
0.003383471630513668,
0.018621688708662987,
-0.06296783685684204,
-0.07079263776540756,
-0.030073437839746475,
0.05188549682497978,
0.03187011927366257,
0.004537881817668676,
-0.003612254746258259,
0.08469593524932861,
0.004600849933922291,
0.088390052318573,
-0.04997127503156662,
0.06031478941440582,
-0.00430280202999711,
0.0073966216295957565,
0.04822496697306633,
-0.0739494264125824,
0.027739429846405983,
-0.008454481139779091,
-0.054034799337387085,
0.07260610908269882,
0.019276553764939308,
0.03865385428071022,
0.02216467820107937,
-0.011703621596097946,
-0.05406838282942772,
0.024246813729405403,
0.0008873217739164829,
0.008706352673470974,
0.02600991353392601,
0.030661137774586678,
0.03286081552505493,
0.0030434452928602695,
0.019847461953759193,
-0.03269290179014206,
0.030661137774586678,
-0.01655634306371212,
0.06061703711748123,
-0.05413554608821869,
-0.012358487583696842,
-0.03259215131402016,
-0.0009104099590331316,
0.02349120005965233,
-0.05628484860062599,
0.060482703149318695,
0.021828848868608475,
-0.02577483467757702,
-0.017412705346941948,
-0.017966821789741516,
-0.06142302602529526,
-0.01224934309720993,
0.008303358219563961,
-0.08174064755439758,
-0.02318895421922207,
-0.004348978400230408,
-0.05212057754397392,
-0.0014335677260532975,
0.0036017601378262043,
-0.03202124312520027,
-0.004806544631719589,
-0.045538339763879776,
-0.05487436801195145,
-0.0020663945470005274,
0.011124317534267902,
-0.024347562342882156,
0.0292674507945776,
0.012148594483733177,
0.015893081203103065,
-0.016959337517619133,
0.002434756373986602,
-0.01588468626141548,
0.009294052608311176,
-0.012182177044451237,
-0.011082339100539684,
0.06511713564395905,
-0.04872870817780495,
-0.018520940095186234,
0.08274812996387482,
0.03131600469350815,
-0.014532976783812046,
-0.02493526227772236,
0.004974458832293749,
-0.06481489539146423,
0.013836132362484932,
0.006561248563230038,
-0.06847542524337769,
0.028142424300312996,
0.07126279920339584,
0.007446995936334133,
-0.031332794576883316,
0.016984524205327034,
-0.05742666497826576,
0.010343516245484352,
-0.05769532918930054,
0.04587416723370552,
0.03935909643769264,
-0.01836981624364853,
0.0024452509824186563,
0.038082946091890335,
0.004974458832293749,
0.020687032490968704,
-0.010754906572401524,
-0.002352898009121418,
0.04812421649694443,
-0.0174630805850029,
0.039762090891599655,
-0.006523467600345612,
-0.0769718810915947,
0.015666397288441658,
-0.023340078070759773,
0.021963180974125862,
0.002818860113620758,
-0.07119563221931458,
0.008395710960030556,
-0.024851305410265923,
-0.05437062680721283,
-0.07253894954919815,
-0.048325713723897934,
-0.03993000462651253,
0.03791503235697746,
-0.03101375699043274,
-0.02703419141471386,
0.08073315769433975,
-0.004048831760883331,
0.014247522689402103,
0.035497069358825684,
0.0004987577558495104,
0.03972850739955902,
0.029586486518383026,
-0.01517105009406805,
-0.013743779622018337,
0.0005150244105607271,
0.03475824370980263,
-0.011132713407278061,
-0.045437589287757874,
-0.025724459439516068,
-0.02854541875422001,
0.05312805995345116,
0.06209468096494675,
-0.01658152975142002,
0.023373659700155258,
-0.0225844644010067,
0.0987335667014122,
-0.03299514576792717,
-0.028444670140743256,
0.018285859376192093,
-0.047351811081171036,
0.03479182720184326,
-0.026883067563176155,
0.009461966343224049,
-0.0044371336698532104,
0.03821728006005287,
0.059575967490673065,
-0.09174833446741104,
0.001567899133078754,
-0.0226348377764225,
-0.0391240157186985,
0.025623710826039314,
0.05124742165207863,
0.01867206208407879,
0.02130831591784954,
-0.022836335003376007,
0.020367996767163277,
-0.028511835262179375,
0.012366882525384426,
-0.00024032723740674555,
0.02962007001042366,
0.004903095308691263,
-0.03475824370980263,
-0.028562210500240326,
-0.0029825763776898384,
0.03264252468943596,
0.006162452045828104,
0.06844183802604675,
-0.01674104854464531,
0.01830265112221241,
-0.0432211235165596,
-0.036101557314395905,
-0.008341139182448387,
0.04577341675758362,
0.023104997351765633,
-0.0027076168917119503,
-0.03166862204670906,
0.0036983108147978783,
0.014516185037791729,
0.05474003776907921,
0.09967388212680817,
0.10625611990690231,
-0.009142929688096046,
0.010637366212904453,
0.012576775625348091,
0.016170140355825424,
0.006166649982333183,
-0.060482703149318695,
-0.0034401428420096636,
0.033985838294029236,
0.005444618873298168,
-0.028562210500240326,
0.022433340549468994,
-0.027537932619452477,
0.02666477859020233,
-0.0017494563944637775,
-0.06817317754030228,
0.016732653602957726,
-0.004214647226035595,
-0.06998664885759354,
-0.05913938954472542,
0.003992160782217979,
-0.013231641612946987,
-0.009000202640891075,
-0.03040926717221737,
-0.04040016233921051,
-0.03576572984457016,
0.005066812038421631,
-0.0012625050731003284,
-0.010477847419679165,
0.036873962730169296,
-0.06813959032297134,
0.04023224860429764,
0.045672670006752014,
0.0035576827358454466,
-0.08046449720859528,
0.043086789548397064,
0.09456929564476013,
-0.0008999152923934162,
-0.019713129848241806,
0.004162173718214035,
-0.04533684253692627,
-0.028746915981173515,
-0.0036584313493222,
0.028259964659810066,
-0.05097876116633415,
-0.033566053956747055,
0.04547117277979851,
-0.03126562759280205,
-0.012669128365814686,
-0.06777018308639526,
-0.00429020868614316,
-0.005222132429480553,
-0.0039145005866885185,
0.07294194400310516,
-0.05010560527443886,
-0.00622961763292551,
-0.00638074055314064,
0.011552498675882816,
0.003939687740057707,
0.01718602143228054,
-0.029838358983397484,
0.0031525895465165377,
-0.031467124819755554,
0.054337043315172195,
0.04238155111670494,
0.022534089162945747,
-0.09806191176176071,
-0.02703419141471386,
-0.07905402034521103,
-0.004584058187901974,
-0.03979567065834999,
-0.016665486618876457,
0.06501638889312744,
-0.0105366175994277,
0.04177705943584442,
0.008420898579061031,
0.041877809911966324,
0.04291887581348419,
-0.03427129238843918,
0.048191383481025696,
0.03408658877015114,
0.037243377417325974,
-0.028259964659810066,
0.018873559311032295,
-0.045538339763879776,
0.07146429270505905,
-0.0687776654958725,
0.062464091926813126,
-0.007405017502605915,
-0.04093748703598976,
0.04604208096861839,
0.0036983108147978783,
0.05846773460507393,
0.013617844320833683,
-0.044396523386240005,
0.01318126730620861,
-0.0282935481518507,
-0.005818227771669626,
0.03168541565537453,
-0.011006777174770832,
-0.06152377277612686,
-0.01727837324142456,
0.005746864248067141,
-0.0041306898929178715,
0.01974671334028244,
-0.019612381234765053,
-0.017563827335834503,
-0.03972850739955902,
-0.04664657264947891,
0.010293141938745975,
0.01674104854464531,
-0.02733643539249897,
0.03576572984457016,
-0.016917359083890915,
0.05423629656434059,
-0.11518915742635727,
0.0036710246931761503,
0.006565446499735117,
0.0008715798030607402,
0.02342403493821621,
0.039459843188524246,
-0.02214788645505905,
-0.002241655020043254,
-0.026043497025966644,
0.018739227205514908,
0.02666477859020233,
0.021660935133695602,
-0.01739591360092163,
-0.03343172371387482,
-0.018772810697555542,
0.0482921302318573,
-0.004689004737883806,
0.05984463170170784,
-0.031164880841970444,
0.003977468237280846,
-0.06374023854732513,
-0.031584665179252625,
-0.05148250237107277,
0.008933036588132381,
-0.005335474386811256,
0.01450778916478157,
-0.016455594450235367,
0.009856564924120903,
-0.003788564819842577,
-0.04191138967871666,
0.010427473112940788,
-0.036638885736465454,
0.050609346479177475,
0.017085272818803787,
-0.017681367695331573,
-0.011073943227529526,
-0.008252983912825584,
-0.0013842429034411907,
0.00831175409257412,
0.0146589120849967,
0.08415861427783966,
0.07025530934333801,
-0.02359194867312908,
-0.07408376038074493,
0.0031756777316331863,
-0.032306697219610214,
-0.034959740936756134,
0.0014262214535847306,
0.03269290179014206,
0.0056083351373672485,
-0.02119077555835247,
0.08006150275468826,
0.024129275232553482,
-0.00939480122178793,
0.07992716878652573,
-0.004924084525555372,
0.009638276882469654,
0.06353874504566193,
0.03872102126479149,
-0.019478050991892815,
-0.017328748479485512,
-0.022080721333622932,
-0.018218694254755974,
-0.0483928807079792,
-0.038922518491744995,
0.014558163471519947,
-0.05507586523890495,
0.024700183421373367,
0.007358841132372618,
0.060046128928661346,
0.031937286257743835,
0.056016188114881516,
0.04087032377719879,
0.0380493625998497,
0.03138316795229912,
-0.01228292565792799,
-0.0010284746531397104,
-0.006019724998623133,
-0.0065024783834815025,
0.026647988706827164,
0.016195327043533325,
-0.019343718886375427,
-0.005700687877833843,
0.0009534379933029413,
0.006754349917173386,
0.019159013405442238,
0.002646747976541519,
-0.01559083629399538,
0.030510015785694122,
0.017614202573895454,
-0.00041506296838633716,
-0.020687032490968704,
-0.029787983745336533,
-0.025674086064100266,
0.05984463170170784,
0.0791211873292923,
-0.07059114426374435,
-0.005075207445770502,
-0.044530853629112244,
-0.013130892999470234,
-0.02901557832956314,
-0.11068905889987946,
-0.028041675686836243,
0.011057151481509209,
-0.029418572783470154,
-0.0350269079208374,
-0.03141675144433975,
-0.01620372384786606,
0.033985838294029236,
-0.012014263309538364,
-0.014893991872668266,
0.014096399769186974,
0.03301193565130234,
0.030023064464330673,
-0.03821728006005287,
-0.03996358439326286,
0.012904208153486252,
0.016908962279558182,
0.018201902508735657,
0.01806757040321827,
0.005906383041292429,
-0.001383193419314921,
0.040903907269239426,
-0.018621688708662987,
-0.04943395033478737,
-0.028092050924897194,
0.04087032377719879,
-0.004386759363114834,
0.018453773111104965,
0.019847461953759193,
-0.023373659700155258,
-0.018520940095186234,
-0.022080721333622932,
0.07139713317155838,
-0.0060155270621180534,
-0.03448958322405815,
-0.0687776654958725,
-0.0349261611700058,
-0.008949828334152699,
0.019192596897482872,
0.00239277770742774,
0.00975581631064415,
-0.04510176181793213,
-0.05097876116633415,
0.0008007409633137286,
0.0020789881236851215,
0.035127654671669006,
0.021459437906742096,
0.0020663945470005274,
-0.03647097200155258,
-0.0014262214535847306,
0.0059399656020104885,
-0.023104997351765633,
0.00510459253564477,
0.00025265844305977225,
0.0044875075109303,
0.015255007892847061,
-0.008458679541945457,
-0.009831378236413002,
-0.02962007001042366,
0.004441331140697002,
-0.00987335667014122,
0.02896520495414734,
-0.0095375282689929,
0.06021404266357422,
0.05104592442512512,
0.024011734873056412,
-0.037411291152238846,
-0.02342403493821621,
0.053497474640607834,
0.03734412416815758,
0.0380493625998497,
0.02726927027106285,
0.025993121787905693,
-0.03532915189862251,
-0.0053942445665597916,
-0.02884766459465027,
-0.027537932619452477,
0.02100607007741928,
0.004655422177165747,
0.10215901583433151,
0.05212057754397392,
-0.0029825763776898384,
0.009512340649962425,
0.01878960244357586,
0.01713564619421959,
0.09309164434671402,
-0.05947522073984146,
-0.05534452944993973,
0.05628484860062599,
0.034288085997104645,
0.01867206208407879,
-0.026144245639443398,
-0.0021356591023504734,
-0.04372486472129822,
-0.08617357909679413,
-0.023558367043733597,
0.008022102527320385,
0.012165386229753494,
0.04184422641992569,
0.0040551284328103065,
-0.007787022273987532,
0.016035808250308037,
0.03704188019037247,
-0.03630305454134941,
0.06118794530630112,
-0.03244102746248245,
0.022836335003376007,
0.005679698660969734,
0.032961562275886536,
0.0463443286716938,
0.00575106218457222,
-0.06807243078947067,
-0.007585525047034025,
0.018756018951535225,
-0.032071616500616074,
0.014893991872668266,
-0.0036059580743312836,
0.019276553764939308,
-0.009864960797131062,
-0.0025795823894441128,
-0.04748614504933357,
-0.004076117649674416,
-0.04715031385421753,
0.01580912433564663,
0.05947522073984146,
0.004323791246861219,
-0.0379486158490181,
-0.02908274345099926,
0.04402710869908333,
-0.050072021782398224,
0.006418521516025066,
0.03653813526034355,
0.044228605926036835,
-0.011560894548892975,
0.00987335667014122,
-0.027286062017083168,
0.010754906572401524,
0.009621485136449337,
-0.025959540158510208,
-0.02053591050207615,
-0.06531863659620285,
0.027537932619452477,
-0.043556950986385345,
-0.02768905647099018,
0.008286567404866219,
0.007560337893664837,
-0.03522840514779091,
-0.053497474640607834,
0.000605015957262367,
0.06827392429113388,
0.043691281229257584,
0.03462391346693039,
-0.015229820273816586,
0.031164880841970444,
0.017060086131095886,
-0.006284189876168966,
-0.015641210600733757,
0.010712928138673306,
0.0037591797299683094,
-0.024582643061876297,
0.008781913667917252,
-0.007199322339147329,
0.012308113276958466,
-0.04654582217335701,
-0.09671859443187714,
-0.003964874893426895,
-0.06189318373799324,
0.079994335770607,
0.01764778606593609,
0.0073966216295957565,
-0.004036238417029381,
-0.015632813796401024,
0.00968865118920803,
0.040064334869384766,
-0.07596439868211746,
0.03630305454134941,
-0.0005703836213797331,
0.0175134539604187,
-0.03630305454134941,
0.03553064912557602,
0.02359194867312908,
-0.043019626289606094,
0.036403805017471313,
-0.021812058985233307,
0.030493224039673805,
-0.041273318231105804,
0.006464697886258364,
0.012694315984845161,
0.012291321530938148,
0.015330568887293339,
-0.013936880975961685,
-0.0034359449055045843,
-0.009713837876915932,
-0.0012089824303984642,
-0.04016508162021637,
-0.01865527033805847,
-0.0032155574299395084,
-0.005125581752508879,
0.002195478416979313,
-0.052523571997880936,
0.016598321497440338,
0.016094578430056572,
0.06528504937887192,
0.028495045378804207,
-0.015154259279370308,
0.00038594036595895886,
-0.017034897580742836,
0.009084159508347511,
-0.009806190617382526,
-0.07468824833631516,
0.004021545872092247,
-0.03744487464427948,
0.06944932788610458,
-0.056083351373672485,
0.04547117277979851,
0.00990693923085928,
0.04234796762466431,
-0.05984463170170784,
-0.01481003500521183,
-0.00541943171992898,
-0.014272709377110004,
0.03371717780828476,
-0.02095569483935833,
0.00026459607761353254,
-0.0012499114964157343,
-0.0349261611700058,
-0.009235282428562641,
0.017966821789741516,
-0.019293345510959625,
-0.0092436783015728,
0.0059399656020104885,
-0.011930305510759354,
-0.08140482008457184,
0.017261583358049393,
0.035127654671669006,
0.045907750725746155,
-0.04164272919297218,
-0.011359397321939468,
0.06716568768024445,
-0.0013443633215501904,
-0.005364859476685524,
-0.022953875362873077,
0.027672264724969864,
0.02782338671386242,
-0.04338903725147247,
0.022718794643878937,
-0.0035492870956659317,
-0.010704532265663147,
0.011544102802872658,
-0.03781428560614586,
0.02256767265498638,
0.006393334362655878,
0.004865314811468124,
-0.03472466394305229,
0.024532267823815346,
0.011938701383769512,
-0.023205745965242386,
-0.020737407729029655,
-0.026110662147402763,
-0.011191483587026596,
-0.019595589488744736,
0.018101153895258904,
0.04070241004228592,
-0.027890553697943687,
-0.006355553399771452,
-0.04345620051026344,
0.0030245550442487,
0.03445599973201752,
-0.03336455672979355,
0.04123973473906517,
0.011753995902836323,
0.016010621562600136,
0.035967227071523666,
0.012635545805096626,
0.0020684932824224234,
-0.012929395772516727,
0.025086386129260063,
0.011602872982621193,
0.026093870401382446,
0.009050576947629452,
-0.010973194614052773,
-0.01402923371642828,
-0.022198261693120003,
-0.017328748479485512,
-0.02733643539249897,
-0.01550687849521637,
0.022836335003376007,
-0.04738539457321167,
-0.013743779622018337,
-0.006573841907083988,
0.021291524171829224,
-0.0763002261519432,
-0.00779541814699769,
0.011443354189395905,
0.023625532165169716,
-0.034036215394735336,
0.019175805151462555,
0.032961562275886536,
0.021812058985233307,
-0.002976279705762863,
0.024095691740512848,
0.01114110928028822,
-0.0009927928913384676,
-0.06501638889312744,
0.017849283292889595,
0.005133977625519037,
0.00543622300028801,
-0.012870625592768192,
-0.01131741888821125,
0.008681165985763073,
-0.02540542185306549,
-0.023407243192195892,
0.01065415795892477,
0.015347360633313656,
0.04822496697306633,
0.06508355587720871,
0.028797289356589317,
-0.01721120811998844
] |
722,028
|
apprise.plugins.base
|
_apply_overflow
|
Takes the message body and title as input. This function then
applies any defined overflow restrictions associated with the
notification service and may alter the message if/as required.
The function will always return a list object in the following
structure:
[
{
title: 'the title goes here',
body: 'the message body goes here',
},
{
title: 'the title goes here',
body: 'the continued message body goes here',
},
]
|
def _apply_overflow(self, body, title=None, overflow=None,
body_format=None):
"""
Takes the message body and title as input. This function then
applies any defined overflow restrictions associated with the
notification service and may alter the message if/as required.
The function will always return a list object in the following
structure:
[
{
title: 'the title goes here',
body: 'the message body goes here',
},
{
title: 'the title goes here',
body: 'the continued message body goes here',
},
]
"""
response = list()
# tidy
title = '' if not title else title.strip()
body = '' if not body else body.rstrip()
if overflow is None:
# default
overflow = self.overflow_mode
if self.title_maxlen <= 0 and len(title) > 0:
if self.notify_format == NotifyFormat.HTML:
# Content is appended to body as html
body = '<{open_tag}>{title}</{close_tag}>' \
'<br />\r\n{body}'.format(
open_tag=self.default_html_tag_id,
title=title,
close_tag=self.default_html_tag_id,
body=body)
elif self.notify_format == NotifyFormat.MARKDOWN and \
body_format == NotifyFormat.TEXT:
# Content is appended to body as markdown
title = title.lstrip('\r\n \t\v\f#-')
if title:
# Content is appended to body as text
body = '# {}\r\n{}'.format(title, body)
else:
# Content is appended to body as text
body = '{}\r\n{}'.format(title, body)
title = ''
# Enforce the line count first always
if self.body_max_line_count > 0:
# Limit results to just the first 2 line otherwise
# there is just to much content to display
body = re.split(r'\r*\n', body)
body = '\r\n'.join(body[0:self.body_max_line_count])
if overflow == OverflowMode.UPSTREAM:
# Nothing more to do
response.append({'body': body, 'title': title})
return response
# a value of '2' allows for the \r\n that is applied when
# amalgamating the title
overflow_buffer = max(2, self.overflow_buffer) \
if (self.title_maxlen == 0 and len(title)) \
else self.overflow_buffer
#
# If we reach here in our code, then we're using TRUNCATE, or SPLIT
# actions which require some math to handle the data
#
# Handle situations where our body and title are amalamated into one
# calculation
title_maxlen = self.title_maxlen \
if not self.overflow_amalgamate_title \
else min(len(title) + self.overflow_max_display_count_width,
self.title_maxlen, self.body_maxlen)
if len(title) > title_maxlen:
# Truncate our Title
title = title[:title_maxlen].rstrip()
if self.overflow_amalgamate_title and (
self.body_maxlen - overflow_buffer) >= title_maxlen:
body_maxlen = (self.body_maxlen if not title else (
self.body_maxlen - title_maxlen)) - overflow_buffer
else:
# status quo
body_maxlen = self.body_maxlen \
if not self.overflow_amalgamate_title else \
(self.body_maxlen - overflow_buffer)
if body_maxlen > 0 and len(body) <= body_maxlen:
response.append({'body': body, 'title': title})
return response
if overflow == OverflowMode.TRUNCATE:
# Truncate our body and return
response.append({
'body': body[:body_maxlen].lstrip('\r\n\x0b\x0c').rstrip(),
'title': title,
})
# For truncate mode, we're done now
return response
if self.overflow_display_title_once is None:
# Detect if we only display our title once or not:
overflow_display_title_once = \
True if self.overflow_amalgamate_title and \
body_maxlen < self.overflow_display_count_threshold \
else False
else:
# Take on defined value
overflow_display_title_once = self.overflow_display_title_once
# If we reach here, then we are in SPLIT mode.
# For here, we want to split the message as many times as we have to
# in order to fit it within the designated limits.
if not overflow_display_title_once and not (
# edge case that can occur when overflow_display_title_once is
# forced off, but no body exists
self.overflow_amalgamate_title and body_maxlen <= 0):
show_counter = title and len(body) > body_maxlen and \
((self.overflow_amalgamate_title and
body_maxlen >= self.overflow_display_count_threshold) or
(not self.overflow_amalgamate_title and
title_maxlen > self.overflow_display_count_threshold)) and (
title_maxlen > (self.overflow_max_display_count_width +
overflow_buffer) and
self.title_maxlen >= self.overflow_display_count_threshold)
count = 0
template = ''
if show_counter:
# introduce padding
body_maxlen -= overflow_buffer
count = int(len(body) / body_maxlen) \
+ (1 if len(body) % body_maxlen else 0)
# Detect padding and prepare template
digits = len(str(count))
template = ' [{:0%d}/{:0%d}]' % (digits, digits)
# Update our counter
overflow_display_count_width = 4 + (digits * 2)
if overflow_display_count_width <= \
self.overflow_max_display_count_width:
if len(title) > \
title_maxlen - overflow_display_count_width:
# Truncate our title further
title = title[:title_maxlen -
overflow_display_count_width]
else: # Way to many messages to display
show_counter = False
response = [{
'body': body[i: i + body_maxlen]
.lstrip('\r\n\x0b\x0c').rstrip(),
'title': title + (
'' if not show_counter else
template.format(idx, count))} for idx, i in
enumerate(range(0, len(body), body_maxlen), start=1)]
else: # Display title once and move on
response = []
try:
i = range(0, len(body), body_maxlen)[0]
response.append({
'body': body[i: i + body_maxlen]
.lstrip('\r\n\x0b\x0c').rstrip(),
'title': title,
})
except (ValueError, IndexError):
# IndexError:
# - This happens if there simply was no body to display
# ValueError:
# - This happens when body_maxlen < 0 (due to title being
# so large)
# No worries; send title along
response.append({
'body': '',
'title': title,
})
# Ensure our start is set properly
body_maxlen = 0
# Now re-calculate based on the increased length
for i in range(body_maxlen, len(body), self.body_maxlen):
response.append({
'body': body[i: i + self.body_maxlen]
.lstrip('\r\n\x0b\x0c').rstrip(),
'title': '',
})
return response
|
(self, body, title=None, overflow=None, body_format=None)
|
[
-0.025593619793653488,
-0.012401236221194267,
-0.06526966392993927,
-0.035008274018764496,
0.016000956296920776,
-0.00861856248229742,
-0.016099849715828896,
-0.035621412098407745,
-0.009810227900743484,
-0.02205323427915573,
0.043552666902542114,
0.0020841790828853846,
0.012361678294837475,
-0.017909599468111992,
-0.0266814474016428,
0.043038420379161835,
0.028105512261390686,
-0.042721960693597794,
0.05269042029976845,
-0.006729697808623314,
0.029846036806702614,
-0.04802265018224716,
0.01958089880645275,
0.0533628948032856,
0.00932565052062273,
-0.04462071508169174,
0.008307048119604588,
-0.0023314126301556826,
0.02179611101746559,
0.02683967724442482,
-0.0042623067274689674,
-0.049328044056892395,
0.0041831922717392445,
0.01640642061829567,
-0.044225141406059265,
0.00601272052153945,
-0.05577589571475983,
-0.03625433146953583,
-0.056329697370529175,
0.027334144338965416,
-0.0404474139213562,
-0.0117188710719347,
0.028421971946954727,
-0.0363532230257988,
-0.0010847372468560934,
-0.03281284123659134,
0.016940444707870483,
0.06740576028823853,
0.0313294380903244,
-0.009211922995746136,
-0.03008338063955307,
-0.01223311759531498,
-0.011837542988359928,
0.0032511213794350624,
-0.045609649270772934,
0.026503438130021095,
-0.03142833337187767,
0.07227131724357605,
-0.002605841960757971,
-0.02302239090204239,
-0.04869512468576431,
0.030380060896277428,
0.006700029596686363,
0.01483401469886303,
-0.023141061887145042,
0.00004164340498391539,
0.052927762269973755,
0.0034439635928720236,
-0.024426676332950592,
-0.06613992154598236,
0.029193339869379997,
0.030518511310219765,
-0.054114483296871185,
0.03425668552517891,
-0.03837065026164055,
0.007535679265856743,
-0.0019815771374851465,
-0.008544391952455044,
0.012885813601315022,
-0.004299391992390156,
0.07084725052118301,
0.052413515746593475,
0.06641682982444763,
-0.0046331570483744144,
0.08148818463087082,
-0.022369693964719772,
0.03483026474714279,
0.04940715804696083,
0.024703579023480415,
0.03831131383776665,
0.008326826617121696,
-0.011155178770422935,
0.028936216607689857,
-0.03651145473122597,
-0.052888207137584686,
-0.0094542121514678,
-0.02911422587931156,
-0.029944930225610733,
0.014023087918758392,
-0.017256902530789375,
-0.06546744704246521,
0.06012720614671707,
-0.04375045374035835,
-0.01695033349096775,
-0.003117615357041359,
0.0286988727748394,
-0.013429727405309677,
-0.010156354866921902,
-0.005345189943909645,
0.028006618842482567,
0.001241112477146089,
-0.07579192519187927,
-0.056013237684965134,
-0.0455305352807045,
0.00517707085236907,
0.04703371599316597,
-0.04402735456824303,
0.023061947897076607,
0.006793978624045849,
-0.030815191566944122,
0.0009357790695503354,
-0.06198640167713165,
-0.010413478128612041,
-0.06720797717571259,
-0.007466454058885574,
0.03182390704751015,
-0.02745281532406807,
-0.018354620784521103,
0.112105593085289,
-0.012717694975435734,
-0.04616345092654228,
0.015071358531713486,
-0.0015686970436945558,
-0.00296927522867918,
0.0010828831000253558,
-0.045095402747392654,
-0.04940715804696083,
0.029747143387794495,
0.01163975615054369,
-0.022883938625454903,
-0.008905353024601936,
0.02488158643245697,
0.023457521572709084,
0.0021348618902266026,
-0.056013237684965134,
-0.04972361773252487,
0.07385361194610596,
0.0029223007149994373,
-0.014695563353598118,
0.006887927185744047,
-0.001006858772598207,
0.009419599547982216,
-0.0021806000731885433,
0.012796809896826744,
0.07816536724567413,
0.002136097988113761,
-0.04311753436923027,
-0.021360980346798897,
-0.004200498573482037,
0.0548265166580677,
0.039695821702480316,
-0.06064144894480705,
0.020114922896027565,
-0.004420536104589701,
-0.028876882046461105,
-0.0035626357421278954,
0.07104504108428955,
-0.007402173243463039,
0.025020036846399307,
0.11827654391527176,
0.022112570703029633,
0.06495320051908493,
-0.05114768072962761,
-0.04193081334233284,
-0.04450204223394394,
0.07547546178102493,
0.0018431262578815222,
0.019185325130820274,
-0.05356068164110184,
-0.01595151051878929,
-0.06064144894480705,
-0.030043823644518852,
-0.03024161048233509,
-0.025771627202630043,
-0.028362635523080826,
0.04323620721697807,
0.03568074852228165,
-0.007723576854914427,
-0.01663387566804886,
0.02658255398273468,
-0.10387765616178513,
-0.053600236773490906,
0.013439617119729519,
0.0031151429284363985,
-0.024228889495134354,
0.03336664289236069,
-0.02395198866724968,
-0.03018227405846119,
0.04086276516318321,
-0.05166192725300789,
-0.07765112072229385,
0.0674453154206276,
0.015190030448138714,
-0.006808812730014324,
-0.015447153709828854,
0.01766236685216427,
-0.017899710685014725,
0.030993200838565826,
-0.06530921906232834,
-0.021182972937822342,
-0.07432830333709717,
0.009706390090286732,
-0.005221573170274496,
0.017870042473077774,
0.020372046157717705,
-0.026364987716078758,
-0.00801036786288023,
0.03136899694800377,
-0.013528620824217796,
-0.02571229077875614,
-0.006334124132990837,
-0.04276151955127716,
-0.06538833677768707,
0.004828471690416336,
-0.014932908117771149,
0.03920135647058487,
0.026048529893159866,
0.021875226870179176,
0.06309400498867035,
-0.005073233041912317,
-0.01849307119846344,
-0.0032214534003287554,
0.026364987716078758,
0.03358420729637146,
-0.0022238660603761673,
-0.006630804389715195,
0.006512132473289967,
-0.006250064820051193,
-0.0009617385803721845,
0.025573840364813805,
0.021974120289087296,
-0.02792750485241413,
0.039794716984033585,
0.022429030388593674,
-0.011026617139577866,
-0.012519908137619495,
0.010215691290795803,
0.03712459281086922,
-0.01807771809399128,
0.008687787689268589,
-0.05534076318144798,
0.0021867810282856226,
-0.0012262784875929356,
-0.014824124984443188,
0.0339006669819355,
-0.02045116201043129,
-0.025099152699112892,
-0.01179798599332571,
-0.007654351182281971,
-0.019887467846274376,
0.028580201789736748,
-0.004850722849369049,
-0.04877423867583275,
0.06815735250711441,
0.004853195045143366,
-0.009770670905709267,
-0.013014375232160091,
0.00950365886092186,
-0.039320025593042374,
0.03684769198298454,
0.019758906215429306,
0.010215691290795803,
0.042524173855781555,
-0.02096540667116642,
-0.021400537341833115,
0.057872433215379715,
0.0351862832903862,
-0.01457689143717289,
-0.036036767065525055,
-0.01973912864923477,
0.0033030405174940825,
0.003753005526959896,
0.05158281326293945,
-0.026444103568792343,
0.067801333963871,
0.002487169811502099,
0.013222051784396172,
0.019244661554694176,
-0.028421971946954727,
-0.03540384769439697,
-0.008208154700696468,
0.019788574427366257,
0.02678034082055092,
0.006551689468324184,
-0.027235250920057297,
0.035621412098407745,
0.015674607828259468,
-0.0033277638722211123,
0.003817286342382431,
-0.0495653860270977,
-0.04177258536219597,
0.03589831292629242,
0.0757523700594902,
-0.050870779901742935,
-0.02462446317076683,
-0.031349215656518936,
-0.02039182558655739,
-0.0007231581839732826,
0.07812581211328506,
-0.06329179555177689,
-0.005636925343424082,
0.0087669026106596,
0.039280470460653305,
-0.014102202840149403,
0.00517707085236907,
0.03142833337187767,
0.07464475929737091,
0.058386679738759995,
0.0031621174421161413,
0.03374243900179863,
-0.012064998038113117,
-0.01176831778138876,
-0.01073982659727335,
0.01962045580148697,
0.06962097436189651,
-0.00008545010496163741,
0.02391243167221546,
-0.009518492966890335,
0.043710894882678986,
-0.02144009619951248,
0.03684769198298454,
0.004900169558823109,
-0.04402735456824303,
-0.04640079662203789,
-0.032891955226659775,
-0.05763509124517441,
0.010799162089824677,
0.009078416973352432,
0.039636485278606415,
-0.08694710582494736,
-0.018117276951670647,
-0.020203927531838417,
-0.007733466103672981,
0.03633344545960426,
0.06004808843135834,
-0.05182015523314476,
0.060760121792554855,
0.00501636927947402,
0.025514503940939903,
-0.02699790522456169,
-0.007100548129528761,
-0.030815191566944122,
0.06950230151414871,
0.025870520621538162,
0.04351310804486275,
-0.07448653131723404,
-0.038350872695446014,
-0.04446248710155487,
0.025217823684215546,
0.050000518560409546,
-0.022804824635386467,
0.012697916477918625,
-0.03271394595503807,
0.03765861690044403,
-0.05217617377638817,
0.03352487087249756,
-0.008757012896239758,
0.046084336936473846,
0.040664978325366974,
-0.010670601390302181,
-0.00543419411405921,
-0.021934563294053078,
0.016169074922800064,
-0.029272455722093582,
-0.021400537341833115,
0.003646695287898183,
-0.03817286342382431,
-0.004645518958568573,
-0.05945472791790962,
0.02179611101746559,
0.038153085857629776,
0.017029449343681335,
-0.038607995957136154,
-0.01051237154752016,
0.01595151051878929,
-0.029905373230576515,
-0.012678137980401516,
0.016712989658117294,
-0.022013677284121513,
0.010364031419157982,
0.03686746954917908,
0.004403229802846909,
0.0014858737122267485,
-0.004746884573251009,
-0.06586302071809769,
-0.009582772850990295,
-0.009305872023105621,
0.05676482990384102,
-0.0188490878790617,
-0.0365905687212944,
0.06250064820051193,
0.013528620824217796,
0.014329657889902592,
0.013281387276947498,
-0.002751709660515189,
-0.003023666562512517,
0.08449454605579376,
0.03623455390334129,
0.00656652357429266,
0.06218418851494789,
0.033505093306303024,
-0.01923477277159691,
-0.019887467846274376,
-0.01081894151866436,
-0.04153523966670036,
0.016238300129771233,
-0.031606338918209076,
0.03504783287644386,
0.00533035583794117,
-0.003740643849596381,
0.014052756130695343,
0.035463184118270874,
0.044581156224012375,
0.044581156224012375,
-0.0430779792368412,
-0.008663064800202847,
-0.05846579372882843,
-0.007570291869342327,
-0.012510018423199654,
-0.0365312322974205,
0.01865130104124546,
-0.035364288836717606,
-0.06471586227416992,
-0.04090232402086258,
0.008079593069851398,
-0.018018383532762527,
-0.012391346506774426,
-0.0313887745141983,
-0.031092094257473946,
0.01766236685216427,
0.059533845633268356,
0.035819198936223984,
0.03791574016213417,
0.02132142335176468,
0.0482204370200634,
0.014290100894868374,
-0.032021693885326385,
-0.021004963666200638,
-0.09177310019731522,
-0.046084336936473846,
0.016258079558610916,
0.05949428677558899,
0.015259255655109882,
0.01339017041027546,
-0.04920937120914459,
-0.04291974753141403,
0.02391243167221546,
0.03419734910130501,
-0.03326775133609772,
-0.0022794934920966625,
0.025573840364813805,
0.03467203676700592,
-0.03431601822376251,
0.061788614839315414,
-0.0010309639619663358,
0.00804003607481718,
0.0008115441887639463,
-0.02003580890595913,
-0.035562075674533844,
0.030162496492266655,
-0.022804824635386467,
-0.04861601069569588,
-0.016317415982484818,
0.023872872814536095,
0.0020631642546504736,
-0.000861609005369246,
0.03166567534208298,
-0.017088783904910088,
0.003322819247841835,
0.009033914655447006,
0.02822418510913849,
-0.04331532120704651,
-0.010344252921640873,
-0.04877423867583275,
-0.024446455761790276,
-0.04841822385787964,
0.030993200838565826,
-0.01695033349096775,
-0.015259255655109882,
-0.005795154720544815,
-0.05150369927287102,
-0.012628691270947456,
-0.018502959981560707,
0.003540384816005826,
0.01159030944108963,
-0.017939267680048943,
-0.010601375252008438,
0.011283740401268005,
0.03595764935016632,
-0.0950959175825119,
-0.017840374261140823,
-0.04212860018014908,
0.01455711293965578,
-0.010809051804244518,
0.05134546756744385,
0.014913128688931465,
0.02596941404044628,
0.03791574016213417,
-0.008875684812664986,
-0.0266814474016428,
-0.054984744638204575,
0.018542518839240074,
0.003498355159536004,
-0.0017565945163369179,
-0.04727105796337128,
0.021301643922924995,
-0.01666354201734066,
0.051701486110687256,
0.024604685604572296,
-0.007921363227069378,
0.062540203332901,
0.002447612350806594,
-0.0429593063890934,
-0.04889291152358055,
0.010284916497766972,
0.05269042029976845,
0.01187710091471672,
-0.003347542602568865,
0.015298813581466675,
-0.020431382581591606,
-0.06079968065023422,
0.005483640823513269,
0.061630383133888245,
-0.0013325889594852924,
0.02375420182943344,
0.003859315998852253,
-0.06574434787034988,
-0.020886292681097984,
-0.057832878082990646,
0.04153523966670036,
-0.008831183426082134,
0.026899011805653572,
-0.03884533792734146,
-0.07108459621667862,
-0.04125833883881569,
0.018443623557686806,
0.05723951756954193,
0.035819198936223984,
0.026899011805653572,
-0.04469982907176018,
-0.037065256386995316,
-0.02575184963643551,
0.04861601069569588,
-0.005088067147880793,
-0.03101297840476036,
-0.029766922816634178,
-0.016099849715828896,
0.024031102657318115,
0.08164641261100769,
0.02060938999056816,
-0.011382633820176125,
0.004507068078964949,
-0.04905113950371742,
-0.03233814984560013,
-0.04036829620599747,
0.09367185831069946,
-0.0215389896184206,
0.07219219952821732,
-0.03657079115509987,
0.002227574586868286,
-0.0014450802700594068,
0.020826956257224083,
-0.03334686532616615,
-0.0008838600479066372,
0.026048529893159866,
-0.020747842267155647,
0.008119150064885616,
-0.011867211200296879,
0.01422087475657463,
0.03534451127052307,
0.012480351142585278,
0.008044980466365814,
0.028679095208644867,
-0.08663064241409302,
0.01313304714858532,
-0.007525790017098188,
0.02256748080253601,
0.0032634830567985773,
0.02436734177172184,
0.044739387929439545,
-0.0483391098678112,
0.03736193850636482,
0.027848388999700546,
-0.02199389785528183,
0.062540203332901,
0.08117172867059708,
0.05775376409292221,
-0.02828352153301239,
-0.07100547850131989,
0.02106430009007454,
0.004957033321261406,
0.06582346558570862,
-0.06218418851494789,
0.0020063004922121763,
0.03504783287644386,
-0.033208414912223816,
0.006072056479752064,
0.030716298148036003,
-0.03945847973227501,
-0.012559465132653713,
-0.007871916517615318,
0.002776433015242219,
0.02231035754084587,
0.0169800017029047,
-0.057832878082990646,
0.014636227861046791,
-0.004131272900849581,
-0.015447153709828854,
0.052888207137584686,
-0.06819690763950348,
0.035008274018764496,
0.01550648920238018,
-0.0533628948032856,
0.002212740480899811,
-0.06447851657867432,
0.0241102185100317,
0.03166567534208298,
-0.058030664920806885,
-0.05023786053061485,
-0.027017684653401375,
0.03059762716293335,
0.05383758246898651,
0.05403536930680275,
-0.018611744046211243,
-0.005350134335458279,
0.0753963515162468,
-0.020025920122861862,
0.003770312061533332,
-0.019155656918883324,
0.011194735765457153,
0.032219480723142624,
-0.0795498713850975,
-0.029905373230576515,
-0.07994544506072998,
-0.02391243167221546,
0.06708930432796478,
0.034335799515247345,
-0.008549337275326252,
0.015783391892910004,
0.024406898766756058,
0.0005494765937328339,
0.030716298148036003,
-0.00148463761433959,
0.022033456712961197,
-0.024248668923974037,
0.11906769126653671,
0.005013896618038416,
-0.019986361265182495,
-0.027215471491217613,
-0.019660012796521187,
0.0075208451598882675,
-0.037836626172065735,
-0.00053495162865147,
-0.039280470460653305,
-0.01030469499528408,
-0.014537334442138672,
0.0003343833959661424,
-0.04331532120704651,
0.08156730234622955,
-0.0241102185100317,
0.05371890962123871,
0.011550752446055412,
0.0468754842877388,
0.02533649653196335,
0.04276151955127716,
0.0441855825483799,
-0.017088783904910088,
0.03399956226348877,
0.005013896618038416,
-0.005369913298636675,
0.03158656135201454,
0.025020036846399307,
-0.06079968065023422,
-0.011224403977394104,
0.04331532120704651,
-0.028777988627552986,
-0.0023178148549050093,
-0.01679210364818573,
-0.06174905598163605,
-0.02895599603652954,
0.024070661514997482,
0.02173677645623684,
-0.03018227405846119,
0.008252657018601894,
-0.007703797891736031,
-0.03795529901981354,
-0.03791574016213417,
-0.0208071768283844,
0.0013276443351060152,
-0.01720745675265789,
0.019175436347723007,
-0.030933864414691925,
0.025514503940939903,
-0.03633344545960426,
-0.0202237069606781,
0.06467629969120026,
-0.07602927088737488,
-0.005488585215061903,
-0.053085993975400925,
0.011966104619204998,
-0.013578067533671856,
0.05929649993777275,
0.061076581478118896,
0.004363672342151403,
-0.022013677284121513,
-0.003275844734162092,
0.019818242639303207,
0.05486607551574707,
0.006507187616080046,
0.038607995957136154,
0.0016020735492929816,
0.07848182320594788,
0.00793125294148922,
0.012707805261015892,
-0.024584906175732613,
0.00517707085236907,
-0.00614128215238452,
-0.01999625191092491,
0.01163975615054369,
-0.03130966052412987,
0.007743355352431536,
0.02571229077875614,
-0.023971766233444214,
-0.0024587379302829504,
0.021182972937822342,
-0.035838980227708817,
0.030834970995783806,
0.00197045155800879,
-0.005686372052878141,
-0.021341202780604362,
0.026721004396677017,
-0.0897161215543747,
-0.06384559720754623,
0.003458797698840499,
-0.06202595680952072,
-0.014299989677965641,
0.08955788612365723,
0.015902062878012657,
-0.03502805158495903,
0.023932209238409996,
0.020431382581591606,
-0.044066913425922394,
-0.04359222203493118,
0.025415610522031784,
0.001539028948172927,
0.029173562303185463,
-0.03399956226348877,
0.03930024802684784,
0.00724888825789094,
0.04153523966670036,
0.033762216567993164,
-0.016653653234243393,
0.030221831053495407,
0.09746936708688736,
0.02658255398273468,
0.06380604207515717,
-0.011481527239084244,
0.06289622187614441
] |
722,029
|
apprise.plugins.base
|
_build_send_calls
|
Get a list of dictionaries that can be used to call send() or
(in the future) async_send().
|
def _build_send_calls(self, body=None, title=None,
notify_type=NotifyType.INFO, overflow=None,
attach=None, body_format=None, **kwargs):
"""
Get a list of dictionaries that can be used to call send() or
(in the future) async_send().
"""
if not self.enabled:
# Deny notifications issued to services that are disabled
msg = f"{self.service_name} is currently disabled on this system."
self.logger.warning(msg)
raise TypeError(msg)
# Prepare attachments if required
if attach is not None and not isinstance(attach, AppriseAttachment):
try:
attach = AppriseAttachment(attach, asset=self.asset)
except TypeError:
# bad attachments
raise
# Handle situations where the body is None
body = '' if not body else body
elif not (body or attach):
# If there is not an attachment at the very least, a body must be
# present
msg = "No message body or attachment was specified."
self.logger.warning(msg)
raise TypeError(msg)
if not body and not self.attachment_support:
# If no body was specified, then we know that an attachment
# was. This is logic checked earlier in the code.
#
# Knowing this, if the plugin itself doesn't support sending
# attachments, there is nothing further to do here, just move
# along.
msg = f"{self.service_name} does not support attachments; " \
" service skipped"
self.logger.warning(msg)
raise TypeError(msg)
# Handle situations where the title is None
title = '' if not title else title
# Truncate flag set with attachments ensures that only 1
# attachment passes through. In the event there could be many
# services specified, we only want to do this logic once.
# The logic is only applicable if ther was more then 1 attachment
# specified
overflow = self.overflow_mode if overflow is None else overflow
if attach and len(attach) > 1 and overflow == OverflowMode.TRUNCATE:
# Save first attachment
_attach = AppriseAttachment(attach[0], asset=self.asset)
else:
# reference same attachment
_attach = attach
# Apply our overflow (if defined)
for chunk in self._apply_overflow(
body=body, title=title, overflow=overflow,
body_format=body_format):
# Send notification
yield dict(
body=chunk['body'], title=chunk['title'],
notify_type=notify_type, attach=_attach,
body_format=body_format
)
|
(self, body=None, title=None, notify_type='info', overflow=None, attach=None, body_format=None, **kwargs)
|
[
-0.02408856526017189,
-0.06289684772491455,
-0.04079795628786087,
0.00514803733676672,
-0.008827966637909412,
-0.02965192310512066,
-0.05192466825246811,
0.0173178818076849,
-0.02789405547082424,
0.014787326566874981,
0.04941343143582344,
0.02285226434469223,
0.003349121892824769,
-0.014304396696388721,
-0.0829094797372818,
0.03135183826088905,
0.001873769680969417,
-0.022601140663027763,
0.039716191589832306,
-0.07162822782993317,
0.0415320098400116,
0.024030612781643867,
-0.01029607467353344,
0.03461644798517227,
0.0237408559769392,
0.06054014712572098,
0.017569005489349365,
0.004358446225523949,
0.026097554713487625,
0.04485457018017769,
0.019780825823545456,
-0.04419778287410736,
0.041300203651189804,
-0.005886920727789402,
0.025575989857316017,
0.008272596634924412,
-0.026850927621126175,
0.026619119569659233,
-0.07564620673656464,
0.04871801286935806,
0.007099076174199581,
-0.024049930274486542,
0.03824808448553085,
-0.029091723263263702,
-0.03386307507753372,
0.0018351352773606777,
-0.037417441606521606,
0.09983135759830475,
0.052311014384031296,
0.0031149007845669985,
-0.015077085234224796,
-0.009421970695257187,
0.009296408854424953,
0.009755193255841732,
-0.0692715272307396,
0.08824103325605392,
-0.008576842956244946,
0.04504774138331413,
-0.022427285090088844,
0.0028323864098638296,
-0.007408151403069496,
0.02882128208875656,
0.0673784390091896,
-0.04033434018492699,
-0.014574837870895863,
-0.015125378035008907,
-0.015540698543190956,
0.01020914688706398,
-0.006389168556779623,
0.022292064502835274,
0.03778446838259697,
0.010498905554413795,
-0.06880791485309601,
-0.0030786809511482716,
0.025846431031823158,
0.03005758486688137,
0.022292064502835274,
0.04075932130217552,
0.029632605612277985,
-0.011397155933082104,
0.06722390651702881,
0.02350904792547226,
-0.015038450248539448,
-0.01248857844620943,
0.06081058830022812,
0.04021843895316124,
0.005012816749513149,
0.024764668196439743,
-0.005655114073306322,
-0.006712731905281544,
-0.0019413799745962024,
0.0019836362916976213,
0.03283926472067833,
-0.027642931789159775,
-0.020939858630299568,
-0.004421227145940065,
-0.053585950285196304,
-0.026271410286426544,
0.0057565295137465,
0.01874735578894615,
-0.05362458527088165,
-0.017424127086997032,
-0.010779005475342274,
-0.027237271890044212,
0.02580779790878296,
-0.08213679492473602,
0.00035344462958164513,
-0.07000558078289032,
0.018641110509634018,
0.026792975142598152,
0.00930606760084629,
-0.05547903850674629,
-0.0752984955906868,
-0.0429614819586277,
-0.020205805078148842,
0.013493073172867298,
-0.005205988883972168,
0.028628110885620117,
0.0003139047184959054,
-0.0010057024192065,
0.005577845498919487,
0.009479922242462635,
-0.0057806759141385555,
-0.0156952366232872,
0.02329655922949314,
0.038615111261606216,
-0.007978009060025215,
0.0009356775553897023,
0.07564620673656464,
-0.051461055874824524,
-0.014796985313296318,
0.012449944391846657,
0.015424794517457485,
0.01905643194913864,
0.017617298290133476,
0.01487425435334444,
-0.03585274890065193,
-0.0025812627281993628,
0.03032802604138851,
0.0012483749305829406,
-0.03185408562421799,
-0.015666259452700615,
-0.0025498722679913044,
0.0013751441147178411,
0.0036074896343052387,
0.020708052441477776,
0.0475589781999588,
-0.03523459658026695,
-0.052697356790304184,
-0.0006845537573099136,
0.04242059960961342,
-0.011628962121903896,
-0.031216617673635483,
0.03672202304005623,
0.009093577973544598,
-0.002757532289251685,
-0.04091385751962662,
0.0037089050747454166,
-0.017607640475034714,
-0.011339204385876656,
-0.02138415537774563,
-0.0078669348731637,
0.03229838237166405,
0.007978009060025215,
-0.000022939191694604233,
-0.0042014941573143005,
0.0275849811732769,
0.01825476624071598,
0.04330919310450554,
0.059921994805336,
-0.019732533022761345,
0.05856979265809059,
-0.0376492477953434,
-0.03791968896985054,
-0.03005758486688137,
0.06397861242294312,
-0.00439708074554801,
-0.01900813728570938,
-0.057874370366334915,
-0.015434453263878822,
-0.04195698723196983,
-0.011783500202000141,
-0.008084253408014774,
-0.01135852187871933,
-0.005539210978895426,
0.04582042992115021,
0.046515848487615585,
-0.04242059960961342,
-0.012797653675079346,
-0.028319034725427628,
-0.05698578059673309,
0.01899847947061062,
0.03274267539381981,
0.018621793016791344,
0.0022468334063887596,
0.0383639857172966,
-0.03214384242892265,
-0.028492890298366547,
-0.012662433087825775,
0.014990157447755337,
-0.04995431378483772,
-0.0399479977786541,
0.018930869176983833,
0.0020065754652023315,
-0.01847691461443901,
-0.02885991707444191,
0.0359879694879055,
-0.0033539512660354376,
-0.00930606760084629,
-0.0022154429461807013,
-0.04091385751962662,
-0.015328208915889263,
-0.04269104078412056,
0.008803820237517357,
0.046245407313108444,
-0.010788663290441036,
0.0736372172832489,
0.018312718719244003,
-0.01604294590651989,
0.01525093987584114,
-0.03571752831339836,
-0.011995989829301834,
-0.04524091258645058,
-0.011542035266757011,
-0.005109402816742659,
0.05621309205889702,
0.029632605612277985,
0.006683755666017532,
0.05238828435540199,
-0.003102827351540327,
-0.012826629914343357,
0.020167170092463493,
0.010856273584067822,
0.063090018928051,
-0.043734170496463776,
-0.025035109370946884,
-0.027855422347784042,
-0.008383670821785927,
0.029767826199531555,
-0.027430443093180656,
0.06239460036158562,
0.006055946461856365,
0.01020914688706398,
0.008987333625555038,
0.0034674399066716433,
-0.07877559959888458,
-0.008600989356637001,
-0.021248934790492058,
-0.019307555630803108,
0.004636131227016449,
0.01599465310573578,
-0.02594301849603653,
-0.012420968152582645,
-0.037185635417699814,
-0.018409304320812225,
-0.009339872747659683,
0.07819607853889465,
-0.010392661206424236,
0.025131694972515106,
-0.029188308864831924,
0.027217954397201538,
0.021268252283334732,
-0.025228280574083328,
0.038827598094940186,
-0.012140868231654167,
-0.01709573343396187,
0.0073936632834374905,
-0.0072149792686104774,
-0.04794532433152199,
0.07328950613737106,
0.04118429869413376,
0.03349604830145836,
0.04230469837784767,
0.013850442133843899,
-0.040102533996105194,
0.06478993594646454,
-0.0004228658799547702,
-0.016873585060238838,
-0.024668080732226372,
-0.010025633499026299,
0.02240796759724617,
0.03338014334440231,
0.04072068631649017,
-0.027295222505927086,
0.046052236109972,
-0.0391559898853302,
0.054165467619895935,
0.034848254173994064,
-0.029362164437770844,
-0.05030202493071556,
0.02209889143705368,
0.08360490202903748,
0.02271704375743866,
-0.05370185524225235,
-0.03627772629261017,
0.008712063543498516,
-0.04056615009903908,
0.00318251084536314,
0.049529336392879486,
-0.04972250759601593,
0.027160001918673515,
0.038692377507686615,
0.036876559257507324,
-0.024455592036247253,
0.0005668394733220339,
-0.01100115291774273,
0.00510457344353199,
-0.010064268484711647,
0.008180839940905571,
-0.03137115389108658,
-0.01173520740121603,
-0.016342362388968468,
0.046052236109972,
-0.04485457018017769,
0.044700030237436295,
0.024320371448993683,
0.05277462676167488,
0.05092017352581024,
0.01414019986987114,
0.06208552420139313,
-0.028222449123859406,
0.070701003074646,
-0.013068094849586487,
0.041261568665504456,
0.059728823602199554,
0.04199562221765518,
0.01175452396273613,
0.058801598846912384,
-0.024610130116343498,
-0.02360563538968563,
-0.0153378676623106,
0.01643894799053669,
0.0146038131788373,
-0.008634794503450394,
-0.02107507921755314,
0.04168654605746269,
0.044622763991355896,
-0.024610130116343498,
0.018312718719244003,
-0.046206776052713394,
-0.01952970214188099,
0.05026338994503021,
-0.01825476624071598,
0.05095880851149559,
0.005809652153402567,
-0.03627772629261017,
0.0783892497420311,
-0.018930869176983833,
0.03523459658026695,
-0.027333857491612434,
0.000839091488160193,
-0.04968387261033058,
0.036741338670253754,
0.029536020010709763,
0.07935511320829391,
-0.024919206276535988,
-0.02148074097931385,
-0.06220142915844917,
0.02814517915248871,
0.016719048842787743,
0.025846431031823158,
0.03424942120909691,
-0.007736544124782085,
0.05088153854012489,
-0.043463729321956635,
0.01235335785895586,
0.023103388026356697,
0.012604481540620327,
0.01053753960877657,
-0.01578216254711151,
0.02267840877175331,
0.025344183668494225,
-0.04072068631649017,
-0.008485086262226105,
-0.006070434115827084,
-0.009929047897458076,
-0.03791968896985054,
0.012015306390821934,
-0.059149306267499924,
0.029111040756106377,
-0.01034436747431755,
0.022156843915581703,
-0.019954681396484375,
-0.004409153945744038,
0.06235596537590027,
-0.031042762100696564,
0.051074713468551636,
0.004232884384691715,
-0.027739519253373146,
-0.004551618359982967,
0.060308340936899185,
-0.048988454043865204,
-0.04721127077937126,
-0.007495078723877668,
-0.02696683071553707,
-0.0584152527153492,
0.0015876335091888905,
0.04543408751487732,
-0.07101007550954819,
-0.08940006047487259,
0.016999147832393646,
-0.07073963433504105,
0.03032802604138851,
0.017559347674250603,
0.012874922715127468,
-0.0029048260767012835,
0.03235633298754692,
-0.018621793016791344,
0.05501542240381241,
0.06486720591783524,
-0.01290389895439148,
-0.004653033800423145,
-0.05996062979102135,
-0.029053088277578354,
-0.03600728511810303,
-0.026483898982405663,
-0.04450685903429985,
0.01697017252445221,
-0.000019505858290358447,
0.032279063016176224,
-0.00012676921323873103,
0.013261266984045506,
0.017752518877387047,
0.04999294877052307,
0.029400799423456192,
0.0033370486926287413,
-0.03832535073161125,
-0.03318697214126587,
-0.009755193255841732,
-0.010730711743235588,
0.007673763204365969,
0.05613582208752632,
-0.06981240957975388,
0.0180712528526783,
0.019510386511683464,
0.023586317896842957,
0.014941864646971226,
-0.05779710412025452,
-0.002518481807783246,
0.0031945842783898115,
-0.025479404255747795,
0.007026636507362127,
-0.017086075618863106,
-0.03801627457141876,
-0.014970840886235237,
-0.040682051330804825,
-0.001346168341115117,
-0.02488057129085064,
0.002235967433080077,
0.011822134256362915,
0.014507227577269077,
0.028454255312681198,
0.0749894231557846,
-0.008093912154436111,
-0.04601360112428665,
-0.034230101853609085,
0.04732717201113701,
0.0017397565534338355,
-0.05003158375620842,
-0.03160296007990837,
0.044622763991355896,
-0.04272967576980591,
-0.059728823602199554,
0.006577511318027973,
-0.003791003255173564,
0.053585950285196304,
0.0018097814172506332,
-0.016979830339550972,
-0.04056615009903908,
0.023180656135082245,
0.0951952263712883,
-0.03822876513004303,
0.023354511708021164,
-0.003218730678781867,
0.02621345780789852,
-0.022350015118718147,
0.035910699516534805,
0.03990936279296875,
-0.03627772629261017,
-0.06969650834798813,
0.004655448254197836,
-0.05428136885166168,
0.0011922342237085104,
0.0050321342423558235,
-0.017385492101311684,
-0.02381812408566475,
0.04226606339216232,
-0.046052236109972,
0.004795498214662075,
0.0012350943870842457,
0.0005306196981109679,
-0.035118695348501205,
0.03952302038669586,
0.02107507921755314,
0.03801627457141876,
0.024378323927521706,
-0.006606487091630697,
0.005273599177598953,
0.01528957486152649,
-0.06571716070175171,
-0.004488837439566851,
-0.05335414409637451,
0.00864445324987173,
0.01357034221291542,
0.03160296007990837,
-0.03309038653969765,
-0.01118466630578041,
0.01983877830207348,
-0.03571752831339836,
0.002461737487465143,
-0.032414283603429794,
-0.016757681965827942,
-0.048293035477399826,
-0.0520792081952095,
-0.017704226076602936,
-0.048370301723480225,
-0.0016540364595130086,
0.0038948331493884325,
-0.023257924243807793,
-0.053585950285196304,
0.10230395942926407,
0.010498905554413795,
-0.0398707278072834,
-0.007002490106970072,
0.003479513106867671,
-0.03819013014435768,
0.033032435923814774,
0.009310896508395672,
0.02951670251786709,
-0.03521528095006943,
0.0047399611212313175,
0.020823955535888672,
0.04504774138331413,
-0.046824924647808075,
0.0659489631652832,
-0.008818307891488075,
-0.06440358608961105,
-0.044313687831163406,
-0.06019243597984314,
0.010962518863379955,
-0.003100412664934993,
0.0367799736559391,
-0.06853747367858887,
-0.09789963811635971,
-0.017269589006900787,
-0.0323370136320591,
0.05644489824771881,
-0.0038272228557616472,
0.03243360295891762,
-0.0829867497086525,
0.003334634006023407,
-0.01980014331638813,
0.021847767755389214,
0.09334077686071396,
-0.061853718012571335,
-0.016767341643571854,
-0.010151195339858532,
-0.047443076968193054,
0.02488057129085064,
0.001895501627586782,
-0.016680413857102394,
0.004317397251725197,
-0.10060404986143112,
-0.0215193759649992,
-0.07325087487697601,
0.0344812273979187,
0.04570452868938446,
0.06297411769628525,
-0.03531186655163765,
-0.0199353639036417,
-0.06853747367858887,
0.04995431378483772,
-0.07325087487697601,
-0.027700884267687798,
0.04319328814744949,
0.016255434602499008,
-0.015637284144759178,
-0.01983877830207348,
-0.02806791104376316,
-0.028299717232584953,
0.05872432887554169,
-0.04203425720334053,
-0.050456561148166656,
-0.06880791485309601,
-0.024185150861740112,
-0.011252276599407196,
-0.00912738312035799,
0.01482596155256033,
0.019365506246685982,
0.07502805441617966,
-0.024011297151446342,
0.008258108980953693,
-0.017607640475034714,
-0.010721053928136826,
0.0006356570520438254,
0.09650880098342896,
0.04118429869413376,
-0.014487910084426403,
-0.038866233080625534,
-0.008586501702666283,
-0.007823471911251545,
0.034944839775562286,
-0.001966733718290925,
-0.017424127086997032,
0.03705041483044624,
-0.02368290349841118,
-0.04388871043920517,
0.030443929135799408,
0.0009248115820810199,
0.014304396696388721,
0.024049930274486542,
0.025575989857316017,
0.05980609357357025,
0.031216617673635483,
-0.03094617649912834,
-0.013029460795223713,
-0.032858580350875854,
0.02673502266407013,
0.07765519618988037,
0.007615811191499233,
-0.026638437062501907,
-0.029188308864831924,
-0.05227237939834595,
-0.04701809585094452,
-0.023856759071350098,
-0.018940526992082596,
0.0014922547852620482,
-0.05250418558716774,
-0.03909803926944733,
-0.040063899010419846,
0.01847691461443901,
0.029767826199531555,
0.07236228138208389,
0.01053753960877657,
0.06011516973376274,
-0.03600728511810303,
-0.0057806759141385555,
0.02161596156656742,
-0.0475589781999588,
-0.01772354356944561,
0.08120956271886826,
-0.054435908794403076,
-0.04211152717471123,
-0.0827549397945404,
-0.0021345519926398993,
0.016187824308872223,
-0.005244623403996229,
-0.06390134245157242,
-0.00005553698792937212,
0.00570340733975172,
-0.01436234824359417,
0.024378323927521706,
-0.08012779802083969,
0.007200491148978472,
-0.032723359763622284,
0.15515585243701935,
0.00833054818212986,
-0.014420299790799618,
-0.0018834283109754324,
0.0001868336694315076,
-0.026850927621126175,
0.01790705695748329,
0.035775478929281235,
-0.03401761129498482,
-0.04601360112428665,
-0.013319218531250954,
0.00941231194883585,
-0.03353468328714371,
0.03434600681066513,
0.004167689010500908,
0.0036340507213026285,
0.027063416317105293,
0.015801480039954185,
0.02010921947658062,
0.00945577584207058,
0.05250418558716774,
0.00005580109063885175,
0.009339872747659683,
-0.00008458826778223738,
0.0016793902032077312,
-0.0036581973545253277,
-0.012092575430870056,
-0.04937479645013809,
0.06861474364995956,
0.01647758297622204,
-0.038383301347494125,
0.07410082966089249,
-0.028009960427880287,
-0.021673914045095444,
0.0030255585443228483,
0.012053941376507282,
-0.0260782390832901,
-0.006770683452486992,
0.018757013604044914,
0.026503216475248337,
-0.06289684772491455,
-0.05822208151221275,
-0.07645753026008606,
-0.015927042812108994,
0.0030279732309281826,
0.052967797964811325,
-0.04690219461917877,
-0.016245776787400246,
0.002827557036653161,
-0.0015876335091888905,
0.008185668848454952,
-0.02024444006383419,
0.055981285870075226,
0.035910699516534805,
0.05528586357831955,
0.010160854086279869,
0.013676587492227554,
0.062124159187078476,
0.004954865202307701,
-0.01622645929455757,
-0.042497869580984116,
0.01811954565346241,
0.05988336354494095,
0.0057130660861730576,
0.042536504566669464,
-0.030637100338935852,
0.01724061369895935,
0.05412683263421059,
-0.06706936657428741,
0.00837401207536459,
-0.017491737380623817,
0.01582079753279686,
0.03112003020942211,
0.049567971378564835,
-0.0016733536031097174,
-0.005650285165756941,
-0.03274267539381981,
-0.01449756883084774,
0.01376351434737444,
0.04400461167097092,
-0.05238828435540199,
0.04694082960486412,
-0.01939448155462742,
-0.038383301347494125,
-0.018042277544736862,
-0.01305843610316515,
-0.042188793420791626,
-0.03349604830145836,
0.006538876798003912,
-0.007388834375888109,
-0.0253635011613369,
0.07182139903306961,
0.01635202206671238,
-0.012836288660764694,
-0.048061225563287735,
0.02598165161907673,
0.01679631695151329,
-0.03137115389108658,
0.009122554212808609,
0.03355399891734123,
0.0007225844892673194,
0.003168022958561778,
-0.001301497220993042,
-0.026580486446619034,
-0.0062539479695260525,
0.04670902341604233,
-0.02735317498445511,
0.008229132741689682,
0.08484119921922684,
0.009219139814376831,
0.04168654605746269,
0.012546529993414879,
0.055401768535375595
] |
722,030
|
apprise.plugins.base
|
async_notify
|
Performs notification for asynchronous callers
|
def notify(self, *args, **kwargs):
"""
Performs notification
"""
try:
# Build a list of dictionaries that can be used to call send().
send_calls = list(self._build_send_calls(*args, **kwargs))
except TypeError:
# Internal error
return False
else:
# Loop through each call, one at a time. (Use a list rather than a
# generator to call all the partials, even in case of a failure.)
the_calls = [self.send(**kwargs2) for kwargs2 in send_calls]
return all(the_calls)
|
(self, *args, **kwargs)
|
[
0.031393151730298996,
-0.04581410065293312,
-0.009417945519089699,
0.0345957987010479,
-0.02496976964175701,
-0.04585028812289238,
-0.018618764355778694,
0.018709233030676842,
0.020663389936089516,
-0.012457744218409061,
0.03667661175131798,
-0.0017822625814005733,
0.01899873837828636,
-0.035590969026088715,
-0.07132668793201447,
-0.042448610067367554,
-0.0006836153334006667,
-0.01710791140794754,
-0.001332173473201692,
-0.04961384832859039,
-0.012602495960891247,
0.07512643933296204,
0.01252107322216034,
0.02913139946758747,
0.00691192178055644,
0.06293106079101562,
0.043642815202474594,
-0.0020095689687877893,
0.059095121920108795,
0.08475246280431747,
-0.012032533995807171,
-0.029547560960054398,
0.05489730462431908,
-0.010087424889206886,
0.04733400046825409,
0.02614588290452957,
-0.017524074763059616,
0.028516201302409172,
-0.07179713994264603,
-0.013425774872303009,
0.005826279520988464,
-0.05240032821893692,
0.008829889819025993,
0.020084381103515625,
-0.0193606186658144,
-0.004817537032067776,
-0.056453391909599304,
0.16299107670783997,
0.03803366422653198,
0.03640520200133324,
-0.0022730634082108736,
0.007622112985700369,
0.001420381828211248,
-0.019722498953342438,
-0.0261639766395092,
0.07519881427288055,
0.023377494886517525,
0.07378748059272766,
0.0077985296957194805,
-0.0027321993838995695,
0.008305163122713566,
0.02565734274685383,
0.048093948513269424,
-0.04158009588718414,
0.007680918555706739,
-0.03240641951560974,
0.023087989538908005,
-0.011426383629441261,
-0.002265147166326642,
0.036748986691236496,
-0.027756251394748688,
0.029674218967556953,
-0.06043408066034317,
0.012575355358421803,
0.039155494421720505,
0.013434821739792824,
-0.016764124855399132,
0.040349699556827545,
0.040096383541822433,
0.038286980241537094,
0.00670384056866169,
-0.051676567643880844,
-0.02562115527689457,
-0.01028645969927311,
0.03220738470554352,
0.03307589888572693,
-0.006455047521740198,
-0.030253229662775993,
0.012882953509688377,
0.02974659577012062,
-0.02562115527689457,
0.018139271065592766,
0.04306380823254585,
-0.026851549744606018,
0.011833500117063522,
0.0007689965423196554,
0.007214996963739395,
-0.04024113714694977,
-0.03358253091573715,
-0.01874542236328125,
-0.039770692586898804,
0.014556651934981346,
0.014013831503689289,
-0.05804567039012909,
0.07132668793201447,
-0.029402809217572212,
0.0003924144257325679,
-0.05290696397423744,
-0.02922186814248562,
-0.0005329259438440204,
-0.00910130050033331,
-0.04823870211839676,
-0.06524709612131119,
-0.006047931499779224,
-0.02440885454416275,
-0.015470401383936405,
-0.05091661959886551,
-0.01874542236328125,
-0.021495714783668518,
0.012955330312252045,
-0.019469182938337326,
0.023069895803928375,
0.03569953516125679,
-0.026616327464580536,
0.02560306154191494,
0.04375138133764267,
0.01700839400291443,
0.005324169993400574,
0.0774424746632576,
-0.0512784980237484,
-0.013679091818630695,
0.004496368113905191,
-0.020717671141028404,
0.031067460775375366,
0.01102831494063139,
0.05692384019494057,
-0.026073506101965904,
-0.03446913883090019,
0.0667308047413826,
-0.022147100418806076,
0.0025015005376189947,
-0.02793719246983528,
0.03745465353131294,
0.05923987552523613,
0.02413744479417801,
0.028045756742358208,
0.0193606186658144,
-0.012702013365924358,
-0.004089252091944218,
-0.02352224662899971,
0.06101309135556221,
-0.03566334396600723,
-0.019270148128271103,
-0.004568743985146284,
-0.09611552208662033,
0.036441389471292496,
-0.03278639540076256,
-0.006305771879851818,
-0.004525770898908377,
-0.032279759645462036,
-0.02647157572209835,
-0.031067460775375366,
-0.00036046712193638086,
0.05486111715435982,
-0.006803357508033514,
-0.010132660157978535,
-0.011571136303246021,
-0.008219216018915176,
0.018293071538209915,
0.0827983096241951,
-0.014945673756301403,
0.04997572675347328,
-0.0037432038225233555,
-0.016293680295348167,
-0.0069978684186935425,
0.04708068445324898,
-0.031375057995319366,
-0.04917959123849869,
-0.05236414074897766,
-0.01370623242110014,
-0.019541559740900993,
-0.0691915974020958,
-0.03146553039550781,
-0.0171440988779068,
0.0033338263165205717,
0.060615021735429764,
0.009033448062837124,
-0.03314827382564545,
0.01995772123336792,
-0.004240789916366339,
-0.05156800523400307,
-0.013507198542356491,
0.04621217027306557,
0.06687556207180023,
-0.009060588665306568,
0.00016100864741019905,
0.0084951501339674,
-0.010883563198149204,
-0.012303944677114487,
-0.029927536845207214,
0.005572963040322065,
-0.10154373198747635,
0.02705058455467224,
0.0010460615158081055,
-0.022273758426308632,
0.0037861771415919065,
0.04668261483311653,
0.04067539423704147,
0.04168865829706192,
-0.035590969026088715,
-0.027195336297154427,
-0.04831107705831528,
-0.012720108032226562,
0.03835935890674591,
0.04498177394270897,
0.008603714406490326,
0.07925187796354294,
0.008504197001457214,
-0.04230385646224022,
-0.0016997085185721517,
0.04313618317246437,
-0.01324483472853899,
-0.03457770496606827,
0.034975770860910416,
-0.03937262296676636,
0.05960175767540932,
0.03387203440070152,
0.04556078463792801,
0.042991429567337036,
0.0007667347672395408,
0.01101022120565176,
0.052798397839069366,
0.05739428475499153,
0.04613979160785675,
-0.05243651568889618,
-0.0475873164832592,
-0.03575381636619568,
0.021839501336216927,
0.03063320368528366,
0.028226695954799652,
0.05594675987958908,
-0.004853725433349609,
-0.006527423858642578,
-0.021043363958597183,
0.03132077679038048,
-0.06065120920538902,
0.032135009765625,
0.01459284033626318,
-0.0035441694781184196,
-0.007120003458112478,
-0.010186942294239998,
-0.007662824355065823,
-0.05214701220393181,
-0.07241233438253403,
-0.03531955927610397,
0.022997520864009857,
0.02887808158993721,
0.018890174105763435,
0.07563307136297226,
0.029059022665023804,
0.011598276905715466,
0.0720866397023201,
-0.0015640032943338156,
0.059710320085287094,
-0.0011206993367522955,
-0.0033926318865269423,
-0.01705363020300865,
0.016022268682718277,
-0.029692314565181732,
0.03624235466122627,
0.06372719258069992,
-0.011164020746946335,
0.0171440988779068,
0.013633856549859047,
-0.04082014784216881,
0.0004464138182811439,
0.036748986691236496,
-0.04255717247724533,
-0.056960027664899826,
-0.0016431646654382348,
0.019252054393291473,
0.018410682678222656,
0.02169474959373474,
-0.0345957987010479,
-0.012014440260827541,
-0.027882909402251244,
0.06267774105072021,
0.03817841783165932,
-0.025096427649259567,
-0.04197816550731659,
0.019885346293449402,
0.026127789169549942,
0.0261639766395092,
-0.01835639961063862,
-0.03175503388047218,
-0.008581096306443214,
-0.009481275454163551,
-0.009010829962790012,
0.05475255474448204,
-0.024788830429315567,
0.029656125232577324,
-0.007309990935027599,
-0.05265364423394203,
-0.08048227429389954,
0.03627854213118553,
0.0019338001729920506,
0.032858770340681076,
0.03600713238120079,
-0.00345596089027822,
-0.007983993738889694,
-0.010051237419247627,
-0.01372432615607977,
-0.012285850942134857,
-0.05630864202976227,
0.09206245839595795,
0.02623635344207287,
0.025765907019376755,
-0.019215866923332214,
-0.00014927580195944756,
0.04679117724299431,
-0.0059529379941523075,
0.0638357624411583,
0.017732156440615654,
0.09958957880735397,
0.009119394235312939,
0.0058036623522639275,
0.0277019701898098,
0.016112739220261574,
-0.028118131682276726,
-0.018528293818235397,
-0.017641685903072357,
-0.05927606299519539,
0.037418466061353683,
-0.03857648745179176,
-0.03685755282640457,
0.03323874622583389,
0.018673045560717583,
-0.004699925892055035,
0.0405668281018734,
0.03338349610567093,
0.0076085422188043594,
0.013941454701125622,
0.0044330391101539135,
0.03682136535644531,
-0.0006773954955860972,
0.02531355619430542,
0.016311774030327797,
0.01517184916883707,
0.04733400046825409,
0.0036617806181311607,
-0.0446922704577446,
-0.014837109483778477,
0.022165194153785706,
-0.0034401286393404007,
0.021640468388795853,
-0.01010551955550909,
0.025765907019376755,
-0.033781565725803375,
0.00030166152282617986,
-0.010946892201900482,
0.049830976873636246,
0.03479483351111412,
-0.0030013483483344316,
0.005401069764047861,
-0.051604192703962326,
0.01252107322216034,
0.040024008601903915,
0.04281048849225044,
-0.02442694827914238,
-0.004573267884552479,
0.007228567730635405,
0.020735764876008034,
-0.0512784980237484,
-0.0017867861315608025,
0.01461093407124281,
0.0005710929981432855,
0.007902570068836212,
0.00001980802153411787,
-0.03835935890674591,
0.007721629925072193,
-0.0038676003459841013,
-0.027828628197312355,
0.0118968291208148,
-0.012864859774708748,
0.02828097902238369,
0.00419555464759469,
0.00565438624471426,
0.016519855707883835,
-0.048998650163412094,
0.0032252620439976454,
0.04769587889313698,
-0.051676567643880844,
-0.08265355974435806,
-0.020970989018678665,
-0.06050645932555199,
-0.01818450726568699,
0.06615179777145386,
0.014040972106158733,
-0.04733400046825409,
-0.05037379637360573,
0.01101022120565176,
-0.01265677809715271,
-0.061483535915613174,
0.02355843596160412,
0.028136227279901505,
0.03314827382564545,
-0.0006502544274553657,
-0.02972850203514099,
0.043896131217479706,
0.029040928930044174,
0.008011134341359138,
-0.009743638336658478,
-0.03475864231586456,
-0.03546431288123131,
-0.03432438522577286,
0.01117306761443615,
-0.05775616317987442,
-0.0034672697074711323,
0.023757468909025192,
0.00391509709879756,
-0.0013446130324155092,
-0.014375711791217327,
0.06966204196214676,
0.013579574413597584,
0.043606627732515335,
-0.022762298583984375,
-0.0009544604108668864,
-0.04914340376853943,
0.04342568665742874,
0.03658614307641983,
-0.03372728452086449,
0.004672784823924303,
-0.03128458932042122,
0.03240641951560974,
0.03759940713644028,
-0.016438432037830353,
0.0037861771415919065,
-0.04581410065293312,
-0.024879300966858864,
0.005943891126662493,
-0.06293106079101562,
0.05207463726401329,
-0.045958854258060455,
-0.04049445316195488,
-0.024571701884269714,
-0.026887737214565277,
0.002917663427069783,
-0.056417204439640045,
-0.002698273165151477,
0.012982470914721489,
-0.02676107920706272,
0.009327475912868977,
0.029095210134983063,
-0.03539193421602249,
-0.00698429811745882,
-0.053558349609375,
-0.02706867828965187,
0.008341350592672825,
-0.011643512174487114,
-0.027249619364738464,
-0.027195336297154427,
-0.018103083595633507,
-0.10443878173828125,
-0.016791265457868576,
0.017352180555462837,
0.04201435297727585,
-0.021242398768663406,
0.04505414888262749,
-0.013018659316003323,
0.032442606985569,
0.06767169386148453,
-0.05529537424445152,
0.011462572030723095,
0.007699012290686369,
-0.0004656387318391353,
0.00017528598255012184,
-0.039770692586898804,
0.06079596281051636,
0.0009533295524306595,
-0.036785174161195755,
-0.057611413300037384,
0.023920316249132156,
0.002487930003553629,
0.01561515312641859,
-0.003912835381925106,
-0.08337731659412384,
0.04281048849225044,
-0.03483102098107338,
-0.018510200083255768,
-0.04700830578804016,
0.015578965656459332,
-0.022979427129030228,
0.06499377638101578,
0.024951675906777382,
0.0628586858510971,
0.009408898651599884,
-0.07317228615283966,
-0.0056996215134859085,
0.008712278679013252,
-0.030217040330171585,
-0.0011919446988031268,
0.029674218967556953,
0.04794919490814209,
0.035627156496047974,
0.01879970356822014,
-0.03401678800582886,
0.021025270223617554,
0.03694802150130272,
-0.0034898873418569565,
0.011978251859545708,
-0.005753903649747372,
-0.004292810335755348,
-0.01056691724807024,
-0.00015634378360118717,
0.04252098500728607,
-0.030578920617699623,
0.004521247465163469,
-0.01193301659077406,
-0.03893836587667465,
-0.018872080370783806,
0.10733382403850555,
-0.01965012401342392,
-0.014882344752550125,
-0.019740594550967216,
0.017967378720641136,
-0.045379843562841415,
0.010503588244318962,
-0.019179679453372955,
0.010060284286737442,
-0.03579000383615494,
0.0138509850949049,
0.03774416074156761,
0.02354034222662449,
-0.03066939115524292,
0.03716515004634857,
-0.01533469557762146,
-0.007522595580667257,
-0.04552459716796875,
-0.053377408534288406,
0.01774120330810547,
-0.010449306108057499,
-0.0024359095841646194,
-0.07266564667224884,
-0.07418555021286011,
-0.017361227422952652,
-0.016556043177843094,
0.027141055092215538,
-0.03403488174080849,
0.025096427649259567,
-0.03861267492175102,
-0.022092819213867188,
-0.04295524209737778,
0.015515636652708054,
0.08829889446496964,
-0.01579609327018261,
0.03756321966648102,
0.02261754497885704,
0.004516724031418562,
-0.00939985178411007,
0.026562046259641647,
-0.019812969490885735,
-0.003636901266872883,
0.03179122135043144,
-0.012683919630944729,
-0.08359444886445999,
0.0005470619071274996,
0.05569344386458397,
0.0126658258959651,
0.018157364800572395,
0.0035758339799940586,
-0.030307510867714882,
0.06039789319038391,
-0.06886590272188187,
-0.009078682400286198,
0.04613979160785675,
0.012186333537101746,
0.0309950839728117,
-0.05840754881501198,
-0.05468017980456352,
-0.05413735657930374,
0.0039241439662873745,
-0.0506633035838604,
-0.021025270223617554,
-0.03546431288123131,
0.015958940610289574,
0.03034369833767414,
-0.046248357743024826,
0.013353399001061916,
0.017524074763059616,
0.01608559861779213,
-0.018528293818235397,
0.010413117706775665,
-0.0005920142284594476,
-0.03253307566046715,
0.057900916785001755,
0.07328084856271744,
0.036441389471292496,
0.00818755105137825,
-0.014230960048735142,
-0.007210473529994488,
-0.02504214644432068,
0.017560262233018875,
0.021369056776165962,
-0.043570440262556076,
0.0179130956530571,
-0.020699577406048775,
-0.05591057240962982,
0.045416031032800674,
0.011507807299494743,
0.009553651325404644,
0.009770779870450497,
0.028516201302409172,
0.05055473744869232,
0.02972850203514099,
-0.046899743378162384,
0.0116344653069973,
-0.07118193805217743,
0.057358093559741974,
0.014782827347517014,
0.06133878231048584,
-0.023431777954101562,
-0.02169474959373474,
-0.018311165273189545,
-0.02079004794359207,
-0.010114566422998905,
-0.015687528997659683,
0.011272585019469261,
-0.031990256160497665,
-0.025367839261889458,
-0.0595293790102005,
-0.014194771647453308,
-0.024300290271639824,
0.04787681996822357,
0.015624199993908405,
0.05681527405977249,
-0.10943273454904556,
-0.04740637540817261,
0.010259319096803665,
-0.07317228615283966,
-0.01177921798080206,
0.010150754824280739,
-0.012575355358421803,
-0.03177312761545181,
-0.09047017991542816,
-0.002365795196965337,
0.07034961134195328,
-0.0006683484534732997,
-0.04295524209737778,
0.05120612308382988,
-0.03897455334663391,
0.008060893043875694,
0.05268983542919159,
-0.03457770496606827,
0.05486111715435982,
-0.014384758658707142,
0.08308781683444977,
-0.005527728237211704,
-0.012692966498434544,
0.007314514368772507,
-0.023920316249132156,
-0.018374493345618248,
0.008282545022666454,
0.017949284985661507,
-0.0720866397023201,
0.04639310762286186,
0.029891347512602806,
-0.0019779044669121504,
-0.06416144967079163,
-0.015669435262680054,
-0.023648906499147415,
0.007536166347563267,
0.05410116910934448,
0.041797224432229996,
0.013235787861049175,
-0.012086816132068634,
0.0358261913061142,
-0.046863555908203125,
-0.025838283821940422,
-0.046863555908203125,
0.0005662867915816605,
-0.014303335919976234,
-0.04559697210788727,
-0.01656509004533291,
0.02829907275736332,
0.004362924490123987,
0.005844373721629381,
0.02620016410946846,
-0.016691748052835464,
-0.039698317646980286,
-0.017967378720641136,
0.014619981870055199,
-0.03251498192548752,
0.0073552257381379604,
0.03177312761545181,
0.008924883790314198,
-0.008074463345110416,
-0.057032402604818344,
-0.014556651934981346,
-0.019161583855748177,
-0.04295524209737778,
0.05247270688414574,
-0.04581410065293312,
-0.003055630484595895,
0.002374842297285795,
-0.02916758693754673,
0.024173632264137268,
-0.0844629630446434,
-0.005396546330302954,
0.017524074763059616,
0.040639206767082214,
-0.02712296135723591,
0.010250271297991276,
0.05399260297417641,
-0.033202555030584335,
-0.0116344653069973,
-0.0601445771753788,
0.025168804451823235,
0.010042190551757812,
0.03609760105609894,
-0.0022945499513298273,
-0.024897394701838493,
0.029601844027638435,
-0.018139271065592766,
-0.05587438493967056,
-0.01666460745036602,
-0.0345957987010479,
0.034052975475788116,
0.007567830849438906,
0.029348526149988174,
0.008499673567712307,
-0.01716219261288643,
-0.03267782926559448,
-0.039987821131944656,
0.02793719246983528,
0.03716515004634857,
-0.0632205605506897,
0.003783915424719453,
-0.007834717631340027,
-0.04465608298778534,
0.02057291939854622,
0.03188169375061989,
-0.057358093559741974,
0.050120480358600616,
-0.030144665390253067,
0.008965594694018364,
-0.007685441989451647,
0.016727937385439873,
0.021568091586232185,
0.025548778474330902,
-0.07172475755214691,
0.029040928930044174,
0.028805706650018692,
-0.015588012523949146,
-0.04085633531212807,
0.08301544189453125,
0.03217119723558426,
-0.07686346769332886,
0.028805706650018692,
-0.0017483362462371588,
-0.006735505070537329,
-0.014981862157583237,
-0.004154843278229237,
0.004505414981395006,
0.06546422094106674,
-0.032569266855716705,
0.048672959208488464,
0.02650776319205761,
0.09770779311656952
] |
722,031
|
apprise.plugins.base
|
color
|
Returns the html color (hex code) associated with the notify_type
|
def color(self, notify_type, color_type=None):
"""
Returns the html color (hex code) associated with the notify_type
"""
if notify_type not in NOTIFY_TYPES:
return None
return self.asset.color(
notify_type=notify_type,
color_type=color_type,
)
|
(self, notify_type, color_type=None)
|
[
-0.006562229245901108,
-0.07354632765054703,
0.03162562847137451,
0.012304730713367462,
0.06300445646047592,
-0.04142710193991661,
-0.009933690540492535,
0.013873672112822533,
0.04128607362508774,
-0.018245553597807884,
0.027994144707918167,
-0.0012912916718050838,
0.0484432689845562,
-0.044741272926330566,
-0.0029065078124403954,
0.015530756674706936,
-0.0029571899212896824,
-0.04914841055870056,
0.06399165093898773,
-0.042379043996334076,
0.021418694406747818,
-0.004980066791176796,
0.034886907786130905,
-0.03208396956324577,
-0.010242190212011337,
0.060113370418548584,
0.0024768118746578693,
0.0005294075235724449,
0.002871250733733177,
0.0014686789363622665,
0.0007899795891717076,
-0.06021914258599281,
-0.02857588604092598,
0.0499945804476738,
0.015372099354863167,
0.019144609570503235,
-0.03917064890265465,
0.04153287410736084,
-0.007694864179939032,
0.022723207250237465,
0.00736873596906662,
0.023481234908103943,
-0.0012990040704607964,
-0.019021211192011833,
-0.020026037469506264,
-0.008069470524787903,
0.020237579941749573,
0.08461706340312958,
0.012445759028196335,
-0.11218812316656113,
0.04579898342490196,
0.025420375168323517,
-0.034393310546875,
0.01572467014193535,
0.027764974161982536,
0.005143130663782358,
-0.0026508939918130636,
0.0777771845459938,
-0.008549848571419716,
0.0602896548807621,
0.0022608621511608362,
0.02122478000819683,
0.007403993047773838,
-0.008585105650126934,
-0.011502631939947605,
0.020255209878087044,
0.05658765882253647,
-0.001307818340137601,
0.002007451606914401,
0.010779861360788345,
0.03987579047679901,
0.03060317039489746,
-0.07234758883714676,
-0.009334319271147251,
0.05609406158328056,
-0.031184913590550423,
0.021401064470410347,
0.017258355394005775,
0.034340422600507736,
0.032454170286655426,
0.06730581820011139,
0.036103278398513794,
0.02993328496813774,
-0.005341452080756426,
0.05679920315742493,
-0.03592699393630028,
-0.0026134331710636616,
-0.0074921357445418835,
-0.030726570636034012,
0.03506319597363472,
0.005654358770698309,
-0.023869063705205917,
-0.07587330043315887,
-0.02043149434030056,
0.014102843590080738,
-0.02647808939218521,
0.029069487005472183,
-0.006399165373295546,
0.07721307128667831,
0.025402747094631195,
-0.004724452737718821,
-0.031766656786203384,
-0.012763073667883873,
-0.07742460817098618,
0.012472202070057392,
-0.08609785884618759,
-0.04118030518293381,
0.056904975324869156,
-0.0030651648994535208,
0.015416170470416546,
0.013327186927199364,
-0.04611629992723465,
0.013944186270236969,
-0.07784769684076309,
0.04079247638583183,
0.027042202651500702,
-0.005764537490904331,
-0.011916902847588062,
0.01986738108098507,
-0.020925093442201614,
-0.007311442866921425,
-0.004235260188579559,
-0.02677777409553528,
0.04826698079705238,
-0.023252062499523163,
0.060360170900821686,
-0.0453406423330307,
-0.013820786960422993,
0.03407599404454231,
-0.010427289642393589,
-0.026954060420393944,
0.023534120991826057,
-0.014984271489083767,
-0.013891301117837429,
-0.0014565592864528298,
0.019602952525019646,
-0.07608484476804733,
0.028946086764335632,
0.01534565631300211,
0.06995010375976562,
-0.05313246324658394,
0.019232753664255142,
-0.01585688441991806,
-0.023163920268416405,
-0.0005379463545978069,
-0.025614289566874504,
0.009625190868973732,
-0.013820786960422993,
-0.047632355242967606,
0.034340422600507736,
0.029210515320301056,
0.047526583075523376,
-0.009695705026388168,
-0.007615535520017147,
-0.004861074034124613,
0.03624430671334267,
-0.014041143469512463,
-0.0037218285724520683,
0.009043448604643345,
0.006011337041854858,
-0.020519636571407318,
-0.012428130954504013,
0.06832827627658844,
-0.0005795387551188469,
0.016826454550027847,
0.021718379110097885,
0.04777338355779648,
0.010259818285703659,
0.05002983659505844,
-0.028188059106469154,
-0.07065524905920029,
-0.03587410971522331,
-0.03173139691352844,
0.042484816163778305,
0.021489208564162254,
0.06617759168148041,
-0.01741701178252697,
-0.004993287846446037,
0.0068442863412201405,
-0.0013827397488057613,
-0.005795387085527182,
-0.011670103296637535,
-0.041814930737018585,
0.06536667793989182,
0.055565204471349716,
-0.02912237122654915,
0.04657464101910591,
-0.011070732027292252,
0.034428566694259644,
-0.030515028163790703,
0.01696748286485672,
0.034446194767951965,
-0.04424767196178436,
0.03248942643404007,
0.03878282010555267,
-0.02346360683441162,
-0.0068619148805737495,
-0.08786071836948395,
-0.05602354556322098,
-0.058138974010944366,
0.03069131262600422,
-0.04452972859144211,
-0.09900195896625519,
0.05115806683897972,
0.021506836637854576,
-0.03592699393630028,
0.09188002347946167,
0.016359299421310425,
-0.02646045945584774,
-0.013838415034115314,
-0.03330034017562866,
-0.013239044696092606,
0.003713014302775264,
0.038112934678792953,
0.009025819599628448,
-0.06794045120477676,
-0.040580932050943375,
0.04385984316468239,
-0.04692721366882324,
0.026037374511361122,
-0.023534120991826057,
-0.06099480018019676,
0.050311893224716187,
0.0013485844247043133,
0.006919207517057657,
0.030726570636034012,
-0.016562027856707573,
-0.004125081934034824,
-0.022952377796173096,
-0.028417229652404785,
0.005046173930168152,
0.025067804381251335,
0.023181548342108727,
0.06670644879341125,
-0.021912293508648872,
-0.036350078880786896,
0.004039142746478319,
0.04107453301548958,
-0.031096769496798515,
0.04065144807100296,
-0.00865121278911829,
0.056446630507707596,
0.08750814199447632,
0.0432957299053669,
0.054436977952718735,
-0.05894988775253296,
0.041356589645147324,
-0.015372099354863167,
-0.06906867772340775,
-0.031220169737935066,
-0.06839878857135773,
-0.06857507675886154,
-0.01944429613649845,
-0.04121556133031845,
-0.014825614169239998,
0.0242216344922781,
0.007500949781388044,
0.01821029745042324,
-0.003369257552549243,
-0.02901660092175007,
-0.027994144707918167,
0.0023952799383550882,
0.07827078551054001,
0.04100401699542999,
0.048055440187454224,
-0.034111253917217255,
-0.016138941049575806,
0.07234758883714676,
-0.04826698079705238,
0.013406516052782536,
0.09371339529752731,
0.0035609679762274027,
0.025702431797981262,
0.01605961285531521,
-0.03141408413648605,
-0.03294776752591133,
-0.013441773131489754,
0.016359299421310425,
0.014199800789356232,
-0.02099560759961605,
-0.020131809636950493,
0.01462288573384285,
0.02802940085530281,
0.0520394928753376,
-0.013503472320735455,
-0.006690036505460739,
0.03294776752591133,
0.0023820584174245596,
-0.0332474522292614,
-0.009889619424939156,
0.0437893308699131,
0.05958451330661774,
-0.019708724692463875,
-0.050523437559604645,
-0.02055489458143711,
0.025596661493182182,
0.05038240924477577,
0.06184097006917,
0.01741701178252697,
0.008893605321645737,
0.00616999389603734,
-0.03340611234307289,
0.04368355870246887,
-0.034340422600507736,
-0.04544641450047493,
0.014940200373530388,
0.009863176383078098,
-0.03372342512011528,
0.002357819117605686,
-0.0037174213211983442,
-0.014763914048671722,
0.029774628579616547,
-0.0037240320816636086,
0.020836951211094856,
0.0046230885200202465,
0.02936917170882225,
-0.011846388690173626,
0.010709347203373909,
0.03462247923016548,
0.09653396159410477,
0.0017981125274673104,
-0.04555218666791916,
-0.005857087206095457,
0.022846607491374016,
0.08877740055322647,
0.00004166123108007014,
-0.025508519262075424,
-0.0037747141905128956,
0.028963714838027954,
0.023639891296625137,
-0.022529292851686478,
-0.011767060495913029,
0.00544722331687808,
-0.027059830725193024,
-0.011678917333483696,
-0.0471387542784214,
0.014631700702011585,
-0.08017466962337494,
-0.02979225665330887,
-0.0638858824968338,
-0.015372099354863167,
0.022934749722480774,
-0.02882268652319908,
0.022846607491374016,
0.0047685238532722,
-0.01278951670974493,
0.01266611646860838,
-0.030955741181969643,
0.011185318231582642,
0.010374404489994049,
-0.03381156921386719,
0.033088795840740204,
-0.009519419632852077,
0.03874756395816803,
0.02959834225475788,
-0.0014378289924934506,
-0.008329492062330246,
-0.06825776398181915,
0.02647808939218521,
0.08362986147403717,
-0.019585324451327324,
0.04519961401820183,
0.02635468915104866,
-0.004852259531617165,
-0.011264646425843239,
0.024168748408555984,
-0.008210498839616776,
0.05792742967605591,
0.0654371976852417,
-0.006804622244089842,
-0.0071968575939536095,
0.06624811142683029,
-0.05394337698817253,
-0.03141408413648605,
-0.004347642417997122,
-0.0672353059053421,
-0.013194972649216652,
0.03162562847137451,
0.002904304303228855,
-0.03605039417743683,
-0.06325125694274902,
0.019144609570503235,
-0.01886255294084549,
0.03127305582165718,
-0.016244713217020035,
0.006610707845538855,
-0.0007266269531100988,
0.022635063156485558,
-0.0824311226606369,
0.018227925524115562,
-0.008664434775710106,
-0.07030267268419266,
0.0056763943284749985,
-0.0370904803276062,
0.009528233669698238,
-0.04185018688440323,
0.01278951670974493,
0.03627956658601761,
-0.03114965558052063,
-0.018598124384880066,
-0.02503254823386669,
-0.027271373197436333,
-0.014772729016840458,
-0.05940822884440422,
-0.014164543710649014,
-0.014323200099170208,
-0.011247017420828342,
0.009448905475437641,
0.010947332717478275,
-0.037795621901750565,
-0.0067781792022287846,
0.02155972272157669,
-0.053308747708797455,
-0.018139783293008804,
0.024256890639662743,
-0.04586949944496155,
0.027077460661530495,
-0.08165546506643295,
0.009748591110110283,
0.029968542978167534,
-0.028628772124648094,
-0.030426885932683945,
0.05457800626754761,
-0.0027963295578956604,
0.03430516645312309,
-0.010145233012735844,
0.04252007231116295,
0.0646262839436531,
-0.005403151735663414,
0.043154701590538025,
0.039805274456739426,
0.021365808323025703,
-0.028734544292092323,
-0.041250817477703094,
0.051651664078235626,
0.03520422428846359,
0.053872860968112946,
-0.05355554819107056,
0.00011789095879066736,
-0.010806303471326828,
0.010850375518202782,
0.04008733481168747,
-0.015662970021367073,
-0.017328869551420212,
-0.012904101982712746,
-0.02332257851958275,
-0.057680629193782806,
-0.033670540899038315,
-0.0037681034300476313,
-0.036350078880786896,
-0.03687893599271774,
0.05986656993627548,
0.016720684245228767,
-0.04960675165057182,
0.013424144126474857,
-0.010903260670602322,
0.0013045130763202906,
0.013715015724301338,
-0.018122153356671333,
-0.020836951211094856,
-0.027606315910816193,
0.01598028466105461,
-0.11000218242406845,
-0.06131211295723915,
0.0026751330588012934,
-0.05373183265328407,
-0.015662970021367073,
-0.036103278398513794,
-0.01194334588944912,
0.0010197017109021544,
0.0031268647871911526,
-0.03146696835756302,
-0.02614314667880535,
0.038007162511348724,
-0.006059815641492605,
0.04407138749957085,
-0.02824094519019127,
0.01686171256005764,
-0.047738127410411835,
-0.023058149963617325,
-0.016218269243836403,
0.02256454899907112,
0.0058614942245185375,
-0.038359735161066055,
-0.008527813479304314,
-0.008452892303466797,
0.028505371883511543,
-0.027518173679709435,
-0.017267169430851936,
0.025984488427639008,
-0.05503634735941887,
-0.02242352068424225,
-0.014481857419013977,
0.004508502781391144,
0.054436977952718735,
0.03469299525022507,
0.02713034488260746,
-0.005773351527750492,
-0.01105310395359993,
0.0015821628039702773,
0.04343675822019577,
-0.058209486305713654,
0.0605364553630352,
-0.007258557248860598,
0.050523437559604645,
-0.08102083951234818,
0.04636309668421745,
0.026954060420393944,
0.028293829411268234,
0.004693602677434683,
0.01424387190490961,
0.04720927029848099,
0.0819375216960907,
-0.051651664078235626,
-0.00510787358507514,
-0.06399165093898773,
0.04156813025474548,
-0.0034221431706100702,
0.015566013753414154,
-0.03670265153050423,
-0.00438289949670434,
0.0225469209253788,
-0.0294925719499588,
-0.006302208174020052,
0.014340829104185104,
0.017937054857611656,
-0.006399165373295546,
-0.004332217387855053,
-0.05746908858418465,
0.012551531195640564,
-0.000896301819011569,
0.04255533218383789,
-0.0006032271194271743,
-0.080879807472229,
0.019937895238399506,
-0.007426028605550528,
-0.07333478331565857,
0.030550284311175346,
-0.024715233594179153,
-0.03402310982346535,
-0.026266546919941902,
-0.062475595623254776,
-0.0042771282605826855,
-0.044741272926330566,
-0.03638533502817154,
-0.020502008497714996,
0.030550284311175346,
-0.019144609570503235,
-0.03952321782708168,
-0.019038839265704155,
-0.004389510024338961,
-0.014164543710649014,
-0.005059394985437393,
-0.022194350138306618,
0.003369257552549243,
0.018351325765252113,
-0.01896832510828972,
-0.01963821053504944,
0.05831525847315788,
0.034781139343976974,
-0.019056467339396477,
0.013239044696092606,
-0.040263619273900986,
0.014199800789356232,
-0.05859731510281563,
0.03987579047679901,
0.010004204697906971,
-0.0455874428153038,
-0.03361765295267105,
-0.06617759168148041,
0.004299163818359375,
0.02311103418469429,
0.00881427712738514,
0.005852680187672377,
0.008078285492956638,
0.011247017420828342,
0.012366430833935738,
-0.01974398083984852,
0.006958872079849243,
0.011705360375344753,
-0.06896290183067322,
-0.009334319271147251,
0.014032329432666302,
-0.04311944544315338,
-0.0133977010846138,
-0.020731180906295776,
0.02120715193450451,
0.0154602425172925,
0.008554256521165371,
0.03150222823023796,
-0.01110598910599947,
-0.06600131094455719,
-0.0012549327220767736,
-0.01808689720928669,
0.011370417661964893,
-0.02200043573975563,
0.07657843828201294,
-0.01605961285531521,
-0.045375898480415344,
0.01909172534942627,
0.03104388527572155,
-0.008730541914701462,
0.010427289642393589,
-0.024538947269320488,
0.035468652844429016,
-0.05909091606736183,
0.043472014367580414,
-0.026407575234770775,
0.007161600049585104,
-0.003882689168676734,
-0.007470100186765194,
0.04488230124115944,
0.0017176822293549776,
0.08341831713914871,
0.041356589645147324,
-0.020836951211094856,
-0.043930359184741974,
0.049747779965400696,
-0.04163864627480507,
0.06452050805091858,
-0.02915762923657894,
0.07291170209646225,
0.002754461718723178,
-0.0015832645585760474,
0.020484380424022675,
0.00825897790491581,
-0.014085215516388416,
-0.027659201994538307,
-0.004003885667771101,
-0.04615155607461929,
0.022053321823477745,
0.024098234251141548,
-0.011696546338498592,
-0.05447223410010338,
-0.001725394744426012,
-0.05468377470970154,
0.0051122806034982204,
0.001659287721849978,
-0.014702214859426022,
0.011017846874892712,
0.052744634449481964,
0.025984488427639008,
0.005570623092353344,
-0.02131292223930359,
0.026865916326642036,
0.09209156781435013,
-0.023728033527731895,
-0.06261662393808365,
-0.025508519262075424,
-0.02748291566967964,
-0.03393496572971344,
-0.01955006644129753,
-0.0073731429874897,
0.03596225008368492,
-0.061030056327581406,
0.10499566793441772,
-0.002106612315401435,
-0.01863338239490986,
-0.04608104005455971,
-0.01195215992629528,
-0.04541115462779999,
0.062475595623254776,
-0.005962858442217112,
0.023058149963617325,
0.02968648634850979,
-0.041356589645147324,
0.04502332955598831,
-0.014693399891257286,
-0.0422380156815052,
-0.062017254531383514,
0.006117108277976513,
0.06444999575614929,
0.06110056862235069,
-0.039029620587825775,
0.026865916326642036,
0.02614314667880535,
-0.016791198402643204,
0.030109571292996407,
0.04625732824206352,
-0.02610788866877556,
0.09336082637310028,
-0.03516896441578865,
-0.03185479715466499,
0.06279291212558746,
0.040898244827985764,
0.05729280039668083,
-0.0038430248387157917,
-0.032542310655117035,
-0.042590588331222534,
-0.02746528759598732,
-0.06875136494636536,
-0.010621204040944576,
-0.039241161197423935,
0.0019457517191767693,
0.006108294241130352,
-0.01977923884987831,
-0.058350514620542526,
-0.014032329432666302,
0.0010902158683165908,
-0.005539773032069206,
0.03460485115647316,
-0.033212196081876755,
-0.004259499255567789,
0.02970411442220211,
0.03358239680528641,
-0.01810452528297901,
0.03582122176885605,
-0.024186376482248306,
-0.003135679056867957,
0.024944404140114784,
-0.01595384255051613,
0.020748808979988098,
-0.0020371999125927687,
0.028505371883511543,
-0.06162942573428154,
-0.017143769189715385,
-0.0752386674284935,
-0.011652474291622639,
-0.029104743152856827,
0.052991434931755066,
-0.020942723378539085,
-0.00981910526752472,
-0.0016802216414362192,
-0.03285962715744972,
0.015231071040034294,
0.06427370756864548,
0.027641573920845985,
0.006707665044814348,
-0.022141464054584503,
-0.011097175069153309,
0.013961815275251865,
-0.020572522655129433,
0.006073037162423134,
0.053978633135557175,
0.010691718198359013,
0.023498862981796265,
-0.015407356433570385,
0.016896968707442284,
-0.03141408413648605,
-0.05429594963788986,
-0.00005698292443412356,
-0.0070293862372636795,
-0.07023216038942337,
-0.006932429037988186,
0.027747344225645065,
0.007906407117843628,
0.01919749565422535,
0.02512069046497345,
-0.0025429190136492252,
-0.001988721312955022,
0.016262341290712357,
0.04354253038764,
-0.062123026698827744,
0.013071573339402676,
0.05535366013646126,
-0.0013067165855318308,
0.011017846874892712,
0.008853941224515438,
0.00037570856511592865,
0.07305272668600082,
0.07284118980169296,
0.017831282690167427,
-0.03185479715466499,
0.0022674729116261005,
0.02702457457780838,
0.051299095153808594,
-0.04294315725564957,
0.011767060495913029
] |
722,034
|
apprise.plugins.base
|
image_path
|
Returns the path of the image if it can
|
def image_path(self, notify_type, extension=None):
"""
Returns the path of the image if it can
"""
if not self.image_size:
return None
if notify_type not in NOTIFY_TYPES:
return None
return self.asset.image_path(
notify_type=notify_type,
image_size=self.image_size,
extension=extension,
)
|
(self, notify_type, extension=None)
|
[
0.04764571040868759,
-0.06364720314741135,
-0.029222462326288223,
0.0413312166929245,
0.049224331974983215,
-0.06196094676852226,
0.008978418074548244,
0.034801460802555084,
0.04603120684623718,
-0.016279548406600952,
0.07563038915395737,
0.016871532425284386,
0.04847089946269989,
-0.05284798890352249,
-0.03446061909198761,
0.0033500888384878635,
0.008664486929774284,
-0.054211344569921494,
0.03293581306934357,
0.017894050106406212,
0.0418693833053112,
0.014718864113092422,
0.05335027724504471,
-0.033761002123355865,
0.021849576383829117,
0.08983799070119858,
0.04857853055000305,
-0.01984041929244995,
0.04054190590977669,
-0.049224331974983215,
-0.010000934824347496,
-0.026154911145567894,
0.059270113706588745,
0.06838307529687881,
-0.017687752842903137,
0.09737233072519302,
-0.009238531813025475,
0.033294592052698135,
-0.04868616536259651,
0.0021448193583637476,
0.0009120807517319918,
-0.01926637440919876,
0.055933479219675064,
-0.026047278195619583,
-0.0003570961707737297,
0.029599178582429886,
-0.055682335048913956,
-0.020055687054991722,
0.03410184383392334,
-0.0667685717344284,
0.032200317829847336,
0.026585444808006287,
-0.0243610218167305,
-0.0037671681493520737,
-0.036057181656360626,
0.036882370710372925,
0.019338130950927734,
0.026998039335012436,
0.007534336298704147,
0.04283808544278145,
0.008933570235967636,
-0.019391946494579315,
0.040900684893131256,
-0.0202530138194561,
0.0033613007981330156,
-0.02676483429968357,
-0.012279174290597439,
-0.008529945276677608,
-0.025652622804045677,
0.047358687967061996,
0.03435298800468445,
0.016952257603406906,
-0.019230496138334274,
-0.019284313544631004,
0.007830328308045864,
-0.08000747859477997,
0.03153657913208008,
0.0265495665371418,
0.05769149214029312,
0.00539063848555088,
-0.003841166151687503,
0.012503410689532757,
0.008032141253352165,
-0.04305335134267807,
0.09084257483482361,
0.017750538885593414,
0.011516771279275417,
-0.009911240078508854,
-0.018979351967573166,
0.0366850420832634,
-0.006767448503524065,
0.02233392558991909,
-0.008556853979825974,
-0.07053574174642563,
0.03550107777118683,
-0.0008666729554533958,
0.006489395629614592,
-0.03806633874773979,
0.04262281954288483,
-0.010198262520134449,
-0.04003961756825447,
-0.06673269718885422,
0.017669813707470894,
-0.019535457715392113,
0.062965527176857,
-0.05970064923167229,
0.009489675983786583,
-0.020486218854784966,
-0.008390918374061584,
0.011929365806281567,
0.0020809120032936335,
-0.034173596650362015,
-0.033079326152801514,
-0.047035787254571915,
0.062032703310251236,
0.028289640322327614,
-0.030478185042738914,
-0.02904307283461094,
0.01885377988219261,
-0.016736989840865135,
-0.04804036393761635,
0.023715220391750336,
-0.06579986959695816,
-0.00024329627922270447,
0.01765187457203865,
0.008969448506832123,
-0.0022737551480531693,
-0.0070455013774335384,
-0.006969261448830366,
-0.0637548416852951,
-0.03621863201260567,
0.0050991312600672245,
-0.06149453669786453,
0.016548631712794304,
-0.050372421741485596,
0.01661141775548458,
0.022208353504538536,
-0.004915257450193167,
0.006884051486849785,
0.07720901072025299,
-0.03358161449432373,
0.024091938510537148,
-0.04983425512909889,
0.018961412832140923,
0.07200673222541809,
0.0225850697606802,
0.07283192127943039,
0.009642156772315502,
0.0036909279879182577,
-0.030783146619796753,
0.014360086992383003,
-0.0056507522240281105,
-0.02296178787946701,
-0.016270579770207405,
0.015239092521369457,
-0.03512435778975487,
-0.017965804785490036,
0.0029913110192865133,
0.004206671379506588,
-0.0026773803401738405,
-0.007485004607588053,
-0.002814164385199547,
-0.019194619730114937,
-0.03207474574446678,
-0.015831075608730316,
0.002320844680070877,
0.015938710421323776,
0.08682426065206528,
0.024091938510537148,
0.005022890865802765,
-0.03399420902132988,
-0.04940371960401535,
0.00046949455281719565,
-0.05690218135714531,
-0.0006760721444152296,
0.1042608693242073,
0.002126880455762148,
0.004112491849809885,
-0.026693077757954597,
-0.030801085755228996,
0.0010959544451907277,
0.01724824868142605,
0.0018667663680389524,
0.07928992062807083,
0.023446137085556984,
0.03429916873574257,
0.04014724865555763,
0.007467065472155809,
0.06163804978132248,
-0.008512006141245365,
-0.03002971224486828,
0.07146856188774109,
-0.026746895164251328,
0.046210598200559616,
0.03419153764843941,
-0.022836215794086456,
0.06095637008547783,
-0.04082892835140228,
-0.07685023546218872,
0.002287209266796708,
0.008059049025177956,
-0.04879380017518997,
-0.027195367962121964,
0.030370552092790604,
0.0012467532651498914,
-0.011992151848971844,
0.06454414874315262,
0.038496870547533035,
-0.03560870885848999,
0.07240138947963715,
-0.05589760094881058,
-0.0153287872672081,
-0.045206017792224884,
0.0003548538079485297,
0.007238344755023718,
-0.03899916261434555,
-0.05069532245397568,
0.08955097198486328,
-0.03395833075046539,
0.030998412519693375,
-0.011875549331307411,
-0.019912175834178925,
0.011436046101152897,
-0.023517893627285957,
0.025580866262316704,
0.01343623362481594,
0.025168271735310555,
0.008471643552184105,
0.005197795107960701,
0.005238157697021961,
-0.02348201535642147,
0.026316361501812935,
0.04804036393761635,
0.036738861352205276,
0.05317088961601257,
0.023858731612563133,
-0.008081472478806973,
-0.0011749977711588144,
0.02145492099225521,
0.02197514846920967,
-0.00830570887774229,
-0.016772868111729622,
0.014055125415325165,
0.015624779276549816,
0.0014934131177142262,
-0.09062730520963669,
0.0272312443703413,
0.01817210204899311,
-0.023051481693983078,
-0.05087471008300781,
0.03368924930691719,
-0.03268466889858246,
-0.010476315394043922,
-0.054426610469818115,
-0.017840232700109482,
0.017400730401277542,
-0.021024387329816818,
-0.04330449551343918,
0.028253762051463127,
0.010144446045160294,
-0.023248810321092606,
-0.020163320004940033,
0.0056507522240281105,
-0.014987948350608349,
-0.0739082545042038,
-0.06242736056447029,
-0.05202279984951019,
0.061709802597761154,
-0.09256470948457718,
0.06483117491006851,
0.08947921544313431,
0.07240138947963715,
-0.020683547481894493,
0.006018499843776226,
0.025796134024858475,
-0.005157432518899441,
-0.03489115461707115,
-0.000571802316699177,
-0.01145398523658514,
-0.03795870393514633,
-0.016028404235839844,
0.03464001044631004,
0.037564050406217575,
0.02952742390334606,
-0.03336634859442711,
-0.03731290623545647,
0.0443449504673481,
0.007498458959162235,
-0.022620948031544685,
-0.009229562245309353,
0.0421564057469368,
0.08531738817691803,
-0.03263085335493088,
-0.039537329226732254,
-0.028881622478365898,
-0.0418693833053112,
-0.026423994451761246,
0.020755304023623466,
0.03681061416864395,
0.00453629856929183,
0.0060050454922020435,
0.052812110632658005,
0.014557414688169956,
-0.020181259140372276,
-0.00047061574878171086,
0.058229658752679825,
0.008597216568887234,
-0.02561674453318119,
0.007153134793043137,
0.0054534245282411575,
0.017992712557315826,
0.011992151848971844,
0.011229748837649822,
0.04003961756825447,
0.09026852995157242,
0.0530991330742836,
0.052453331649303436,
-0.0007147528813220561,
0.005444454960525036,
0.09600897133350372,
0.009489675983786583,
0.06644567102193832,
-0.04237167164683342,
0.02296178787946701,
0.05403195694088936,
-0.0166921429336071,
0.009498645551502705,
0.036469776183366776,
0.016109129413962364,
0.07028459757566452,
0.01885377988219261,
0.01735588163137436,
0.009660095907747746,
-0.016548631712794304,
-0.009982995688915253,
0.025598805397748947,
0.04154648259282112,
-0.05105409771203995,
-0.004518359433859587,
-0.003323180601000786,
0.009121929295361042,
-0.038389239460229874,
-0.023033542558550835,
0.04326861724257469,
0.011256657540798187,
0.00407885666936636,
0.06092049181461334,
-0.05048005282878876,
0.041259460151195526,
-0.030639635398983955,
-0.058337289839982986,
0.0547495111823082,
-0.045206017792224884,
-0.02567056007683277,
0.010198262520134449,
0.0009008689667098224,
-0.03510642051696777,
-0.020540036261081696,
0.0066508459858596325,
0.09787461906671524,
0.04398617520928383,
0.0426945723593235,
-0.0002934691437985748,
0.007713725324720144,
0.035321686416864395,
0.01715855486690998,
0.019714847207069397,
0.019194619730114937,
0.06874185055494308,
-0.030908718705177307,
-0.045995332300662994,
0.02441483736038208,
-0.048757921904325485,
-0.013750163838267326,
0.05069532245397568,
-0.025329722091555595,
-0.01707782968878746,
0.004446603823453188,
0.013409324921667576,
0.034227415919303894,
-0.03564458712935448,
0.041474729776382446,
-0.024271326139569283,
0.060202937573194504,
-0.025383537635207176,
0.023410260677337646,
0.013077455572783947,
0.014395964331924915,
-0.03505260497331619,
-0.018100347369909286,
0.0016997104976326227,
-0.02904307283461094,
-0.008794544264674187,
-0.01543642021715641,
0.038712140172719955,
-0.0900532603263855,
-0.04072129353880882,
0.04972662031650543,
-0.029850324615836143,
-0.015463328920304775,
0.008274315856397152,
-0.015301878564059734,
-0.046102963387966156,
0.028504906222224236,
0.033976271748542786,
-0.012010090984404087,
-0.0347655825316906,
0.01619882322847843,
-0.020952630788087845,
-0.06594338268041611,
-0.03060375712811947,
-0.03429916873574257,
-0.06440063565969467,
-0.013310661539435387,
0.05589760094881058,
-0.023194992914795876,
-0.006987200118601322,
-0.06188919395208359,
0.017526302486658096,
0.05805026739835739,
-0.01776847615838051,
0.00963318720459938,
0.0195713359862566,
-0.014620200730860233,
-0.0004061478248331696,
0.005305428523570299,
0.00202148943208158,
0.0025899282190948725,
-0.019230496138334274,
0.05744034796953201,
-0.024432776495814323,
0.08086854219436646,
-0.019589275121688843,
0.004525086842477322,
0.028971318155527115,
-0.0009115201537497342,
0.05374493449926376,
-0.06346781551837921,
-0.03664916381239891,
0.015974586829543114,
-0.035572830587625504,
0.019427824765443802,
-0.04251518473029137,
-0.0016593479085713625,
-0.00584359560161829,
-0.005529664922505617,
-0.05779912322759628,
-0.006821265444159508,
-0.0317518450319767,
-0.03232588991522789,
-0.020970569923520088,
0.05471363291144371,
0.04642586410045624,
-0.016979165375232697,
-0.03464001044631004,
-0.026998039335012436,
-0.05087471008300781,
-0.025939643383026123,
-0.029904140159487724,
-0.08409754931926727,
-0.052094556391239166,
0.03806633874773979,
-0.05887545645236969,
-0.10533720254898071,
0.0492602102458477,
-0.049906011670827866,
0.016073251143097878,
-1.313884041564961e-7,
0.004161824006587267,
0.00911295972764492,
0.08000747859477997,
-0.038281604647636414,
-0.052094556391239166,
0.02046828158199787,
0.05159226804971695,
0.0012187238316982985,
0.026926282793283463,
0.09234943985939026,
0.010628796182572842,
-0.07376474142074585,
-0.005704569164663553,
0.0009333831840194762,
-0.036720920354127884,
-0.020862936973571777,
-0.00994711834937334,
-0.03638008236885071,
-0.025939643383026123,
-0.005484817549586296,
-0.015974586829543114,
0.028415212407708168,
-0.01773259975016117,
0.03752817213535309,
-0.04283808544278145,
0.03435298800468445,
0.047502197325229645,
0.049116697162389755,
-0.02332056500017643,
-0.007772027049213648,
0.008785574696958065,
-0.0029128282330930233,
-0.00770475622266531,
-0.06985406577587128,
0.009902270510792732,
0.018602635711431503,
-0.002829860895872116,
-0.015705503523349762,
-0.02889956161379814,
0.026119032874703407,
-0.008884238079190254,
-0.01809137687087059,
0.023338504135608673,
0.06095637008547783,
0.03731290623545647,
0.019589275121688843,
-0.022477436810731888,
-0.04768158867955208,
0.014458750374615192,
0.02019919827580452,
0.05012127757072449,
-0.022567132487893105,
0.01899729110300541,
-0.01468298677355051,
-0.003009249921888113,
-0.010862002149224281,
0.007126226555556059,
-0.00713071133941412,
-0.0028365880716592073,
-0.02280033752322197,
-0.0027177429292351007,
0.03492703288793564,
-0.0030451277270913124,
0.011875549331307411,
0.006462487392127514,
-0.037097636610269547,
0.02696216106414795,
0.027464451268315315,
-0.07677847892045975,
-0.030801085755228996,
-0.05374493449926376,
-0.028235822916030884,
-0.04237167164683342,
-0.05169989913702011,
-0.032200317829847336,
-0.03304344788193703,
-0.008673456497490406,
0.007516397628933191,
0.05622050166130066,
-0.040470149368047714,
0.05457012355327606,
-0.03770755976438522,
0.014117911458015442,
0.008682426065206528,
0.016306456178426743,
-0.015203215181827545,
0.012539288960397243,
0.041259460151195526,
0.011812763288617134,
-0.0856761708855629,
0.0016593479085713625,
-0.008947025053203106,
-0.06188919395208359,
-0.008547884412109852,
-0.037922825664281845,
-0.004610296338796616,
-0.08287770301103592,
0.004137157928198576,
0.007700271438807249,
-0.00030159769812598825,
-0.0067360554821789265,
-0.01853087916970253,
-0.03867626190185547,
0.04420144110918045,
-0.0183425210416317,
-0.04746631905436516,
-0.007951416075229645,
0.021634308621287346,
0.05744034796953201,
0.010198262520134449,
0.016405120491981506,
0.021149959415197372,
-0.0027827713638544083,
-0.038138095289468765,
0.07476931810379028,
0.04179763048887253,
-0.061351027339696884,
-0.02416369318962097,
0.014925162307918072,
-0.015911800786852837,
-0.05539531260728836,
0.03187742084264755,
0.013463141396641731,
-0.008902177214622498,
0.025527048856019974,
0.016046343371272087,
0.018001683056354523,
-0.029760628938674927,
0.03350985795259476,
-0.024970943108201027,
-0.012799402698874474,
-0.024665983393788338,
0.07118154317140579,
-0.00856582261621952,
-0.03081902489066124,
0.046102963387966156,
-0.006704662460833788,
-0.03982435166835785,
-0.027356816455721855,
0.03842511773109436,
-0.028092311695218086,
0.011445015668869019,
-0.03374306485056877,
0.05299150198698044,
0.024396900087594986,
0.008422312326729298,
0.009749790653586388,
0.004540783353149891,
-0.05711744725704193,
0.0648670494556427,
-0.020791180431842804,
0.052560966461896896,
-0.05105409771203995,
0.022100720554590225,
0.007650939282029867,
-0.010763337835669518,
-0.005780809558928013,
-0.024612165987491608,
0.003332149935886264,
-0.002345510758459568,
-0.014665047638118267,
-0.051197610795497894,
0.011741007678210735,
-0.005072223022580147,
0.05116173252463341,
-0.02994001843035221,
0.028720173984766006,
-0.06346781551837921,
-0.005664206575602293,
-0.026011399924755096,
-0.028182005509734154,
-0.004206671379506588,
0.029025133699178696,
-0.012144632637500763,
-0.06938765197992325,
-0.013579744845628738,
-0.011086237616837025,
0.07369298487901688,
-0.04061366245150566,
-0.06411361694335938,
-0.04129533842206001,
-0.029850324615836143,
-0.004581145476549864,
-0.020073624327778816,
0.01776847615838051,
0.025060638785362244,
0.0005392880993895233,
0.10160590708255768,
0.03550107777118683,
-0.007713725324720144,
-0.04972662031650543,
-0.05955713614821434,
-0.021526675671339035,
0.012637952342629433,
-0.033294592052698135,
0.05848080292344093,
0.003628141712397337,
-0.04348388686776161,
0.02050415799021721,
-0.05564645677804947,
-0.042407549917697906,
-0.04273045063018799,
-0.005610390100628138,
0.029222462326288223,
-0.012763524428009987,
-0.0188896581530571,
0.035572830587625504,
-0.013463141396641731,
-0.006529758218675852,
0.017284126952290535,
0.02581407129764557,
0.02036064676940441,
0.04886555299162865,
-0.0613151490688324,
0.0007825843640603125,
0.04377090558409691,
0.04456022009253502,
0.006798841990530491,
0.06784490495920181,
-0.016790807247161865,
-0.0317518450319767,
0.0013218724634498358,
-0.049475476145744324,
-0.008328132331371307,
-0.005170886870473623,
0.026926282793283463,
0.008875269442796707,
-0.030675513669848442,
-0.05012127757072449,
0.007126226555556059,
-0.022208353504538536,
-0.014046155847609043,
0.026998039335012436,
-0.05457012355327606,
-0.01623470149934292,
-0.006014015059918165,
0.006090255454182625,
-0.0435197614133358,
0.012790433131158352,
-0.01724824868142605,
-0.018764086067676544,
0.028756050392985344,
-0.019804541021585464,
-0.012871158309280872,
0.00986639317125082,
-0.04330449551343918,
-0.02545529417693615,
0.017660843208432198,
-0.05001364275813103,
-0.014019247144460678,
-0.006327945739030838,
0.010682612657546997,
-0.02071942575275898,
-0.04581594094634056,
0.038963284343481064,
-0.04886555299162865,
0.02003774791955948,
0.025544987991452217,
0.046102963387966156,
0.004847986623644829,
-0.010745398700237274,
0.016719050705432892,
-0.04039839655160904,
-0.023410260677337646,
-0.0008016444626264274,
0.018548818305134773,
0.038963284343481064,
-0.014019247144460678,
0.004161824006587267,
-0.004637204576283693,
-0.04972662031650543,
0.004018312785774469,
0.02950948476791382,
0.020342709496617317,
-0.0530991330742836,
-0.022531254217028618,
0.0903402790427208,
-0.03677473962306976,
0.018566757440567017,
0.022656826302409172,
-0.0063144913874566555,
0.014745772816240788,
0.021939270198345184,
0.0059871068224310875,
-0.002533869119361043,
0.014046155847609043,
0.019607214257121086,
-0.05744034796953201,
0.009920209646224976,
0.007803420070558786,
0.010314865037798882,
0.042407549917697906,
-0.020701486617326736,
-0.020647669211030006,
0.01235989946871996,
-0.001046061865054071,
-0.017284126952290535,
0.042658694088459015,
-0.03910679370164871,
0.013077455572783947
] |
722,035
|
apprise.plugins.base
|
image_raw
|
Returns the raw image if it can
|
def image_raw(self, notify_type, extension=None):
"""
Returns the raw image if it can
"""
if not self.image_size:
return None
if notify_type not in NOTIFY_TYPES:
return None
return self.asset.image_raw(
notify_type=notify_type,
image_size=self.image_size,
extension=extension,
)
|
(self, notify_type, extension=None)
|
[
0.04323449730873108,
-0.09677985310554504,
-0.011368609964847565,
0.03701242431998253,
0.03496803343296051,
-0.06645170599222183,
-0.0155907291918993,
0.029332613572478294,
0.07829141616821289,
-0.037723518908023834,
0.05400756374001503,
0.0434478223323822,
0.02175946719944477,
-0.027430439367890358,
-0.032852526754140854,
0.023554978892207146,
-0.03822128474712372,
-0.03864794224500656,
0.02874596230685711,
0.0039643472991883755,
0.025848254561424255,
0.03452359884977341,
0.02389274723827839,
-0.008990890346467495,
0.05514531582593918,
0.07452261447906494,
0.04234562814235687,
-0.0380079559981823,
0.017599567770957947,
-0.02396385744214058,
0.009884201921522617,
-0.010924176312983036,
0.07502038031816483,
0.07644256949424744,
0.00395101448521018,
0.05894966423511505,
-0.019679518416523933,
0.03400805592536926,
-0.06677169352769852,
0.014701861888170242,
-0.005488754250109196,
-0.05614084750413895,
0.04952767491340637,
-0.02147502824664116,
-0.012835240922868252,
0.008964224718511105,
0.007297598756849766,
-0.012453028000891209,
0.03953680768609047,
-0.058238573372364044,
0.043910034000873566,
0.0872511938214302,
-0.030665915459394455,
0.035376910120248795,
-0.048603251576423645,
0.029528165236115456,
-0.03205254673957825,
0.05393645539879799,
0.01927063800394535,
0.033172521740198135,
0.0011077505769208074,
0.0021921684965491295,
-0.0009444212773814797,
-0.0744515061378479,
0.0000815257808426395,
-0.021919462829828262,
-0.009097554720938206,
0.008879782631993294,
-0.023021657019853592,
0.009804204106330872,
0.017804007977247238,
0.021315032616257668,
-0.025777146220207214,
-0.016301821917295456,
-0.007928694598376751,
-0.07324264943599701,
0.018381770700216293,
0.010293081402778625,
0.03231920674443245,
0.029350392520427704,
0.05749192461371422,
0.0251371618360281,
0.02533271163702011,
-0.01697736233472824,
0.042416736483573914,
-0.03123478963971138,
0.007542037405073643,
-0.005333202425390482,
-0.0380079559981823,
0.023430537432432175,
0.017421795055270195,
0.046363309025764465,
-0.019910622388124466,
-0.0388968251645565,
0.025777146220207214,
0.00891089253127575,
0.010924176312983036,
-0.03452359884977341,
0.04686107486486435,
-0.017359575256705284,
-0.07466483861207962,
-0.035448018461465836,
-0.03109257109463215,
-0.055749744176864624,
0.06968718022108078,
0.003273253096267581,
0.021137259900569916,
-0.013057457283139229,
-0.017324019223451614,
0.02526160329580307,
0.021883908659219742,
-0.05375868082046509,
-0.0670916885137558,
-0.0385412760078907,
0.041314542293548584,
-0.0014332982245832682,
-0.016044050455093384,
-0.000504987605381757,
0.00332436291500926,
-0.01270191092044115,
-0.05742081627249718,
0.004011012613773346,
-0.057243041694164276,
-0.017537347972393036,
-0.004799882415682077,
0.02529715746641159,
0.010186417028307915,
-0.030381478369235992,
0.01679069921374321,
-0.05311869829893112,
-0.041314542293548584,
-0.009590876288712025,
-0.05198094621300697,
0.042416736483573914,
-0.0621851421892643,
-0.00378435174934566,
0.026968227699398994,
-0.01093306578695774,
0.014737416058778763,
0.0653495118021965,
-0.019501743838191032,
0.013652998954057693,
0.022150568664073944,
0.030665915459394455,
0.03989235684275627,
-0.02408829890191555,
0.0670916885137558,
0.005306536797434092,
-0.007839808240532875,
-0.0553586445748806,
0.03151922672986984,
0.0030932575464248657,
-0.0003391583450138569,
0.03676354140043259,
0.015146295540034771,
0.011839710175991058,
-0.009919757023453712,
-0.0020143950823694468,
-0.017226245254278183,
0.027163779363036156,
-0.014559643343091011,
0.0239994116127491,
-0.005155429244041443,
-0.04334115982055664,
-0.03265697881579399,
-0.020995041355490685,
0.02042616531252861,
0.02631046622991562,
0.028514856472611427,
0.019750626757740974,
-0.025599371641874313,
-0.046043314039707184,
-0.027181556448340416,
-0.03715464472770691,
0.04597220569849014,
0.12159702181816101,
-0.018221775069832802,
-0.003953236620873213,
-0.0649939626455307,
-0.014248539693653584,
-0.0005530419875867665,
-0.00843979325145483,
0.002506605116650462,
0.023786082863807678,
0.014639641158282757,
0.012995236553251743,
0.0525498241186142,
-0.01900397799909115,
0.05318980664014816,
-0.046434417366981506,
0.0408167764544487,
0.06584727764129639,
-0.036692433059215546,
0.023128321394324303,
0.036265779286623,
-0.03715464472770691,
0.03758130222558975,
-0.027288220822811127,
-0.04568776860833168,
-0.003935459069907665,
-0.021279478445649147,
-0.06687836349010468,
-0.006386510096490383,
0.024586064741015434,
-0.030292591080069542,
-0.0138841038569808,
0.04451446607708931,
0.024906056001782417,
-0.05134096369147301,
0.00839090533554554,
-0.04796326905488968,
0.022292787209153175,
-0.04483445733785629,
0.016275156289339066,
0.0010549741564318538,
-0.011137505061924458,
-0.019768403843045235,
0.08149133622646332,
-0.02983037941157818,
0.027199333533644676,
-0.043910034000873566,
-0.013555223122239113,
-0.015866277739405632,
-0.00891089253127575,
0.02419496327638626,
0.04319893941283226,
0.012959682382643223,
0.001694402890279889,
0.0016632925253361464,
0.008773118257522583,
-0.024817168712615967,
0.023768305778503418,
0.014559643343091011,
0.056887492537498474,
0.029599273577332497,
0.016239602118730545,
0.009964199736714363,
0.0017777341417968273,
0.013537446036934853,
0.035590238869190216,
-0.017057359218597412,
-0.01674625650048256,
0.004486556630581617,
0.00006909552757861093,
-0.007430928759276867,
-0.10488631576299667,
0.009955311194062233,
0.03982124477624893,
-0.02405274286866188,
-0.03370584174990654,
0.03274586424231529,
-0.03025703690946102,
-0.004964322783052921,
-0.02415940724313259,
0.006137627176940441,
0.031874775886535645,
-0.01577739045023918,
-0.07985582202672958,
0.023217208683490753,
0.007737588137388229,
-0.0012333031045272946,
-0.0263637974858284,
0.0022277231328189373,
-0.0012555248104035854,
-0.03676354140043259,
-0.046363309025764465,
-0.05624751001596451,
0.06638059765100479,
-0.057029712945222855,
0.04487001150846481,
0.09905534982681274,
0.06510062515735626,
0.003415471874177456,
0.010293081402778625,
0.022506114095449448,
0.0001093723185476847,
0.015350734815001488,
0.020070619881153107,
0.021955017000436783,
-0.04213229939341545,
-0.013466336764395237,
0.05262093245983124,
0.05752747878432274,
0.027430439367890358,
0.007190934848040342,
-0.04067455977201462,
0.045118894428014755,
0.022488337010145187,
-0.0381857305765152,
-0.03379472717642784,
0.030594805255532265,
0.0989842414855957,
-0.024994943290948868,
-0.071287140250206,
-0.0479988232254982,
-0.06805166602134705,
-0.06815832853317261,
0.013821883127093315,
0.02753710187971592,
0.01434631459414959,
-0.01374188531190157,
0.00600429717451334,
0.03822128474712372,
-0.004366559442132711,
-0.0009721983806230128,
0.04174119979143143,
-0.007048716302961111,
-0.020817266777157784,
-0.029208172112703323,
-0.005582085344940424,
0.03719019889831543,
0.03452359884977341,
0.05244315788149834,
0.034114718437194824,
0.06360732764005661,
0.033243630081415176,
0.08149133622646332,
0.013910770416259766,
0.048745471984148026,
0.077793650329113,
-0.00011624715261859819,
0.020852822810411453,
-0.028550410643219948,
0.05660305544734001,
0.02887040376663208,
-0.024977166205644608,
-0.010968619957566261,
0.027857095003128052,
-0.011039729230105877,
0.05912743881344795,
0.01551073044538498,
0.0019488411489874125,
0.008750896900892258,
-0.010648627765476704,
-0.03571467846632004,
0.021368365734815598,
0.02769709937274456,
-0.06545617431402206,
-0.00447989022359252,
-0.04085233062505722,
-0.02408829890191555,
0.008844227530062199,
0.0190928652882576,
0.059376321732997894,
-0.000679427816066891,
0.01571517065167427,
0.07082492858171463,
-0.08056691288948059,
0.029137063771486282,
-0.05006099492311478,
-0.0678027793765068,
0.017119580879807472,
-0.03614133596420288,
-0.01492407824844122,
0.0006877609412185848,
-0.03839905932545662,
-0.01797289215028286,
0.006302067544311285,
-0.005502087529748678,
0.06506507098674774,
0.04220341145992279,
0.06033629924058914,
0.0022332784719765186,
0.014124098233878613,
0.02403496578335762,
0.012053037993609905,
0.006626504007726908,
0.04803437739610672,
0.01689736358821392,
-0.0026132692582905293,
-0.062078479677438736,
-0.0035332466941326857,
-0.08639787882566452,
-0.0029910376761108637,
0.03747463598847389,
-0.04213229939341545,
-0.0434478223323822,
-0.002604380715638399,
0.024763837456703186,
0.023466091603040695,
-0.03351029008626938,
0.04092344269156456,
-0.058309681713581085,
0.017608456313610077,
-0.0022710554767400026,
0.018648432567715645,
-0.004568777047097683,
0.04060344770550728,
-0.06716279685497284,
-0.03000815398991108,
-0.01152860652655363,
-0.06108294799923897,
-0.02760821208357811,
-0.012257477268576622,
0.00164329307153821,
-0.05653194710612297,
-0.02988371253013611,
0.050985418260097504,
-0.03343918174505234,
-0.025990473106503487,
-0.016150714829564095,
-0.02033727988600731,
-0.040070127695798874,
0.0007788697839714587,
0.008070913143455982,
-0.017217354848980904,
-0.0181328896433115,
-0.020070619881153107,
-0.0032065880950540304,
-0.061936259269714355,
-0.013484113849699497,
0.017066247761249542,
-0.07630035281181335,
-0.009155331179499626,
0.054505329579114914,
0.02655934914946556,
0.02650601603090763,
-0.07118047773838043,
-0.019857291132211685,
0.04202563688158989,
-0.015190739184617996,
0.04561666026711464,
0.026754898950457573,
-0.010941954329609871,
0.009821981191635132,
-0.0013499668566510081,
0.030772579833865166,
-0.012488583102822304,
-0.0411723256111145,
0.05393645539879799,
-0.0014332982245832682,
0.06158071383833885,
-0.04408780857920647,
0.022061681374907494,
0.045047786086797714,
-0.002544382121413946,
0.03489692136645317,
-0.053438689559698105,
-0.03525247052311897,
0.0432700514793396,
-0.011715268716216087,
0.024781614542007446,
-0.026683790609240532,
-0.026043806225061417,
-0.00007367874786723405,
-0.0031754777301102877,
-0.07722477614879608,
0.00010721959552029148,
-0.03843461349606514,
-0.03274586424231529,
-0.0137507738545537,
0.04092344269156456,
0.04447890818119049,
-0.015226293355226517,
-0.01928841695189476,
-0.030452586710453033,
-0.027110446244478226,
-0.021403919905424118,
-0.033101409673690796,
-0.08824672549962997,
-0.05507420375943184,
0.013208565302193165,
-0.07416707277297974,
-0.08348239958286285,
0.055749744176864624,
-0.041456762701272964,
0.005510976072400808,
-0.00966198556125164,
-0.028319306671619415,
0.015528508462011814,
0.1001930981874466,
-0.045118894428014755,
-0.015270736999809742,
0.005213205702602863,
0.05980297923088074,
0.0025421599857509136,
0.006475396919995546,
0.06684280931949615,
0.0262749120593071,
-0.06474507600069046,
0.001298857037909329,
0.007470928132534027,
-0.0502743236720562,
-0.03516358137130737,
-0.018666209653019905,
-0.040176793932914734,
0.0053998674266040325,
-0.0039087929762899876,
0.02293277159333229,
0.030594805255532265,
-0.02983037941157818,
0.05457644164562225,
-0.023341650143265724,
0.06712724268436432,
0.008790895342826843,
0.03208810091018677,
-0.008190910331904888,
-0.01697736233472824,
0.039216816425323486,
-0.006159848999232054,
0.011590827256441116,
-0.07267377525568008,
0.005822079721838236,
0.002172169042751193,
0.00027193778078071773,
-0.01447964459657669,
-0.01697736233472824,
0.026914896443486214,
0.03607022762298584,
0.00721760094165802,
0.007835363037884235,
0.0621851421892643,
0.04305672273039818,
0.007479816675186157,
-0.025777146220207214,
-0.0408167764544487,
0.020088396966457367,
0.00839090533554554,
0.0381857305765152,
-0.023341650143265724,
0.03292363882064819,
0.004648774862289429,
-0.03489692136645317,
-0.0007049827254377306,
0.020906154066324234,
-0.0028021535836160183,
-0.01801733672618866,
-0.02060393989086151,
0.0007533148746006191,
0.019572854042053223,
0.013030791655182838,
-0.010008643381297588,
0.02167057991027832,
-0.09514433145523071,
-0.009110887534916401,
0.005297647789120674,
-0.06396287679672241,
-0.0028843737673014402,
-0.055785298347473145,
-0.024283848702907562,
-0.03861238807439804,
-0.047323282808065414,
-0.0027799317613244057,
-0.005302092060446739,
-0.019768403843045235,
0.016115160658955574,
0.042630065232515335,
-0.04067455977201462,
0.04533222317695618,
-0.0436255969107151,
-0.01918175257742405,
-0.005462088156491518,
0.014506311155855656,
0.019732849672436714,
0.023110544309020042,
0.014124098233878613,
-0.0011921930126845837,
-0.07487816363573074,
0.0000341484701493755,
0.00043026721687056124,
-0.006982050836086273,
0.008790895342826843,
-0.017386240884661674,
-0.00011902485857717693,
-0.09173108637332916,
0.05038098618388176,
0.013555223122239113,
0.041350096464157104,
-0.025972696021199226,
-0.017759565263986588,
-0.03687020763754845,
0.04934990033507347,
0.007604258134961128,
-0.005617639981210232,
0.011875264346599579,
0.027305997908115387,
0.05976742506027222,
0.028443746268749237,
-0.005386534612625837,
0.0014310759725049138,
0.0005658194422721863,
-0.05013210326433182,
0.059518542140722275,
-0.011901930905878544,
-0.072531558573246,
-0.04949212074279785,
0.004502112045884132,
-0.011066395789384842,
-0.017599567770957947,
0.057100821286439896,
0.038932379335165024,
-0.03368806466460228,
0.03370584174990654,
-0.003131034318357706,
0.025670481845736504,
-0.0007599813980050385,
0.014230762608349323,
-0.0069420519284904,
-0.02533271163702011,
-0.024479400366544724,
0.0793580561876297,
0.00009249773574993014,
-0.03482581302523613,
0.03719019889831543,
-0.00040776777314022183,
-0.03747463598847389,
-0.010515297763049603,
0.027288220822811127,
0.0024999387096613646,
0.009057555347681046,
-0.03007926233112812,
0.06246957927942276,
0.003186588641256094,
0.02503049746155739,
0.02887040376663208,
-0.015981830656528473,
-0.09123332053422928,
0.07921583950519562,
-0.001253302558325231,
0.05514531582593918,
-0.039003487676382065,
0.046256642788648605,
-0.041492316871881485,
0.0072798216715455055,
-0.017279576510190964,
-0.0286392979323864,
0.008453126065433025,
0.014577420428395271,
-0.022008350118994713,
-0.03743908181786537,
0.013119678013026714,
-0.013581889681518078,
0.05013210326433182,
-0.00328658614307642,
0.01197304017841816,
-0.05166095495223999,
0.020052840933203697,
0.008155355229973793,
-0.03525247052311897,
0.022363895550370216,
0.06968718022108078,
-0.04074566811323166,
-0.026754898950457573,
-0.013457448221743107,
0.009226440452039242,
0.047678831964731216,
-0.042630065232515335,
-0.04686107486486435,
-0.06399843096733093,
-0.014568531885743141,
-0.02659490332007408,
-0.004346560221165419,
0.041492316871881485,
0.02741266041994095,
0.010221971198916435,
0.10865511745214462,
0.01703069359064102,
0.0049332124181091785,
-0.04316338524222374,
-0.03975013643503189,
-0.04412336274981499,
0.019697295501828194,
-0.015964053571224213,
0.08803340047597885,
-0.0027932648081332445,
-0.030399255454540253,
-0.028337083756923676,
-0.03395472466945648,
-0.03651466220617294,
-0.04931434616446495,
0.006182070821523666,
0.06602504849433899,
-0.006075406447052956,
-0.011546383611857891,
0.03985679894685745,
-0.008266463875770569,
-0.004666552413254976,
-0.012506360188126564,
0.030843688175082207,
0.035376910120248795,
0.0760159119963646,
-0.053616464138031006,
-0.010577518492937088,
0.0434478223323822,
0.04110121354460716,
-0.005950965452939272,
0.02414163015782833,
-0.027181556448340416,
-0.04846103489398956,
-0.035572461783885956,
-0.025866033509373665,
-0.011021952144801617,
-0.002739932853728533,
0.021279478445649147,
-0.00540875643491745,
-0.022541670128703117,
-0.05624751001596451,
-0.000328325288137421,
-0.018221775069832802,
0.0010549741564318538,
0.02042616531252861,
-0.0695449635386467,
-0.0409945510327816,
-0.02044394239783287,
0.0169506948441267,
-0.010168639943003654,
0.006222069729119539,
-0.00299326004460454,
0.018310662358999252,
0.027110446244478226,
-0.018790651112794876,
0.05870078504085541,
-0.001827733009122312,
-0.023786082863807678,
-0.035448018461465836,
0.03128812089562416,
-0.05891411006450653,
-0.0007399818859994411,
-0.005275426432490349,
0.021190591156482697,
-0.05016765743494034,
-0.01080862432718277,
0.007062049116939306,
-0.02983037941157818,
0.020088396966457367,
0.05400756374001503,
0.021279478445649147,
-0.022079458460211754,
-0.02174169011414051,
0.024550508707761765,
0.023590533062815666,
-0.02401718869805336,
-0.027199333533644676,
-0.029065953567624092,
0.03751019015908241,
-0.0009299772209487855,
-0.0013999657239764929,
0.0029132619965821505,
-0.058274127542972565,
-0.02046172134578228,
0.023608310148119926,
-0.008702008984982967,
-0.04234562814235687,
-0.0013899658806622028,
0.04885213449597359,
-0.039074596017599106,
0.04718106612563133,
0.0023710529785603285,
-0.0070264944806694984,
0.04060344770550728,
0.029581496492028236,
0.007173157297074795,
-0.019572854042053223,
0.053260914981365204,
0.057243041694164276,
-0.022008350118994713,
-0.01583961211144924,
0.022043904289603233,
0.007506482768803835,
0.02542159892618656,
-0.005515420343726873,
-0.020195061340928078,
0.013333006761968136,
0.006462063640356064,
-0.08170466125011444,
0.029279282316565514,
-0.016337377950549126,
0.020746158435940742
] |
722,036
|
apprise.plugins.base
|
image_url
|
Returns Image URL if possible
|
def image_url(self, notify_type, logo=False, extension=None,
image_size=None):
"""
Returns Image URL if possible
"""
if not self.image_size:
return None
if notify_type not in NOTIFY_TYPES:
return None
return self.asset.image_url(
notify_type=notify_type,
image_size=self.image_size if image_size is None else image_size,
logo=logo,
extension=extension,
)
|
(self, notify_type, logo=False, extension=None, image_size=None)
|
[
0.030121881514787674,
-0.06991388648748398,
-0.0041264756582677364,
0.012171018868684769,
0.027861814945936203,
-0.06079951673746109,
-0.002331852214410901,
-0.006562531925737858,
0.04394163936376572,
-0.0075443643145263195,
0.03949560225009918,
0.021229812875390053,
0.042311426252126694,
-0.038235895335674286,
-0.018293578177690506,
0.006159609649330378,
-0.017478471621870995,
-0.0351421944797039,
0.05405636504292488,
0.002943181898444891,
0.029102999716997147,
0.01843251660466194,
0.01582973450422287,
-0.026713255792856216,
0.030436808243393898,
0.08195523172616959,
0.03460496664047241,
0.0009690964943729341,
0.035975825041532516,
-0.017330270260572433,
0.02024798095226288,
-0.013736393302679062,
0.06809842586517334,
0.06528260558843613,
0.029436452314257622,
0.050684791058301926,
0.0017517837695777416,
0.04227437451481819,
-0.05642758309841156,
-0.01464412547647953,
0.0002312748256372288,
-0.04675745964050293,
0.08114012330770493,
-0.02939940057694912,
-0.0026629893109202385,
0.04534954950213432,
-0.03660568222403526,
0.00031695360667072237,
0.014356985688209534,
-0.11196596175432205,
0.025083042681217194,
0.010902046225965023,
-0.009623811580240726,
0.01867334358394146,
-0.058872904628515244,
0.04568300023674965,
0.03234490007162094,
0.056390535086393356,
0.04301537945866585,
0.047350265085697174,
0.005353766027837992,
-0.036735355854034424,
-0.003410941921174526,
-0.018988270312547684,
0.018275052309036255,
0.005983620882034302,
-0.03336378186941147,
0.007613833528012037,
-0.04442329332232475,
0.03882869705557823,
0.05446391925215721,
0.020173879340291023,
-0.052018601447343826,
-0.02621307596564293,
0.007261855993419886,
-0.0649491474032402,
0.06254088133573532,
0.021748516708612442,
0.04612760618329048,
-0.0018779863603413105,
-0.0011311915004625916,
0.01576489582657814,
0.026064874604344368,
-0.05138874426484108,
0.07443401962518692,
-0.005539017729461193,
0.015116516500711441,
-0.0004440245102159679,
0.001454223645851016,
0.04823946952819824,
-0.020581433549523354,
0.0009083108743652701,
-0.024694014340639114,
-0.11826451122760773,
0.021285388618707657,
0.027750663459300995,
0.023934483528137207,
-0.04345998540520668,
0.07521207630634308,
-0.024971891194581985,
-0.024971891194581985,
-0.07447107136249542,
-0.023767758160829544,
-0.035031042993068695,
0.039680853486061096,
-0.08899478614330292,
0.007488789036870003,
-0.010763107798993587,
-0.048276521265506744,
0.006280023138970137,
-0.005242615472525358,
-0.028658395633101463,
-0.027491310611367226,
-0.03732816129922867,
0.06446749716997147,
0.03156684339046478,
-0.030251557007431984,
-0.02926972508430481,
0.009725700132548809,
-0.007998229935765266,
-0.06798727065324783,
0.05042543634772301,
-0.0860307589173317,
-0.008674398064613342,
0.01703386940062046,
0.007720353081822395,
-0.013338102959096432,
-0.028917746618390083,
0.02145211584866047,
-0.07454517483711243,
-0.031029613688588142,
0.013023175299167633,
-0.04716501384973526,
0.023767758160829544,
-0.05072183907032013,
-0.0014866426354274154,
-0.02569437213242054,
0.018849331885576248,
-0.0018756706267595291,
0.06254088133573532,
-0.053315360099077225,
0.006136453244835138,
-0.04012545943260193,
0.019414348527789116,
0.05498262122273445,
-0.017478471621870995,
0.07610128819942474,
-0.012671197764575481,
-0.02171146683394909,
-0.03801359236240387,
0.02702818252146244,
0.02091488614678383,
-0.01205986738204956,
-0.000891522504389286,
-0.02582404948771,
-0.015097991563379765,
-0.010726057924330235,
-0.0148942144587636,
0.011837566271424294,
0.014783063903450966,
0.009234783239662647,
0.021674416959285736,
-0.011040984652936459,
-0.0008949959301389754,
-0.011967241764068604,
-0.018534405156970024,
0.07610128819942474,
0.05483442172408104,
0.057279739528894424,
0.01701534353196621,
-0.04831357300281525,
-0.04305243119597435,
-0.0025124724488705397,
-0.06039196625351906,
-0.011504113674163818,
0.11722709983587265,
-0.0009297305950894952,
-0.02899184823036194,
-0.02132243849337101,
-0.011133610270917416,
0.007132180035114288,
0.009281096048653126,
-0.003436413826420903,
0.04423804208636284,
0.014746013097465038,
0.03062206134200096,
0.032252274453639984,
0.008757760748267174,
0.0031909558456391096,
-0.006636632140725851,
-0.018441779538989067,
0.01548701897263527,
-0.040199559181928635,
0.023156428709626198,
0.04601645469665527,
0.006613475736230612,
0.02250804752111435,
-0.018210215494036674,
-0.047906018793582916,
0.010040626861155033,
0.025120092555880547,
-0.03634633123874664,
-0.05101824179291725,
0.008711447939276695,
0.007488789036870003,
-0.005140726920217276,
0.0662829577922821,
0.00914215762168169,
0.007919498719274998,
0.051314644515514374,
-0.04649810865521431,
-0.013264002278447151,
-0.08121422678232193,
0.002957075834274292,
-0.007391531951725483,
-0.0397549569606781,
-0.05098119378089905,
0.08899478614330292,
-0.0383840948343277,
0.035420071333646774,
-0.00824831984937191,
-0.06013261154294014,
0.02767656370997429,
-0.010355554521083832,
0.043497033417224884,
0.06039196625351906,
0.039162151515483856,
-0.003948171157389879,
0.015014627948403358,
0.015125778503715992,
-0.04946213215589523,
0.030807312577962875,
0.07495272904634476,
0.06561605632305145,
0.06576425582170486,
-0.013551142066717148,
-0.021767042577266693,
0.0037860760930925608,
0.007896342314779758,
0.05842829868197441,
-0.0038717547431588173,
-0.012421107850968838,
0.004672967363148928,
0.021544741466641426,
0.0009638863266445696,
-0.07654588669538498,
-0.01158747635781765,
0.04468264430761337,
-0.03897690027952194,
-0.06528260558843613,
0.01476453896611929,
-0.04738731309771538,
-0.0006176977185532451,
-0.041940923780202866,
-0.028528720140457153,
0.04412689059972763,
0.016126137226819992,
-0.01867334358394146,
0.014162471517920494,
-0.01860850490629673,
0.005821526050567627,
-0.028380518779158592,
-0.003325263038277626,
-0.009475610218942165,
-0.06643115729093552,
-0.0556124784052372,
-0.04331178218126297,
0.05679808557033539,
-0.05416751652956009,
0.07217395305633545,
0.14679323136806488,
0.05413046479225159,
0.016376225277781487,
0.007669408805668354,
0.02860281988978386,
-0.0010628800373524427,
-0.01716354489326477,
-0.03590172529220581,
-0.00028511352138593793,
-0.0754343792796135,
-0.02224869653582573,
0.04727616533637047,
0.038902800530195236,
0.02132243849337101,
-0.017710035666823387,
-0.029621703550219536,
0.04912867769598961,
0.003258109325543046,
-0.02082226052880287,
-0.01766372285783291,
0.04575710371136665,
0.10033217072486877,
-0.011031722649931908,
-0.005807632114738226,
-0.05687218904495239,
-0.026546528562903404,
0.017515521496534348,
0.04820242151618004,
0.03417888656258583,
0.009503398090600967,
-0.018914170563220978,
0.008081593550741673,
0.031344540417194366,
-0.0397549569606781,
0.007345219142735004,
0.04145926982164383,
0.016654103994369507,
-0.031048139557242393,
0.00446919072419405,
0.021563265472650528,
0.0317891463637352,
0.020711109042167664,
-0.010448180139064789,
0.02728753536939621,
0.05857650190591812,
0.048165369778871536,
0.04464559257030487,
-0.019636651501059532,
0.035827625542879105,
0.06876532733440399,
0.02132243849337101,
0.04442329332232475,
-0.03523482009768486,
0.0071136546321213245,
0.044571492820978165,
-0.01807127706706524,
0.016404014080762863,
0.018339890986680984,
0.002989494940266013,
0.06961748749017715,
0.047868967056274414,
0.0029547603335231543,
-0.008989325724542141,
-0.011078035458922386,
0.01105951052159071,
0.0344567634165287,
0.020729634910821915,
-0.04116286709904671,
0.02504599280655384,
-0.02941792644560337,
-0.036624208092689514,
-0.025231244042515755,
-0.028417568653821945,
0.013032437302172184,
0.003670293837785721,
-0.007095129694789648,
0.04005135968327522,
-0.08691997081041336,
0.036216653883457184,
-0.05205564945936203,
-0.07395236939191818,
0.0556124784052372,
-0.023508405312895775,
-0.042052075266838074,
0.019173521548509598,
-0.005529755260795355,
-0.044979047030210495,
-0.05479736998677254,
0.038495246320962906,
0.08395594358444214,
0.010411130264401436,
0.04757256433367729,
-0.013282527215778828,
0.02726900950074196,
0.04331178218126297,
0.01363450475037098,
0.025879623368382454,
0.019821902737021446,
0.05705744028091431,
-0.03202997148036957,
-0.034530866891145706,
0.015394393354654312,
-0.01875670626759529,
-0.021285388618707657,
0.05668693780899048,
-0.0437563881278038,
0.0020389235578477383,
0.002792665269225836,
-0.005404710303992033,
0.031696517020463943,
-0.0424225777387619,
0.03430856391787529,
0.008433571085333824,
0.057946644723415375,
-0.005349135026335716,
-0.0005699375760741532,
0.03682798147201538,
0.04838767275214195,
-0.055167876183986664,
-0.014264360070228577,
0.004886006470769644,
-0.020877836272120476,
-0.00243374053388834,
0.008049174211919308,
0.005381553899496794,
-0.08558616042137146,
-0.0476837158203125,
0.032363422214984894,
-0.056094132363796234,
-0.01699681766331196,
0.002882975386455655,
0.003586930688470602,
-0.03136306628584862,
0.0023920589592307806,
0.03245604783296585,
-0.007363744080066681,
-0.05183335021138191,
-0.003881017444655299,
-0.013745655305683613,
-0.048943426460027695,
-0.02569437213242054,
-0.03853229805827141,
-0.09692354500293732,
-0.015792684629559517,
0.06476389616727829,
-0.005085151642560959,
0.03190029412508011,
-0.02280445024371147,
0.013254739344120026,
0.03949560225009918,
0.005395447835326195,
-0.012171018868684769,
0.038754597306251526,
-0.016274338588118553,
-0.009285727515816689,
0.003630927996709943,
0.020729634910821915,
-0.011254023760557175,
-0.02834346890449524,
0.0019995574839413166,
-0.006479168776422739,
0.06346713751554489,
-0.011800515465438366,
0.010726057924330235,
0.04820242151618004,
0.004515503533184528,
0.05798369646072388,
-0.048684075474739075,
-0.037828341126441956,
0.007863922975957394,
-0.05646463483572006,
-0.013949432410299778,
-0.04068121314048767,
0.012939811684191227,
-0.050017885863780975,
0.009725700132548809,
-0.0318261943757534,
-0.02965875342488289,
-0.046572208404541016,
-0.016459589824080467,
-0.022304272279143333,
0.07532323151826859,
0.03432708978652954,
0.006650526076555252,
-0.055945929139852524,
-0.040607113391160965,
-0.05046248808503151,
-0.019247623160481453,
-0.0165429525077343,
-0.035031042993068695,
-0.029844004660844803,
0.008382626809179783,
-0.061540521681308746,
-0.08388184756040573,
0.010883521288633347,
-0.026565054431557655,
0.02767656370997429,
-0.025360919535160065,
0.01106877252459526,
-0.004784117918461561,
0.035308919847011566,
-0.04672040790319443,
-0.022452471777796745,
0.036364853382110596,
0.02265624888241291,
0.001686945790424943,
0.024731066077947617,
0.0661718100309372,
0.026138976216316223,
-0.08121422678232193,
0.008405783213675022,
0.005603855475783348,
-0.01345851644873619,
-0.029084473848342896,
-0.0069932411424815655,
-0.03434561565518379,
-0.01628359965980053,
-0.021896718069911003,
-0.021785568445920944,
0.07958400994539261,
-0.00815106276422739,
0.015801945701241493,
-0.030029255896806717,
0.040607113391160965,
0.011828303337097168,
0.05379701405763626,
-0.007988967932760715,
-0.018080538138747215,
0.003325263038277626,
-0.020581433549523354,
0.005627011880278587,
-0.06013261154294014,
0.01449592411518097,
0.00979980081319809,
0.015097991563379765,
-0.04301537945866585,
-0.0357535257935524,
0.04420099034905434,
-0.034104786813259125,
-0.016765253618359566,
0.018941957503557205,
0.04746141657233238,
0.07565668225288391,
0.034790217876434326,
-0.007669408805668354,
-0.07561963051557541,
0.022711824625730515,
-0.004362671170383692,
0.04968443140387535,
-0.041940923780202866,
0.031085189431905746,
-0.000010320892215531785,
-0.018877120688557625,
0.009494135156273842,
0.03099256381392479,
0.0089383814483881,
0.020451758056879044,
0.010068414732813835,
0.007808347698301077,
0.01587604731321335,
-0.01450518611818552,
-0.003867123508825898,
-0.026954082772135735,
-0.04012545943260193,
0.02172999270260334,
0.013402940705418587,
-0.08262213319540024,
-0.0046150763519108295,
-0.03805064409971237,
0.023934483528137207,
-0.06039196625351906,
-0.05364881083369255,
-0.05257435515522957,
-0.037735715508461,
-0.028269367292523384,
-0.008313157595694065,
0.06517145037651062,
0.0002189729711972177,
0.01808980107307434,
-0.04957327991724014,
0.005539017729461193,
0.021748516708612442,
0.05183335021138191,
-0.023749232292175293,
-0.01133738737553358,
0.03682798147201538,
-0.02069258503615856,
-0.04186682030558586,
0.013375152833759785,
-0.011105823330581188,
-0.06813547760248184,
-0.015690796077251434,
-0.06135527044534683,
-0.00417741946876049,
-0.08758687227964401,
0.03190029412508011,
0.022415421903133392,
-0.025935199111700058,
-0.03642043098807335,
-0.0011549268383532763,
-0.03710586205124855,
0.013523354195058346,
-0.030696161091327667,
-0.0038601765409111977,
0.0076184649951756,
0.033326730132102966,
0.04408983886241913,
0.007373006548732519,
0.013467778451740742,
0.022841500118374825,
-0.02689850702881813,
-0.021359488368034363,
0.04701681062579155,
0.040199559181928635,
-0.049350980669260025,
-0.033808384090662,
0.0054649170488119125,
-0.008396521210670471,
-0.021526215597987175,
0.03749488666653633,
0.023360203951597214,
0.00091873126802966,
-0.003994483966380358,
0.02424941211938858,
-0.0018108326476067305,
-0.017089443281292915,
0.04757256433367729,
-0.018636293709278107,
-0.006530112586915493,
-0.01709870621562004,
0.0663200095295906,
0.017654459923505783,
-0.0569833368062973,
-0.0023052224423736334,
0.0015954779228195548,
-0.04542364925146103,
-0.033863961696624756,
0.05246320366859436,
-0.01450518611818552,
-0.005603855475783348,
-0.002128075808286667,
0.047906018793582916,
0.006104034371674061,
0.015283242799341679,
-0.009290358982980251,
-0.02091488614678383,
-0.0833631381392479,
0.07269266247749329,
-0.01623728685081005,
0.030566485598683357,
-0.027972964569926262,
0.01800643838942051,
0.024416137486696243,
-0.010299978777766228,
-0.008887437172234058,
-0.019581075757741928,
0.0006246446282602847,
-0.003126117866486311,
-0.021618841215968132,
-0.021785568445920944,
0.0035892464220523834,
-0.01841399073600769,
0.057687293738126755,
-0.010679744184017181,
0.019117947667837143,
-0.04442329332232475,
0.03180766850709915,
0.004263098351657391,
-0.021785568445920944,
-0.0022728033363819122,
0.047720767557621,
-0.013801231049001217,
-0.027658037841320038,
-0.008665135130286217,
0.012078393250703812,
0.08277034014463425,
-0.04201502352952957,
-0.04672040790319443,
-0.03619812801480293,
-0.04835062101483345,
0.0058400509878993034,
-0.012235856615006924,
0.060095563530921936,
0.022841500118374825,
-0.026398327201604843,
0.08795737475156784,
0.017719298601150513,
-0.015774158760905266,
-0.022341322153806686,
-0.03336378186941147,
-0.012365533038973808,
0.005849313922226429,
-0.019432874396443367,
0.03128896653652191,
-0.013967957347631454,
-0.017950862646102905,
0.03297475352883339,
-0.05149989575147629,
-0.05183335021138191,
-0.047906018793582916,
-0.013199163600802422,
0.04294127970933914,
-0.006432855501770973,
0.014551499858498573,
0.07106244564056396,
-0.014264360070228577,
-0.031159289181232452,
0.014440348371863365,
-0.004946213215589523,
0.004881375003606081,
0.05935455486178398,
-0.05175924673676491,
0.017089443281292915,
0.048165369778871536,
-0.0024221623316407204,
0.00024676069733686745,
0.04594235494732857,
-0.01761741004884243,
-0.04016250744462013,
0.04886932671070099,
-0.004677598364651203,
0.00506199523806572,
-0.030177457258105278,
-0.0018015700625255704,
0.03669830784201622,
-0.004089425317943096,
-0.08039911836385727,
-0.033863961696624756,
-0.035308919847011566,
0.010235141031444073,
0.00921625830233097,
-0.04005135968327522,
-0.024694014340639114,
0.02876954711973667,
0.00913289561867714,
-0.03256719931960106,
0.02108161151409149,
-0.016978293657302856,
0.001303706900216639,
0.01145780086517334,
-0.012884236872196198,
-0.02901037223637104,
-0.019803376868367195,
-0.018247265368700027,
-0.020081253722310066,
0.01961812563240528,
-0.040607113391160965,
0.007938023656606674,
-0.033030327409505844,
0.04957327991724014,
-0.015209142118692398,
-0.05446391925215721,
0.03180766850709915,
-0.0715441033244133,
0.044571492820978165,
0.026324227452278137,
0.03390100970864296,
0.002957075834274292,
0.012865711003541946,
-0.0069145094603300095,
-0.025620272383093834,
0.010837208479642868,
0.013301052153110504,
-0.003028860781341791,
0.011198448948562145,
-0.01476453896611929,
-0.01632065139710903,
-0.011003934778273106,
-0.03871754929423332,
-0.014810851775109768,
0.03736521303653717,
-0.009424665942788124,
-0.050944142043590546,
-0.03021450713276863,
0.05879880115389824,
-0.03562384843826294,
0.0005184145411476493,
0.011967241764068604,
-0.0089383814483881,
0.01796012558043003,
-0.004923056811094284,
0.012671197764575481,
0.012235856615006924,
0.004392774309962988,
0.04738731309771538,
-0.039162151515483856,
0.016654103994369507,
0.01830284111201763,
0.012356270104646683,
0.02091488614678383,
0.025768473744392395,
0.010309241712093353,
0.017089443281292915,
-0.004026902839541435,
-0.04583120346069336,
0.04301537945866585,
-0.028324943035840988,
0.018210215494036674
] |
722,037
|
apprise.plugins.base
|
notify
|
Performs notification
|
def notify(self, *args, **kwargs):
"""
Performs notification
"""
try:
# Build a list of dictionaries that can be used to call send().
send_calls = list(self._build_send_calls(*args, **kwargs))
except TypeError:
# Internal error
return False
else:
# Loop through each call, one at a time. (Use a list rather than a
# generator to call all the partials, even in case of a failure.)
the_calls = [self.send(**kwargs2) for kwargs2 in send_calls]
return all(the_calls)
|
(self, *args, **kwargs)
|
[
0.031340617686510086,
-0.045816656202077866,
-0.009418470785021782,
0.03467010706663132,
-0.02506163716316223,
-0.045816656202077866,
-0.018637897446751595,
0.01874646730720997,
0.02066454105079174,
-0.012476533651351929,
0.03671484813094139,
-0.0017812310252338648,
0.019017891958355904,
-0.03555676341056824,
-0.0712582916021347,
-0.04255954548716545,
-0.0006355884834192693,
-0.017081722617149353,
-0.0013740925351157784,
-0.04965280368924141,
-0.01261224690824747,
0.07513062655925751,
0.012485581450164318,
0.029241593554615974,
0.006925878580659628,
0.0630069449543953,
0.04368143901228905,
-0.0019587886054068804,
0.059062227606773376,
0.08482957631349564,
-0.012006063014268875,
-0.029549209401011467,
0.05493655800819397,
-0.01006989274173975,
0.04737282916903496,
0.02614734135568142,
-0.01756124198436737,
0.028499696403741837,
-0.07187352329492569,
-0.013480808585882187,
0.005903508514165878,
-0.05240325257182121,
0.008830382488667965,
0.020085500553250313,
-0.019361699000000954,
-0.004790663253515959,
-0.05649273097515106,
0.16285541653633118,
0.03799959644675255,
0.03633484989404678,
-0.0022347380872815847,
0.00755468150600791,
0.0014227229403331876,
-0.019687408581376076,
-0.026111150160431862,
0.07520300894975662,
0.023342609405517578,
0.07382778823375702,
0.007717536762356758,
-0.0027775894850492477,
0.00826491229236126,
0.02564067952334881,
0.048132821917533875,
-0.041582413017749786,
0.007663251832127571,
-0.032426320016384125,
0.023053087294101715,
-0.011499401181936264,
-0.0023139039985835552,
0.03675103560090065,
-0.0277577992528677,
0.0296939704567194,
-0.060509830713272095,
0.012585104443132877,
0.03908529877662659,
0.01334509626030922,
-0.01675601303577423,
0.040388140827417374,
0.04006243124604225,
0.03832530602812767,
0.006744928192347288,
-0.051679451018571854,
-0.025658775120973587,
-0.010277985595166683,
0.032263465225696564,
0.03304155170917511,
-0.006437312345951796,
-0.03021872602403164,
0.012766054831445217,
0.029748255386948586,
-0.0256044901907444,
0.01810409314930439,
0.04310239851474762,
-0.026853047311306,
0.01183415949344635,
0.0007865690276958048,
0.007197304163128138,
-0.04024337977170944,
-0.03369297459721565,
-0.018782656639814377,
-0.03977290913462639,
0.014575558714568615,
0.013915089890360832,
-0.05804890766739845,
0.0712582916021347,
-0.029422543942928314,
0.00036755562177859247,
-0.05294610187411308,
-0.02929587848484516,
-0.0005716903251595795,
-0.009101808071136475,
-0.048313770443201065,
-0.06514216214418411,
-0.005993983708322048,
-0.024337835609912872,
-0.015525548718869686,
-0.050955649465322495,
-0.01869218237698078,
-0.021424533799290657,
0.012965099886059761,
-0.01943407952785492,
0.023107372224330902,
0.03570152446627617,
-0.026563527062535286,
0.02562258392572403,
0.043717630207538605,
0.01703648455440998,
0.005374228581786156,
0.07751917839050293,
-0.05124516785144806,
-0.013679854571819305,
0.0045350706204771996,
-0.020700732246041298,
0.03106919303536415,
0.011001788079738617,
0.0568908229470253,
-0.026093056425452232,
-0.03443486988544464,
0.0666983351111412,
-0.022166430950164795,
0.002535568317398429,
-0.02793874964118004,
0.03745674341917038,
0.059243179857730865,
0.02403021976351738,
0.02808351069688797,
0.01927122287452221,
-0.012666531838476658,
-0.004075909033417702,
-0.02348736859858036,
0.06098030507564545,
-0.03566533327102661,
-0.019325507804751396,
-0.004516975954174995,
-0.09612087905406952,
0.03637104108929634,
-0.03286060318350792,
-0.006274457089602947,
-0.004573522601276636,
-0.03231775015592575,
-0.02649114653468132,
-0.03110538236796856,
-0.00031524960650131106,
0.05486417934298515,
-0.006839927285909653,
-0.010115130804479122,
-0.011644162237644196,
-0.00824681669473648,
0.018294090405106544,
0.08280292898416519,
-0.01491936482489109,
0.050050895661115646,
-0.003671032376587391,
-0.016285540536046028,
-0.0069665927439928055,
0.047083307057619095,
-0.031340617686510086,
-0.04925471544265747,
-0.0523308701813221,
-0.013661758974194527,
-0.019542649388313293,
-0.069195456802845,
-0.0314130000770092,
-0.017081722617149353,
0.003343059681355953,
0.06061840057373047,
0.008993237279355526,
-0.033150121569633484,
0.01999502442777157,
-0.00417316984385252,
-0.05160706862807274,
-0.013480808585882187,
0.04610617458820343,
0.06684309989213943,
-0.009070141240954399,
0.0001931080623762682,
0.008513718843460083,
-0.010829884558916092,
-0.012241298332810402,
-0.029983490705490112,
0.0056094639003276825,
-0.10154939442873001,
0.02705209329724312,
0.0010500780772417784,
-0.02227500081062317,
0.003781864419579506,
0.046721406280994415,
0.04064147174358368,
0.04169098660349846,
-0.03552057594060898,
-0.027269233018159866,
-0.04834996163845062,
-0.012666531838476658,
0.038433875888586044,
0.04498428478837013,
0.00861776527017355,
0.07925629615783691,
0.008531813509762287,
-0.04237859696149826,
-0.001686232048086822,
0.04313858970999718,
-0.01323652546852827,
-0.034525346010923386,
0.03494153171777725,
-0.03933862969279289,
0.05953269824385643,
0.033855829387903214,
0.04563570395112038,
0.04292144626379013,
0.0007910927524790168,
0.01093845535069704,
0.05283753201365471,
0.05736129358410835,
0.046178556978702545,
-0.05240325257182121,
-0.04755378141999245,
-0.03566533327102661,
0.021768338978290558,
0.030671102926135063,
0.028192080557346344,
0.05594988167285919,
-0.004777092020958662,
-0.006559453904628754,
-0.021080728620290756,
0.03126823902130127,
-0.060654591768980026,
0.032245371490716934,
0.0145665118470788,
-0.0036506755277514458,
-0.007124924100935459,
-0.010214652866125107,
-0.007618014235049486,
-0.05207753926515579,
-0.07234399020671844,
-0.035393908619880676,
0.0229807086288929,
0.028825407847762108,
0.018963607028126717,
0.07563728839159012,
0.029042547568678856,
0.011671304702758789,
0.0721268504858017,
-0.0015245075337588787,
0.05967745929956436,
-0.0011462080292403698,
-0.0033950828947126865,
-0.017000295221805573,
0.016041258350014687,
-0.029766349121928215,
0.03624437749385834,
0.0636945590376854,
-0.011218927800655365,
0.01715410314500332,
0.013652712106704712,
-0.04082242399454117,
0.0004925245302729309,
0.03678722679615021,
-0.04255954548716545,
-0.05699939280748367,
-0.0016545656835660338,
0.01927122287452221,
0.018375517800450325,
0.02171405404806137,
-0.034525346010923386,
-0.01202415768057108,
-0.02790256030857563,
0.06264504790306091,
0.038216736167669296,
-0.02507973276078701,
-0.04198050498962402,
0.019904550164937973,
0.026074960827827454,
0.026201626285910606,
-0.018357424065470695,
-0.03175680339336395,
-0.008482052944600582,
-0.009400376118719578,
-0.00903395190834999,
0.05475560948252678,
-0.024790212512016296,
0.029712064191699028,
-0.007251589559018612,
-0.052548013627529144,
-0.08048675954341888,
0.036316756159067154,
0.0019452173728495836,
0.03280631825327873,
0.03604533150792122,
-0.0034267492592334747,
-0.008043247275054455,
-0.010124177671968937,
-0.013725091703236103,
-0.012277488596737385,
-0.05634796991944313,
0.09199520945549011,
0.026219720020890236,
0.025731153786182404,
-0.019198842346668243,
-0.0001498495985288173,
0.04679378867149353,
-0.005930650979280472,
0.06380312889814377,
0.01776028797030449,
0.09952274709939957,
0.009147045202553272,
0.005731605459004641,
0.02773970551788807,
0.0160503052175045,
-0.028119700029492378,
-0.018493136391043663,
-0.01767885871231556,
-0.05931555852293968,
0.03745674341917038,
-0.03850625827908516,
-0.036823417991399765,
0.03318631276488304,
0.018619801849126816,
-0.004758996888995171,
0.04060528054833412,
0.03336726501584053,
0.00764515670016408,
0.013924137689173222,
0.004487571306526661,
0.03678722679615021,
-0.0006016602856107056,
0.025314968079328537,
0.01631268300116062,
0.015226980671286583,
0.04730045050382614,
0.0037456743884831667,
-0.044767141342163086,
-0.014874127693474293,
0.022202620282769203,
-0.0034606773406267166,
0.02171405404806137,
-0.01006084494292736,
0.025713060051202774,
-0.033819638192653656,
0.00030902944854460657,
-0.010920359753072262,
0.049906134605407715,
0.03481486812233925,
-0.002992468187585473,
0.005437561310827732,
-0.051498498767614365,
0.012521771714091301,
0.040026240050792694,
0.04281287640333176,
-0.02439212054014206,
-0.004568999167531729,
0.007201828062534332,
0.020773112773895264,
-0.05124516785144806,
-0.0018705753609538078,
0.014593654312193394,
0.0005920472904108465,
0.00793467741459608,
0.00006817450048401952,
-0.03836149722337723,
0.00768587039783597,
-0.0038904347456991673,
-0.027830179780721664,
0.011942730285227299,
-0.012856530025601387,
0.028318746015429497,
0.0041437651962041855,
0.005604940466582775,
0.01644839718937874,
-0.049001384526491165,
0.003254846204072237,
0.047770921140909195,
-0.051643259823322296,
-0.08258578926324844,
-0.020935967564582825,
-0.060509830713272095,
-0.01816742494702339,
0.06615548580884933,
0.014050803147256374,
-0.04737282916903496,
-0.05034041777253151,
0.010974644683301449,
-0.012666531838476658,
-0.06141458451747894,
0.023523559793829918,
0.028137795627117157,
0.033150121569633484,
-0.0006819570553489029,
-0.029712064191699028,
0.043898578733205795,
0.029096832498908043,
0.008043247275054455,
-0.009771324694156647,
-0.03476058319211006,
-0.03548438474535942,
-0.034344397485256195,
0.01120083313435316,
-0.05775938555598259,
-0.0034403204917907715,
0.023776890709996223,
0.003999005071818829,
-0.001290402957238257,
-0.014304133132100105,
0.06970211863517761,
0.013634616509079933,
0.04357286915183067,
-0.022763567045331,
-0.000957340991590172,
-0.04907376319169998,
0.04339192062616348,
0.036624372005462646,
-0.03369297459721565,
0.004659474361687899,
-0.03126823902130127,
0.032408226281404495,
0.03760150447487831,
-0.01643030159175396,
0.0038067451678216457,
-0.045852843672037125,
-0.024862593039870262,
0.005926127545535564,
-0.06289837509393692,
0.05207753926515579,
-0.045997604727745056,
-0.04049671068787575,
-0.024500692263245583,
-0.026925427839159966,
0.0029223498422652483,
-0.056420352309942245,
-0.0027210423722863197,
0.013010337948799133,
-0.02683495171368122,
0.00935513898730278,
0.029042547568678856,
-0.035430099815130234,
-0.006948497612029314,
-0.053597524762153625,
-0.02701590210199356,
0.00839610118418932,
-0.011635114438831806,
-0.027233043685555458,
-0.02721494808793068,
-0.01806790381669998,
-0.10444460064172745,
-0.016746964305639267,
0.017371242865920067,
0.04205288738012314,
-0.021261679008603096,
0.04505666345357895,
-0.012992242351174355,
0.03249870240688324,
0.06760308891534805,
-0.05529845878481865,
0.011463210918009281,
0.007658727932721376,
-0.00048602159949950874,
0.0001822227641241625,
-0.03973672166466713,
0.060835544019937515,
0.000949424400459975,
-0.03671484813094139,
-0.05761462450027466,
0.023921649903059006,
0.0024858068209141493,
0.015652215108275414,
-0.003908529877662659,
-0.08338197320699692,
0.04274049773812294,
-0.03483296185731888,
-0.018619801849126816,
-0.04701092839241028,
0.015561738982796669,
-0.023034993559122086,
0.06499740481376648,
0.024934973567724228,
0.06289837509393692,
0.009337043389678001,
-0.07310398668050766,
-0.005613987799733877,
0.00869919266551733,
-0.03018253669142723,
-0.0011818326311185956,
0.02967587485909462,
0.047951869666576385,
0.03562914580106735,
0.018836941570043564,
-0.034000590443611145,
0.02102644369006157,
0.03695008158683777,
-0.0035375813022255898,
0.012006063014268875,
-0.005799462087452412,
-0.004317930433899164,
-0.010540364310145378,
-0.00013323890743777156,
0.04252335801720619,
-0.03054443746805191,
0.004568999167531729,
-0.011987967416644096,
-0.0389043465256691,
-0.018818847835063934,
0.10733980685472488,
-0.019651219248771667,
-0.014883174560964108,
-0.019705504179000854,
0.017950285226106644,
-0.045309994369745255,
0.010567506775259972,
-0.019180748611688614,
0.010024655610322952,
-0.03582819178700447,
0.013906042091548443,
0.03781864419579506,
0.023559749126434326,
-0.030671102926135063,
0.0370948426425457,
-0.015335551463067532,
-0.007491348776966333,
-0.045490942895412445,
-0.053452763706445694,
0.01777838170528412,
-0.010422746650874615,
-0.0024360455572605133,
-0.07263351231813431,
-0.07426206767559052,
-0.017371242865920067,
-0.01649363338947296,
0.027124473825097084,
-0.0340367816388607,
0.025043543428182602,
-0.03861482813954353,
-0.022130239754915237,
-0.04288525879383087,
0.015597929246723652,
0.08823144435882568,
-0.01578792743384838,
0.037529125809669495,
0.02260071225464344,
0.0045260232873260975,
-0.009382281452417374,
0.02652733586728573,
-0.019832169637084007,
-0.0036732943262904882,
0.03173870965838432,
-0.012684626504778862,
-0.08359911292791367,
0.0004506797413341701,
0.055696550756692886,
0.012675579637289047,
0.01810409314930439,
0.0036529372446238995,
-0.030309200286865234,
0.06040126085281372,
-0.06883355230093002,
-0.009079189039766788,
0.04610617458820343,
0.012132728472352028,
0.03092443197965622,
-0.05848318710923195,
-0.054683227092027664,
-0.05417656525969505,
0.003974124323576689,
-0.05066612735390663,
-0.02100834809243679,
-0.035430099815130234,
0.016014115884900093,
0.030309200286865234,
-0.046214744448661804,
0.013281763531267643,
0.017443623393774033,
0.016032209619879723,
-0.018601706251502037,
0.010540364310145378,
-0.0005829997244291008,
-0.03255298733711243,
0.05790414661169052,
0.07328493148088455,
0.036479610949754715,
0.008188008330762386,
-0.014258896000683308,
-0.007228970527648926,
-0.02507973276078701,
0.017506957054138184,
0.021334059536457062,
-0.04360906034708023,
0.017896000295877457,
-0.020736921578645706,
-0.055913690477609634,
0.045454755425453186,
0.011499401181936264,
0.009499899111688137,
0.009753229096531868,
0.028499696403741837,
0.050593748688697815,
0.029712064191699028,
-0.04693854972720146,
0.011607971973717213,
-0.07118590921163559,
0.05736129358410835,
0.014819841831922531,
0.061342205852270126,
-0.02348736859858036,
-0.021659769117832184,
-0.018294090405106544,
-0.020791206508874893,
-0.010115130804479122,
-0.015616023913025856,
0.011264165863394737,
-0.03191966190934181,
-0.025333063676953316,
-0.059605080634355545,
-0.014123182743787766,
-0.024301646277308464,
0.047915682196617126,
0.015597929246723652,
0.056782253086566925,
-0.10943883657455444,
-0.04748139902949333,
0.0102417953312397,
-0.07317636162042618,
-0.011816064827144146,
0.010178463533520699,
-0.012530818581581116,
-0.03182918578386307,
-0.09047522395849228,
-0.002331998897716403,
0.07035353779792786,
-0.0006468978826887906,
-0.0430300198495388,
0.05124516785144806,
-0.03886815905570984,
0.008052295073866844,
0.05265658348798752,
-0.034507252275943756,
0.054827988147735596,
-0.01438556145876646,
0.08309245109558105,
-0.005505417473614216,
-0.012784149497747421,
0.007342064753174782,
-0.02403021976351738,
-0.018321232870221138,
0.008314673788845539,
0.017950285226106644,
-0.0721268504858017,
0.04639569669961929,
0.029911110177636147,
-0.0020062881521880627,
-0.064201220870018,
-0.015670308843255043,
-0.0236683189868927,
0.007432539947330952,
0.05406799539923668,
0.041763365268707275,
0.013173192739486694,
-0.012096538208425045,
0.03590057045221329,
-0.046902358531951904,
-0.025839725509285927,
-0.04682997614145279,
0.0004933727323077619,
-0.014331275597214699,
-0.04563570395112038,
-0.016602205112576485,
0.02826446108520031,
0.004308882635086775,
0.005858270917087793,
0.02616543509066105,
-0.016683632507920265,
-0.039664339274168015,
-0.017968380823731422,
0.014638891443610191,
-0.032571081072092056,
0.007292303256690502,
0.03177490085363388,
0.008934428915381432,
-0.008120151236653328,
-0.05703558400273323,
-0.014439846388995647,
-0.019216937944293022,
-0.04295763745903969,
0.05243944004178047,
-0.045852843672037125,
-0.003053538966923952,
0.0023794984444975853,
-0.029187308624386787,
0.02417498081922531,
-0.08454005420207977,
-0.005392323713749647,
0.017488861456513405,
0.040713854134082794,
-0.0271968524903059,
0.010223700664937496,
0.05399561673402786,
-0.033150121569633484,
-0.011617018841207027,
-0.06022031232714653,
0.025170208886265755,
0.01006084494292736,
0.03617199510335922,
-0.0023093800991773605,
-0.02491687797009945,
0.02965777926146984,
-0.01818552054464817,
-0.05580512061715126,
-0.016737917438149452,
-0.03465201333165169,
0.03405487537384033,
0.007541110273450613,
0.02935016341507435,
0.008491099812090397,
-0.017190292477607727,
-0.03269774839282036,
-0.03999004885554314,
0.02793874964118004,
0.037203412503004074,
-0.06315170973539352,
0.003777340753003955,
-0.007871344685554504,
-0.04465857148170471,
0.020610256120562553,
0.031883470714092255,
-0.05739748477935791,
0.05012327432632446,
-0.030110156163573265,
0.008975142613053322,
-0.007663251832127571,
0.01675601303577423,
0.021605484187602997,
0.025532109662890434,
-0.07180114090442657,
0.029096832498908043,
0.02880731225013733,
-0.01562507264316082,
-0.04085861146450043,
0.08302006870508194,
0.03220918029546738,
-0.0769401341676712,
0.02877112291753292,
-0.001775576383806765,
-0.006708737928420305,
-0.01493746042251587,
-0.004114361014217138,
0.004539594519883394,
0.06546787172555923,
-0.032571081072092056,
0.04856710135936737,
0.026545431464910507,
0.09764086455106735
] |
722,039
|
apprise.plugins.base
|
parse_native_url
|
This is a base class that can be optionally over-ridden by child
classes who can build their Apprise URL based on the one provided
by the notification service they choose to use.
The intent of this is to make Apprise a little more userfriendly
to people who aren't familiar with constructing URLs and wish to
use the ones that were just provied by their notification serivice
that they're using.
This function will return None if the passed in URL can't be matched
as belonging to the notification service. Otherwise this function
should return the same set of results that parse_url() does.
|
@staticmethod
def parse_native_url(url):
"""
This is a base class that can be optionally over-ridden by child
classes who can build their Apprise URL based on the one provided
by the notification service they choose to use.
The intent of this is to make Apprise a little more userfriendly
to people who aren't familiar with constructing URLs and wish to
use the ones that were just provied by their notification serivice
that they're using.
This function will return None if the passed in URL can't be matched
as belonging to the notification service. Otherwise this function
should return the same set of results that parse_url() does.
"""
return None
|
(url)
|
[
-0.024558749049901962,
-0.08177939057350159,
-0.029901480302214622,
0.05966048687696457,
-0.00304980855435133,
-0.04733658954501152,
0.031575534492731094,
0.04138835147023201,
0.04968739300966263,
0.024238185957074165,
0.010854646563529968,
0.05189571902155876,
0.03492364659905434,
0.007604485843330622,
-0.02774657867848873,
-0.009510059840977192,
0.015725435689091682,
0.029776817187666893,
0.02715887874364853,
-0.06279488652944565,
-0.006878765299916267,
0.015609676949679852,
-0.006402371916919947,
0.02126406691968441,
-0.009002500213682652,
0.11761130392551422,
0.01345477532595396,
0.008873384445905685,
-0.0013713007792830467,
-0.030311089009046555,
-0.010498465038836002,
0.02389981411397457,
0.030489180237054825,
0.055849339812994,
0.04534197226166725,
-0.013499298132956028,
-0.019305065274238586,
0.05335606634616852,
-0.12245537340641022,
0.014906217344105244,
-0.06977605819702148,
-0.02366829477250576,
0.01561858132481575,
-0.04188700392842293,
0.040284186601638794,
0.017889242619276047,
-0.052109427750110626,
0.04071160405874252,
-0.007916145026683807,
-0.03492364659905434,
0.015680912882089615,
0.019305065274238586,
-0.00827677920460701,
-0.02649994194507599,
-0.1015118733048439,
0.11340835690498352,
0.010890264995396137,
0.1171126440167427,
-0.03221666440367699,
0.056027431041002274,
-0.0175686776638031,
-0.022332612425088882,
0.015636390075087547,
-0.01567200943827629,
0.00863296166062355,
0.011629343032836914,
0.008793243207037449,
-0.014291803352534771,
-0.007987381890416145,
0.022386040538549423,
0.010988214984536171,
-0.002074760152027011,
-0.05435337498784065,
-0.010934787802398205,
0.09453070908784866,
-0.0019434181740507483,
-0.009349778294563293,
0.0023441228549927473,
0.0021660318598151207,
0.03207419067621231,
0.04427342489361763,
0.0035907600540667772,
0.041958242654800415,
-0.019732482731342316,
0.026446513831615448,
-0.04071160405874252,
0.03657989203929901,
-0.0270342156291008,
-0.023650486022233963,
0.08519873768091202,
-0.04933121055364609,
-0.002137092174962163,
-0.05082717537879944,
-0.005605414509773254,
-0.008312397636473179,
0.03647303953766823,
-0.015493917278945446,
-0.021246256306767464,
0.023258686065673828,
-0.03957182168960571,
-0.00429644575342536,
0.0201242845505476,
-0.11789624392986298,
-0.07885869592428207,
0.012359515763819218,
-0.06400591135025024,
-0.008045261725783348,
0.016535749658942223,
-0.016090523451566696,
0.055421922355890274,
-0.042563751339912415,
-0.10286536812782288,
-0.05360539257526398,
0.01117521058768034,
0.016776172444224358,
-0.013116402551531792,
0.0136684849858284,
0.002775993663817644,
0.009875146672129631,
0.005912621505558491,
-0.06899245828390121,
0.0552794486284256,
-0.030720699578523636,
0.011255351826548576,
0.02949187159538269,
-0.002660234458744526,
-0.003218994941562414,
-0.0138198621571064,
0.04958053678274155,
-0.024077903479337692,
0.016384372487664223,
0.03027547150850296,
-0.026268424466252327,
-0.021833958104252815,
-0.01921601966023445,
-0.0028539083432406187,
-0.025662913918495178,
0.033374253660440445,
-0.033498916774988174,
0.04584062471985817,
-0.06454017758369446,
0.02601909637451172,
0.005271493922919035,
0.0021126046776771545,
-0.05563563108444214,
-0.0108101237565279,
0.05196695774793625,
-0.007190424483269453,
-0.0033970859367400408,
0.028156189247965813,
0.04270622506737709,
-0.010614223778247833,
0.043703533709049225,
0.05460270121693611,
-0.009652532637119293,
-0.035831909626722336,
0.03166458010673523,
-0.0438460074365139,
-0.0013891098788008094,
-0.027052024379372597,
-0.011273160576820374,
-0.006202019285410643,
-0.013365729711949825,
-0.05916183441877365,
-0.019429728388786316,
-0.04740782454609871,
0.08933044970035553,
-0.038360804319381714,
0.02943844348192215,
-0.005877003073692322,
0.0017096736701205373,
0.03925125673413277,
-0.04113902151584625,
0.017435109242796898,
0.01832556538283825,
0.049402445554733276,
-0.012092379853129387,
-0.00899804849177599,
0.013036261312663555,
0.05025728419423103,
0.04391724243760109,
0.014576748944818974,
-0.04224318638443947,
0.01349039375782013,
0.05029290169477463,
0.050364136695861816,
-0.017052214592695236,
-0.035172972828149796,
-0.01862831972539425,
0.05182448402047157,
-0.015654198825359344,
-0.01715906895697117,
0.02984805218875408,
0.026410896331071854,
0.02306278608739376,
-0.017533060163259506,
-0.014950740151107311,
0.03821833059191704,
-0.09930354356765747,
0.00467043649405241,
-0.015805577859282494,
0.024434085935354233,
-0.060337234288454056,
0.004274184349924326,
-0.007760315667837858,
-0.035831909626722336,
0.0038823839277029037,
-0.0011442346731200814,
-0.028156189247965813,
0.0009633610607124865,
-0.026090333238244057,
0.02420256845653057,
-0.04174453392624855,
0.002504404867067933,
-0.0012855944223701954,
-0.017853623256087303,
-0.01642889529466629,
0.05335606634616852,
-0.03750596567988396,
0.0023797410540282726,
-0.0038245043251663446,
-0.03364139050245285,
0.03686483949422836,
-0.0031099142506718636,
-0.010640937834978104,
0.022332612425088882,
0.018539274111390114,
0.003368146251887083,
0.007306183688342571,
0.006420180667191744,
-0.030489180237054825,
-0.06767458468675613,
0.05153953656554222,
0.035956572741270065,
0.057523395866155624,
-0.04224318638443947,
0.02096131071448326,
0.004450049251317978,
0.052287518978118896,
0.007488727103918791,
0.015324731357395649,
-0.004240792244672775,
-0.022439466789364815,
0.05513697490096092,
0.029901480302214622,
-0.03166458010673523,
-0.03918002173304558,
0.013285589404404163,
-0.0002185788907809183,
-0.024291614070534706,
0.024255994707345963,
-0.03672236576676369,
0.0025467013474553823,
-0.033124927431344986,
-0.012555415742099285,
-0.019447537139058113,
-0.031700197607278824,
0.0552794486284256,
0.017070023342967033,
-0.01270679384469986,
0.014309612102806568,
0.006722935475409031,
0.06518130749464035,
0.0068342424929142,
-0.10656966269016266,
-0.0378265306353569,
0.02582319639623165,
0.040284186601638794,
-0.0017330481205135584,
0.0363483764231205,
0.0834890678524971,
-0.001967905554920435,
-0.025627296417951584,
0.013054070994257927,
0.011317683383822441,
0.006718483287841082,
-0.04056913033127785,
-0.01600147783756256,
-0.012306088581681252,
-0.07038156688213348,
-0.008463774807751179,
0.053854722529649734,
0.05449584871530533,
-0.0029763460624963045,
0.03657989203929901,
-0.08163692057132721,
0.019002310931682587,
0.0279424786567688,
-0.02144215814769268,
-0.025556059554219246,
0.024131331592798233,
0.019269447773694992,
-0.0042586009949445724,
0.010908074676990509,
-0.042314425110816956,
0.03971429541707039,
-0.0008359146886505187,
0.031753625720739365,
0.0309344083070755,
-0.05556439608335495,
0.00023054437770042568,
-0.001567200873978436,
-0.008966881781816483,
-0.01330339815467596,
-0.026838315650820732,
0.006518130656331778,
-0.02252851240336895,
0.011228637769818306,
0.0006544844363816082,
0.029100069776177406,
-0.01850365661084652,
-0.0168117918074131,
-0.02035580202937126,
-0.02397104911506176,
-0.041245877742767334,
0.028993215411901474,
0.0007947311387397349,
0.01875298283994198,
0.03166458010673523,
0.044415898621082306,
-0.0011498000239953399,
0.055421922355890274,
-0.024540940299630165,
0.07283922284841537,
0.020462656393647194,
-0.007177067454904318,
0.005213614087551832,
0.020765410736203194,
-0.06870751082897186,
0.007065760903060436,
0.012982834130525589,
0.006179757881909609,
-0.017221400514245033,
0.009616914205253124,
-0.021192830055952072,
-0.01810295134782791,
-0.01586790941655636,
-0.03410442918539047,
-0.0025711888447403908,
-0.03465650975704193,
-0.006455799099057913,
-0.013561630621552467,
-0.0648607462644577,
0.002107039326801896,
-0.002312957076355815,
-0.0017174651147797704,
0.010124473832547665,
-0.0024287160485982895,
0.013543820939958096,
-0.11682770401239395,
-0.06332916021347046,
-0.041174642741680145,
-0.03380167484283447,
0.011602628976106644,
0.05025728419423103,
-0.007177067454904318,
-0.03310711681842804,
-0.07372967898845673,
0.054638322442770004,
-0.015333635732531548,
0.05378348380327225,
-0.030328897759318352,
-0.02324087731540203,
-0.030364517122507095,
-0.01270679384469986,
-0.017274828627705574,
0.05239437520503998,
0.06632108986377716,
0.04217195138335228,
-0.025395777076482773,
-0.00848158448934555,
-0.013810957781970501,
0.023864194750785828,
-0.055849339812994,
0.03495926409959793,
-0.016339849680662155,
0.04049789533019066,
-0.007430847268551588,
-0.05609866604208946,
0.03178924322128296,
-0.03428252041339874,
0.07251866161823273,
-0.012421848252415657,
0.011567010544240475,
0.05503012239933014,
-0.045983098447322845,
0.0013713007792830467,
0.06539501994848251,
-0.04648175463080406,
0.01450551301240921,
0.021709293127059937,
-0.03910878673195839,
-0.016500132158398628,
0.032341327518224716,
-0.009616914205253124,
-0.028726080432534218,
-0.011228637769818306,
0.030364517122507095,
-0.0058725508861243725,
0.0021983108017593622,
0.026143759489059448,
-0.05844946950674057,
0.0007847134838812053,
0.0008665240602567792,
-0.008245613425970078,
0.013276685029268265,
0.04498578980565071,
0.012991739436984062,
-0.0384320393204689,
-0.04331173375248909,
0.00121213193051517,
-0.03488802909851074,
-0.06870751082897186,
-0.07921487838029861,
-0.004229661542922258,
0.0243272315710783,
-0.008944621309638023,
0.04612557217478752,
0.014879503287374973,
-0.005044427700340748,
0.018468037247657776,
-0.022813457995653152,
-0.010097759775817394,
0.0756530612707138,
-0.00433429004624486,
0.006860956083983183,
0.039678677916526794,
-0.038111474364995956,
-0.01033818256109953,
0.0066650561057031155,
0.05738092213869095,
0.0054941074922680855,
-0.04071160405874252,
-0.06311545521020889,
0.008539463393390179,
0.02781781554222107,
0.008989143185317516,
-0.012181424535810947,
-0.034442801028490067,
-0.013080784119665623,
-0.09531430900096893,
-0.0027225662488490343,
-0.0062866127118468285,
0.051753245294094086,
0.0660717636346817,
-0.08391648530960083,
-0.03022204339504242,
-0.054032810032367706,
-0.041958242654800415,
-0.06272365152835846,
-0.11989086866378784,
-0.02756848745048046,
0.021584630012512207,
-0.019536582753062248,
-0.04726535454392433,
-0.0043187071569263935,
-0.039500586688518524,
0.08284793794155121,
-0.006268803495913744,
0.04113902151584625,
0.03999923914670944,
0.006130782887339592,
-0.018156377598643303,
-0.0702747106552124,
-0.0237217228859663,
0.042136333882808685,
-0.0039402637630701065,
-0.030417943373322487,
-0.08726459741592407,
-0.035778485238552094,
0.005943787284195423,
-0.03686483949422836,
0.047372207045555115,
0.002889526542276144,
-0.02817399799823761,
0.0336235836148262,
0.00848158448934555,
0.0070078810676932335,
-0.012608842924237251,
-0.020569510757923126,
-0.06710468977689743,
-0.029687771573662758,
-0.00609961710870266,
0.020801030099391937,
-0.00407605804502964,
-0.05004357174038887,
0.004361003637313843,
-0.04277746006846428,
-0.024255994707345963,
0.002066968707367778,
-0.014870598912239075,
0.07276798784732819,
-0.0008615152328275144,
0.0360456183552742,
0.05834261327981949,
0.006188662722706795,
0.013570534996688366,
0.031753625720739365,
0.044593989849090576,
-0.023508012294769287,
0.04096093028783798,
-0.07173505425453186,
0.011103974655270576,
0.0174173004925251,
0.04071160405874252,
0.019091356545686722,
-0.03470993787050247,
0.06924178451299667,
-0.014647985808551311,
0.020569510757923126,
-0.021816149353981018,
0.043632298707962036,
0.05763024836778641,
-0.0012054535327479243,
-0.007154806051403284,
-0.028797315433621407,
0.023739531636238098,
0.006994524504989386,
-0.010738887824118137,
0.0029919289518147707,
0.03401538357138634,
-0.0032924574334174395,
0.02648213319480419,
-0.0309344083070755,
-0.010801219381392002,
-0.002842777641490102,
-0.03207419067621231,
0.06236746907234192,
-0.04049789533019066,
-0.0049108597449958324,
0.02438065968453884,
0.027621915563941002,
0.0034148951526731253,
0.012056761421263218,
0.04733658954501152,
0.060408469289541245,
-0.04993671923875809,
-0.024914931505918503,
0.03700731322169304,
0.058306995779275894,
0.010649842210114002,
0.0012867075856775045,
-0.06874313205480576,
0.012884884141385555,
-0.05933992192149162,
-0.02648213319480419,
-0.02486150525510311,
0.041423968970775604,
-0.004365455824881792,
-0.01219923421740532,
-0.006028380710631609,
0.026268424466252327,
0.07372967898845673,
0.0420650951564312,
0.040640369057655334,
-0.015369254164397717,
0.001804284518584609,
-0.03641961142420769,
-0.004950929898768663,
-0.005983857903629541,
-0.057701487094163895,
-0.04933121055364609,
-0.06642794609069824,
0.033000264316797256,
-0.12423628568649292,
0.032893408089876175,
-0.03080974519252777,
0.02883293479681015,
-0.03878822177648544,
0.015324731357395649,
0.04438027739524841,
-0.02799590677022934,
-0.01039161067456007,
-0.018085142597556114,
-0.007613390684127808,
0.02283126674592495,
0.03526201844215393,
-0.009042571298778057,
0.03255503624677658,
0.0047372207045555115,
0.0056588416919112206,
-0.010908074676990509,
0.01432742178440094,
-0.06322231143712997,
-0.02468341402709484,
-0.043703533709049225,
0.01459455769509077,
0.04341858625411987,
-0.01880641095340252,
0.018699556589126587,
-0.011816338635981083,
-0.02594785951077938,
0.006135235074907541,
-0.003279100637882948,
-0.05873441323637962,
-0.04227880388498306,
0.048155806958675385,
-0.041958242654800415,
0.006705126259475946,
0.007675722241401672,
0.02192300371825695,
0.028921980410814285,
0.0017007691785693169,
-0.05624113976955414,
0.03389072045683861,
0.002201650058850646,
-0.06813761591911316,
0.029990525916218758,
-0.05153953656554222,
-0.03182486444711685,
0.028102761134505272,
0.0282452329993248,
0.004452275112271309,
0.042314425110816956,
0.028797315433621407,
0.04331173375248909,
-0.0504709929227829,
0.026660224422812462,
-0.0013857706217095256,
-0.012635556980967522,
0.02258194051682949,
-0.0036063429433852434,
0.01880641095340252,
0.007279470097273588,
-0.044665224850177765,
-0.017675532028079033,
-0.02017771080136299,
-0.003470548428595066,
-0.04373915120959282,
-0.016259709373116493,
0.08854684978723526,
0.009830623865127563,
-0.0010056577157229185,
-0.006816433276981115,
0.007537702098488808,
-0.025003977119922638,
0.02625061385333538,
-0.018877645954489708,
0.000100315322924871,
0.034033190459012985,
0.014015762135386467,
-0.04242127761244774,
-0.03878822177648544,
-0.010142282582819462,
0.010801219381392002,
0.016215186566114426,
-0.024594368413090706,
-0.0009505607304163277,
0.013695198111236095,
0.019322874024510384,
0.0029986072331666946,
0.012484179809689522,
0.038895074278116226,
0.06389905512332916,
-0.03437156602740288,
0.052536848932504654,
0.014621271751821041,
0.039678677916526794,
-0.011754006147384644,
0.0038267304189503193,
-0.05563563108444214,
0.037933383136987686,
-0.01300954818725586,
0.018699556589126587,
-0.020711984485387802,
0.016411086544394493,
0.03732787445187569,
-0.032822173088788986,
0.009608009830117226,
0.006348944269120693,
0.04320487752556801,
0.03832518309354782,
0.061192069202661514,
0.029723389074206352,
0.0787162259221077,
-0.05068470165133476,
-0.033374253660440445,
-0.0015894622774794698,
0.03686483949422836,
0.02769315242767334,
0.041851386427879333,
-0.027230115607380867,
-0.05004357174038887,
0.020711984485387802,
-0.0172659233212471,
0.009892955422401428,
0.06735401600599289,
0.023775149136781693,
-0.03111249953508377,
-0.012608842924237251,
-0.009087094105780125,
-0.03230571001768112,
0.005894812289625406,
0.052358757704496384,
0.030845362693071365,
0.008762077428400517,
-0.06888560205698013,
-0.004294219426810741,
0.027141069993376732,
0.019020119681954384,
0.07558182626962662,
-0.005525273736566305,
-0.03992800414562225,
-0.027408206835389137,
0.01825432851910591,
0.022118903696537018,
0.004202947951853275,
-0.002767089055851102,
-0.017550868913531303,
0.04883255437016487,
-0.018156377598643303,
-0.012875979766249657,
0.03761282190680504,
-0.059802960604429245,
0.024131331592798233,
-0.01921601966023445,
-0.005814671516418457,
-0.02895759791135788,
0.0054941074922680855,
0.05837823078036308,
-0.013757530599832535,
-0.07380091398954391,
0.07365844398736954,
-0.004022630862891674,
-0.015155544504523277,
0.054638322442770004,
-0.0019423050107434392,
-0.010026523843407631,
0.01450551301240921,
0.033677008002996445,
-0.06030161678791046,
0.028850743547081947,
-0.006384562700986862,
0.030898788943886757,
0.012359515763819218,
-0.0273369699716568,
0.0009210644057020545,
-0.021370921283960342,
0.010952596552670002,
-0.007502083666622639,
-0.015280208550393581,
-0.03358796238899231,
-0.01316092535853386,
0.0237217228859663,
-0.005222518928349018,
0.002442072844132781,
0.0056677465327084064,
-0.016215186566114426,
-0.015244590118527412,
0.05178886651992798,
0.011237542144954205,
0.030613843351602554,
-0.004461179953068495,
-0.031450871378183365,
0.025217685848474503,
-0.03194952756166458,
-0.0175686776638031,
0.015048690140247345,
0.0043832650408148766,
0.018236519768834114,
0.004436692222952843,
0.03814709559082985,
-0.01685631461441517,
0.032768744975328445,
-0.0002486317534931004,
0.045626915991306305,
-0.015146640129387379,
-0.016188472509384155
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.