apitable 1.4.1__tar.gz → 1.4.2__tar.gz
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.
- {apitable-1.4.1 → apitable-1.4.2}/PKG-INFO +2 -2
- {apitable-1.4.1 → apitable-1.4.2}/apitable/datasheet/datasheet.py +12 -1
- {apitable-1.4.1 → apitable-1.4.2}/apitable/types/node.py +1 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/types/response.py +2 -0
- {apitable-1.4.1 → apitable-1.4.2}/pyproject.toml +2 -2
- {apitable-1.4.1 → apitable-1.4.2}/LICENSE +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/README.md +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/__init__.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/apitable.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/const.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/datasheet/__init__.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/datasheet/datasheet_manager.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/datasheet/field_manager.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/datasheet/query_set.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/datasheet/record.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/datasheet/record_manager.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/datasheet/view_manager.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/exceptions.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/node/__init__.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/node/node_manager.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/request.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/space/__init__.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/space/space.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/space/space_manager.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/types/__init__.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/types/embedlink.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/types/field.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/types/record.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/types/space.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/types/unit_model.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/types/view.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/unit/__init__.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/unit/member.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/unit/role.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/unit/team.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/unit/unit.py +0 -0
- {apitable-1.4.1 → apitable-1.4.2}/apitable/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: apitable
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.2
|
|
4
4
|
Summary: APITable OpenAPI Python SDK
|
|
5
5
|
Author: APITable Ltd.
|
|
6
6
|
Author-email: dev@apitable.com
|
|
@@ -15,7 +15,7 @@ Requires-Dist: charset-normalizer (>=3.2.0,<4.0.0)
|
|
|
15
15
|
Requires-Dist: environs (>=9.5.0,<10.0.0)
|
|
16
16
|
Requires-Dist: idna (>=3.4,<4.0)
|
|
17
17
|
Requires-Dist: marshmallow (>=3.20.1,<4.0.0)
|
|
18
|
-
Requires-Dist: pydantic (==2.
|
|
18
|
+
Requires-Dist: pydantic (==2.5.3)
|
|
19
19
|
Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
|
|
20
20
|
Requires-Dist: requests (>=2.31.0,<3.0.0)
|
|
21
21
|
Requires-Dist: urllib3 (>=2.0.4,<3.0.0)
|
|
@@ -57,6 +57,11 @@ class Datasheet:
|
|
|
57
57
|
return urljoin(self.apitable.api_base,
|
|
58
58
|
f"/fusion/v1/datasheets/{self.id}/records")
|
|
59
59
|
|
|
60
|
+
@property
|
|
61
|
+
def _record_api_endpoint_v3(self):
|
|
62
|
+
return urljoin(self.apitable.api_base,
|
|
63
|
+
f"/fusion/v3/datasheets/{self.id}/records")
|
|
64
|
+
|
|
60
65
|
@property
|
|
61
66
|
@timed_lru_cache(seconds=300)
|
|
62
67
|
def fields(self):
|
|
@@ -137,6 +142,12 @@ class Datasheet:
|
|
|
137
142
|
"""
|
|
138
143
|
Paginate to get data
|
|
139
144
|
"""
|
|
145
|
+
|
|
146
|
+
is_v3 = bool(kwargs.get("isV3", False))
|
|
147
|
+
endpoint = self._record_api_endpoint
|
|
148
|
+
if is_v3:
|
|
149
|
+
endpoint = self._record_api_endpoint_v3
|
|
150
|
+
|
|
140
151
|
params = {}
|
|
141
152
|
for key in kwargs:
|
|
142
153
|
if key in API_GET_DATASHEET_QS_SET:
|
|
@@ -147,7 +158,7 @@ class Datasheet:
|
|
|
147
158
|
else:
|
|
148
159
|
raise ErrorSortParams('The format of the sort parameter is incorrect')
|
|
149
160
|
params.update({key: params_value})
|
|
150
|
-
resp = self.apitable.request.get(
|
|
161
|
+
resp = self.apitable.request.get(endpoint, params=params)
|
|
151
162
|
return handle_response(resp, GETRecordResponse)
|
|
152
163
|
|
|
153
164
|
def get_records_all(self, **kwargs) -> List[RawRecord]:
|
|
@@ -104,9 +104,11 @@ class GETNodeListResponseData(BaseModel):
|
|
|
104
104
|
class GETNodeListResponse(ResponseBase):
|
|
105
105
|
data: GETNodeListResponseData
|
|
106
106
|
|
|
107
|
+
|
|
107
108
|
class GETSearchNodeListResponseData(BaseModel):
|
|
108
109
|
nodes: List[NodeSearchInfo]
|
|
109
110
|
|
|
111
|
+
|
|
110
112
|
class GETSearchNodeListResponse(ResponseBase):
|
|
111
113
|
data: GETSearchNodeListResponseData
|
|
112
114
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "apitable"
|
|
3
|
-
version = "1.4.
|
|
3
|
+
version = "1.4.2"
|
|
4
4
|
description = "APITable OpenAPI Python SDK"
|
|
5
5
|
authors = ["APITable Ltd. <dev@apitable.com>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -12,7 +12,7 @@ charset-normalizer = "^3.2.0"
|
|
|
12
12
|
environs = "^9.5.0"
|
|
13
13
|
idna = "^3.4"
|
|
14
14
|
marshmallow = "^3.20.1"
|
|
15
|
-
pydantic = "2.
|
|
15
|
+
pydantic = "2.5.3"
|
|
16
16
|
python-dotenv = "^1.0.0"
|
|
17
17
|
requests = "^2.31.0"
|
|
18
18
|
urllib3 = "^2.0.4"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|