athena-intelligence 0.1.117__py3-none-any.whl → 0.1.118__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/core/client_wrapper.py +1 -1
- athena/tools/client.py +10 -10
- {athena_intelligence-0.1.117.dist-info → athena_intelligence-0.1.118.dist-info}/METADATA +1 -1
- {athena_intelligence-0.1.117.dist-info → athena_intelligence-0.1.118.dist-info}/RECORD +5 -5
- {athena_intelligence-0.1.117.dist-info → athena_intelligence-0.1.118.dist-info}/WHEEL +0 -0
athena/core/client_wrapper.py
CHANGED
@@ -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.
|
20
|
+
"X-Fern-SDK-Version": "0.1.118",
|
21
21
|
}
|
22
22
|
headers["X-API-KEY"] = self.api_key
|
23
23
|
return headers
|
athena/tools/client.py
CHANGED
@@ -32,7 +32,7 @@ class ToolsClient:
|
|
32
32
|
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
33
33
|
self._client_wrapper = client_wrapper
|
34
34
|
|
35
|
-
def
|
35
|
+
def get_asset_chunks(
|
36
36
|
self, *, asset_ids: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None
|
37
37
|
) -> FileChunkRequestOut:
|
38
38
|
"""
|
@@ -58,7 +58,7 @@ class ToolsClient:
|
|
58
58
|
client = Athena(
|
59
59
|
api_key="YOUR_API_KEY",
|
60
60
|
)
|
61
|
-
client.tools.
|
61
|
+
client.tools.get_asset_chunks(
|
62
62
|
asset_ids=[
|
63
63
|
"asset_9249292-d118-42d3-96b4-00eccfe0754f",
|
64
64
|
"asset_9249292-d118-42d3-95b4-01eccfe0754f",
|
@@ -66,7 +66,7 @@ class ToolsClient:
|
|
66
66
|
)
|
67
67
|
"""
|
68
68
|
_response = self._client_wrapper.httpx_client.request(
|
69
|
-
"api/v0/tools/
|
69
|
+
"api/v0/tools/asset/chunks",
|
70
70
|
method="POST",
|
71
71
|
json={"asset_ids": asset_ids},
|
72
72
|
request_options=request_options,
|
@@ -95,7 +95,7 @@ class ToolsClient:
|
|
95
95
|
columns: typing.Optional[
|
96
96
|
typing.Union[ToolsDataFrameRequestColumnsItem, typing.Sequence[ToolsDataFrameRequestColumnsItem]]
|
97
97
|
] = None,
|
98
|
-
sheet_name: typing.Optional[
|
98
|
+
sheet_name: typing.Optional[int] = None,
|
99
99
|
separator: typing.Optional[str] = None,
|
100
100
|
request_options: typing.Optional[RequestOptions] = None
|
101
101
|
) -> DataFrameRequestOut:
|
@@ -111,7 +111,7 @@ class ToolsClient:
|
|
111
111
|
columns : typing.Optional[typing.Union[ToolsDataFrameRequestColumnsItem, typing.Sequence[ToolsDataFrameRequestColumnsItem]]]
|
112
112
|
should be a list of strings or a list of integers
|
113
113
|
|
114
|
-
sheet_name : typing.Optional[
|
114
|
+
sheet_name : typing.Optional[int]
|
115
115
|
only for excel files
|
116
116
|
|
117
117
|
separator : typing.Optional[str]
|
@@ -281,7 +281,7 @@ class AsyncToolsClient:
|
|
281
281
|
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
282
282
|
self._client_wrapper = client_wrapper
|
283
283
|
|
284
|
-
async def
|
284
|
+
async def get_asset_chunks(
|
285
285
|
self, *, asset_ids: typing.Sequence[str], request_options: typing.Optional[RequestOptions] = None
|
286
286
|
) -> FileChunkRequestOut:
|
287
287
|
"""
|
@@ -307,7 +307,7 @@ class AsyncToolsClient:
|
|
307
307
|
client = AsyncAthena(
|
308
308
|
api_key="YOUR_API_KEY",
|
309
309
|
)
|
310
|
-
await client.tools.
|
310
|
+
await client.tools.get_asset_chunks(
|
311
311
|
asset_ids=[
|
312
312
|
"asset_9249292-d118-42d3-96b4-00eccfe0754f",
|
313
313
|
"asset_9249292-d118-42d3-95b4-01eccfe0754f",
|
@@ -315,7 +315,7 @@ class AsyncToolsClient:
|
|
315
315
|
)
|
316
316
|
"""
|
317
317
|
_response = await self._client_wrapper.httpx_client.request(
|
318
|
-
"api/v0/tools/
|
318
|
+
"api/v0/tools/asset/chunks",
|
319
319
|
method="POST",
|
320
320
|
json={"asset_ids": asset_ids},
|
321
321
|
request_options=request_options,
|
@@ -344,7 +344,7 @@ class AsyncToolsClient:
|
|
344
344
|
columns: typing.Optional[
|
345
345
|
typing.Union[ToolsDataFrameRequestColumnsItem, typing.Sequence[ToolsDataFrameRequestColumnsItem]]
|
346
346
|
] = None,
|
347
|
-
sheet_name: typing.Optional[
|
347
|
+
sheet_name: typing.Optional[int] = None,
|
348
348
|
separator: typing.Optional[str] = None,
|
349
349
|
request_options: typing.Optional[RequestOptions] = None
|
350
350
|
) -> DataFrameRequestOut:
|
@@ -360,7 +360,7 @@ class AsyncToolsClient:
|
|
360
360
|
columns : typing.Optional[typing.Union[ToolsDataFrameRequestColumnsItem, typing.Sequence[ToolsDataFrameRequestColumnsItem]]]
|
361
361
|
should be a list of strings or a list of integers
|
362
362
|
|
363
|
-
sheet_name : typing.Optional[
|
363
|
+
sheet_name : typing.Optional[int]
|
364
364
|
only for excel files
|
365
365
|
|
366
366
|
separator : typing.Optional[str]
|
@@ -3,7 +3,7 @@ athena/base_client.py,sha256=TlP599mOBvj7Tk8IpFe5dgrDM98GJu3lEQh_zwl4vtA,5439
|
|
3
3
|
athena/client.py,sha256=4PUPrBPCMTFpHR1yuKVR5eC1AYBl_25SMf6ZH82JHB0,19039
|
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=
|
6
|
+
athena/core/client_wrapper.py,sha256=FxpLFH81UwZ_rsz2Luhfw7qwGaEGedKxuLzgh1xNRHg,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
|
@@ -27,7 +27,7 @@ athena/query/client.py,sha256=GYvBV7YFYjL3gyskeF6C8BJZlLvU7R045gJ5kGiYkvg,9043
|
|
27
27
|
athena/query/types/__init__.py,sha256=WX-Or2h5NY2sv93ojrZsHcmiFHGYdqd0yxNo-5iGHR4,206
|
28
28
|
athena/query/types/query_execute_request_database_asset_ids.py,sha256=aoVl5Xb34Q27hYGuVTnByGIxtHkL67wAwzXh7eJctew,154
|
29
29
|
athena/tools/__init__.py,sha256=3n7oOoMebo06MAQqYRE2CX9Q0fTNnKBYE0cTlh1MPkM,165
|
30
|
-
athena/tools/client.py,sha256=
|
30
|
+
athena/tools/client.py,sha256=lYzvUj_QW-b3ighcXV29LUo59HpM4V9ACe2cbtoHhHg,20209
|
31
31
|
athena/tools/types/__init__.py,sha256=cA-ZQm6veQAP3_vKu9KkZpISsQqgTBN_Z--FGY1c2iA,197
|
32
32
|
athena/tools/types/tools_data_frame_request_columns_item.py,sha256=GA1FUlTV_CfSc-KToTAwFf4Exl0rr4fsweVZupztjw0,138
|
33
33
|
athena/types/__init__.py,sha256=863IuasnsjdZ4LFKjfQhczKesHHp_Ey68A9AWuNcDlc,1085
|
@@ -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.
|
47
|
-
athena_intelligence-0.1.
|
48
|
-
athena_intelligence-0.1.
|
46
|
+
athena_intelligence-0.1.118.dist-info/METADATA,sha256=uFdTlGxjSdjvu4v6E-n3z85uZ0WPrbmmZYUa6vIK9To,5274
|
47
|
+
athena_intelligence-0.1.118.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
48
|
+
athena_intelligence-0.1.118.dist-info/RECORD,,
|
File without changes
|