databutton 0.31.4__py3-none-any.whl → 0.31.6__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.
- databutton/notify/email.py +4 -1
- databutton/version.py +1 -1
- {databutton-0.31.4.dist-info → databutton-0.31.6.dist-info}/METADATA +1 -1
- {databutton-0.31.4.dist-info → databutton-0.31.6.dist-info}/RECORD +6 -6
- {databutton-0.31.4.dist-info → databutton-0.31.6.dist-info}/LICENSE +0 -0
- {databutton-0.31.4.dist-info → databutton-0.31.6.dist-info}/WHEEL +0 -0
databutton/notify/email.py
CHANGED
@@ -115,7 +115,7 @@ def attachment_from_str(
|
|
115
115
|
return attachment_from_bytes(
|
116
116
|
content.encode(),
|
117
117
|
file_name=file_name,
|
118
|
-
content_type=content_type,
|
118
|
+
content_type=content_type or "text/plain",
|
119
119
|
cid=cid,
|
120
120
|
)
|
121
121
|
|
@@ -303,6 +303,9 @@ def attachment_from_dataframe(
|
|
303
303
|
if pandas_kwargs is None:
|
304
304
|
pandas_kwargs = {}
|
305
305
|
|
306
|
+
if content_type is None:
|
307
|
+
content_type, encoding = mimetypes.guess_type("f" + ext)
|
308
|
+
|
306
309
|
if ext == ".csv":
|
307
310
|
df.to_csv(buf, **pandas_kwargs)
|
308
311
|
elif ext == ".xlsx":
|
databutton/version.py
CHANGED
@@ -11,15 +11,15 @@ databutton/internal/retries.py,sha256=OMxnreq1Icaf8OrtFPPNEZ8tCZe6HUI9fJ4FQ6Uiw-
|
|
11
11
|
databutton/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
12
|
databutton/jobs/run.py,sha256=Td0BSiIrYKiymDKVf8w5MT3C5uiwzeulYNJUGcxQk2k,632
|
13
13
|
databutton/notify/__init__.py,sha256=p6x5D_8q-EXQHS4TuK7_Dli_PdBRPowrQjKOA1_TaVk,386
|
14
|
-
databutton/notify/email.py,sha256=
|
14
|
+
databutton/notify/email.py,sha256=Yq7UD7D_g2epeIPchLIQXXcq61rZqqIzSfRxggK-sXg,12349
|
15
15
|
databutton/notify/send.py,sha256=cj-TG0jwolEXwJJVxeBxwpfg_it03KoImUn30qAbbQE,749
|
16
16
|
databutton/secrets/__init__.py,sha256=sI0okrfRBs2l5tcLTrKc9uUfPVVRMM9D7WED8p226tI,128
|
17
17
|
databutton/secrets/secrets.py,sha256=pehXsD09iKTxHaNQJ6awvIHXgRXBJrf4Xhrc11ZUeOk,3427
|
18
18
|
databutton/storage/__init__.py,sha256=7ZNd4eQQ7lYYIe1MqCuFbFF1aAVCuj2c_zmJfaPVlDY,252
|
19
19
|
databutton/storage/storage.py,sha256=XBy6z005K0KqmiTkq9eju87PgTboV-vPN1RRXuC57KI,17240
|
20
20
|
databutton/user.py,sha256=QWyWV_G_bnfIJ9js2itOwBk4zqXgBUF9h8lf5mygef8,503
|
21
|
-
databutton/version.py,sha256=
|
22
|
-
databutton-0.31.
|
23
|
-
databutton-0.31.
|
24
|
-
databutton-0.31.
|
25
|
-
databutton-0.31.
|
21
|
+
databutton/version.py,sha256=o3lo-yvzVqDgPkoOxVc5dI_gI97YrE892rq0w5OvhxU,175
|
22
|
+
databutton-0.31.6.dist-info/LICENSE,sha256=c7h4pcVZapFEmqWoRTRv_S1P_aibrtDobqmlR-QtMUk,45
|
23
|
+
databutton-0.31.6.dist-info/METADATA,sha256=WSxN-3M8tT8jQscdONEU2kCe0ccgJJBnwwJet3lnUuE,2763
|
24
|
+
databutton-0.31.6.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
25
|
+
databutton-0.31.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|