deeporigin-data-sdk 0.1.0a41__py3-none-any.whl → 0.1.0a43__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.
@@ -767,6 +767,9 @@ else:
767
767
 
768
768
  class SyncHttpxClientWrapper(DefaultHttpxClient):
769
769
  def __del__(self) -> None:
770
+ if self.is_closed:
771
+ return
772
+
770
773
  try:
771
774
  self.close()
772
775
  except Exception:
@@ -1334,6 +1337,9 @@ else:
1334
1337
 
1335
1338
  class AsyncHttpxClientWrapper(DefaultAsyncHttpxClient):
1336
1339
  def __del__(self) -> None:
1340
+ if self.is_closed:
1341
+ return
1342
+
1337
1343
  try:
1338
1344
  # TODO(someday): support non asyncio runtimes here
1339
1345
  asyncio.get_running_loop().create_task(self.aclose())
@@ -1452,6 +1452,7 @@ class DeeporiginData(SyncAPIClient):
1452
1452
  *,
1453
1453
  column_id: str,
1454
1454
  database_id: str,
1455
+ limit: float | NotGiven = NOT_GIVEN,
1455
1456
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1456
1457
  # The extra values given here take precedence over values defined on the client or passed to this method.
1457
1458
  extra_headers: Headers | None = None,
@@ -1477,6 +1478,7 @@ class DeeporiginData(SyncAPIClient):
1477
1478
  {
1478
1479
  "column_id": column_id,
1479
1480
  "database_id": database_id,
1481
+ "limit": limit,
1480
1482
  },
1481
1483
  client_list_database_column_unique_values_v2_params.ClientListDatabaseColumnUniqueValuesV2Params,
1482
1484
  ),
@@ -3282,6 +3284,7 @@ class AsyncDeeporiginData(AsyncAPIClient):
3282
3284
  *,
3283
3285
  column_id: str,
3284
3286
  database_id: str,
3287
+ limit: float | NotGiven = NOT_GIVEN,
3285
3288
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
3286
3289
  # The extra values given here take precedence over values defined on the client or passed to this method.
3287
3290
  extra_headers: Headers | None = None,
@@ -3307,6 +3310,7 @@ class AsyncDeeporiginData(AsyncAPIClient):
3307
3310
  {
3308
3311
  "column_id": column_id,
3309
3312
  "database_id": database_id,
3313
+ "limit": limit,
3310
3314
  },
3311
3315
  client_list_database_column_unique_values_v2_params.ClientListDatabaseColumnUniqueValuesV2Params,
3312
3316
  ),
@@ -488,7 +488,11 @@ def construct_type(*, value: object, type_: object) -> object:
488
488
  _, items_type = get_args(type_) # Dict[_, items_type]
489
489
  return {key: construct_type(value=item, type_=items_type) for key, item in value.items()}
490
490
 
491
- if not is_literal_type(type_) and (issubclass(origin, BaseModel) or issubclass(origin, GenericModel)):
491
+ if (
492
+ not is_literal_type(type_)
493
+ and inspect.isclass(origin)
494
+ and (issubclass(origin, BaseModel) or issubclass(origin, GenericModel))
495
+ ):
492
496
  if is_list(value):
493
497
  return [cast(Any, type_).construct(**entry) if is_mapping(entry) else entry for entry in value]
494
498
 
@@ -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.41" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.43" # x-release-please-version
@@ -13,3 +13,5 @@ class ClientListDatabaseColumnUniqueValuesV2Params(TypedDict, total=False):
13
13
  column_id: Required[Annotated[str, PropertyInfo(alias="columnId")]]
14
14
 
15
15
  database_id: Required[Annotated[str, PropertyInfo(alias="databaseId")]]
16
+
17
+ limit: float
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deeporigin_data_sdk
3
- Version: 0.1.0a41
3
+ Version: 0.1.0a43
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
@@ -1,17 +1,17 @@
1
1
  deeporigin_data/__init__.py,sha256=g5vq9kCCiWBl8XgJzXdUB9AIdRypOEj9pQH8WJJEVxo,2533
2
- deeporigin_data/_base_client.py,sha256=S5oZPMoWvnH4vdTsMwR8KYI6qg4OF6lydyeTmXwndwA,68045
3
- deeporigin_data/_client.py,sha256=vau88VDbR05t1cCbXqXvbTwGMFrJlDRVT5vlwAwndn4,170693
2
+ deeporigin_data/_base_client.py,sha256=7yBjKRioXOZhI__7FFCD4TFC4DSW59MEeJv8HrAPWHQ,68139
3
+ deeporigin_data/_client.py,sha256=X-hJo3fWpJjWLNMrGzZnwpmARwse3NwcdO0ztp1UYEw,170855
4
4
  deeporigin_data/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
5
5
  deeporigin_data/_constants.py,sha256=JE8kyZa2Q4NK_i4fO--8siEYTzeHnT0fYbOFDgDP4uk,464
6
6
  deeporigin_data/_exceptions.py,sha256=_25MmrwuBf1sxAJESpY5sPn1o5E-aUymr6wDuRSWIng,3236
7
7
  deeporigin_data/_files.py,sha256=mf4dOgL4b0ryyZlbqLhggD3GVgDf6XxdGFAgce01ugE,3549
8
- deeporigin_data/_models.py,sha256=iumFIitiWZTGITgF2nwOmEPIJGIEeJaUXhDlpaSN9Wg,28589
8
+ deeporigin_data/_models.py,sha256=qpmTQHj3NFzkBiSiz0W8MO18UcOOqQPMBucMuBFUx7I,28649
9
9
  deeporigin_data/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
10
10
  deeporigin_data/_resource.py,sha256=tkm4gF9YRotE93j48jTDBSGs8wyVa0E5NS9fj19e38c,1148
11
11
  deeporigin_data/_response.py,sha256=Kj-Zi9_3rAr8jDDHy2yTG8SCMF2a7dilTyE-yQO7pag,28747
12
12
  deeporigin_data/_streaming.py,sha256=yG857cOSJD3gbc7mEc2wqfvcPVLMGmYX4hBOqqIT5RE,10132
13
13
  deeporigin_data/_types.py,sha256=HI5vtFJGLEsyOrrWJRSRtUeOSrd8EdoM020wC51GvcI,6152
14
- deeporigin_data/_version.py,sha256=ZXkLc5wmxiXZM4ODvCQVbjJec__rSSF_uzWFH0BCGsQ,176
14
+ deeporigin_data/_version.py,sha256=D0EWScJ2TwqnrsT6A5BABQlkZXLPiljIhG_9Uq_plbY,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
@@ -58,7 +58,7 @@ deeporigin_data/types/client_execute_code_sync_params.py,sha256=4OUGuc1P5ATJz6oc
58
58
  deeporigin_data/types/client_export_database_params.py,sha256=g2TvBccXENlxbLAIaL2LX-c_cmwQqBGc5h5hIq3sSzg,3638
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
- deeporigin_data/types/client_list_database_column_unique_values_v2_params.py,sha256=_ENSP8YCgkdEYy4UjN_g230CuqXmYN7o1b7v3o0FEOY,506
61
+ deeporigin_data/types/client_list_database_column_unique_values_v2_params.py,sha256=k5-FTiFeS30CcSn52CYgdhRM6DliSfh8KqKdq27huz8,524
62
62
  deeporigin_data/types/client_list_database_rows_params.py,sha256=BJJsIuTBBDTiTuxaqF5HSigv4AQ4DH8r-fi_yhVKqmU,3611
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
@@ -120,7 +120,7 @@ deeporigin_data/types/shared_params/add_column_base.py,sha256=s8cbOjluJmf4Pzmg_v
120
120
  deeporigin_data/types/shared_params/add_column_union.py,sha256=uEJwB-xtbKY19Hq7a2vIrGdDfPcHIBwp9_R63Qf9KO0,1036
121
121
  deeporigin_data/types/shared_params/condition.py,sha256=5hbTmfZ-94Hk7Pugl_SirBtuexQNVS2moyvh1jqeptw,2720
122
122
  deeporigin_data/types/shared_params/row_filter_join.py,sha256=IU9uWStuIBpzkAaMR19CVAYfnmaDY-Xj3v3k_RPElq8,591
123
- deeporigin_data_sdk-0.1.0a41.dist-info/METADATA,sha256=pDZME2O0K7ww_sIyXXFSvDdzMkb_Y-s9icmUrjaawNo,13421
124
- deeporigin_data_sdk-0.1.0a41.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
125
- deeporigin_data_sdk-0.1.0a41.dist-info/licenses/LICENSE,sha256=jT1To9IZ3XdRqtpv8wDrIwpatTUvf5yP0sFYhEtJVZY,11345
126
- deeporigin_data_sdk-0.1.0a41.dist-info/RECORD,,
123
+ deeporigin_data_sdk-0.1.0a43.dist-info/METADATA,sha256=4H5zwAy6AO71SLPyceRi8ofZxlXOJ8bW2nEugFzWTaU,13421
124
+ deeporigin_data_sdk-0.1.0a43.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
125
+ deeporigin_data_sdk-0.1.0a43.dist-info/licenses/LICENSE,sha256=jT1To9IZ3XdRqtpv8wDrIwpatTUvf5yP0sFYhEtJVZY,11345
126
+ deeporigin_data_sdk-0.1.0a43.dist-info/RECORD,,