athena-intelligence 0.1.113__py3-none-any.whl → 0.1.115__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.
athena/client.py CHANGED
@@ -1,3 +1,4 @@
1
+ import base64
1
2
  import dataclasses
2
3
  import enum
3
4
  import io
@@ -537,9 +538,14 @@ def _convert_asset_object(
537
538
  }
538
539
  for media_type, label in image_types.items():
539
540
  if media_type in data:
541
+ extension = media_type.split("/")[-1]
542
+ image_bytes = base64.b64decode(data[media_type])
543
+ name = name or f"Untitled {label}"
544
+ if not name.endswith(f".{extension}"):
545
+ name = f"{name}.{extension}"
540
546
  return (
541
- name or f"Untitled {label}",
542
- data[media_type],
547
+ name,
548
+ image_bytes,
543
549
  media_type,
544
550
  )
545
551
  return asset_object # type: ignore[return-value]
@@ -17,7 +17,7 @@ class BaseClientWrapper:
17
17
  headers: typing.Dict[str, str] = {
18
18
  "X-Fern-Language": "Python",
19
19
  "X-Fern-SDK-Name": "athena-intelligence",
20
- "X-Fern-SDK-Version": "0.1.113",
20
+ "X-Fern-SDK-Version": "0.1.115",
21
21
  }
22
22
  headers["X-API-KEY"] = self.api_key
23
23
  return headers
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: athena-intelligence
3
- Version: 0.1.113
3
+ Version: 0.1.115
4
4
  Summary: Athena Intelligence Python Library
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -1,9 +1,9 @@
1
1
  athena/__init__.py,sha256=5ayB3YWH8AYc_ahG2b8ovLPX2u5xugauR2luprNXi0E,1484
2
2
  athena/base_client.py,sha256=TlP599mOBvj7Tk8IpFe5dgrDM98GJu3lEQh_zwl4vtA,5439
3
- athena/client.py,sha256=em5UYFrE-2NMO391Stf6p7n1vTDqK-qfyOl1ajuo5aI,18765
3
+ athena/client.py,sha256=5WCXDpDsNainS7QYqgv93DubtVR0NQqQKQvGd-ub2T8,19025
4
4
  athena/core/__init__.py,sha256=UFXpYzcGxWQUucU1TkjOQ9mGWN3A5JohluOIWVYKU4I,973
5
5
  athena/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
6
- athena/core/client_wrapper.py,sha256=gLeaSAPiG-nCTmstAt7nS4I_wTVggpdEg54ShE5Y8w8,1806
6
+ athena/core/client_wrapper.py,sha256=wfzVFb_I8jJC9mfo32xE5c_Pp0O4W7XBCexxhj44Y9c,1806
7
7
  athena/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
8
8
  athena/core/file.py,sha256=sy1RUGZ3aJYuw998bZytxxo6QdgKmlnlgBaMvwEKCGg,1480
9
9
  athena/core/http_client.py,sha256=Z4NuAsJD-51yqmoME17O5sxwx5orSp1wsnd6bPyKcgA,17768
@@ -43,6 +43,6 @@ athena/types/file_too_large_error.py,sha256=AinkrcgR7lcTILAD8RX0x48P3GlSoAh1Oihx
43
43
  athena/types/parent_folder_error.py,sha256=ZMF-i3mZY6Mu1n5uQ60Q3mIIfehlWuXtgFUkSYspkx8,1120
44
44
  athena/types/save_asset_request_out.py,sha256=5bpBaUV3oeuL_hz4s07c-6MQHkn4cBsyxgT_SD5oi6I,1193
45
45
  athena/version.py,sha256=8aYAOJtVLaJLpRp6mTiEIhnl8gXA7yE0aDtZ-3mKQ4k,87
46
- athena_intelligence-0.1.113.dist-info/METADATA,sha256=XegkvOoDvfCcAxFft1S8_vtcBxwuox-4aTOZABdHUvo,5274
47
- athena_intelligence-0.1.113.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
48
- athena_intelligence-0.1.113.dist-info/RECORD,,
46
+ athena_intelligence-0.1.115.dist-info/METADATA,sha256=hVRIfRctNKROFdmZxzItaSOa2oIpZ4DqURKbWgDOAFg,5274
47
+ athena_intelligence-0.1.115.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
48
+ athena_intelligence-0.1.115.dist-info/RECORD,,