athena-intelligence 0.1.81__py3-none-any.whl → 0.1.83__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/types/__init__.py CHANGED
@@ -6,6 +6,7 @@ from .data_frame_request_out import DataFrameRequestOut
6
6
  from .data_frame_request_out_columns_item import DataFrameRequestOutColumnsItem
7
7
  from .data_frame_request_out_data_item_item import DataFrameRequestOutDataItemItem
8
8
  from .data_frame_request_out_index_item import DataFrameRequestOutIndexItem
9
+ from .data_frame_unknown_format_error import DataFrameUnknownFormatError
9
10
  from .dataset import Dataset
10
11
  from .document import Document
11
12
  from .excecute_tool_first_workflow_out import ExcecuteToolFirstWorkflowOut
@@ -49,6 +50,7 @@ __all__ = [
49
50
  "DataFrameRequestOutColumnsItem",
50
51
  "DataFrameRequestOutDataItemItem",
51
52
  "DataFrameRequestOutIndexItem",
53
+ "DataFrameUnknownFormatError",
52
54
  "Dataset",
53
55
  "Document",
54
56
  "ExcecuteToolFirstWorkflowOut",
@@ -0,0 +1,27 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ from ..core.datetime_utils import serialize_datetime
7
+ from ..core.pydantic_utilities import pydantic_v1
8
+
9
+
10
+ class DataFrameUnknownFormatError(pydantic_v1.BaseModel):
11
+ message: str
12
+ document_id: str
13
+ media_type: str
14
+
15
+ def json(self, **kwargs: typing.Any) -> str:
16
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
17
+ return super().json(**kwargs_with_defaults)
18
+
19
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
20
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
21
+ return super().dict(**kwargs_with_defaults)
22
+
23
+ class Config:
24
+ frozen = True
25
+ smart_union = True
26
+ extra = pydantic_v1.Extra.allow
27
+ json_encoders = {dt.datetime: serialize_datetime}
athena/upload/client.py CHANGED
@@ -27,11 +27,21 @@ class UploadClient:
27
27
  self, *, files: typing.List[core.File], request_options: typing.Optional[RequestOptions] = None
28
28
  ) -> UploadDocumentsOut:
29
29
  """
30
- Parameters:
31
- - files: typing.List[core.File]. See core.File for more documentation
30
+ Parameters
31
+ ----------
32
+ files : typing.List[core.File]
33
+ See core.File for more documentation
32
34
 
33
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
34
- ---
35
+ request_options : typing.Optional[RequestOptions]
36
+ Request-specific configuration.
37
+
38
+ Returns
39
+ -------
40
+ UploadDocumentsOut
41
+ Successful Response
42
+
43
+ Examples
44
+ --------
35
45
  from athena.client import Athena
36
46
 
37
47
  client = Athena(
@@ -87,11 +97,21 @@ class AsyncUploadClient:
87
97
  self, *, files: typing.List[core.File], request_options: typing.Optional[RequestOptions] = None
88
98
  ) -> UploadDocumentsOut:
89
99
  """
90
- Parameters:
91
- - files: typing.List[core.File]. See core.File for more documentation
100
+ Parameters
101
+ ----------
102
+ files : typing.List[core.File]
103
+ See core.File for more documentation
104
+
105
+ request_options : typing.Optional[RequestOptions]
106
+ Request-specific configuration.
107
+
108
+ Returns
109
+ -------
110
+ UploadDocumentsOut
111
+ Successful Response
92
112
 
93
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
94
- ---
113
+ Examples
114
+ --------
95
115
  from athena.client import AsyncAthena
96
116
 
97
117
  client = AsyncAthena(
athena/workflow/client.py CHANGED
@@ -26,11 +26,20 @@ class WorkflowClient:
26
26
  self, *, workflow_id: str, request_options: typing.Optional[RequestOptions] = None
27
27
  ) -> WorkflowStatusOut:
28
28
  """
29
- Parameters:
30
- - workflow_id: str.
29
+ Parameters
30
+ ----------
31
+ workflow_id : str
31
32
 
32
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
33
- ---
33
+ request_options : typing.Optional[RequestOptions]
34
+ Request-specific configuration.
35
+
36
+ Returns
37
+ -------
38
+ WorkflowStatusOut
39
+ Successful Response
40
+
41
+ Examples
42
+ --------
34
43
  from athena.client import Athena
35
44
 
36
45
  client = Athena(
@@ -87,11 +96,20 @@ class AsyncWorkflowClient:
87
96
  self, *, workflow_id: str, request_options: typing.Optional[RequestOptions] = None
88
97
  ) -> WorkflowStatusOut:
89
98
  """
90
- Parameters:
91
- - workflow_id: str.
99
+ Parameters
100
+ ----------
101
+ workflow_id : str
102
+
103
+ request_options : typing.Optional[RequestOptions]
104
+ Request-specific configuration.
105
+
106
+ Returns
107
+ -------
108
+ WorkflowStatusOut
109
+ Successful Response
92
110
 
93
- - request_options: typing.Optional[RequestOptions]. Request-specific configuration.
94
- ---
111
+ Examples
112
+ --------
95
113
  from athena.client import AsyncAthena
96
114
 
97
115
  client = AsyncAthena(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: athena-intelligence
3
- Version: 0.1.81
3
+ Version: 0.1.83
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -10,6 +10,7 @@ Classifier: Programming Language :: Python :: 3.10
10
10
  Classifier: Programming Language :: Python :: 3.11
11
11
  Requires-Dist: httpx (>=0.21.2)
12
12
  Requires-Dist: pydantic (>=1.9.2)
13
+ Requires-Dist: python-magic (==0.4.27)
13
14
  Requires-Dist: typing_extensions (>=4.0.0)
14
15
  Description-Content-Type: text/markdown
15
16
 
@@ -1,11 +1,11 @@
1
- athena/__init__.py,sha256=1-so5-F8rmEFhoS-YQTLqaNMWlr79kZcD8SEkQ7SVQQ,2621
2
- athena/base_client.py,sha256=RjB7CwjedSRf4V5BH07pFx6yByX_YQFXrAXIyWDHJ_s,7089
1
+ athena/__init__.py,sha256=S-yzA6G5fLjtyXBy2EPQ7eBzd_czab5tJGAJUcv_LgA,2749
2
+ athena/base_client.py,sha256=4HD21xS-Kl2oyy0OQGPVSH8X3aRpKdefKKOGXkAa-1M,7101
3
3
  athena/chain/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
4
- athena/chain/client.py,sha256=TJmsh8cniWMF9omH_KqzIgTeKoFnmkgp7bxdtoOwU0c,16139
4
+ athena/chain/client.py,sha256=av6RUsfplYpwlTz8i5GLahwhMt0RVW0hwSsDuJ19XkU,16723
5
5
  athena/client.py,sha256=8QypiDlbZ0C1YsJh6GzhylLVCZXDQc1MCJTURo2_vvI,3576
6
6
  athena/core/__init__.py,sha256=1pNSKkwyQvMl_F0wohBqmoQAITptg3zlvCwsoSSzy7c,853
7
7
  athena/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
8
- athena/core/client_wrapper.py,sha256=CWFbGhyN7PEf-KJgZb2ahlCwwZ7B6b4HTy1rBCfM7Fg,1495
8
+ athena/core/client_wrapper.py,sha256=kjPtfeGS1rFSkCB1r_9h75i742RS-kJJJolpTH-0dxI,1495
9
9
  athena/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
10
10
  athena/core/file.py,sha256=sy1RUGZ3aJYuw998bZytxxo6QdgKmlnlgBaMvwEKCGg,1480
11
11
  athena/core/http_client.py,sha256=5ok6hqgZDJhg57EHvMnr0BBaHdG50QxFPKaCZ9aVWTc,5059
@@ -14,35 +14,37 @@ athena/core/pydantic_utilities.py,sha256=eCOGHdLoaxK_6QSFYKdN0LWJo3atTUXT3VPyqJh
14
14
  athena/core/remove_none_from_dict.py,sha256=8m91FC3YuVem0Gm9_sXhJ2tGvP33owJJdrqCLEdowGw,330
15
15
  athena/core/request_options.py,sha256=-3QoOMMHI2exIyHH6Q2MD7rpo_6w-i6zMAy0nqWTN8c,1420
16
16
  athena/dataset/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
17
- athena/dataset/client.py,sha256=C43dgxtfFhlpB5_l4WMqGZp-sCNFo66CsTDLi1cAz2c,6182
17
+ athena/dataset/client.py,sha256=eevBtFZ_qHbjIe-UkceYJ_7mVD7PTlrVqRCcSSLgt8Q,6486
18
18
  athena/environment.py,sha256=D_CljQlUahhEi9smvMslj_5Y8gMFO6D0fRCL0ydRLuM,165
19
- athena/errors/__init__.py,sha256=-o2HYQJ7sGN7i6bLXZV5T7ancXnfwWh8l2ON7QogHpE,308
19
+ athena/errors/__init__.py,sha256=0LicWKR1fNQwwL8_ohKhBkxXTD8StFlBYDFG1jPgqOk,405
20
20
  athena/errors/internal_server_error.py,sha256=WEwVqzsfpBTaqZipvse-kvKbW-3NbpXVvuHXs_64U0M,315
21
21
  athena/errors/not_found_error.py,sha256=uBK3JapPPgTkMoSCX9j22C6MDtSuTuSPmjT0lDRigpA,287
22
22
  athena/errors/unprocessable_entity_error.py,sha256=FvR7XPlV3Xx5nu8HNlmLhBRdk4so_gCHjYT5PyZe6sM,313
23
+ athena/errors/unsupported_media_type_error.py,sha256=fQ7TYQ3QYcT_YzFzO4f8_bLger7UQfZmuF22I9jYxFA,340
23
24
  athena/message/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
24
- athena/message/client.py,sha256=7HdDU7d2W0Yr8_9i4Bk4uo7r6aprB7O7wTbRkJCQFj8,12498
25
+ athena/message/client.py,sha256=k32swz9X_8e1a6ivGYzXb78i5iIlQ1tHwPCeVZguNGQ,12956
25
26
  athena/polling_message_client.py,sha256=dmmycImvog2niEFFPo4rE5xMJHUlq9NqAr4xlFK6_Os,3998
26
27
  athena/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
28
  athena/query/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
28
- athena/query/client.py,sha256=FprFNth7SOF6Irc3YUsSZO8DVqTkfOZDhaIfBlXQUSw,6338
29
+ athena/query/client.py,sha256=vFc_swoevTgcw9c_bgKj3rw3EBRen615D7JOM5NLr-4,6576
29
30
  athena/report/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
30
- athena/report/client.py,sha256=rSNGKHf2wImbOmY06jXClMK3S5B4sQPCvQOPxrb9lXk,6623
31
+ athena/report/client.py,sha256=p8qY6CCYDOy8NZN9mAee61u2gibg98i08GdYKuDaCoo,6853
31
32
  athena/search/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
32
- athena/search/client.py,sha256=j0DYo1WWFMlrssybtQAH71O889eRJdDHheADms5Q9yE,7640
33
+ athena/search/client.py,sha256=uPnzd79ILDYNKhPEBa7lelJysiMBelDXvM8K65WDk2k,7828
33
34
  athena/snippet/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
34
- athena/snippet/client.py,sha256=EE2ADdtSvk_c3-NkVMfwS1r29-y7YhozPoqXc4DPj8k,11323
35
+ athena/snippet/client.py,sha256=M2MmZUouLaCBDT7dzpJZnxGczoCGlW-czHQOlwZUU1Q,11883
35
36
  athena/tools/__init__.py,sha256=3n7oOoMebo06MAQqYRE2CX9Q0fTNnKBYE0cTlh1MPkM,165
36
- athena/tools/client.py,sha256=A8dfVvo-ETw6kukM6UYRI10fvQImgCI2wOirnvA0zMo,53937
37
+ athena/tools/client.py,sha256=cewjtqlpYseWR80PNgSBgcxf_d8QqXz8cJIMmH6IQuM,57093
37
38
  athena/tools/types/__init__.py,sha256=cA-ZQm6veQAP3_vKu9KkZpISsQqgTBN_Z--FGY1c2iA,197
38
39
  athena/tools/types/tools_data_frame_request_columns_item.py,sha256=GA1FUlTV_CfSc-KToTAwFf4Exl0rr4fsweVZupztjw0,138
39
- athena/types/__init__.py,sha256=iuFTDsCecjr3k6Ywiz0fcqtj-14cryzSSVsKir9j-ew,3106
40
+ athena/types/__init__.py,sha256=mOox5XE1eT51OIcJmBmHt9y3FKe412J-ydKk7WLkFrg,3214
40
41
  athena/types/convert_pdf_to_sheet_out.py,sha256=cI1KZpYZEiYEoVXfpZVHI5ibgjy3cj8PcNiA9ukqOBo,889
41
42
  athena/types/data_frame_parsing_error.py,sha256=tF-_NaQj6FANRHEEtfq-AVoAVQjLDSGrECl8HSK4Frc,882
42
43
  athena/types/data_frame_request_out.py,sha256=m_G1QhzfgRmNIRSHDTbUky6j229OO2XmhbalzMQx_J8,1259
43
44
  athena/types/data_frame_request_out_columns_item.py,sha256=9cjzciFv6C8n8Griytt_q_8ovkzHViS5tvUcMDfkfKE,143
44
45
  athena/types/data_frame_request_out_data_item_item.py,sha256=KMTJRr-1bdKDNMbUericCliwRoPHLGRV-n2bJtxdRW0,144
45
46
  athena/types/data_frame_request_out_index_item.py,sha256=bW7oe912trpkYKodj-I_AiTXXy61yWzliekcsUZkZE0,141
47
+ athena/types/data_frame_unknown_format_error.py,sha256=3dNk1UQigGx77FdNjDf2Lr0H35MNvFbg4READnWmVZo,908
46
48
  athena/types/dataset.py,sha256=ShFYop4Pj-pscWrjWZQFboUmK5TDX3NzP0xNRZimpp8,994
47
49
  athena/types/document.py,sha256=evK_-wGk07kB8y5xyPMFCgqDbItuxCAawdUN20b6zFg,1061
48
50
  athena/types/excecute_tool_first_workflow_out.py,sha256=T4GxP3yzTY3XkumdpUdXbn8Tx_iNc1exed8N2SnwV2w,875
@@ -79,10 +81,10 @@ athena/types/validation_error.py,sha256=yqombbKLBSzTPFn6CJH_hbo7tpS68T3JvMdd7kBt
79
81
  athena/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
80
82
  athena/types/workflow_status_out.py,sha256=q28kJnkuPcRu152btJZW5u6ZQ2wS20-K_TnCmDEIID8,979
81
83
  athena/upload/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
82
- athena/upload/client.py,sha256=e5h10wZ7lGBasJ6X907x7nXHRhX600mLSkdw2qz6pmY,6385
84
+ athena/upload/client.py,sha256=0OJxCJQFbwr6Mcy9EqyO3s6n3hrh_rr41_f01ZWwu8M,6675
83
85
  athena/version.py,sha256=8aYAOJtVLaJLpRp6mTiEIhnl8gXA7yE0aDtZ-3mKQ4k,87
84
86
  athena/workflow/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
85
- athena/workflow/client.py,sha256=uY9IS_v2GDQ-g2nbatpTUP1aT1oHbG_E8WAor8JzxPI,6249
86
- athena_intelligence-0.1.81.dist-info/METADATA,sha256=3HFyQJtR0aBSq_lNzk4FXueQMQfTk6mUJzfM3PjhREo,4738
87
- athena_intelligence-0.1.81.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
88
- athena_intelligence-0.1.81.dist-info/RECORD,,
87
+ athena/workflow/client.py,sha256=zw6r1YAWK-_s6YvuTYSYUNnt6Oo3n8RE9pihKP8I9ZY,6513
88
+ athena_intelligence-0.1.83.dist-info/METADATA,sha256=ygwjzHHhdEfPK8kZW80QLfty2etNhz31GO9n-V30yPs,4777
89
+ athena_intelligence-0.1.83.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
90
+ athena_intelligence-0.1.83.dist-info/RECORD,,