deeporigin-data-sdk 0.1.0a45__py3-none-any.whl → 0.1.0a47__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.
@@ -210,7 +210,13 @@ class BaseAPIResponse(Generic[R]):
210
210
  raise ValueError(f"Subclasses of httpx.Response cannot be passed to `cast_to`")
211
211
  return cast(R, response)
212
212
 
213
- if inspect.isclass(origin) and not issubclass(origin, BaseModel) and issubclass(origin, pydantic.BaseModel):
213
+ if (
214
+ inspect.isclass(
215
+ origin # pyright: ignore[reportUnknownArgumentType]
216
+ )
217
+ and not issubclass(origin, BaseModel)
218
+ and issubclass(origin, pydantic.BaseModel)
219
+ ):
214
220
  raise TypeError(
215
221
  "Pydantic models must subclass our base model type, e.g. `from deeporigin_data import BaseModel`"
216
222
  )
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "deeporigin_data"
4
- __version__ = "0.1.0-alpha.45" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.47" # x-release-please-version
@@ -6,7 +6,6 @@ from typing import Union, Iterable
6
6
  from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict
7
7
 
8
8
  from .._utils import PropertyInfo
9
- from .shared_params.row_filter_join import RowFilterJoin
10
9
 
11
10
  __all__ = [
12
11
  "ClientDescribeDatabaseStatsParams",
@@ -92,5 +91,7 @@ Filter: TypeAlias = Union[
92
91
  FilterRowFilterNullity,
93
92
  FilterRowFilterSet,
94
93
  FilterRowFilterSubstructure,
95
- RowFilterJoin,
94
+ "RowFilterJoin",
96
95
  ]
96
+
97
+ from .shared_params.row_filter_join import RowFilterJoin
@@ -6,7 +6,6 @@ from typing import List, Union, Iterable
6
6
  from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict
7
7
 
8
8
  from .._utils import PropertyInfo
9
- from .shared_params.row_filter_join import RowFilterJoin
10
9
 
11
10
  __all__ = [
12
11
  "ClientExportDatabaseParams",
@@ -112,7 +111,7 @@ Filter: TypeAlias = Union[
112
111
  FilterRowFilterNullity,
113
112
  FilterRowFilterSet,
114
113
  FilterRowFilterSubstructure,
115
- RowFilterJoin,
114
+ "RowFilterJoin",
116
115
  ]
117
116
 
118
117
 
@@ -120,3 +119,6 @@ class RowSort(TypedDict, total=False):
120
119
  column_id: Required[Annotated[str, PropertyInfo(alias="columnId")]]
121
120
 
122
121
  sort: Required[Literal["asc", "desc"]]
122
+
123
+
124
+ from .shared_params.row_filter_join import RowFilterJoin
@@ -6,7 +6,6 @@ from typing import List, Union, Iterable
6
6
  from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict
7
7
 
8
8
  from .._utils import PropertyInfo
9
- from .shared_params.row_filter_join import RowFilterJoin
10
9
 
11
10
  __all__ = [
12
11
  "ClientListDatabaseRowsParams",
@@ -110,7 +109,7 @@ Filter: TypeAlias = Union[
110
109
  FilterRowFilterNullity,
111
110
  FilterRowFilterSet,
112
111
  FilterRowFilterSubstructure,
113
- RowFilterJoin,
112
+ "RowFilterJoin",
114
113
  ]
115
114
 
116
115
 
@@ -118,3 +117,6 @@ class RowSort(TypedDict, total=False):
118
117
  column_id: Required[Annotated[str, PropertyInfo(alias="columnId")]]
119
118
 
120
119
  sort: Required[Literal["asc", "desc"]]
120
+
121
+
122
+ from .shared_params.row_filter_join import RowFilterJoin
@@ -9,7 +9,6 @@ from pydantic import Field as FieldInfo
9
9
 
10
10
  from ..._compat import PYDANTIC_V2
11
11
  from ..._models import BaseModel
12
- from .row_filter_join import RowFilterJoin
13
12
 
14
13
  __all__ = [
15
14
  "Condition",
@@ -86,9 +85,11 @@ Condition: TypeAlias = Union[
86
85
  RowFilterNullity,
87
86
  RowFilterSet,
88
87
  RowFilterSubstructure,
89
- RowFilterJoin,
88
+ "RowFilterJoin",
90
89
  ]
91
90
 
91
+ from .row_filter_join import RowFilterJoin
92
+
92
93
  if PYDANTIC_V2:
93
94
  RowFilterText.model_rebuild()
94
95
  RowFilterNumber.model_rebuild()
@@ -9,19 +9,20 @@ from pydantic import Field as FieldInfo
9
9
 
10
10
  from ..._compat import PYDANTIC_V2
11
11
  from ..._models import BaseModel
12
- from .condition import Condition
13
12
 
14
13
  __all__ = ["RowFilterJoin"]
15
14
 
16
15
 
17
16
  class RowFilterJoin(BaseModel):
18
- conditions: List[Condition]
17
+ conditions: List["Condition"]
19
18
 
20
19
  filter_type: Literal["join"] = FieldInfo(alias="filterType")
21
20
 
22
21
  join_type: Literal["and", "or"] = FieldInfo(alias="joinType")
23
22
 
24
23
 
24
+ from .condition import Condition
25
+
25
26
  if PYDANTIC_V2:
26
27
  RowFilterJoin.model_rebuild()
27
28
  else:
@@ -6,7 +6,6 @@ from typing import Union, Iterable
6
6
  from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict
7
7
 
8
8
  from ..._utils import PropertyInfo
9
- from .row_filter_join import RowFilterJoin
10
9
 
11
10
  __all__ = [
12
11
  "Condition",
@@ -85,5 +84,7 @@ Condition: TypeAlias = Union[
85
84
  RowFilterNullity,
86
85
  RowFilterSet,
87
86
  RowFilterSubstructure,
88
- RowFilterJoin,
87
+ "RowFilterJoin",
89
88
  ]
89
+
90
+ from .row_filter_join import RowFilterJoin
@@ -6,14 +6,16 @@ from typing import Iterable
6
6
  from typing_extensions import Literal, Required, Annotated, TypedDict
7
7
 
8
8
  from ..._utils import PropertyInfo
9
- from .condition import Condition
10
9
 
11
10
  __all__ = ["RowFilterJoin"]
12
11
 
13
12
 
14
13
  class RowFilterJoin(TypedDict, total=False):
15
- conditions: Required[Iterable[Condition]]
14
+ conditions: Required[Iterable["Condition"]]
16
15
 
17
16
  filter_type: Required[Annotated[Literal["join"], PropertyInfo(alias="filterType")]]
18
17
 
19
18
  join_type: Required[Annotated[Literal["and", "or"], PropertyInfo(alias="joinType")]]
19
+
20
+
21
+ from .condition import Condition
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deeporigin_data_sdk
3
- Version: 0.1.0a45
3
+ Version: 0.1.0a47
4
4
  Summary: The official Python library for the deeporigin_data API
5
5
  Project-URL: Homepage, https://github.com/deeporiginbio/deeporigin-data-sdk
6
6
  Project-URL: Repository, https://github.com/deeporiginbio/deeporigin-data-sdk
@@ -8,10 +8,10 @@ deeporigin_data/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,354
8
8
  deeporigin_data/_models.py,sha256=B6f-C-F-PbDp3jRKCLksaAS9osC2g1xs7DpoZV1dlUE,28659
9
9
  deeporigin_data/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
10
10
  deeporigin_data/_resource.py,sha256=tkm4gF9YRotE93j48jTDBSGs8wyVa0E5NS9fj19e38c,1148
11
- deeporigin_data/_response.py,sha256=Kj-Zi9_3rAr8jDDHy2yTG8SCMF2a7dilTyE-yQO7pag,28747
11
+ deeporigin_data/_response.py,sha256=2YDTjeNt93_FXFP8934KDSu28lsXNCgtOv8sSSXQHZ4,28871
12
12
  deeporigin_data/_streaming.py,sha256=yG857cOSJD3gbc7mEc2wqfvcPVLMGmYX4hBOqqIT5RE,10132
13
13
  deeporigin_data/_types.py,sha256=HI5vtFJGLEsyOrrWJRSRtUeOSrd8EdoM020wC51GvcI,6152
14
- deeporigin_data/_version.py,sha256=UZyI-KR0zkMZbmN32fqqRwkB0ejRODnDojAe5sNVrbk,176
14
+ deeporigin_data/_version.py,sha256=Ji8MEnMJIH5z2e-HbXcKICdeI9An8mxWWr_C0nGFIcU,176
15
15
  deeporigin_data/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  deeporigin_data/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
17
17
  deeporigin_data/_utils/_logs.py,sha256=R7dnUaDs2cdYbq1Ee16dHy863wdcTZRRzubw9KE0qNc,801
@@ -46,7 +46,7 @@ deeporigin_data/types/client_delete_workspace_params.py,sha256=r_815ExueeGMNkGU5
46
46
  deeporigin_data/types/client_describe_code_execution_params.py,sha256=-_QjRCsuGjdEmHYwJwTsdWCQmwaJo5_efy4iCkzqfSc,311
47
47
  deeporigin_data/types/client_describe_database_params.py,sha256=NNgvwMf-0HFsrTzrfnHG6SDy2PjONAgadNjT5sg9qKQ,401
48
48
  deeporigin_data/types/client_describe_database_row_params.py,sha256=WFa1M40OGmXUAHaxAPOX76Qzkhwz0D6XKdXemG8Ktu8,742
49
- deeporigin_data/types/client_describe_database_stats_params.py,sha256=NunuD2Q1sAR140PGGfmYLR686W6RCJeOg5_SE0qFflM,3039
49
+ deeporigin_data/types/client_describe_database_stats_params.py,sha256=xl6oqaN8SxEHTZQ9mErf5a6qw8dL9x4-N8HRNcttsDc,3042
50
50
  deeporigin_data/types/client_describe_file_params.py,sha256=u9Kzs4L8gXNf4aeQKt_yOcjGWccCa1WcM8J9Mi6m--8,418
51
51
  deeporigin_data/types/client_describe_hierarchy_params.py,sha256=nzjNkFlVGizVjUiTHoADy2hVzA7KkETlNtlmouYKYv4,486
52
52
  deeporigin_data/types/client_describe_row_params.py,sha256=ykhjrmfIeawbYQJcr6-pbkMVAfh3tev7ikzZsOMTh0k,677
@@ -55,11 +55,11 @@ deeporigin_data/types/client_download_file_params.py,sha256=6B-OV4kISwB3oG-UdZPv
55
55
  deeporigin_data/types/client_ensure_rows_params.py,sha256=rS2b2isZ9Kzp_U_z7jECc2Z2mh6HsFyIvsx4rCrvm3M,1407
56
56
  deeporigin_data/types/client_execute_code_async_params.py,sha256=Ohe8X-MGsuf_JzFiyd7_-UdbJn81CKW9UujKKEcOYJw,453
57
57
  deeporigin_data/types/client_execute_code_sync_params.py,sha256=4OUGuc1P5ATJz6ocQuL14te1pU9EZD5ocY9yHY4jUcE,451
58
- deeporigin_data/types/client_export_database_params.py,sha256=g2TvBccXENlxbLAIaL2LX-c_cmwQqBGc5h5hIq3sSzg,3638
58
+ deeporigin_data/types/client_export_database_params.py,sha256=jf-QYfhnNF-hJM2VSDexHFpnRG4DHP_FInjfVS2Rcak,3642
59
59
  deeporigin_data/types/client_get_code_execution_result_params.py,sha256=rtctDcOx0jKB2BiHbrxJZk1KkB9LhlgbGDoO_J3aHhI,346
60
60
  deeporigin_data/types/client_import_rows_params.py,sha256=G7QmOXZRH42cfd_XSHakk2uEcQ1iJlpDV9GlIFb1FfY,12868
61
61
  deeporigin_data/types/client_list_database_column_unique_values_v2_params.py,sha256=k5-FTiFeS30CcSn52CYgdhRM6DliSfh8KqKdq27huz8,524
62
- deeporigin_data/types/client_list_database_rows_params.py,sha256=BJJsIuTBBDTiTuxaqF5HSigv4AQ4DH8r-fi_yhVKqmU,3611
62
+ deeporigin_data/types/client_list_database_rows_params.py,sha256=aVDUuF1Ny-ZeAR_EF91d_l4vMTHEALXoNfEPO77zRCQ,3615
63
63
  deeporigin_data/types/client_list_files_params.py,sha256=DTtBgRGrbTLs7Ekp3sk2sDxpercjKG7lGcUytKYC14Q,692
64
64
  deeporigin_data/types/client_list_mentions_params.py,sha256=vEu9hsEjtkp8045IVl5mKcXM6rjj21PV879i8F4MZMQ,296
65
65
  deeporigin_data/types/client_list_row_back_references_params.py,sha256=JlflftXfNbOT5oGTEznVBGlCteOSUmSXGf5NfvcSzQc,478
@@ -108,19 +108,19 @@ deeporigin_data/types/update_workspace_response.py,sha256=jikZhBFlm8ycxP0z4op-yg
108
108
  deeporigin_data/types/shared/__init__.py,sha256=pYKaryHlFLkuhKqOrqy-7tuC-5jYgPHZ3McDCyPfFFc,567
109
109
  deeporigin_data/types/shared/add_column_base.py,sha256=U8cpfpPt0zbNbkVEwzU2ckw_XhXdNjQ3fcM12df621c,1184
110
110
  deeporigin_data/types/shared/add_column_union.py,sha256=gVn9S3jFu670Cnr1TTpY_jedCmy3VZGfpNa1JTLTxHU,1031
111
- deeporigin_data/types/shared/condition.py,sha256=EB1OG5Ttx1ZynHMG_3jAeYXzVrT1K5PHuMs5ElDFDQs,2840
111
+ deeporigin_data/types/shared/condition.py,sha256=VnR-uM4UnpU_KiVyWfMW09HXg8C0SozqwzDQvMqPUIM,2843
112
112
  deeporigin_data/types/shared/database.py,sha256=iwUbslESsQyB9TRK_S-592BQ8j-GAPUHderLeaJ0Uug,34258
113
113
  deeporigin_data/types/shared/database_row.py,sha256=kcvB3dqJDIKKc5dPGZ0txF2yqo6QXAziJRRhoYHhdkM,20981
114
114
  deeporigin_data/types/shared/describe_row_response.py,sha256=y41eJRkkLSQrm9A_lvwisBWVHH9_m2qUU6g9Sgp0nbA,538
115
115
  deeporigin_data/types/shared/file.py,sha256=ypKveZM0ya4jWyQUz83J8tpxaSWi2Aq6I_lN2ib8oUs,759
116
- deeporigin_data/types/shared/row_filter_join.py,sha256=mbWT8wbspTGKLzwSi5N4Qidh8AJgJu-iJhn5gSvnRp4,670
116
+ deeporigin_data/types/shared/row_filter_join.py,sha256=iGMX6qxnWnR3vmvGxCoACnbKWZSiQlgjTy3V1mvfg6A,673
117
117
  deeporigin_data/types/shared/workspace.py,sha256=hrViPgKOrIn5hs9D5vf_Pyl6wcIuhqW1iEzt_fKYqy8,1098
118
118
  deeporigin_data/types/shared_params/__init__.py,sha256=ng9sb1I2DfZ6VrWaVU0sUyR-GhVy1M33I_vWR-VUZkk,316
119
119
  deeporigin_data/types/shared_params/add_column_base.py,sha256=s8cbOjluJmf4Pzmg_v_FzhON6Cgc6T82ZjLHmeEdJhY,1235
120
120
  deeporigin_data/types/shared_params/add_column_union.py,sha256=uEJwB-xtbKY19Hq7a2vIrGdDfPcHIBwp9_R63Qf9KO0,1036
121
- deeporigin_data/types/shared_params/condition.py,sha256=5hbTmfZ-94Hk7Pugl_SirBtuexQNVS2moyvh1jqeptw,2720
122
- deeporigin_data/types/shared_params/row_filter_join.py,sha256=IU9uWStuIBpzkAaMR19CVAYfnmaDY-Xj3v3k_RPElq8,591
123
- deeporigin_data_sdk-0.1.0a45.dist-info/METADATA,sha256=v-uxXlq0VFgHt1OVv3H8GvHVbZdsdwYnfNnDiJrkEII,13402
124
- deeporigin_data_sdk-0.1.0a45.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
125
- deeporigin_data_sdk-0.1.0a45.dist-info/licenses/LICENSE,sha256=jT1To9IZ3XdRqtpv8wDrIwpatTUvf5yP0sFYhEtJVZY,11345
126
- deeporigin_data_sdk-0.1.0a45.dist-info/RECORD,,
121
+ deeporigin_data/types/shared_params/condition.py,sha256=ftu-hdGv05aTv4GL9bRyf4kQXl27kaPpt3P4KKdwmNM,2723
122
+ deeporigin_data/types/shared_params/row_filter_join.py,sha256=QIo2yhjJJZLcGF-hBF7YcLcYHLhf5uq5EkQG-0WJjtU,595
123
+ deeporigin_data_sdk-0.1.0a47.dist-info/METADATA,sha256=aDgchygBPzIu3W9qe-XsoIlS_snS5dYxnGm0gt_rDn4,13402
124
+ deeporigin_data_sdk-0.1.0a47.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
125
+ deeporigin_data_sdk-0.1.0a47.dist-info/licenses/LICENSE,sha256=jT1To9IZ3XdRqtpv8wDrIwpatTUvf5yP0sFYhEtJVZY,11345
126
+ deeporigin_data_sdk-0.1.0a47.dist-info/RECORD,,