databutton 0.31.4__tar.gz → 0.31.6__tar.gz

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.
Files changed (25) hide show
  1. {databutton-0.31.4 → databutton-0.31.6}/PKG-INFO +1 -1
  2. {databutton-0.31.4 → databutton-0.31.6}/databutton/notify/email.py +4 -1
  3. {databutton-0.31.4 → databutton-0.31.6}/databutton/version.py +1 -1
  4. {databutton-0.31.4 → databutton-0.31.6}/pyproject.toml +1 -1
  5. {databutton-0.31.4 → databutton-0.31.6}/LICENSE +0 -0
  6. {databutton-0.31.4 → databutton-0.31.6}/README.md +0 -0
  7. {databutton-0.31.4 → databutton-0.31.6}/databutton/__init__.py +0 -0
  8. {databutton-0.31.4 → databutton-0.31.6}/databutton/cachetools.py +0 -0
  9. {databutton-0.31.4 → databutton-0.31.6}/databutton/internal/__init__.py +0 -0
  10. {databutton-0.31.4 → databutton-0.31.6}/databutton/internal/auth.py +0 -0
  11. {databutton-0.31.4 → databutton-0.31.6}/databutton/internal/byteutils.py +0 -0
  12. {databutton-0.31.4 → databutton-0.31.6}/databutton/internal/dbapiclient.py +0 -0
  13. {databutton-0.31.4 → databutton-0.31.6}/databutton/internal/headers.py +0 -0
  14. {databutton-0.31.4 → databutton-0.31.6}/databutton/internal/httpxclient.py +0 -0
  15. {databutton-0.31.4 → databutton-0.31.6}/databutton/internal/performedby.py +0 -0
  16. {databutton-0.31.4 → databutton-0.31.6}/databutton/internal/retries.py +0 -0
  17. {databutton-0.31.4 → databutton-0.31.6}/databutton/jobs/__init__.py +0 -0
  18. {databutton-0.31.4 → databutton-0.31.6}/databutton/jobs/run.py +0 -0
  19. {databutton-0.31.4 → databutton-0.31.6}/databutton/notify/__init__.py +0 -0
  20. {databutton-0.31.4 → databutton-0.31.6}/databutton/notify/send.py +0 -0
  21. {databutton-0.31.4 → databutton-0.31.6}/databutton/secrets/__init__.py +0 -0
  22. {databutton-0.31.4 → databutton-0.31.6}/databutton/secrets/secrets.py +0 -0
  23. {databutton-0.31.4 → databutton-0.31.6}/databutton/storage/__init__.py +0 -0
  24. {databutton-0.31.4 → databutton-0.31.6}/databutton/storage/storage.py +0 -0
  25. {databutton-0.31.4 → databutton-0.31.6}/databutton/user.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: databutton
3
- Version: 0.31.4
3
+ Version: 0.31.6
4
4
  Summary: The CLI for databutton.com
5
5
  License: Databutton
6
6
  Author: Databutton
@@ -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":
@@ -5,4 +5,4 @@ This module contains project version information.
5
5
  .. moduleauthor:: Databutton <support@databutton.com>
6
6
  """
7
7
 
8
- __version__ = "0.31.4"
8
+ __version__ = "0.31.6"
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "databutton"
3
- version = "0.31.4"
3
+ version = "0.31.6"
4
4
  description = "The CLI for databutton.com"
5
5
  authors = ["Databutton <hi@databutton.io>"]
6
6
  license = "Databutton"
File without changes
File without changes