athena-intelligence 0.1.213__py3-none-any.whl → 0.1.214__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.

@@ -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.213",
25
+ "User-Agent": "athena-intelligence/0.1.214",
26
26
  "X-Fern-Language": "Python",
27
27
  "X-Fern-SDK-Name": "athena-intelligence",
28
- "X-Fern-SDK-Version": "0.1.213",
28
+ "X-Fern-SDK-Version": "0.1.214",
29
29
  **(self.get_custom_headers() or {}),
30
30
  }
31
31
  headers["X-API-KEY"] = self.api_key
athena/tools/__init__.py CHANGED
@@ -4,5 +4,14 @@
4
4
 
5
5
  from .types import ToolsDataFrameRequestColumnsItem
6
6
  from . import calendar, email, sheets, structured_data_extractor, tasks
7
+ from .sheets import InsertTableRowRequestRowDataItemValue
7
8
 
8
- __all__ = ["ToolsDataFrameRequestColumnsItem", "calendar", "email", "sheets", "structured_data_extractor", "tasks"]
9
+ __all__ = [
10
+ "InsertTableRowRequestRowDataItemValue",
11
+ "ToolsDataFrameRequestColumnsItem",
12
+ "calendar",
13
+ "email",
14
+ "sheets",
15
+ "structured_data_extractor",
16
+ "tasks",
17
+ ]
@@ -2,3 +2,6 @@
2
2
 
3
3
  # isort: skip_file
4
4
 
5
+ from .types import InsertTableRowRequestRowDataItemValue
6
+
7
+ __all__ = ["InsertTableRowRequestRowDataItemValue"]
@@ -8,6 +8,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
10
  from .raw_client import AsyncRawSheetsClient, RawSheetsClient
11
+ from .types.insert_table_row_request_row_data_item_value import InsertTableRowRequestRowDataItemValue
11
12
 
12
13
  # this is used as the default value for optional parameters
13
14
  OMIT = typing.cast(typing.Any, ...)
@@ -935,7 +936,7 @@ class SheetsClient:
935
936
  self,
936
937
  *,
937
938
  asset_id: str,
938
- row_data: typing.Sequence[typing.Dict[str, typing.Optional[str]]],
939
+ row_data: typing.Sequence[typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]],
939
940
  table_name: str,
940
941
  table_id: typing.Optional[str] = OMIT,
941
942
  request_options: typing.Optional[RequestOptions] = None,
@@ -948,7 +949,7 @@ class SheetsClient:
948
949
  asset_id : str
949
950
  The ID of the spreadsheet asset
950
951
 
951
- row_data : typing.Sequence[typing.Dict[str, typing.Optional[str]]]
952
+ row_data : typing.Sequence[typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]]
952
953
  Array of row objects where keys are column names and values are cell values
953
954
 
954
955
  table_name : str
@@ -2110,7 +2111,7 @@ class AsyncSheetsClient:
2110
2111
  self,
2111
2112
  *,
2112
2113
  asset_id: str,
2113
- row_data: typing.Sequence[typing.Dict[str, typing.Optional[str]]],
2114
+ row_data: typing.Sequence[typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]],
2114
2115
  table_name: str,
2115
2116
  table_id: typing.Optional[str] = OMIT,
2116
2117
  request_options: typing.Optional[RequestOptions] = None,
@@ -2123,7 +2124,7 @@ class AsyncSheetsClient:
2123
2124
  asset_id : str
2124
2125
  The ID of the spreadsheet asset
2125
2126
 
2126
- row_data : typing.Sequence[typing.Dict[str, typing.Optional[str]]]
2127
+ row_data : typing.Sequence[typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]]
2127
2128
  Array of row objects where keys are column names and values are cell values
2128
2129
 
2129
2130
  table_name : str
@@ -8,10 +8,12 @@ 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
11
12
  from ...errors.unprocessable_entity_error import UnprocessableEntityError
12
13
  from ...types.create_new_sheet_tab_response import CreateNewSheetTabResponse
13
14
  from ...types.get_table_response import GetTableResponse
14
15
  from ...types.sheet_operation_response import SheetOperationResponse
16
+ from .types.insert_table_row_request_row_data_item_value import InsertTableRowRequestRowDataItemValue
15
17
 
16
18
  # this is used as the default value for optional parameters
17
19
  OMIT = typing.cast(typing.Any, ...)
@@ -1215,7 +1217,7 @@ class RawSheetsClient:
1215
1217
  self,
1216
1218
  *,
1217
1219
  asset_id: str,
1218
- row_data: typing.Sequence[typing.Dict[str, typing.Optional[str]]],
1220
+ row_data: typing.Sequence[typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]],
1219
1221
  table_name: str,
1220
1222
  table_id: typing.Optional[str] = OMIT,
1221
1223
  request_options: typing.Optional[RequestOptions] = None,
@@ -1228,7 +1230,7 @@ class RawSheetsClient:
1228
1230
  asset_id : str
1229
1231
  The ID of the spreadsheet asset
1230
1232
 
1231
- row_data : typing.Sequence[typing.Dict[str, typing.Optional[str]]]
1233
+ row_data : typing.Sequence[typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]]
1232
1234
  Array of row objects where keys are column names and values are cell values
1233
1235
 
1234
1236
  table_name : str
@@ -1250,7 +1252,13 @@ class RawSheetsClient:
1250
1252
  method="POST",
1251
1253
  json={
1252
1254
  "asset_id": asset_id,
1253
- "row_data": row_data,
1255
+ "row_data": convert_and_respect_annotation_metadata(
1256
+ object_=row_data,
1257
+ annotation=typing.Sequence[
1258
+ typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]
1259
+ ],
1260
+ direction="write",
1261
+ ),
1254
1262
  "table_id": table_id,
1255
1263
  "table_name": table_name,
1256
1264
  },
@@ -2580,7 +2588,7 @@ class AsyncRawSheetsClient:
2580
2588
  self,
2581
2589
  *,
2582
2590
  asset_id: str,
2583
- row_data: typing.Sequence[typing.Dict[str, typing.Optional[str]]],
2591
+ row_data: typing.Sequence[typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]],
2584
2592
  table_name: str,
2585
2593
  table_id: typing.Optional[str] = OMIT,
2586
2594
  request_options: typing.Optional[RequestOptions] = None,
@@ -2593,7 +2601,7 @@ class AsyncRawSheetsClient:
2593
2601
  asset_id : str
2594
2602
  The ID of the spreadsheet asset
2595
2603
 
2596
- row_data : typing.Sequence[typing.Dict[str, typing.Optional[str]]]
2604
+ row_data : typing.Sequence[typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]]
2597
2605
  Array of row objects where keys are column names and values are cell values
2598
2606
 
2599
2607
  table_name : str
@@ -2615,7 +2623,13 @@ class AsyncRawSheetsClient:
2615
2623
  method="POST",
2616
2624
  json={
2617
2625
  "asset_id": asset_id,
2618
- "row_data": row_data,
2626
+ "row_data": convert_and_respect_annotation_metadata(
2627
+ object_=row_data,
2628
+ annotation=typing.Sequence[
2629
+ typing.Dict[str, typing.Optional[InsertTableRowRequestRowDataItemValue]]
2630
+ ],
2631
+ direction="write",
2632
+ ),
2619
2633
  "table_id": table_id,
2620
2634
  "table_name": table_name,
2621
2635
  },
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+
5
+ from .insert_table_row_request_row_data_item_value import InsertTableRowRequestRowDataItemValue
6
+
7
+ __all__ = ["InsertTableRowRequestRowDataItemValue"]
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ InsertTableRowRequestRowDataItemValue = typing.Union[str, int, float, bool]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: athena-intelligence
3
- Version: 0.1.213
3
+ Version: 0.1.214
4
4
  Summary: Athena Intelligence Python Library
5
5
  Requires-Python: >=3.9,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -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=Wv2oyTff006m0Gp_Kn77cFs81Ilj_jjnucsgPEMn4og,2392
27
+ athena/core/client_wrapper.py,sha256=IoVfTAwho3WdndjWuN8fGOqacPIssXEv8NMXRCaVQ2I,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=1-y1q2M5UyoIV6kuH-zkTGDKNdGUWMWUALsKJhtPPvE,8072
57
- athena/tools/__init__.py,sha256=Lq5sY-WpodI9cuRtzoJXXPiK7oQ-JAopxo2-M6ugJEU,326
57
+ athena/tools/__init__.py,sha256=TxIs_v3YkPfqPV95RUx-qVpZ55mQrD5qbxGoV0I_P1g,456
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,9 +63,11 @@ 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=iiAKpFTyBoYLzL5G0BCV6GM69NxCkksB_30XAAmyc24,53049
66
- athena/tools/sheets/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
67
- athena/tools/sheets/client.py,sha256=lKEmrjBCzZm3xteJRLp0FH0SS3x22Bzd1v7Pq9TUL8s,58573
68
- athena/tools/sheets/raw_client.py,sha256=2YxL_kDuJBHpdSZpaWrY_WUjOfjK4YWBPb1TaXEUvPk,95371
66
+ athena/tools/sheets/__init__.py,sha256=vxLg5xXUBSXe3GY09QR-m_5T-Poi9r_9of8Q4sFrSgI,195
67
+ athena/tools/sheets/client.py,sha256=cGPDqEyhMp9DTLxc1L-M3JXvOMqHj1jc6xEgBh19p7Y,58811
68
+ athena/tools/sheets/raw_client.py,sha256=oxT8AM88pzI1WmY7U0zKURfF4T1UZ9RFPJygGCq7imc,96273
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
69
71
  athena/tools/structured_data_extractor/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
70
72
  athena/tools/structured_data_extractor/client.py,sha256=V1FcGZTPbrlz2d9oQZhsj3UIN1ZlZfnqRdDXj16xiPs,10623
71
73
  athena/tools/structured_data_extractor/raw_client.py,sha256=1ZYZBssmf1jDomopeJ3PMRLql3zT4c7ssRNNLa1YrGE,11245
@@ -123,6 +125,6 @@ athena/types/text_content.py,sha256=tcVCPj3tHh5zQcTElr2tdCIjjfx3ZI63rKIlaG8vo64,
123
125
  athena/types/thread_status_response_out.py,sha256=UuSAvs9woL1i8RwvVRKsFUufN4A9jO3jsV47YMckvQU,1219
124
126
  athena/types/type.py,sha256=Gvs56nvBMPcQpOZkfPocGNNb7S05PuINianbT309QAQ,146
125
127
  athena/version.py,sha256=tnXYUugs9zF_pkVdem-QBorKSuhEOOuetkR57dADDxE,86
126
- athena_intelligence-0.1.213.dist-info/METADATA,sha256=YxkDY1FlZXMGLyjGuZy0HX5LUpwBCo0hofSF3SvnwwA,5440
127
- athena_intelligence-0.1.213.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
128
- athena_intelligence-0.1.213.dist-info/RECORD,,
128
+ athena_intelligence-0.1.214.dist-info/METADATA,sha256=72gFuJ76Ewqa-_sEWxCkn--m-j4hBPB2GQPDuT-f0jg,5440
129
+ athena_intelligence-0.1.214.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
130
+ athena_intelligence-0.1.214.dist-info/RECORD,,