deeporigin-data-sdk 0.1.0a36__tar.gz → 0.1.0a38__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.
- deeporigin_data_sdk-0.1.0a38/.release-please-manifest.json +3 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/CHANGELOG.md +17 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/PKG-INFO +14 -2
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/README.md +12 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/pyproject.toml +2 -2
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/requirements-dev.lock +1 -1
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_client.py +1 -2
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_models.py +3 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_response.py +10 -10
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_utils/__init__.py +1 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_utils/_typing.py +30 -1
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_version.py +1 -1
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_add_database_column_params.py +22 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_import_rows_params.py +22 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/shared/add_column_base.py +2 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/shared/add_column_union.py +2 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/shared_params/add_column_base.py +2 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/shared_params/add_column_union.py +2 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/api_resources/test_client.py +6 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/test_models.py +17 -1
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/utils.py +4 -0
- deeporigin_data_sdk-0.1.0a36/.release-please-manifest.json +0 -3
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/.gitignore +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/CONTRIBUTING.md +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/LICENSE +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/SECURITY.md +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/api.md +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/bin/check-release-environment +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/bin/publish-pypi +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/examples/.keep +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/mypy.ini +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/noxfile.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/release-please-config.json +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/requirements.lock +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/__init__.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_base_client.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_compat.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_constants.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_exceptions.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_files.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_qs.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_resource.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_streaming.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_types.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_utils/_logs.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_utils/_proxy.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_utils/_reflection.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_utils/_streams.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_utils/_sync.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_utils/_transform.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_utils/_utils.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/lib/.keep +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/py.typed +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/resources/__init__.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/__init__.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/add_database_column_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/chat_create_thread_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/chat_list_messages_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_archive_files_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_chat_create_thread_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_chat_list_messages_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_chat_send_message_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_configure_column_select_options_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_convert_id_format_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_create_database_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_create_file_download_url_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_create_file_upload_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_create_workspace_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_delete_database_column_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_delete_database_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_delete_rows_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_delete_workspace_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_describe_code_execution_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_describe_database_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_describe_database_row_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_describe_database_stats_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_describe_file_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_describe_hierarchy_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_describe_row_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_describe_workspace_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_download_file_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_ensure_rows_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_execute_code_async_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_execute_code_sync_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_export_database_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_get_code_execution_result_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_list_database_column_unique_values_v2_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_list_database_rows_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_list_files_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_list_mentions_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_list_row_back_references_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_list_rows_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_lock_database_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_parse_base_sequence_data_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_resolve_ids_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_unlock_database_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_update_database_column_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_update_database_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/client_update_workspace_params.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/configure_column_select_options_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/convert_id_format_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/create_database_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/create_file_download_url_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/create_file_upload_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/create_workspace_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/delete_database_column_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/delete_database_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/delete_rows_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/delete_workspace_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/describe_code_execution_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/describe_database_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/describe_database_row_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/describe_database_stats_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/describe_file_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/describe_hierarchy_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/describe_workspace_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/ensure_rows_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/execute_code_async_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/execute_code_sync_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/import_rows_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/list_database_column_unique_values_v2_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/list_database_rows_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/list_files_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/list_mentions_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/list_row_back_references_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/list_rows_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/lock_database_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/parse_base_sequence_data_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/resolve_ids_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/shared/__init__.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/shared/condition.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/shared/database.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/shared/database_row.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/shared/describe_row_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/shared/file.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/shared/row_filter_join.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/shared/workspace.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/shared_params/__init__.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/shared_params/condition.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/shared_params/row_filter_join.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/unlock_database_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/update_database_column_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/update_database_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/update_workspace_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/__init__.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/api_resources/__init__.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/conftest.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/sample_file.txt +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/test_client.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/test_deepcopy.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/test_extract_files.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/test_files.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/test_qs.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/test_required_args.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/test_response.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/test_streaming.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/test_transform.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/test_utils/test_proxy.py +0 -0
- {deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/test_utils/test_typing.py +0 -0
@@ -1,5 +1,22 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.1.0-alpha.38 (2024-12-17)
|
4
|
+
|
5
|
+
Full Changelog: [v0.1.0-alpha.37...v0.1.0-alpha.38](https://github.com/deeporiginbio/deeporigin-data-sdk/compare/v0.1.0-alpha.37...v0.1.0-alpha.38)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** api update ([#149](https://github.com/deeporiginbio/deeporigin-data-sdk/issues/149)) ([8412ffe](https://github.com/deeporiginbio/deeporigin-data-sdk/commit/8412ffeb6a0cba3f038cda66e4333a2973e5218b))
|
10
|
+
|
11
|
+
## 0.1.0-alpha.37 (2024-12-17)
|
12
|
+
|
13
|
+
Full Changelog: [v0.1.0-alpha.36...v0.1.0-alpha.37](https://github.com/deeporiginbio/deeporigin-data-sdk/compare/v0.1.0-alpha.36...v0.1.0-alpha.37)
|
14
|
+
|
15
|
+
### Chores
|
16
|
+
|
17
|
+
* **internal:** codegen related update ([#145](https://github.com/deeporiginbio/deeporigin-data-sdk/issues/145)) ([3cddfeb](https://github.com/deeporiginbio/deeporigin-data-sdk/commit/3cddfeb41f98d1820395bacf3319cb896bdbbfc4))
|
18
|
+
* **internal:** codegen related update ([#147](https://github.com/deeporiginbio/deeporigin-data-sdk/issues/147)) ([bd3367f](https://github.com/deeporiginbio/deeporigin-data-sdk/commit/bd3367fbb23da5e56b14daa231ff9954dcff8355))
|
19
|
+
|
3
20
|
## 0.1.0-alpha.36 (2024-12-16)
|
4
21
|
|
5
22
|
Full Changelog: [v0.1.0-alpha.35...v0.1.0-alpha.36](https://github.com/deeporiginbio/deeporigin-data-sdk/compare/v0.1.0-alpha.35...v0.1.0-alpha.36)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: deeporigin_data_sdk
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.0a38
|
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
|
@@ -27,7 +27,7 @@ Requires-Dist: distro<2,>=1.7.0
|
|
27
27
|
Requires-Dist: httpx<1,>=0.23.0
|
28
28
|
Requires-Dist: pydantic<3,>=1.9.0
|
29
29
|
Requires-Dist: sniffio
|
30
|
-
Requires-Dist: typing-extensions<5,>=4.
|
30
|
+
Requires-Dist: typing-extensions<5,>=4.10
|
31
31
|
Description-Content-Type: text/markdown
|
32
32
|
|
33
33
|
# Deeporigin Data Python API library
|
@@ -346,6 +346,18 @@ client.with_options(http_client=DefaultHttpxClient(...))
|
|
346
346
|
|
347
347
|
By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
|
348
348
|
|
349
|
+
```py
|
350
|
+
from deeporigin_data import DeeporiginData
|
351
|
+
|
352
|
+
with DeeporiginData(
|
353
|
+
org_id="My Org ID",
|
354
|
+
) as client:
|
355
|
+
# make requests here
|
356
|
+
...
|
357
|
+
|
358
|
+
# HTTP client is now closed
|
359
|
+
```
|
360
|
+
|
349
361
|
## Versioning
|
350
362
|
|
351
363
|
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
|
@@ -314,6 +314,18 @@ client.with_options(http_client=DefaultHttpxClient(...))
|
|
314
314
|
|
315
315
|
By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
|
316
316
|
|
317
|
+
```py
|
318
|
+
from deeporigin_data import DeeporiginData
|
319
|
+
|
320
|
+
with DeeporiginData(
|
321
|
+
org_id="My Org ID",
|
322
|
+
) as client:
|
323
|
+
# make requests here
|
324
|
+
...
|
325
|
+
|
326
|
+
# HTTP client is now closed
|
327
|
+
```
|
328
|
+
|
317
329
|
## Versioning
|
318
330
|
|
319
331
|
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "deeporigin_data_sdk"
|
3
|
-
version = "0.1.0-alpha.
|
3
|
+
version = "0.1.0-alpha.38"
|
4
4
|
description = "The official Python library for the deeporigin_data API"
|
5
5
|
dynamic = ["readme"]
|
6
6
|
license = "Apache-2.0"
|
@@ -10,7 +10,7 @@ authors = [
|
|
10
10
|
dependencies = [
|
11
11
|
"httpx>=0.23.0, <1",
|
12
12
|
"pydantic>=1.9.0, <3",
|
13
|
-
"typing-extensions>=4.
|
13
|
+
"typing-extensions>=4.10, <5",
|
14
14
|
"anyio>=3.5.0, <5",
|
15
15
|
"distro>=1.7.0, <2",
|
16
16
|
"sniffio",
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_client.py
RENAMED
@@ -8,7 +8,7 @@ from typing_extensions import Self, Literal, override
|
|
8
8
|
|
9
9
|
import httpx
|
10
10
|
|
11
|
-
from . import
|
11
|
+
from . import _exceptions
|
12
12
|
from ._qs import Querystring
|
13
13
|
from .types import (
|
14
14
|
client_list_rows_params,
|
@@ -141,7 +141,6 @@ __all__ = [
|
|
141
141
|
"Transport",
|
142
142
|
"ProxiesTypes",
|
143
143
|
"RequestOptions",
|
144
|
-
"resources",
|
145
144
|
"DeeporiginData",
|
146
145
|
"AsyncDeeporiginData",
|
147
146
|
"Client",
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_models.py
RENAMED
@@ -46,6 +46,7 @@ from ._utils import (
|
|
46
46
|
strip_not_given,
|
47
47
|
extract_type_arg,
|
48
48
|
is_annotated_type,
|
49
|
+
is_type_alias_type,
|
49
50
|
strip_annotated_type,
|
50
51
|
)
|
51
52
|
from ._compat import (
|
@@ -428,6 +429,8 @@ def construct_type(*, value: object, type_: object) -> object:
|
|
428
429
|
# we allow `object` as the input type because otherwise, passing things like
|
429
430
|
# `Literal['value']` will be reported as a type error by type checkers
|
430
431
|
type_ = cast("type[object]", type_)
|
432
|
+
if is_type_alias_type(type_):
|
433
|
+
type_ = type_.__value__ # type: ignore[unreachable]
|
431
434
|
|
432
435
|
# unwrap `Annotated[T, ...]` -> `T`
|
433
436
|
if is_annotated_type(type_):
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_response.py
RENAMED
@@ -25,7 +25,7 @@ import httpx
|
|
25
25
|
import pydantic
|
26
26
|
|
27
27
|
from ._types import NoneType
|
28
|
-
from ._utils import is_given, extract_type_arg, is_annotated_type, extract_type_var_from_base
|
28
|
+
from ._utils import is_given, extract_type_arg, is_annotated_type, is_type_alias_type, extract_type_var_from_base
|
29
29
|
from ._models import BaseModel, is_basemodel
|
30
30
|
from ._constants import RAW_RESPONSE_HEADER, OVERRIDE_CAST_TO_HEADER
|
31
31
|
from ._streaming import Stream, AsyncStream, is_stream_class_type, extract_stream_chunk_type
|
@@ -126,9 +126,15 @@ class BaseAPIResponse(Generic[R]):
|
|
126
126
|
)
|
127
127
|
|
128
128
|
def _parse(self, *, to: type[_T] | None = None) -> R | _T:
|
129
|
+
cast_to = to if to is not None else self._cast_to
|
130
|
+
|
131
|
+
# unwrap `TypeAlias('Name', T)` -> `T`
|
132
|
+
if is_type_alias_type(cast_to):
|
133
|
+
cast_to = cast_to.__value__ # type: ignore[unreachable]
|
134
|
+
|
129
135
|
# unwrap `Annotated[T, ...]` -> `T`
|
130
|
-
if
|
131
|
-
|
136
|
+
if cast_to and is_annotated_type(cast_to):
|
137
|
+
cast_to = extract_type_arg(cast_to, 0)
|
132
138
|
|
133
139
|
if self._is_sse_stream:
|
134
140
|
if to:
|
@@ -164,18 +170,12 @@ class BaseAPIResponse(Generic[R]):
|
|
164
170
|
return cast(
|
165
171
|
R,
|
166
172
|
stream_cls(
|
167
|
-
cast_to=
|
173
|
+
cast_to=cast_to,
|
168
174
|
response=self.http_response,
|
169
175
|
client=cast(Any, self._client),
|
170
176
|
),
|
171
177
|
)
|
172
178
|
|
173
|
-
cast_to = to if to is not None else self._cast_to
|
174
|
-
|
175
|
-
# unwrap `Annotated[T, ...]` -> `T`
|
176
|
-
if is_annotated_type(cast_to):
|
177
|
-
cast_to = extract_type_arg(cast_to, 0)
|
178
|
-
|
179
179
|
if cast_to is NoneType:
|
180
180
|
return cast(R, None)
|
181
181
|
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_utils/__init__.py
RENAMED
@@ -39,6 +39,7 @@ from ._typing import (
|
|
39
39
|
is_iterable_type as is_iterable_type,
|
40
40
|
is_required_type as is_required_type,
|
41
41
|
is_annotated_type as is_annotated_type,
|
42
|
+
is_type_alias_type as is_type_alias_type,
|
42
43
|
strip_annotated_type as strip_annotated_type,
|
43
44
|
extract_type_var_from_base as extract_type_var_from_base,
|
44
45
|
)
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_utils/_typing.py
RENAMED
@@ -1,8 +1,17 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
|
+
import sys
|
4
|
+
import typing
|
5
|
+
import typing_extensions
|
3
6
|
from typing import Any, TypeVar, Iterable, cast
|
4
7
|
from collections import abc as _c_abc
|
5
|
-
from typing_extensions import
|
8
|
+
from typing_extensions import (
|
9
|
+
TypeIs,
|
10
|
+
Required,
|
11
|
+
Annotated,
|
12
|
+
get_args,
|
13
|
+
get_origin,
|
14
|
+
)
|
6
15
|
|
7
16
|
from .._types import InheritsGeneric
|
8
17
|
from .._compat import is_union as _is_union
|
@@ -36,6 +45,26 @@ def is_typevar(typ: type) -> bool:
|
|
36
45
|
return type(typ) == TypeVar # type: ignore
|
37
46
|
|
38
47
|
|
48
|
+
_TYPE_ALIAS_TYPES: tuple[type[typing_extensions.TypeAliasType], ...] = (typing_extensions.TypeAliasType,)
|
49
|
+
if sys.version_info >= (3, 12):
|
50
|
+
_TYPE_ALIAS_TYPES = (*_TYPE_ALIAS_TYPES, typing.TypeAliasType)
|
51
|
+
|
52
|
+
|
53
|
+
def is_type_alias_type(tp: Any, /) -> TypeIs[typing_extensions.TypeAliasType]:
|
54
|
+
"""Return whether the provided argument is an instance of `TypeAliasType`.
|
55
|
+
|
56
|
+
```python
|
57
|
+
type Int = int
|
58
|
+
is_type_alias_type(Int)
|
59
|
+
# > True
|
60
|
+
Str = TypeAliasType("Str", str)
|
61
|
+
is_type_alias_type(Str)
|
62
|
+
# > True
|
63
|
+
```
|
64
|
+
"""
|
65
|
+
return isinstance(tp, _TYPE_ALIAS_TYPES)
|
66
|
+
|
67
|
+
|
39
68
|
# Extracts T from Annotated[T, ...] or from Required[Annotated[T, ...]]
|
40
69
|
def strip_annotated_type(typ: type) -> type:
|
41
70
|
if is_required_type(typ) or is_annotated_type(typ):
|
@@ -56,6 +56,8 @@ class ColumnAddColumnDate(TypedDict, total=False):
|
|
56
56
|
|
57
57
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
58
58
|
|
59
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
60
|
+
|
59
61
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
60
62
|
|
61
63
|
|
@@ -77,6 +79,8 @@ class ColumnAddColumnEditor(TypedDict, total=False):
|
|
77
79
|
|
78
80
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
79
81
|
|
82
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
83
|
+
|
80
84
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
81
85
|
|
82
86
|
|
@@ -104,6 +108,8 @@ class ColumnAddColumnExpression(TypedDict, total=False):
|
|
104
108
|
|
105
109
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
106
110
|
|
111
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
112
|
+
|
107
113
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
108
114
|
|
109
115
|
|
@@ -131,6 +137,8 @@ class ColumnAddColumnFile(TypedDict, total=False):
|
|
131
137
|
|
132
138
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
133
139
|
|
140
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
141
|
+
|
134
142
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
135
143
|
|
136
144
|
|
@@ -171,6 +179,8 @@ class ColumnAddColumnFloat(TypedDict, total=False):
|
|
171
179
|
|
172
180
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
173
181
|
|
182
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
183
|
+
|
174
184
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
175
185
|
|
176
186
|
|
@@ -211,6 +221,8 @@ class ColumnAddColumnInteger(TypedDict, total=False):
|
|
211
221
|
|
212
222
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
213
223
|
|
224
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
225
|
+
|
214
226
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
215
227
|
|
216
228
|
|
@@ -234,6 +246,8 @@ class ColumnAddColumnReference(TypedDict, total=False):
|
|
234
246
|
|
235
247
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
236
248
|
|
249
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
250
|
+
|
237
251
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
238
252
|
|
239
253
|
|
@@ -263,6 +277,8 @@ class ColumnAddColumnSelect(TypedDict, total=False):
|
|
263
277
|
|
264
278
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
265
279
|
|
280
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
281
|
+
|
266
282
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
267
283
|
|
268
284
|
|
@@ -284,6 +300,8 @@ class ColumnAddColumnText(TypedDict, total=False):
|
|
284
300
|
|
285
301
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
286
302
|
|
303
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
304
|
+
|
287
305
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
288
306
|
|
289
307
|
|
@@ -305,6 +323,8 @@ class ColumnAddColumnURL(TypedDict, total=False):
|
|
305
323
|
|
306
324
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
307
325
|
|
326
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
327
|
+
|
308
328
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
309
329
|
|
310
330
|
|
@@ -326,6 +346,8 @@ class ColumnAddColumnUser(TypedDict, total=False):
|
|
326
346
|
|
327
347
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
328
348
|
|
349
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
350
|
+
|
329
351
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
330
352
|
|
331
353
|
|
@@ -61,6 +61,8 @@ class AddColumnAddColumnDate(TypedDict, total=False):
|
|
61
61
|
|
62
62
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
63
63
|
|
64
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
65
|
+
|
64
66
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
65
67
|
|
66
68
|
|
@@ -82,6 +84,8 @@ class AddColumnAddColumnEditor(TypedDict, total=False):
|
|
82
84
|
|
83
85
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
84
86
|
|
87
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
88
|
+
|
85
89
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
86
90
|
|
87
91
|
|
@@ -109,6 +113,8 @@ class AddColumnAddColumnExpression(TypedDict, total=False):
|
|
109
113
|
|
110
114
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
111
115
|
|
116
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
117
|
+
|
112
118
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
113
119
|
|
114
120
|
|
@@ -136,6 +142,8 @@ class AddColumnAddColumnFile(TypedDict, total=False):
|
|
136
142
|
|
137
143
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
138
144
|
|
145
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
146
|
+
|
139
147
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
140
148
|
|
141
149
|
|
@@ -176,6 +184,8 @@ class AddColumnAddColumnFloat(TypedDict, total=False):
|
|
176
184
|
|
177
185
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
178
186
|
|
187
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
188
|
+
|
179
189
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
180
190
|
|
181
191
|
|
@@ -216,6 +226,8 @@ class AddColumnAddColumnInteger(TypedDict, total=False):
|
|
216
226
|
|
217
227
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
218
228
|
|
229
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
230
|
+
|
219
231
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
220
232
|
|
221
233
|
|
@@ -239,6 +251,8 @@ class AddColumnAddColumnReference(TypedDict, total=False):
|
|
239
251
|
|
240
252
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
241
253
|
|
254
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
255
|
+
|
242
256
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
243
257
|
|
244
258
|
|
@@ -268,6 +282,8 @@ class AddColumnAddColumnSelect(TypedDict, total=False):
|
|
268
282
|
|
269
283
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
270
284
|
|
285
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
286
|
+
|
271
287
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
272
288
|
|
273
289
|
|
@@ -289,6 +305,8 @@ class AddColumnAddColumnText(TypedDict, total=False):
|
|
289
305
|
|
290
306
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
291
307
|
|
308
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
309
|
+
|
292
310
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
293
311
|
|
294
312
|
|
@@ -310,6 +328,8 @@ class AddColumnAddColumnURL(TypedDict, total=False):
|
|
310
328
|
|
311
329
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
312
330
|
|
331
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
332
|
+
|
313
333
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
314
334
|
|
315
335
|
|
@@ -331,6 +351,8 @@ class AddColumnAddColumnUser(TypedDict, total=False):
|
|
331
351
|
|
332
352
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
333
353
|
|
354
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
355
|
+
|
334
356
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
335
357
|
|
336
358
|
|
@@ -31,4 +31,6 @@ class AddColumnBase(BaseModel):
|
|
31
31
|
|
32
32
|
is_required: Optional[bool] = FieldInfo(alias="isRequired", default=None)
|
33
33
|
|
34
|
+
json_field: Optional[str] = FieldInfo(alias="jsonField", default=None)
|
35
|
+
|
34
36
|
system_type: Optional[Literal["name", "bodyDocument"]] = FieldInfo(alias="systemType", default=None)
|
@@ -27,4 +27,6 @@ class AddColumnUnion(BaseModel):
|
|
27
27
|
|
28
28
|
is_required: Optional[bool] = FieldInfo(alias="isRequired", default=None)
|
29
29
|
|
30
|
+
json_field: Optional[str] = FieldInfo(alias="jsonField", default=None)
|
31
|
+
|
30
32
|
system_type: Optional[Literal["name", "bodyDocument"]] = FieldInfo(alias="systemType", default=None)
|
@@ -32,4 +32,6 @@ class AddColumnBase(TypedDict, total=False):
|
|
32
32
|
|
33
33
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
34
34
|
|
35
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
36
|
+
|
35
37
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
@@ -28,4 +28,6 @@ class AddColumnUnion(TypedDict, total=False):
|
|
28
28
|
|
29
29
|
is_required: Annotated[bool, PropertyInfo(alias="isRequired")]
|
30
30
|
|
31
|
+
json_field: Annotated[str, PropertyInfo(alias="jsonField")]
|
32
|
+
|
31
33
|
system_type: Annotated[Literal["name", "bodyDocument"], PropertyInfo(alias="systemType")]
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/api_resources/test_client.py
RENAMED
@@ -91,6 +91,7 @@ class TestClient:
|
|
91
91
|
"enabled_viewers": ["code"],
|
92
92
|
"inline_viewer": "molecule2d",
|
93
93
|
"is_required": True,
|
94
|
+
"json_field": "jsonField",
|
94
95
|
"system_type": "name",
|
95
96
|
},
|
96
97
|
database_id="databaseId",
|
@@ -1279,6 +1280,7 @@ class TestClient:
|
|
1279
1280
|
"enabled_viewers": ["code"],
|
1280
1281
|
"inline_viewer": "molecule2d",
|
1281
1282
|
"is_required": True,
|
1283
|
+
"json_field": "jsonField",
|
1282
1284
|
"system_type": "name",
|
1283
1285
|
}
|
1284
1286
|
],
|
@@ -1737,6 +1739,7 @@ class TestClient:
|
|
1737
1739
|
"enabledViewers": ["code"],
|
1738
1740
|
"inlineViewer": "molecule2d",
|
1739
1741
|
"isRequired": True,
|
1742
|
+
"jsonField": "jsonField",
|
1740
1743
|
"name": "name",
|
1741
1744
|
"systemType": "name",
|
1742
1745
|
},
|
@@ -1853,6 +1856,7 @@ class TestAsyncClient:
|
|
1853
1856
|
"enabled_viewers": ["code"],
|
1854
1857
|
"inline_viewer": "molecule2d",
|
1855
1858
|
"is_required": True,
|
1859
|
+
"json_field": "jsonField",
|
1856
1860
|
"system_type": "name",
|
1857
1861
|
},
|
1858
1862
|
database_id="databaseId",
|
@@ -3047,6 +3051,7 @@ class TestAsyncClient:
|
|
3047
3051
|
"enabled_viewers": ["code"],
|
3048
3052
|
"inline_viewer": "molecule2d",
|
3049
3053
|
"is_required": True,
|
3054
|
+
"json_field": "jsonField",
|
3050
3055
|
"system_type": "name",
|
3051
3056
|
}
|
3052
3057
|
],
|
@@ -3507,6 +3512,7 @@ class TestAsyncClient:
|
|
3507
3512
|
"enabledViewers": ["code"],
|
3508
3513
|
"inlineViewer": "molecule2d",
|
3509
3514
|
"isRequired": True,
|
3515
|
+
"jsonField": "jsonField",
|
3510
3516
|
"name": "name",
|
3511
3517
|
"systemType": "name",
|
3512
3518
|
},
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import json
|
2
2
|
from typing import Any, Dict, List, Union, Optional, cast
|
3
3
|
from datetime import datetime, timezone
|
4
|
-
from typing_extensions import Literal, Annotated
|
4
|
+
from typing_extensions import Literal, Annotated, TypeAliasType
|
5
5
|
|
6
6
|
import pytest
|
7
7
|
import pydantic
|
@@ -828,3 +828,19 @@ def test_discriminated_unions_invalid_data_uses_cache() -> None:
|
|
828
828
|
# if the discriminator details object stays the same between invocations then
|
829
829
|
# we hit the cache
|
830
830
|
assert UnionType.__discriminator__ is discriminator
|
831
|
+
|
832
|
+
|
833
|
+
@pytest.mark.skipif(not PYDANTIC_V2, reason="TypeAliasType is not supported in Pydantic v1")
|
834
|
+
def test_type_alias_type() -> None:
|
835
|
+
Alias = TypeAliasType("Alias", str)
|
836
|
+
|
837
|
+
class Model(BaseModel):
|
838
|
+
alias: Alias
|
839
|
+
union: Union[int, Alias]
|
840
|
+
|
841
|
+
m = construct_type(value={"alias": "foo", "union": "bar"}, type_=Model)
|
842
|
+
assert isinstance(m, Model)
|
843
|
+
assert isinstance(m.alias, str)
|
844
|
+
assert m.alias == "foo"
|
845
|
+
assert isinstance(m.union, str)
|
846
|
+
assert m.union == "bar"
|
@@ -16,6 +16,7 @@ from deeporigin_data._utils import (
|
|
16
16
|
is_union_type,
|
17
17
|
extract_type_arg,
|
18
18
|
is_annotated_type,
|
19
|
+
is_type_alias_type,
|
19
20
|
)
|
20
21
|
from deeporigin_data._compat import PYDANTIC_V2, field_outer_type, get_model_fields
|
21
22
|
from deeporigin_data._models import BaseModel
|
@@ -51,6 +52,9 @@ def assert_matches_type(
|
|
51
52
|
path: list[str],
|
52
53
|
allow_none: bool = False,
|
53
54
|
) -> None:
|
55
|
+
if is_type_alias_type(type_):
|
56
|
+
type_ = type_.__value__
|
57
|
+
|
54
58
|
# unwrap `Annotated[T, ...]` -> `T`
|
55
59
|
if is_annotated_type(type_):
|
56
60
|
type_ = extract_type_arg(type_, 0)
|
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
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/__init__.py
RENAMED
File without changes
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_base_client.py
RENAMED
File without changes
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_compat.py
RENAMED
File without changes
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_constants.py
RENAMED
File without changes
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_exceptions.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_resource.py
RENAMED
File without changes
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_streaming.py
RENAMED
File without changes
|
File without changes
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_utils/_logs.py
RENAMED
File without changes
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_utils/_proxy.py
RENAMED
File without changes
|
File without changes
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_utils/_streams.py
RENAMED
File without changes
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_utils/_sync.py
RENAMED
File without changes
|
File without changes
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/_utils/_utils.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/src/deeporigin_data/types/__init__.py
RENAMED
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
|
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
|
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
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/api_resources/__init__.py
RENAMED
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
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/test_utils/test_proxy.py
RENAMED
File without changes
|
{deeporigin_data_sdk-0.1.0a36 → deeporigin_data_sdk-0.1.0a38}/tests/test_utils/test_typing.py
RENAMED
File without changes
|