apitable 1.4.2__tar.gz → 1.5.0__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.
Files changed (37) hide show
  1. {apitable-1.4.2 → apitable-1.5.0}/PKG-INFO +2 -2
  2. {apitable-1.4.2 → apitable-1.5.0}/apitable/types/field.py +5 -2
  3. {apitable-1.4.2 → apitable-1.5.0}/pyproject.toml +2 -2
  4. {apitable-1.4.2 → apitable-1.5.0}/LICENSE +0 -0
  5. {apitable-1.4.2 → apitable-1.5.0}/README.md +0 -0
  6. {apitable-1.4.2 → apitable-1.5.0}/apitable/__init__.py +0 -0
  7. {apitable-1.4.2 → apitable-1.5.0}/apitable/apitable.py +0 -0
  8. {apitable-1.4.2 → apitable-1.5.0}/apitable/const.py +0 -0
  9. {apitable-1.4.2 → apitable-1.5.0}/apitable/datasheet/__init__.py +0 -0
  10. {apitable-1.4.2 → apitable-1.5.0}/apitable/datasheet/datasheet.py +0 -0
  11. {apitable-1.4.2 → apitable-1.5.0}/apitable/datasheet/datasheet_manager.py +0 -0
  12. {apitable-1.4.2 → apitable-1.5.0}/apitable/datasheet/field_manager.py +0 -0
  13. {apitable-1.4.2 → apitable-1.5.0}/apitable/datasheet/query_set.py +0 -0
  14. {apitable-1.4.2 → apitable-1.5.0}/apitable/datasheet/record.py +0 -0
  15. {apitable-1.4.2 → apitable-1.5.0}/apitable/datasheet/record_manager.py +0 -0
  16. {apitable-1.4.2 → apitable-1.5.0}/apitable/datasheet/view_manager.py +0 -0
  17. {apitable-1.4.2 → apitable-1.5.0}/apitable/exceptions.py +0 -0
  18. {apitable-1.4.2 → apitable-1.5.0}/apitable/node/__init__.py +0 -0
  19. {apitable-1.4.2 → apitable-1.5.0}/apitable/node/node_manager.py +0 -0
  20. {apitable-1.4.2 → apitable-1.5.0}/apitable/request.py +0 -0
  21. {apitable-1.4.2 → apitable-1.5.0}/apitable/space/__init__.py +0 -0
  22. {apitable-1.4.2 → apitable-1.5.0}/apitable/space/space.py +0 -0
  23. {apitable-1.4.2 → apitable-1.5.0}/apitable/space/space_manager.py +0 -0
  24. {apitable-1.4.2 → apitable-1.5.0}/apitable/types/__init__.py +0 -0
  25. {apitable-1.4.2 → apitable-1.5.0}/apitable/types/embedlink.py +0 -0
  26. {apitable-1.4.2 → apitable-1.5.0}/apitable/types/node.py +0 -0
  27. {apitable-1.4.2 → apitable-1.5.0}/apitable/types/record.py +0 -0
  28. {apitable-1.4.2 → apitable-1.5.0}/apitable/types/response.py +0 -0
  29. {apitable-1.4.2 → apitable-1.5.0}/apitable/types/space.py +0 -0
  30. {apitable-1.4.2 → apitable-1.5.0}/apitable/types/unit_model.py +0 -0
  31. {apitable-1.4.2 → apitable-1.5.0}/apitable/types/view.py +0 -0
  32. {apitable-1.4.2 → apitable-1.5.0}/apitable/unit/__init__.py +0 -0
  33. {apitable-1.4.2 → apitable-1.5.0}/apitable/unit/member.py +0 -0
  34. {apitable-1.4.2 → apitable-1.5.0}/apitable/unit/role.py +0 -0
  35. {apitable-1.4.2 → apitable-1.5.0}/apitable/unit/team.py +0 -0
  36. {apitable-1.4.2 → apitable-1.5.0}/apitable/unit/unit.py +0 -0
  37. {apitable-1.4.2 → apitable-1.5.0}/apitable/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apitable
3
- Version: 1.4.2
3
+ Version: 1.5.0
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.5.3)
18
+ Requires-Dist: pydantic (>=2.5.3,<3.0.0)
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)
@@ -181,8 +181,11 @@ class MetaField(BaseModel):
181
181
  property: Any = None
182
182
 
183
183
  def __init__(self, property=None, **data) -> None:
184
- property_model = self.get_property_by_type(data['type'])
185
- _property = property_model(**property) if property_model else property
184
+ property_model = self.get_property_by_type(data.get('type'))
185
+ if property_model and isinstance(property, dict):
186
+ _property = property_model(**property)
187
+ else:
188
+ _property = property
186
189
  super().__init__(property=_property, **data)
187
190
 
188
191
  @staticmethod
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "apitable"
3
- version = "1.4.2"
3
+ version = "1.5.0"
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.5.3"
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