athena-intelligence 0.1.229__py3-none-any.whl → 0.1.231__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.
Potentially problematic release.
This version of athena-intelligence might be problematic. Click here for more details.
- athena/__init__.py +2 -0
- athena/core/client_wrapper.py +2 -2
- athena/tools/__init__.py +1 -10
- athena/tools/sheets/__init__.py +0 -3
- athena/tools/sheets/client.py +7 -7
- athena/tools/sheets/raw_client.py +7 -20
- athena/types/__init__.py +2 -0
- athena/{tools/sheets/types/insert_table_row_request_row_data_item_value.py → types/table_row_data.py} +1 -1
- {athena_intelligence-0.1.229.dist-info → athena_intelligence-0.1.231.dist-info}/METADATA +1 -1
- {athena_intelligence-0.1.229.dist-info → athena_intelligence-0.1.231.dist-info}/RECORD +11 -12
- athena/tools/sheets/types/__init__.py +0 -7
- {athena_intelligence-0.1.229.dist-info → athena_intelligence-0.1.231.dist-info}/WHEEL +0 -0
athena/__init__.py
CHANGED
|
@@ -50,6 +50,7 @@ from .types import (
|
|
|
50
50
|
SheetOperationResponse,
|
|
51
51
|
SqlAgentResponse,
|
|
52
52
|
StructuredDataExtractorResponse,
|
|
53
|
+
TableRowData,
|
|
53
54
|
TextContent,
|
|
54
55
|
ThreadStatusResponseOut,
|
|
55
56
|
Type,
|
|
@@ -126,6 +127,7 @@ __all__ = [
|
|
|
126
127
|
"SheetOperationResponse",
|
|
127
128
|
"SqlAgentResponse",
|
|
128
129
|
"StructuredDataExtractorResponse",
|
|
130
|
+
"TableRowData",
|
|
129
131
|
"TextContent",
|
|
130
132
|
"ThreadStatusResponseOut",
|
|
131
133
|
"ToolsDataFrameRequestColumnsItem",
|
athena/core/client_wrapper.py
CHANGED
|
@@ -22,10 +22,10 @@ class BaseClientWrapper:
|
|
|
22
22
|
|
|
23
23
|
def get_headers(self) -> typing.Dict[str, str]:
|
|
24
24
|
headers: typing.Dict[str, str] = {
|
|
25
|
-
"User-Agent": "athena-intelligence/0.1.
|
|
25
|
+
"User-Agent": "athena-intelligence/0.1.231",
|
|
26
26
|
"X-Fern-Language": "Python",
|
|
27
27
|
"X-Fern-SDK-Name": "athena-intelligence",
|
|
28
|
-
"X-Fern-SDK-Version": "0.1.
|
|
28
|
+
"X-Fern-SDK-Version": "0.1.231",
|
|
29
29
|
**(self.get_custom_headers() or {}),
|
|
30
30
|
}
|
|
31
31
|
headers["X-API-KEY"] = self.api_key
|
athena/tools/__init__.py
CHANGED
|
@@ -4,14 +4,5 @@
|
|
|
4
4
|
|
|
5
5
|
from .types import ToolsDataFrameRequestColumnsItem
|
|
6
6
|
from . import calendar, email, sheets, structured_data_extractor, tasks
|
|
7
|
-
from .sheets import InsertTableRowRequestRowDataItemValue
|
|
8
7
|
|
|
9
|
-
__all__ = [
|
|
10
|
-
"InsertTableRowRequestRowDataItemValue",
|
|
11
|
-
"ToolsDataFrameRequestColumnsItem",
|
|
12
|
-
"calendar",
|
|
13
|
-
"email",
|
|
14
|
-
"sheets",
|
|
15
|
-
"structured_data_extractor",
|
|
16
|
-
"tasks",
|
|
17
|
-
]
|
|
8
|
+
__all__ = ["ToolsDataFrameRequestColumnsItem", "calendar", "email", "sheets", "structured_data_extractor", "tasks"]
|
athena/tools/sheets/__init__.py
CHANGED
athena/tools/sheets/client.py
CHANGED
|
@@ -7,8 +7,8 @@ from ...core.request_options import RequestOptions
|
|
|
7
7
|
from ...types.create_new_sheet_tab_response import CreateNewSheetTabResponse
|
|
8
8
|
from ...types.get_table_response import GetTableResponse
|
|
9
9
|
from ...types.sheet_operation_response import SheetOperationResponse
|
|
10
|
+
from ...types.table_row_data import TableRowData
|
|
10
11
|
from .raw_client import AsyncRawSheetsClient, RawSheetsClient
|
|
11
|
-
from .types.insert_table_row_request_row_data_item_value import InsertTableRowRequestRowDataItemValue
|
|
12
12
|
|
|
13
13
|
# this is used as the default value for optional parameters
|
|
14
14
|
OMIT = typing.cast(typing.Any, ...)
|
|
@@ -940,7 +940,7 @@ class SheetsClient:
|
|
|
940
940
|
self,
|
|
941
941
|
*,
|
|
942
942
|
asset_id: str,
|
|
943
|
-
row_data: typing.Sequence[
|
|
943
|
+
row_data: typing.Sequence[TableRowData],
|
|
944
944
|
table_name: str,
|
|
945
945
|
table_id: typing.Optional[str] = OMIT,
|
|
946
946
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -953,7 +953,7 @@ class SheetsClient:
|
|
|
953
953
|
asset_id : str
|
|
954
954
|
The ID of the spreadsheet asset
|
|
955
955
|
|
|
956
|
-
row_data : typing.Sequence[
|
|
956
|
+
row_data : typing.Sequence[TableRowData]
|
|
957
957
|
Array of row objects where keys are column names and values are cell values
|
|
958
958
|
|
|
959
959
|
table_name : str
|
|
@@ -979,7 +979,7 @@ class SheetsClient:
|
|
|
979
979
|
)
|
|
980
980
|
client.tools.sheets.insert_table_row(
|
|
981
981
|
asset_id="asset_id",
|
|
982
|
-
row_data=[{}],
|
|
982
|
+
row_data=[{"key": "value"}],
|
|
983
983
|
table_name="table_name",
|
|
984
984
|
)
|
|
985
985
|
"""
|
|
@@ -2119,7 +2119,7 @@ class AsyncSheetsClient:
|
|
|
2119
2119
|
self,
|
|
2120
2120
|
*,
|
|
2121
2121
|
asset_id: str,
|
|
2122
|
-
row_data: typing.Sequence[
|
|
2122
|
+
row_data: typing.Sequence[TableRowData],
|
|
2123
2123
|
table_name: str,
|
|
2124
2124
|
table_id: typing.Optional[str] = OMIT,
|
|
2125
2125
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -2132,7 +2132,7 @@ class AsyncSheetsClient:
|
|
|
2132
2132
|
asset_id : str
|
|
2133
2133
|
The ID of the spreadsheet asset
|
|
2134
2134
|
|
|
2135
|
-
row_data : typing.Sequence[
|
|
2135
|
+
row_data : typing.Sequence[TableRowData]
|
|
2136
2136
|
Array of row objects where keys are column names and values are cell values
|
|
2137
2137
|
|
|
2138
2138
|
table_name : str
|
|
@@ -2163,7 +2163,7 @@ class AsyncSheetsClient:
|
|
|
2163
2163
|
async def main() -> None:
|
|
2164
2164
|
await client.tools.sheets.insert_table_row(
|
|
2165
2165
|
asset_id="asset_id",
|
|
2166
|
-
row_data=[{}],
|
|
2166
|
+
row_data=[{"key": "value"}],
|
|
2167
2167
|
table_name="table_name",
|
|
2168
2168
|
)
|
|
2169
2169
|
|
|
@@ -8,12 +8,11 @@ from ...core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
|
8
8
|
from ...core.http_response import AsyncHttpResponse, HttpResponse
|
|
9
9
|
from ...core.pydantic_utilities import parse_obj_as
|
|
10
10
|
from ...core.request_options import RequestOptions
|
|
11
|
-
from ...core.serialization import convert_and_respect_annotation_metadata
|
|
12
11
|
from ...errors.unprocessable_entity_error import UnprocessableEntityError
|
|
13
12
|
from ...types.create_new_sheet_tab_response import CreateNewSheetTabResponse
|
|
14
13
|
from ...types.get_table_response import GetTableResponse
|
|
15
14
|
from ...types.sheet_operation_response import SheetOperationResponse
|
|
16
|
-
from
|
|
15
|
+
from ...types.table_row_data import TableRowData
|
|
17
16
|
|
|
18
17
|
# this is used as the default value for optional parameters
|
|
19
18
|
OMIT = typing.cast(typing.Any, ...)
|
|
@@ -1222,7 +1221,7 @@ class RawSheetsClient:
|
|
|
1222
1221
|
self,
|
|
1223
1222
|
*,
|
|
1224
1223
|
asset_id: str,
|
|
1225
|
-
row_data: typing.Sequence[
|
|
1224
|
+
row_data: typing.Sequence[TableRowData],
|
|
1226
1225
|
table_name: str,
|
|
1227
1226
|
table_id: typing.Optional[str] = OMIT,
|
|
1228
1227
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -1235,7 +1234,7 @@ class RawSheetsClient:
|
|
|
1235
1234
|
asset_id : str
|
|
1236
1235
|
The ID of the spreadsheet asset
|
|
1237
1236
|
|
|
1238
|
-
row_data : typing.Sequence[
|
|
1237
|
+
row_data : typing.Sequence[TableRowData]
|
|
1239
1238
|
Array of row objects where keys are column names and values are cell values
|
|
1240
1239
|
|
|
1241
1240
|
table_name : str
|
|
@@ -1257,13 +1256,7 @@ class RawSheetsClient:
|
|
|
1257
1256
|
method="POST",
|
|
1258
1257
|
json={
|
|
1259
1258
|
"asset_id": asset_id,
|
|
1260
|
-
"row_data":
|
|
1261
|
-
object_=row_data,
|
|
1262
|
-
annotation=typing.Sequence[
|
|
1263
|
-
typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]
|
|
1264
|
-
],
|
|
1265
|
-
direction="write",
|
|
1266
|
-
),
|
|
1259
|
+
"row_data": row_data,
|
|
1267
1260
|
"table_id": table_id,
|
|
1268
1261
|
"table_name": table_name,
|
|
1269
1262
|
},
|
|
@@ -2598,7 +2591,7 @@ class AsyncRawSheetsClient:
|
|
|
2598
2591
|
self,
|
|
2599
2592
|
*,
|
|
2600
2593
|
asset_id: str,
|
|
2601
|
-
row_data: typing.Sequence[
|
|
2594
|
+
row_data: typing.Sequence[TableRowData],
|
|
2602
2595
|
table_name: str,
|
|
2603
2596
|
table_id: typing.Optional[str] = OMIT,
|
|
2604
2597
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -2611,7 +2604,7 @@ class AsyncRawSheetsClient:
|
|
|
2611
2604
|
asset_id : str
|
|
2612
2605
|
The ID of the spreadsheet asset
|
|
2613
2606
|
|
|
2614
|
-
row_data : typing.Sequence[
|
|
2607
|
+
row_data : typing.Sequence[TableRowData]
|
|
2615
2608
|
Array of row objects where keys are column names and values are cell values
|
|
2616
2609
|
|
|
2617
2610
|
table_name : str
|
|
@@ -2633,13 +2626,7 @@ class AsyncRawSheetsClient:
|
|
|
2633
2626
|
method="POST",
|
|
2634
2627
|
json={
|
|
2635
2628
|
"asset_id": asset_id,
|
|
2636
|
-
"row_data":
|
|
2637
|
-
object_=row_data,
|
|
2638
|
-
annotation=typing.Sequence[
|
|
2639
|
-
typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]
|
|
2640
|
-
],
|
|
2641
|
-
direction="write",
|
|
2642
|
-
),
|
|
2629
|
+
"row_data": row_data,
|
|
2643
2630
|
"table_id": table_id,
|
|
2644
2631
|
"table_name": table_name,
|
|
2645
2632
|
},
|
athena/types/__init__.py
CHANGED
|
@@ -49,6 +49,7 @@ from .save_asset_request_out import SaveAssetRequestOut
|
|
|
49
49
|
from .sheet_operation_response import SheetOperationResponse
|
|
50
50
|
from .sql_agent_response import SqlAgentResponse
|
|
51
51
|
from .structured_data_extractor_response import StructuredDataExtractorResponse
|
|
52
|
+
from .table_row_data import TableRowData
|
|
52
53
|
from .text_content import TextContent
|
|
53
54
|
from .thread_status_response_out import ThreadStatusResponseOut
|
|
54
55
|
from .type import Type
|
|
@@ -101,6 +102,7 @@ __all__ = [
|
|
|
101
102
|
"SheetOperationResponse",
|
|
102
103
|
"SqlAgentResponse",
|
|
103
104
|
"StructuredDataExtractorResponse",
|
|
105
|
+
"TableRowData",
|
|
104
106
|
"TextContent",
|
|
105
107
|
"ThreadStatusResponseOut",
|
|
106
108
|
"Type",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
athena/__init__.py,sha256=
|
|
1
|
+
athena/__init__.py,sha256=y6U6A88Eo5gBzfqpngffdUnUcGUezOavreahDjsnBYc,3725
|
|
2
2
|
athena/agents/__init__.py,sha256=dg7IOwE6-BQSx20JEhdc1VDHlbIHPy08x5fuww_Tvko,180
|
|
3
3
|
athena/agents/client.py,sha256=A70jdG6spqLkPriU8-NCn0vOJvdc5f4SKoVZLOebZjQ,5975
|
|
4
4
|
athena/agents/drive/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
@@ -24,7 +24,7 @@ athena/base_client.py,sha256=9OfmXHlNIFE_4Udzxn0Ue-H-sC2ps0AIm8ZRyuaDwXA,6738
|
|
|
24
24
|
athena/client.py,sha256=lK3vVU3TF3YjPpiohpxcuRl8x_sSw8HmQ-uuDDeAT6I,22161
|
|
25
25
|
athena/core/__init__.py,sha256=lTcqUPXcx4112yLDd70RAPeqq6tu3eFMe1pKOqkW9JQ,1562
|
|
26
26
|
athena/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
|
|
27
|
-
athena/core/client_wrapper.py,sha256=
|
|
27
|
+
athena/core/client_wrapper.py,sha256=3sLxsNOPF9q8dB46eUy9W-P-NQ8j8oq1_Ok1vXC1p8Y,2392
|
|
28
28
|
athena/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
29
29
|
athena/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
30
30
|
athena/core/force_multipart.py,sha256=awxh5MtcRYe74ehY8U76jzv6fYM_w_D3Rur7KQQzSDk,429
|
|
@@ -54,7 +54,7 @@ athena/query/types/query_execute_request_database_asset_ids.py,sha256=aoVl5Xb34Q
|
|
|
54
54
|
athena/threads/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
55
55
|
athena/threads/client.py,sha256=gLjlEgLuEMduyPlK54GhGxWu6Vto-_TKFHcYcu9ZoiY,3328
|
|
56
56
|
athena/threads/raw_client.py,sha256=7RhzQb32UrZMEDF5LFutYSUFXvbR7OYPXdyVSSCXoOQ,8047
|
|
57
|
-
athena/tools/__init__.py,sha256=
|
|
57
|
+
athena/tools/__init__.py,sha256=Lq5sY-WpodI9cuRtzoJXXPiK7oQ-JAopxo2-M6ugJEU,326
|
|
58
58
|
athena/tools/calendar/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
59
59
|
athena/tools/calendar/client.py,sha256=NMiwSaBD-JYcAoudGyBMtWVIWPm6ChFqOFSndxYupY0,4385
|
|
60
60
|
athena/tools/calendar/raw_client.py,sha256=6HmAXGcOxXuRMdxA1_U1oROkouJebOXVFAnz5CDHgto,6858
|
|
@@ -63,11 +63,9 @@ athena/tools/email/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa
|
|
|
63
63
|
athena/tools/email/client.py,sha256=dOidOOOLHdfz2c3nykzyOa7nTftS91d2_aws0LTg8DU,5921
|
|
64
64
|
athena/tools/email/raw_client.py,sha256=GkSxb-RFdhGgFNghnwH6i0cPI_gfWGLUmWvBNlBlhE4,9962
|
|
65
65
|
athena/tools/raw_client.py,sha256=xdM0CsiywlAgolqC6Y-7WNXCRnx6aMBqSLAwZcS3OTc,53204
|
|
66
|
-
athena/tools/sheets/__init__.py,sha256=
|
|
67
|
-
athena/tools/sheets/client.py,sha256=
|
|
68
|
-
athena/tools/sheets/raw_client.py,sha256=
|
|
69
|
-
athena/tools/sheets/types/__init__.py,sha256=6REU5mirjPqkpLFUQ_ZvQrypqCjisoWi3wQbHZF5krM,234
|
|
70
|
-
athena/tools/sheets/types/insert_table_row_request_row_data_item_value.py,sha256=B-ZBD4ma6DlXrGUH2rxJbB9BqHKXQ7vfs2t5mot4pCM,156
|
|
66
|
+
athena/tools/sheets/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
67
|
+
athena/tools/sheets/client.py,sha256=lnsjUHGFWcpTepURFqDgk8jI5iZPFe4kNYMotzL2-bQ,58958
|
|
68
|
+
athena/tools/sheets/raw_client.py,sha256=sWZVD5lnYilNGtyQBqZaWuKbsXVm7pIPF0RzMgTLyKM,95766
|
|
71
69
|
athena/tools/structured_data_extractor/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
72
70
|
athena/tools/structured_data_extractor/client.py,sha256=V1FcGZTPbrlz2d9oQZhsj3UIN1ZlZfnqRdDXj16xiPs,10623
|
|
73
71
|
athena/tools/structured_data_extractor/raw_client.py,sha256=1ZYZBssmf1jDomopeJ3PMRLql3zT4c7ssRNNLa1YrGE,11245
|
|
@@ -76,7 +74,7 @@ athena/tools/tasks/client.py,sha256=c_YZ7OjQNJmPKbeeXJznXj3zo5CRFSv02dLupAdHAyo,
|
|
|
76
74
|
athena/tools/tasks/raw_client.py,sha256=Mexzuf_HcRXWNlESDGQkHHv5tC2tAo-AX3PBSuSRO3U,3812
|
|
77
75
|
athena/tools/types/__init__.py,sha256=ZI6REilQ0Xuocjd8iyNVfLvOsA2Ltlb8--px07wRSPg,217
|
|
78
76
|
athena/tools/types/tools_data_frame_request_columns_item.py,sha256=GA1FUlTV_CfSc-KToTAwFf4Exl0rr4fsweVZupztjw0,138
|
|
79
|
-
athena/types/__init__.py,sha256=
|
|
77
|
+
athena/types/__init__.py,sha256=Ka-ShgSbAjk_kk_I47-oQS5Q7XRDIzPxHKKrRb4XnEc,4215
|
|
80
78
|
athena/types/aop_async_execute_response_out.py,sha256=Ggs9j5JvLCMaVwaHNyY3whA5gcUffLqc4PwuxYWI-38,1642
|
|
81
79
|
athena/types/aop_execute_request_in.py,sha256=mEsMKyNN6e90gZra733lJDC6z0bZWdc72af3B-Z5aqE,889
|
|
82
80
|
athena/types/aop_execute_response_out.py,sha256=226NGju-pFVGE-zrwNGGiVB1BqkqtGJdMVsdqQVtnxk,1804
|
|
@@ -120,10 +118,11 @@ athena/types/save_asset_request_out.py,sha256=_jM8B291p-dilNcrGSt3s26tjrj77c6kLp
|
|
|
120
118
|
athena/types/sheet_operation_response.py,sha256=w-Nl11a1kii-RHTzgrt9QjpN1nuWfbF4nO4zAO2cCpw,793
|
|
121
119
|
athena/types/sql_agent_response.py,sha256=qp-VIpsZziEkx8EIF4bdhmlPqqH8a8GaCWLANJxE5kU,765
|
|
122
120
|
athena/types/structured_data_extractor_response.py,sha256=yFQ0CiFDdlZIq2X8UprEAwOPhNBqG8lzVu9_aDySW2M,1067
|
|
121
|
+
athena/types/table_row_data.py,sha256=leurR2kOfMxRhv9qVKfpU-iv1iW3400zEahAH9hwMT0,141
|
|
123
122
|
athena/types/text_content.py,sha256=tcVCPj3tHh5zQcTElr2tdCIjjfx3ZI63rKIlaG8vo64,592
|
|
124
123
|
athena/types/thread_status_response_out.py,sha256=UuSAvs9woL1i8RwvVRKsFUufN4A9jO3jsV47YMckvQU,1219
|
|
125
124
|
athena/types/type.py,sha256=Gvs56nvBMPcQpOZkfPocGNNb7S05PuINianbT309QAQ,146
|
|
126
125
|
athena/version.py,sha256=tnXYUugs9zF_pkVdem-QBorKSuhEOOuetkR57dADDxE,86
|
|
127
|
-
athena_intelligence-0.1.
|
|
128
|
-
athena_intelligence-0.1.
|
|
129
|
-
athena_intelligence-0.1.
|
|
126
|
+
athena_intelligence-0.1.231.dist-info/METADATA,sha256=XzVyCcZtNWDAWLReLU6yjqldmDqHadV2TaTU7Pvn8Aw,5440
|
|
127
|
+
athena_intelligence-0.1.231.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
128
|
+
athena_intelligence-0.1.231.dist-info/RECORD,,
|
|
File without changes
|