appier 1.31.5__py2.py3-none-any.whl → 1.32.0__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- appier/base.py +13 -1
- appier/typesf.py +5 -6
- {appier-1.31.5.dist-info → appier-1.32.0.dist-info}/METADATA +1 -1
- {appier-1.31.5.dist-info → appier-1.32.0.dist-info}/RECORD +7 -7
- {appier-1.31.5.dist-info → appier-1.32.0.dist-info}/LICENSE +0 -0
- {appier-1.31.5.dist-info → appier-1.32.0.dist-info}/WHEEL +0 -0
- {appier-1.31.5.dist-info → appier-1.32.0.dist-info}/top_level.txt +0 -0
appier/base.py
CHANGED
|
@@ -93,7 +93,7 @@ NAME = "appier"
|
|
|
93
93
|
""" The name to be used to describe the framework while working
|
|
94
94
|
on its own environment, this is just a descriptive value """
|
|
95
95
|
|
|
96
|
-
VERSION = "1.
|
|
96
|
+
VERSION = "1.32.0"
|
|
97
97
|
""" The version of the framework that is currently installed
|
|
98
98
|
this value may be used for debugging/diagnostic purposes """
|
|
99
99
|
|
|
@@ -2332,6 +2332,9 @@ class App(
|
|
|
2332
2332
|
receivers=[],
|
|
2333
2333
|
cc=[],
|
|
2334
2334
|
bcc=[],
|
|
2335
|
+
reply_to=[],
|
|
2336
|
+
return_path=None,
|
|
2337
|
+
priority=None,
|
|
2335
2338
|
subject="",
|
|
2336
2339
|
plain_template=None,
|
|
2337
2340
|
smtp_url=None,
|
|
@@ -2395,6 +2398,8 @@ class App(
|
|
|
2395
2398
|
cc = [cc]
|
|
2396
2399
|
if not isinstance(bcc, (list, tuple)):
|
|
2397
2400
|
bcc = [bcc]
|
|
2401
|
+
if not isinstance(reply_to, (list, tuple)):
|
|
2402
|
+
reply_to = [reply_to]
|
|
2398
2403
|
|
|
2399
2404
|
sender_base = util.email_base(sender)
|
|
2400
2405
|
receivers_base = util.email_base(receivers)
|
|
@@ -2406,6 +2411,7 @@ class App(
|
|
|
2406
2411
|
sender_mime = util.email_mime(sender)
|
|
2407
2412
|
receivers_mime = util.email_mime(receivers)
|
|
2408
2413
|
cc_mime = util.email_mime(cc)
|
|
2414
|
+
reply_to_mime = util.email_mime(reply_to)
|
|
2409
2415
|
|
|
2410
2416
|
parameters = dict(kwargs)
|
|
2411
2417
|
parameters.update(
|
|
@@ -2440,6 +2446,12 @@ class App(
|
|
|
2440
2446
|
)
|
|
2441
2447
|
if cc_mime:
|
|
2442
2448
|
mime["Cc"] = ", ".join(cc_mime)
|
|
2449
|
+
if reply_to_mime:
|
|
2450
|
+
mime["Reply-To"] = ", ".join(reply_to_mime)
|
|
2451
|
+
if return_path:
|
|
2452
|
+
mime["Return-Path"] = return_path
|
|
2453
|
+
if priority:
|
|
2454
|
+
mime["Priority"] = priority
|
|
2443
2455
|
|
|
2444
2456
|
for key, value in headers.items():
|
|
2445
2457
|
mime[key] = value
|
appier/typesf.py
CHANGED
|
@@ -615,13 +615,12 @@ def image(width=None, height=None, format="png", **kwargs):
|
|
|
615
615
|
|
|
616
616
|
# resizes the already cropped image into the target size using an
|
|
617
617
|
# anti alias based algorithm (default expectations)
|
|
618
|
-
default_resample = (
|
|
619
|
-
PIL.Image.ANTIALIAS # type: ignore
|
|
620
|
-
if hasattr(PIL.Image, "ANTIALIAS")
|
|
621
|
-
else (PIL.Image.LANCZOS if hasattr(PIL.Image, "LANCZOS") else None) # type: ignore
|
|
622
|
-
)
|
|
623
618
|
if resample == None:
|
|
624
|
-
resample =
|
|
619
|
+
resample = (
|
|
620
|
+
PIL.Image.ANTIALIAS # type: ignore
|
|
621
|
+
if hasattr(PIL.Image, "ANTIALIAS")
|
|
622
|
+
else (PIL.Image.LANCZOS if hasattr(PIL.Image, "LANCZOS") else None) # type: ignore
|
|
623
|
+
)
|
|
625
624
|
image = image.resize(size, resample)
|
|
626
625
|
return image
|
|
627
626
|
|
|
@@ -5,7 +5,7 @@ appier/asgi.py,sha256=sKQH9K_QEDPbBSk3AWcvHo7Lfl5yawIo6NcM0z1qQCw,12100
|
|
|
5
5
|
appier/async_neo.py,sha256=gQpyT1-nZE6Uynh5FEmFl5kfXkxChdUsgiKgwlaNw5E,5446
|
|
6
6
|
appier/async_old.py,sha256=m3BFqHVPCRuIZ9L2sGYhCQPEwuCNKBO2y7SKM0dbtj8,9194
|
|
7
7
|
appier/asynchronous.py,sha256=a1LQa3wbGMaXELhF7W71dRr1klPOj6x-ST9EInvPhtU,1757
|
|
8
|
-
appier/base.py,sha256=
|
|
8
|
+
appier/base.py,sha256=omrHep48U0XDjehiiDf-lSdxD2v3wP2tcrH5JX8BplA,267719
|
|
9
9
|
appier/bus.py,sha256=AMC2UXlaf6rzhzlIyTHkzbfb6tdfPBiOii4lpl9AAwg,7670
|
|
10
10
|
appier/cache.py,sha256=V1nhf4aHJpUlcFtxVsd-2tGCt1BarkxvHWwVwuhc4Ao,10689
|
|
11
11
|
appier/common.py,sha256=fcECBvu-KcB9DImZzkpM_FA_PUqgCx0FKP4KHuOikYc,1313
|
|
@@ -46,7 +46,7 @@ appier/settings.py,sha256=28tTRJIZ47iwXqUs6YtUoW7ntEVsp_0-QfONVDGA1sg,1136
|
|
|
46
46
|
appier/smtp.py,sha256=5tW0dOEm03kejLoQyhRQFjgjYRd-jhb-VlhEKDb4Zn0,3434
|
|
47
47
|
appier/storage.py,sha256=Qp_CMCDg85q35n9lggNVBZRWwlGrQ-nLYNj0W7Mnbec,7470
|
|
48
48
|
appier/structures.py,sha256=YSv0YwZk8tRjPn9N6YEtYoPQ72PZQkfLEtTI_H6jXV8,8076
|
|
49
|
-
appier/typesf.py,sha256=
|
|
49
|
+
appier/typesf.py,sha256=iby3f-3XayIOu9FgjHS6I9L3UoaJntHtG73eKXgIgFE,36882
|
|
50
50
|
appier/util.py,sha256=9ojlLWylDB22YfDMNmmzrykdfqR2HPpA2vGIQBzR4Wo,86774
|
|
51
51
|
appier/validation.py,sha256=vipgF1oFmFhbSfZXC2lhHpox_nburIa6VIFs2Du2mhc,22322
|
|
52
52
|
appier/res/static/css/base.css,sha256=J9zLozd57KoslAsrsj2a42glGTObxbkrrckR-W-_f2A,6127
|
|
@@ -79,8 +79,8 @@ appier/test/smtp.py,sha256=XJNa0ZTmabdrX8MfVMgcqBxabvBfHgIimvozdziP4_E,1826
|
|
|
79
79
|
appier/test/structures.py,sha256=Uylzx5vLNORXKG5wsPMdIreW1SlHWGnmSQouqQNG6E8,6745
|
|
80
80
|
appier/test/typesf.py,sha256=td-e4mqTO_SYH7txzF5au_ZMNQ6kQsFymSjGCiVc1bU,9684
|
|
81
81
|
appier/test/util.py,sha256=SSHuBAZQ0TcXLDYI0xUvmwId5nndDZb88s_5Y-Hqibw,46884
|
|
82
|
-
appier-1.
|
|
83
|
-
appier-1.
|
|
84
|
-
appier-1.
|
|
85
|
-
appier-1.
|
|
86
|
-
appier-1.
|
|
82
|
+
appier-1.32.0.dist-info/LICENSE,sha256=Pd-b5cKP4n2tFDpdx27qJSIq0d1ok0oEcGTlbtL6QMU,11560
|
|
83
|
+
appier-1.32.0.dist-info/METADATA,sha256=7o25RKymwwYZYbmaq8q-nXp0gejOt9TCIpeU_9_Is64,1920
|
|
84
|
+
appier-1.32.0.dist-info/WHEEL,sha256=kGT74LWyRUZrL4VgLh6_g12IeVl_9u9ZVhadrgXZUEY,110
|
|
85
|
+
appier-1.32.0.dist-info/top_level.txt,sha256=Z2e_Y1ya06a554WwQZkfNRiaaQxqsdaPtBzrck384Lo,7
|
|
86
|
+
appier-1.32.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|