athena-intelligence 0.1.212__py3-none-any.whl → 0.1.213__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.212",
25
+ "User-Agent": "athena-intelligence/0.1.213",
26
26
  "X-Fern-Language": "Python",
27
27
  "X-Fern-SDK-Name": "athena-intelligence",
28
- "X-Fern-SDK-Version": "0.1.212",
28
+ "X-Fern-SDK-Version": "0.1.213",
29
29
  **(self.get_custom_headers() or {}),
30
30
  }
31
31
  headers["X-API-KEY"] = self.api_key
@@ -884,7 +884,7 @@ class SheetsClient:
884
884
  )
885
885
  return _response.data
886
886
 
887
- def get_table_rows(
887
+ def get_table(
888
888
  self,
889
889
  *,
890
890
  asset_id: str,
@@ -921,12 +921,12 @@ class SheetsClient:
921
921
  client = Athena(
922
922
  api_key="YOUR_API_KEY",
923
923
  )
924
- client.tools.sheets.get_table_rows(
924
+ client.tools.sheets.get_table(
925
925
  asset_id="asset_id",
926
926
  table_name="table_name",
927
927
  )
928
928
  """
929
- _response = self._raw_client.get_table_rows(
929
+ _response = self._raw_client.get_table(
930
930
  asset_id=asset_id, table_name=table_name, table_id=table_id, request_options=request_options
931
931
  )
932
932
  return _response.data
@@ -936,8 +936,8 @@ class SheetsClient:
936
936
  *,
937
937
  asset_id: str,
938
938
  row_data: typing.Sequence[typing.Dict[str, typing.Optional[str]]],
939
+ table_name: str,
939
940
  table_id: typing.Optional[str] = OMIT,
940
- table_name: typing.Optional[str] = OMIT,
941
941
  request_options: typing.Optional[RequestOptions] = None,
942
942
  ) -> SheetOperationResponse:
943
943
  """
@@ -951,12 +951,12 @@ class SheetsClient:
951
951
  row_data : typing.Sequence[typing.Dict[str, typing.Optional[str]]]
952
952
  Array of row objects where keys are column names and values are cell values
953
953
 
954
+ table_name : str
955
+ Table name to insert row into
956
+
954
957
  table_id : typing.Optional[str]
955
958
  Table ID to insert row into
956
959
 
957
- table_name : typing.Optional[str]
958
- Table name to insert row into
959
-
960
960
  request_options : typing.Optional[RequestOptions]
961
961
  Request-specific configuration.
962
962
 
@@ -975,13 +975,14 @@ class SheetsClient:
975
975
  client.tools.sheets.insert_table_row(
976
976
  asset_id="asset_id",
977
977
  row_data=[{}],
978
+ table_name="table_name",
978
979
  )
979
980
  """
980
981
  _response = self._raw_client.insert_table_row(
981
982
  asset_id=asset_id,
982
983
  row_data=row_data,
983
- table_id=table_id,
984
984
  table_name=table_name,
985
+ table_id=table_id,
985
986
  request_options=request_options,
986
987
  )
987
988
  return _response.data
@@ -2050,7 +2051,7 @@ class AsyncSheetsClient:
2050
2051
  )
2051
2052
  return _response.data
2052
2053
 
2053
- async def get_table_rows(
2054
+ async def get_table(
2054
2055
  self,
2055
2056
  *,
2056
2057
  asset_id: str,
@@ -2092,7 +2093,7 @@ class AsyncSheetsClient:
2092
2093
 
2093
2094
 
2094
2095
  async def main() -> None:
2095
- await client.tools.sheets.get_table_rows(
2096
+ await client.tools.sheets.get_table(
2096
2097
  asset_id="asset_id",
2097
2098
  table_name="table_name",
2098
2099
  )
@@ -2100,7 +2101,7 @@ class AsyncSheetsClient:
2100
2101
 
2101
2102
  asyncio.run(main())
2102
2103
  """
2103
- _response = await self._raw_client.get_table_rows(
2104
+ _response = await self._raw_client.get_table(
2104
2105
  asset_id=asset_id, table_name=table_name, table_id=table_id, request_options=request_options
2105
2106
  )
2106
2107
  return _response.data
@@ -2110,8 +2111,8 @@ class AsyncSheetsClient:
2110
2111
  *,
2111
2112
  asset_id: str,
2112
2113
  row_data: typing.Sequence[typing.Dict[str, typing.Optional[str]]],
2114
+ table_name: str,
2113
2115
  table_id: typing.Optional[str] = OMIT,
2114
- table_name: typing.Optional[str] = OMIT,
2115
2116
  request_options: typing.Optional[RequestOptions] = None,
2116
2117
  ) -> SheetOperationResponse:
2117
2118
  """
@@ -2125,12 +2126,12 @@ class AsyncSheetsClient:
2125
2126
  row_data : typing.Sequence[typing.Dict[str, typing.Optional[str]]]
2126
2127
  Array of row objects where keys are column names and values are cell values
2127
2128
 
2129
+ table_name : str
2130
+ Table name to insert row into
2131
+
2128
2132
  table_id : typing.Optional[str]
2129
2133
  Table ID to insert row into
2130
2134
 
2131
- table_name : typing.Optional[str]
2132
- Table name to insert row into
2133
-
2134
2135
  request_options : typing.Optional[RequestOptions]
2135
2136
  Request-specific configuration.
2136
2137
 
@@ -2154,6 +2155,7 @@ class AsyncSheetsClient:
2154
2155
  await client.tools.sheets.insert_table_row(
2155
2156
  asset_id="asset_id",
2156
2157
  row_data=[{}],
2158
+ table_name="table_name",
2157
2159
  )
2158
2160
 
2159
2161
 
@@ -2162,8 +2164,8 @@ class AsyncSheetsClient:
2162
2164
  _response = await self._raw_client.insert_table_row(
2163
2165
  asset_id=asset_id,
2164
2166
  row_data=row_data,
2165
- table_id=table_id,
2166
2167
  table_name=table_name,
2168
+ table_id=table_id,
2167
2169
  request_options=request_options,
2168
2170
  )
2169
2171
  return _response.data
@@ -1141,7 +1141,7 @@ class RawSheetsClient:
1141
1141
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
1142
1142
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
1143
1143
 
1144
- def get_table_rows(
1144
+ def get_table(
1145
1145
  self,
1146
1146
  *,
1147
1147
  asset_id: str,
@@ -1172,7 +1172,7 @@ class RawSheetsClient:
1172
1172
  Successful Response
1173
1173
  """
1174
1174
  _response = self._client_wrapper.httpx_client.request(
1175
- "api/v0/tools/sheets/table/get_rows",
1175
+ "api/v0/tools/sheets/table/get",
1176
1176
  method="POST",
1177
1177
  json={
1178
1178
  "asset_id": asset_id,
@@ -1216,8 +1216,8 @@ class RawSheetsClient:
1216
1216
  *,
1217
1217
  asset_id: str,
1218
1218
  row_data: typing.Sequence[typing.Dict[str, typing.Optional[str]]],
1219
+ table_name: str,
1219
1220
  table_id: typing.Optional[str] = OMIT,
1220
- table_name: typing.Optional[str] = OMIT,
1221
1221
  request_options: typing.Optional[RequestOptions] = None,
1222
1222
  ) -> HttpResponse[SheetOperationResponse]:
1223
1223
  """
@@ -1231,12 +1231,12 @@ class RawSheetsClient:
1231
1231
  row_data : typing.Sequence[typing.Dict[str, typing.Optional[str]]]
1232
1232
  Array of row objects where keys are column names and values are cell values
1233
1233
 
1234
+ table_name : str
1235
+ Table name to insert row into
1236
+
1234
1237
  table_id : typing.Optional[str]
1235
1238
  Table ID to insert row into
1236
1239
 
1237
- table_name : typing.Optional[str]
1238
- Table name to insert row into
1239
-
1240
1240
  request_options : typing.Optional[RequestOptions]
1241
1241
  Request-specific configuration.
1242
1242
 
@@ -2506,7 +2506,7 @@ class AsyncRawSheetsClient:
2506
2506
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response.text)
2507
2507
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
2508
2508
 
2509
- async def get_table_rows(
2509
+ async def get_table(
2510
2510
  self,
2511
2511
  *,
2512
2512
  asset_id: str,
@@ -2537,7 +2537,7 @@ class AsyncRawSheetsClient:
2537
2537
  Successful Response
2538
2538
  """
2539
2539
  _response = await self._client_wrapper.httpx_client.request(
2540
- "api/v0/tools/sheets/table/get_rows",
2540
+ "api/v0/tools/sheets/table/get",
2541
2541
  method="POST",
2542
2542
  json={
2543
2543
  "asset_id": asset_id,
@@ -2581,8 +2581,8 @@ class AsyncRawSheetsClient:
2581
2581
  *,
2582
2582
  asset_id: str,
2583
2583
  row_data: typing.Sequence[typing.Dict[str, typing.Optional[str]]],
2584
+ table_name: str,
2584
2585
  table_id: typing.Optional[str] = OMIT,
2585
- table_name: typing.Optional[str] = OMIT,
2586
2586
  request_options: typing.Optional[RequestOptions] = None,
2587
2587
  ) -> AsyncHttpResponse[SheetOperationResponse]:
2588
2588
  """
@@ -2596,12 +2596,12 @@ class AsyncRawSheetsClient:
2596
2596
  row_data : typing.Sequence[typing.Dict[str, typing.Optional[str]]]
2597
2597
  Array of row objects where keys are column names and values are cell values
2598
2598
 
2599
+ table_name : str
2600
+ Table name to insert row into
2601
+
2599
2602
  table_id : typing.Optional[str]
2600
2603
  Table ID to insert row into
2601
2604
 
2602
- table_name : typing.Optional[str]
2603
- Table name to insert row into
2604
-
2605
2605
  request_options : typing.Optional[RequestOptions]
2606
2606
  Request-specific configuration.
2607
2607
 
@@ -12,9 +12,9 @@ class GetTableResponse(UniversalBaseModel):
12
12
  The ID of the spreadsheet asset
13
13
  """
14
14
 
15
- data: typing.List[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field()
15
+ columns: typing.List[typing.Dict[str, str]] = pydantic.Field()
16
16
  """
17
- Array of row objects with column names as keys
17
+ Array of column objects with name and other metadata
18
18
  """
19
19
 
20
20
  message: str = pydantic.Field()
@@ -22,6 +22,11 @@ class GetTableResponse(UniversalBaseModel):
22
22
  Success message or error description
23
23
  """
24
24
 
25
+ rows: typing.List[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field()
26
+ """
27
+ Array of row objects with column names as keys
28
+ """
29
+
25
30
  success: bool = pydantic.Field()
26
31
  """
27
32
  Whether the operation was successful
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: athena-intelligence
3
- Version: 0.1.212
3
+ Version: 0.1.213
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=CZNPAITFjyqBe0YR7Ps3bDMpB8ipQi6IZ3L2kYN3kTE,2392
27
+ athena/core/client_wrapper.py,sha256=Wv2oyTff006m0Gp_Kn77cFs81Ilj_jjnucsgPEMn4og,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
@@ -64,8 +64,8 @@ athena/tools/email/client.py,sha256=dOidOOOLHdfz2c3nykzyOa7nTftS91d2_aws0LTg8DU,
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
66
  athena/tools/sheets/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
67
- athena/tools/sheets/client.py,sha256=eG8uWf5-cJC5vTDH4NBvwsJB6ljMj4JNAzGc7nfaZYQ,58607
68
- athena/tools/sheets/raw_client.py,sha256=ULwZbn_Fqg8D62IYalIJ-SSYJKoycdLvzGUeGZf4aJc,95473
67
+ athena/tools/sheets/client.py,sha256=lKEmrjBCzZm3xteJRLp0FH0SS3x22Bzd1v7Pq9TUL8s,58573
68
+ athena/tools/sheets/raw_client.py,sha256=2YxL_kDuJBHpdSZpaWrY_WUjOfjK4YWBPb1TaXEUvPk,95371
69
69
  athena/tools/structured_data_extractor/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
70
70
  athena/tools/structured_data_extractor/client.py,sha256=V1FcGZTPbrlz2d9oQZhsj3UIN1ZlZfnqRdDXj16xiPs,10623
71
71
  athena/tools/structured_data_extractor/raw_client.py,sha256=1ZYZBssmf1jDomopeJ3PMRLql3zT4c7ssRNNLa1YrGE,11245
@@ -106,7 +106,7 @@ athena/types/general_agent_request.py,sha256=ltPew4FLKx795M9ktnsWbArLJHqTqhpP-R4
106
106
  athena/types/general_agent_response.py,sha256=G5LYQnZJeFdU3COK9Syyuk8rGvRYd1F_NeiDiu1zIFg,690
107
107
  athena/types/general_agent_response_message.py,sha256=P9JpetwgY2z_iSjFbiLZwuSv2Ez7g_hDvRkQo-31Gok,3071
108
108
  athena/types/general_agent_response_message_kwargs.py,sha256=XWMwp6WLAPiArBKU7NuuebTkq0jM8QVlTVfEfoldJOk,2170
109
- athena/types/get_table_response.py,sha256=vO2W6_rkFrbr3ykA10bB0fJBCprteyai5lNHbbhSyS4,943
109
+ athena/types/get_table_response.py,sha256=KztIDpd3J4jiUUOz0DAH_SLMA-2uLGWL_lZ345jYdbw,1084
110
110
  athena/types/id.py,sha256=6fnF__LI2KYyDjZwbs8y5sik8HoYPMRF7Ljihn1MBYY,121
111
111
  athena/types/image_url_content.py,sha256=SIlScFxuyfXpSU-xMLypitQK5gu_6ITjZYt64Dq9RYQ,589
112
112
  athena/types/input_message.py,sha256=MwgLCWH9mfUM5NFEV_AVjhS12ruNOxZxSXLcYKQ0rww,854
@@ -123,6 +123,6 @@ athena/types/text_content.py,sha256=tcVCPj3tHh5zQcTElr2tdCIjjfx3ZI63rKIlaG8vo64,
123
123
  athena/types/thread_status_response_out.py,sha256=UuSAvs9woL1i8RwvVRKsFUufN4A9jO3jsV47YMckvQU,1219
124
124
  athena/types/type.py,sha256=Gvs56nvBMPcQpOZkfPocGNNb7S05PuINianbT309QAQ,146
125
125
  athena/version.py,sha256=tnXYUugs9zF_pkVdem-QBorKSuhEOOuetkR57dADDxE,86
126
- athena_intelligence-0.1.212.dist-info/METADATA,sha256=dsk2nguBxRB3NQASypenaIZNlwky9BqhO1UDun2sw0I,5440
127
- athena_intelligence-0.1.212.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
128
- athena_intelligence-0.1.212.dist-info/RECORD,,
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,,