aignostics 0.2.98__tar.gz → 0.2.100__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.
- {aignostics-0.2.98 → aignostics-0.2.100}/PKG-INFO +8 -8
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/.openapi-generator/FILES +3 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/api/public_api.py +246 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/__init__.py +3 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/application_read_response.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/application_run_status.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/application_version_read_response.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/http_validation_error.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/input_artifact_creation_request.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/input_artifact_read_response.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/item_creation_request.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/item_result_read_response.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/item_status.py +2 -0
- aignostics-0.2.100/codegen/out/aignx/codegen/models/me_read_response.py +97 -0
- aignostics-0.2.100/codegen/out/aignx/codegen/models/organization_read_response.py +133 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/output_artifact_read_response.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/output_artifact_result_read_response.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/output_artifact_scope.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/payload_input_artifact.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/payload_item.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/payload_output_artifact.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/run_creation_request.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/run_creation_response.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/run_read_response.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/transfer_urls.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/user_payload.py +2 -0
- aignostics-0.2.100/codegen/out/aignx/codegen/models/user_read_response.py +109 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/validation_error.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/models/validation_error_loc_inner.py +2 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/docs/PublicApi.md +71 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/examples/notebook.py +1 -1
- {aignostics-0.2.98 → aignostics-0.2.100}/pyproject.toml +11 -10
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/_page_application_describe.py +1 -3
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_service.py +1 -1
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/cli.py +1 -3
- {aignostics-0.2.98 → aignostics-0.2.100}/.gitignore +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/LICENSE +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/README.md +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/.openapi-generator/VERSION +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/api_client.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/api_response.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/configuration.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/exceptions.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/codegen/out/aignx/codegen/rest.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/dist_native_all/dist_native-macos-13/extracted/aignostics.app/Contents/Frameworks/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/dist_native_all/dist_native-macos-13/extracted/aignostics.app/Contents/Frameworks/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/dist_native_all/dist_native-macos-latest/extracted/aignostics.app/Contents/Frameworks/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/dist_native_all/dist_native-macos-latest/extracted/aignostics.app/Contents/Frameworks/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/dist_native_all/dist_native-ubuntu-24.04-arm/extracted/aignostics/_internal/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/dist_native_all/dist_native-ubuntu-24.04-arm/extracted/aignostics/_internal/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/dist_native_all/dist_native-ubuntu-latest/extracted/aignostics/_internal/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/dist_native_all/dist_native-ubuntu-latest/extracted/aignostics/_internal/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/dist_native_all/dist_native-windows-11-arm/extracted/aignostics/_internal/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/dist_native_all/dist_native-windows-11-arm/extracted/aignostics/_internal/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/dist_native_all/dist_native-windows-latest/extracted/aignostics/_internal/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/dist_native_all/dist_native-windows-latest/extracted/aignostics/_internal/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/examples/__init__.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/examples/notebook.ipynb +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/examples/script.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/__init__.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/__init__.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_cli.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/_frame.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/_page_application_run_describe.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/_page_builder.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/_page_index.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/_utils.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/assets/.gitignore +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/assets/canceled.lottie +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/assets/done.lottie +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/assets/empty.lottie +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/assets/error.lottie +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/assets/error_alt.lottie +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/assets/home-card-1.png +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/assets/home-card-2.png +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/assets/home-card-3.png +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/assets/home-card-4.png +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/assets/home-card-5.png +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/assets/image-not-found.png +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/assets/pending.lottie +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/assets/pending_alt.lottie +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/assets/ruo.png +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_gui/assets/ruo.svg +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_settings.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/application/_utils.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/bucket/__init__.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/bucket/_cli.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/bucket/_gui.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/bucket/_service.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/bucket/_settings.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/bucket/assets/Google-Cloud-logo.png +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/bucket/assets/Google-Cloud-logo.svg +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/constants.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/dataset/__init__.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/dataset/_cli.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/dataset/_gui.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/dataset/_service.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/dataset/assets/NIH-IDC-logo.svg +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/gui/__init__.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/gui/_frame.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/gui/_theme.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/gui/assets/cabin-v27-latin-regular.woff2 +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/gui/assets/logo.png +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/notebook/__init__.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/notebook/_gui.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/notebook/_notebook.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/notebook/_service.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/notebook/assets/python.lottie +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/platform/__init__.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/platform/_authentication.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/platform/_cli.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/platform/_client.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/platform/_constants.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/platform/_messages.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/platform/_service.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/platform/_settings.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/platform/_utils.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/platform/resources/__init__.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/platform/resources/applications.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/platform/resources/runs.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/platform/resources/utils.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/qupath/__init__.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/qupath/_cli.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/qupath/_gui.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/qupath/_service.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/qupath/_settings.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/qupath/assets/download.lottie +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/qupath/assets/microscope.lottie +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/qupath/assets/update.lottie +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/qupath/scripts/add.groovy +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/qupath/scripts/annotate.groovy +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/qupath/scripts/inspect.groovy +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/qupath/scripts/test.groovy +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/system/__init__.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/system/_cli.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/system/_exceptions.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/system/_gui.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/system/_service.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/system/_settings.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/system/assets/system.lottie +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/third_party/bottle.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/third_party/idc_index.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/utils/__init__.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/utils/_cli.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/utils/_console.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/utils/_constants.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/utils/_di.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/utils/_fs.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/utils/_gui.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/utils/_health.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/utils/_log.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/utils/_logfire.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/utils/_notebook.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/utils/_process.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/utils/_sentry.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/utils/_service.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/utils/_settings.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/utils/boot.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/wsi/__init__.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/wsi/_cli.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/wsi/_gui.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/wsi/_openslide_handler.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/wsi/_pydicom_handler.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/wsi/_service.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/wsi/_utils.py +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics/wsi/assets/fallback.png +0 -0
- {aignostics-0.2.98 → aignostics-0.2.100}/src/aignostics.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aignostics
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.100
|
|
4
4
|
Summary: 🔬 Python SDK providing access to the Aignostics Platform. Includes Aignostics Launchpad (Desktop Application), Aignostics CLI (Command-Line Interface), example notebooks, and Aignostics Client Library.
|
|
5
5
|
Project-URL: Homepage, https://aignostics.readthedocs.io/en/latest/
|
|
6
6
|
Project-URL: Documentation, https://aignostics.readthedocs.io/en/latest/
|
|
@@ -50,23 +50,23 @@ Classifier: Typing :: Typed
|
|
|
50
50
|
Requires-Python: <4.0,>=3.11
|
|
51
51
|
Requires-Dist: appdirs>=1.4.4
|
|
52
52
|
Requires-Dist: auth0-python>=4.10.0
|
|
53
|
-
Requires-Dist: boto3>=1.39.
|
|
53
|
+
Requires-Dist: boto3>=1.39.4
|
|
54
54
|
Requires-Dist: dicom-validator>=0.7.1
|
|
55
55
|
Requires-Dist: dicomweb-client[gcp]>=0.59.2
|
|
56
56
|
Requires-Dist: duckdb<=1.4.0,>=0.10.0
|
|
57
|
-
Requires-Dist: fastapi[all,standard]>=0.
|
|
57
|
+
Requires-Dist: fastapi[all,standard]>=0.116.0
|
|
58
58
|
Requires-Dist: fastparquet>=2024.11.0
|
|
59
|
-
Requires-Dist: google-cloud-storage>=3.
|
|
59
|
+
Requires-Dist: google-cloud-storage>=3.2.0
|
|
60
60
|
Requires-Dist: google-crc32c>=1.7.1
|
|
61
|
-
Requires-Dist: highdicom>=0.
|
|
61
|
+
Requires-Dist: highdicom>=0.26.0
|
|
62
62
|
Requires-Dist: httpx>=0.28.1
|
|
63
63
|
Requires-Dist: humanize>=4.12.3
|
|
64
64
|
Requires-Dist: idc-index-data==21.0.0
|
|
65
65
|
Requires-Dist: ijson>=3.4.0
|
|
66
66
|
Requires-Dist: jsf>=0.11.2
|
|
67
67
|
Requires-Dist: jsonschema>=4.24.0
|
|
68
|
-
Requires-Dist: logfire[system-metrics]>=3.
|
|
69
|
-
Requires-Dist: nicegui[native]>=2.
|
|
68
|
+
Requires-Dist: logfire[system-metrics]>=3.23.0
|
|
69
|
+
Requires-Dist: nicegui[native]>=2.21.1
|
|
70
70
|
Requires-Dist: openslide-bin>=4.0.0.8
|
|
71
71
|
Requires-Dist: openslide-python>=1.4.2
|
|
72
72
|
Requires-Dist: opentelemetry-instrumentation-fastapi>=0.53b0
|
|
@@ -78,7 +78,7 @@ Requires-Dist: opentelemetry-instrumentation-tornado>=0.53b0
|
|
|
78
78
|
Requires-Dist: opentelemetry-instrumentation-urllib3>=0.53b0
|
|
79
79
|
Requires-Dist: opentelemetry-instrumentation-urllib>=0.53b0
|
|
80
80
|
Requires-Dist: packaging>=25.0
|
|
81
|
-
Requires-Dist: pandas<=2.3.
|
|
81
|
+
Requires-Dist: pandas<=2.3.1
|
|
82
82
|
Requires-Dist: platformdirs>=4.3.8
|
|
83
83
|
Requires-Dist: psutil>=7.0.0
|
|
84
84
|
Requires-Dist: pydantic-settings>=2.10.1
|
|
@@ -12,6 +12,8 @@ aignx/codegen/models/input_artifact_read_response.py
|
|
|
12
12
|
aignx/codegen/models/item_creation_request.py
|
|
13
13
|
aignx/codegen/models/item_result_read_response.py
|
|
14
14
|
aignx/codegen/models/item_status.py
|
|
15
|
+
aignx/codegen/models/me_read_response.py
|
|
16
|
+
aignx/codegen/models/organization_read_response.py
|
|
15
17
|
aignx/codegen/models/output_artifact_read_response.py
|
|
16
18
|
aignx/codegen/models/output_artifact_result_read_response.py
|
|
17
19
|
aignx/codegen/models/output_artifact_scope.py
|
|
@@ -23,6 +25,7 @@ aignx/codegen/models/run_creation_response.py
|
|
|
23
25
|
aignx/codegen/models/run_read_response.py
|
|
24
26
|
aignx/codegen/models/transfer_urls.py
|
|
25
27
|
aignx/codegen/models/user_payload.py
|
|
28
|
+
aignx/codegen/models/user_read_response.py
|
|
26
29
|
aignx/codegen/models/validation_error.py
|
|
27
30
|
aignx/codegen/models/validation_error_loc_inner.py
|
|
28
31
|
aignx/codegen/rest.py
|
|
@@ -23,6 +23,7 @@ from aignx.codegen.models.application_read_response import ApplicationReadRespon
|
|
|
23
23
|
from aignx.codegen.models.application_version_read_response import ApplicationVersionReadResponse
|
|
24
24
|
from aignx.codegen.models.item_result_read_response import ItemResultReadResponse
|
|
25
25
|
from aignx.codegen.models.item_status import ItemStatus
|
|
26
|
+
from aignx.codegen.models.me_read_response import MeReadResponse
|
|
26
27
|
from aignx.codegen.models.run_creation_request import RunCreationRequest
|
|
27
28
|
from aignx.codegen.models.run_creation_response import RunCreationResponse
|
|
28
29
|
from aignx.codegen.models.run_read_response import RunReadResponse
|
|
@@ -859,6 +860,249 @@ class PublicApi:
|
|
|
859
860
|
|
|
860
861
|
|
|
861
862
|
|
|
863
|
+
@validate_call
|
|
864
|
+
def get_me_v1_me_get(
|
|
865
|
+
self,
|
|
866
|
+
_request_timeout: Union[
|
|
867
|
+
None,
|
|
868
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
869
|
+
Tuple[
|
|
870
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
871
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
872
|
+
]
|
|
873
|
+
] = None,
|
|
874
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
875
|
+
_content_type: Optional[StrictStr] = None,
|
|
876
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
877
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
878
|
+
) -> MeReadResponse:
|
|
879
|
+
"""Get Me
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
883
|
+
number provided, it will be total request
|
|
884
|
+
timeout. It can also be a pair (tuple) of
|
|
885
|
+
(connection, read) timeouts.
|
|
886
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
887
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
888
|
+
request; this effectively ignores the
|
|
889
|
+
authentication in the spec for a single request.
|
|
890
|
+
:type _request_auth: dict, optional
|
|
891
|
+
:param _content_type: force content-type for the request.
|
|
892
|
+
:type _content_type: str, Optional
|
|
893
|
+
:param _headers: set to override the headers for a single
|
|
894
|
+
request; this effectively ignores the headers
|
|
895
|
+
in the spec for a single request.
|
|
896
|
+
:type _headers: dict, optional
|
|
897
|
+
:param _host_index: set to override the host_index for a single
|
|
898
|
+
request; this effectively ignores the host_index
|
|
899
|
+
in the spec for a single request.
|
|
900
|
+
:type _host_index: int, optional
|
|
901
|
+
:return: Returns the result object.
|
|
902
|
+
""" # noqa: E501
|
|
903
|
+
|
|
904
|
+
_param = self._get_me_v1_me_get_serialize(
|
|
905
|
+
_request_auth=_request_auth,
|
|
906
|
+
_content_type=_content_type,
|
|
907
|
+
_headers=_headers,
|
|
908
|
+
_host_index=_host_index
|
|
909
|
+
)
|
|
910
|
+
|
|
911
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
912
|
+
'200': "MeReadResponse",
|
|
913
|
+
}
|
|
914
|
+
response_data = self.api_client.call_api(
|
|
915
|
+
*_param,
|
|
916
|
+
_request_timeout=_request_timeout
|
|
917
|
+
)
|
|
918
|
+
response_data.read()
|
|
919
|
+
return self.api_client.response_deserialize(
|
|
920
|
+
response_data=response_data,
|
|
921
|
+
response_types_map=_response_types_map,
|
|
922
|
+
).data
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
@validate_call
|
|
926
|
+
def get_me_v1_me_get_with_http_info(
|
|
927
|
+
self,
|
|
928
|
+
_request_timeout: Union[
|
|
929
|
+
None,
|
|
930
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
931
|
+
Tuple[
|
|
932
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
933
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
934
|
+
]
|
|
935
|
+
] = None,
|
|
936
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
937
|
+
_content_type: Optional[StrictStr] = None,
|
|
938
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
939
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
940
|
+
) -> ApiResponse[MeReadResponse]:
|
|
941
|
+
"""Get Me
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
945
|
+
number provided, it will be total request
|
|
946
|
+
timeout. It can also be a pair (tuple) of
|
|
947
|
+
(connection, read) timeouts.
|
|
948
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
949
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
950
|
+
request; this effectively ignores the
|
|
951
|
+
authentication in the spec for a single request.
|
|
952
|
+
:type _request_auth: dict, optional
|
|
953
|
+
:param _content_type: force content-type for the request.
|
|
954
|
+
:type _content_type: str, Optional
|
|
955
|
+
:param _headers: set to override the headers for a single
|
|
956
|
+
request; this effectively ignores the headers
|
|
957
|
+
in the spec for a single request.
|
|
958
|
+
:type _headers: dict, optional
|
|
959
|
+
:param _host_index: set to override the host_index for a single
|
|
960
|
+
request; this effectively ignores the host_index
|
|
961
|
+
in the spec for a single request.
|
|
962
|
+
:type _host_index: int, optional
|
|
963
|
+
:return: Returns the result object.
|
|
964
|
+
""" # noqa: E501
|
|
965
|
+
|
|
966
|
+
_param = self._get_me_v1_me_get_serialize(
|
|
967
|
+
_request_auth=_request_auth,
|
|
968
|
+
_content_type=_content_type,
|
|
969
|
+
_headers=_headers,
|
|
970
|
+
_host_index=_host_index
|
|
971
|
+
)
|
|
972
|
+
|
|
973
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
974
|
+
'200': "MeReadResponse",
|
|
975
|
+
}
|
|
976
|
+
response_data = self.api_client.call_api(
|
|
977
|
+
*_param,
|
|
978
|
+
_request_timeout=_request_timeout
|
|
979
|
+
)
|
|
980
|
+
response_data.read()
|
|
981
|
+
return self.api_client.response_deserialize(
|
|
982
|
+
response_data=response_data,
|
|
983
|
+
response_types_map=_response_types_map,
|
|
984
|
+
)
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
@validate_call
|
|
988
|
+
def get_me_v1_me_get_without_preload_content(
|
|
989
|
+
self,
|
|
990
|
+
_request_timeout: Union[
|
|
991
|
+
None,
|
|
992
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
993
|
+
Tuple[
|
|
994
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
995
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
996
|
+
]
|
|
997
|
+
] = None,
|
|
998
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
999
|
+
_content_type: Optional[StrictStr] = None,
|
|
1000
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1001
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1002
|
+
) -> RESTResponseType:
|
|
1003
|
+
"""Get Me
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1007
|
+
number provided, it will be total request
|
|
1008
|
+
timeout. It can also be a pair (tuple) of
|
|
1009
|
+
(connection, read) timeouts.
|
|
1010
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1011
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1012
|
+
request; this effectively ignores the
|
|
1013
|
+
authentication in the spec for a single request.
|
|
1014
|
+
:type _request_auth: dict, optional
|
|
1015
|
+
:param _content_type: force content-type for the request.
|
|
1016
|
+
:type _content_type: str, Optional
|
|
1017
|
+
:param _headers: set to override the headers for a single
|
|
1018
|
+
request; this effectively ignores the headers
|
|
1019
|
+
in the spec for a single request.
|
|
1020
|
+
:type _headers: dict, optional
|
|
1021
|
+
:param _host_index: set to override the host_index for a single
|
|
1022
|
+
request; this effectively ignores the host_index
|
|
1023
|
+
in the spec for a single request.
|
|
1024
|
+
:type _host_index: int, optional
|
|
1025
|
+
:return: Returns the result object.
|
|
1026
|
+
""" # noqa: E501
|
|
1027
|
+
|
|
1028
|
+
_param = self._get_me_v1_me_get_serialize(
|
|
1029
|
+
_request_auth=_request_auth,
|
|
1030
|
+
_content_type=_content_type,
|
|
1031
|
+
_headers=_headers,
|
|
1032
|
+
_host_index=_host_index
|
|
1033
|
+
)
|
|
1034
|
+
|
|
1035
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1036
|
+
'200': "MeReadResponse",
|
|
1037
|
+
}
|
|
1038
|
+
response_data = self.api_client.call_api(
|
|
1039
|
+
*_param,
|
|
1040
|
+
_request_timeout=_request_timeout
|
|
1041
|
+
)
|
|
1042
|
+
return response_data.response
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
def _get_me_v1_me_get_serialize(
|
|
1046
|
+
self,
|
|
1047
|
+
_request_auth,
|
|
1048
|
+
_content_type,
|
|
1049
|
+
_headers,
|
|
1050
|
+
_host_index,
|
|
1051
|
+
) -> RequestSerialized:
|
|
1052
|
+
|
|
1053
|
+
_host = None
|
|
1054
|
+
|
|
1055
|
+
_collection_formats: Dict[str, str] = {
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
_path_params: Dict[str, str] = {}
|
|
1059
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1060
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1061
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1062
|
+
_files: Dict[
|
|
1063
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1064
|
+
] = {}
|
|
1065
|
+
_body_params: Optional[bytes] = None
|
|
1066
|
+
|
|
1067
|
+
# process the path parameters
|
|
1068
|
+
# process the query parameters
|
|
1069
|
+
# process the header parameters
|
|
1070
|
+
# process the form parameters
|
|
1071
|
+
# process the body parameter
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
# set the HTTP header `Accept`
|
|
1075
|
+
if 'Accept' not in _header_params:
|
|
1076
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1077
|
+
[
|
|
1078
|
+
'application/json'
|
|
1079
|
+
]
|
|
1080
|
+
)
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
# authentication setting
|
|
1084
|
+
_auth_settings: List[str] = [
|
|
1085
|
+
'OAuth2AuthorizationCodeBearer'
|
|
1086
|
+
]
|
|
1087
|
+
|
|
1088
|
+
return self.api_client.param_serialize(
|
|
1089
|
+
method='GET',
|
|
1090
|
+
resource_path='/v1/me',
|
|
1091
|
+
path_params=_path_params,
|
|
1092
|
+
query_params=_query_params,
|
|
1093
|
+
header_params=_header_params,
|
|
1094
|
+
body=_body_params,
|
|
1095
|
+
post_params=_form_params,
|
|
1096
|
+
files=_files,
|
|
1097
|
+
auth_settings=_auth_settings,
|
|
1098
|
+
collection_formats=_collection_formats,
|
|
1099
|
+
_host=_host,
|
|
1100
|
+
_request_auth=_request_auth
|
|
1101
|
+
)
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
|
|
862
1106
|
@validate_call
|
|
863
1107
|
def get_run_v1_runs_application_run_id_get(
|
|
864
1108
|
self,
|
|
@@ -2521,3 +2765,5 @@ class PublicApi:
|
|
|
2521
2765
|
_host=_host,
|
|
2522
2766
|
_request_auth=_request_auth
|
|
2523
2767
|
)
|
|
2768
|
+
|
|
2769
|
+
|
|
@@ -4,14 +4,17 @@ from .application_version_read_response import *
|
|
|
4
4
|
from .item_status import *
|
|
5
5
|
from .run_creation_response import *
|
|
6
6
|
from .input_artifact_read_response import *
|
|
7
|
+
from .organization_read_response import *
|
|
7
8
|
from .user_payload import *
|
|
8
9
|
from .validation_error import *
|
|
9
10
|
from .application_read_response import *
|
|
10
11
|
from .output_artifact_scope import *
|
|
12
|
+
from .me_read_response import *
|
|
11
13
|
from .input_artifact_creation_request import *
|
|
12
14
|
from .item_creation_request import *
|
|
13
15
|
from .http_validation_error import *
|
|
14
16
|
from .transfer_urls import *
|
|
17
|
+
from .user_read_response import *
|
|
15
18
|
from .output_artifact_result_read_response import *
|
|
16
19
|
from .run_read_response import *
|
|
17
20
|
from .application_run_status import *
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Aignostics Platform API reference
|
|
5
|
+
|
|
6
|
+
Pagination is done via `page` and `page_size`. Sorting via `sort` query parameter. The `sort` query parameter can be provided multiple times. The sorting direction can be indicated via `+` (ascending) or `-` (descending) (e.g. `/v1/applications?sort=+name)`.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from aignx.codegen.models.organization_read_response import OrganizationReadResponse
|
|
23
|
+
from aignx.codegen.models.user_read_response import UserReadResponse
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class MeReadResponse(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
MeReadResponse
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
user: UserReadResponse
|
|
32
|
+
organization: OrganizationReadResponse
|
|
33
|
+
__properties: ClassVar[List[str]] = ["user", "organization"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
populate_by_name=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
49
|
+
return json.dumps(self.to_dict())
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
+
"""Create an instance of MeReadResponse from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
])
|
|
68
|
+
|
|
69
|
+
_dict = self.model_dump(
|
|
70
|
+
by_alias=True,
|
|
71
|
+
exclude=excluded_fields,
|
|
72
|
+
exclude_none=True,
|
|
73
|
+
)
|
|
74
|
+
# override the default output from pydantic by calling `to_dict()` of user
|
|
75
|
+
if self.user:
|
|
76
|
+
_dict['user'] = self.user.to_dict()
|
|
77
|
+
# override the default output from pydantic by calling `to_dict()` of organization
|
|
78
|
+
if self.organization:
|
|
79
|
+
_dict['organization'] = self.organization.to_dict()
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of MeReadResponse from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"user": UserReadResponse.from_dict(obj["user"]) if obj.get("user") is not None else None,
|
|
93
|
+
"organization": OrganizationReadResponse.from_dict(obj["organization"]) if obj.get("organization") is not None else None
|
|
94
|
+
})
|
|
95
|
+
return _obj
|
|
96
|
+
|
|
97
|
+
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Aignostics Platform API reference
|
|
5
|
+
|
|
6
|
+
Pagination is done via `page` and `page_size`. Sorting via `sort` query parameter. The `sort` query parameter can be provided multiple times. The sorting direction can be indicated via `+` (ascending) or `-` (descending) (e.g. `/v1/applications?sort=+name)`.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class OrganizationReadResponse(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
This model corresponds to the response schema returned from Auth0 GET /v2/organizations/{id} endpoint, flattens out the metadata out and doesn't return branding or token_quota objects. For details, see: https://auth0.com/docs/api/management/v2/organizations/get-organizations-by-id
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
id: StrictStr
|
|
30
|
+
name: StrictStr
|
|
31
|
+
display_name: StrictStr
|
|
32
|
+
aignostics_bucket_hmac_access_key_id: Optional[StrictStr]
|
|
33
|
+
aignostics_bucket_hmac_secret_access_key: Optional[StrictStr]
|
|
34
|
+
aignostics_bucket_name: Optional[StrictStr]
|
|
35
|
+
aignostics_bucket_protocol: Optional[StrictStr]
|
|
36
|
+
aignostics_logfire_token: Optional[StrictStr]
|
|
37
|
+
aignostics_sentry_dsn: Optional[StrictStr]
|
|
38
|
+
__properties: ClassVar[List[str]] = ["id", "name", "display_name", "aignostics_bucket_hmac_access_key_id", "aignostics_bucket_hmac_secret_access_key", "aignostics_bucket_name", "aignostics_bucket_protocol", "aignostics_logfire_token", "aignostics_sentry_dsn"]
|
|
39
|
+
|
|
40
|
+
model_config = ConfigDict(
|
|
41
|
+
populate_by_name=True,
|
|
42
|
+
validate_assignment=True,
|
|
43
|
+
protected_namespaces=(),
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def to_str(self) -> str:
|
|
48
|
+
"""Returns the string representation of the model using alias"""
|
|
49
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
50
|
+
|
|
51
|
+
def to_json(self) -> str:
|
|
52
|
+
"""Returns the JSON representation of the model using alias"""
|
|
53
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
54
|
+
return json.dumps(self.to_dict())
|
|
55
|
+
|
|
56
|
+
@classmethod
|
|
57
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
58
|
+
"""Create an instance of OrganizationReadResponse from a JSON string"""
|
|
59
|
+
return cls.from_dict(json.loads(json_str))
|
|
60
|
+
|
|
61
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
62
|
+
"""Return the dictionary representation of the model using alias.
|
|
63
|
+
|
|
64
|
+
This has the following differences from calling pydantic's
|
|
65
|
+
`self.model_dump(by_alias=True)`:
|
|
66
|
+
|
|
67
|
+
* `None` is only added to the output dict for nullable fields that
|
|
68
|
+
were set at model initialization. Other fields with value `None`
|
|
69
|
+
are ignored.
|
|
70
|
+
"""
|
|
71
|
+
excluded_fields: Set[str] = set([
|
|
72
|
+
])
|
|
73
|
+
|
|
74
|
+
_dict = self.model_dump(
|
|
75
|
+
by_alias=True,
|
|
76
|
+
exclude=excluded_fields,
|
|
77
|
+
exclude_none=True,
|
|
78
|
+
)
|
|
79
|
+
# set to None if aignostics_bucket_hmac_access_key_id (nullable) is None
|
|
80
|
+
# and model_fields_set contains the field
|
|
81
|
+
if self.aignostics_bucket_hmac_access_key_id is None and "aignostics_bucket_hmac_access_key_id" in self.model_fields_set:
|
|
82
|
+
_dict['aignostics_bucket_hmac_access_key_id'] = None
|
|
83
|
+
|
|
84
|
+
# set to None if aignostics_bucket_hmac_secret_access_key (nullable) is None
|
|
85
|
+
# and model_fields_set contains the field
|
|
86
|
+
if self.aignostics_bucket_hmac_secret_access_key is None and "aignostics_bucket_hmac_secret_access_key" in self.model_fields_set:
|
|
87
|
+
_dict['aignostics_bucket_hmac_secret_access_key'] = None
|
|
88
|
+
|
|
89
|
+
# set to None if aignostics_bucket_name (nullable) is None
|
|
90
|
+
# and model_fields_set contains the field
|
|
91
|
+
if self.aignostics_bucket_name is None and "aignostics_bucket_name" in self.model_fields_set:
|
|
92
|
+
_dict['aignostics_bucket_name'] = None
|
|
93
|
+
|
|
94
|
+
# set to None if aignostics_bucket_protocol (nullable) is None
|
|
95
|
+
# and model_fields_set contains the field
|
|
96
|
+
if self.aignostics_bucket_protocol is None and "aignostics_bucket_protocol" in self.model_fields_set:
|
|
97
|
+
_dict['aignostics_bucket_protocol'] = None
|
|
98
|
+
|
|
99
|
+
# set to None if aignostics_logfire_token (nullable) is None
|
|
100
|
+
# and model_fields_set contains the field
|
|
101
|
+
if self.aignostics_logfire_token is None and "aignostics_logfire_token" in self.model_fields_set:
|
|
102
|
+
_dict['aignostics_logfire_token'] = None
|
|
103
|
+
|
|
104
|
+
# set to None if aignostics_sentry_dsn (nullable) is None
|
|
105
|
+
# and model_fields_set contains the field
|
|
106
|
+
if self.aignostics_sentry_dsn is None and "aignostics_sentry_dsn" in self.model_fields_set:
|
|
107
|
+
_dict['aignostics_sentry_dsn'] = None
|
|
108
|
+
|
|
109
|
+
return _dict
|
|
110
|
+
|
|
111
|
+
@classmethod
|
|
112
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
113
|
+
"""Create an instance of OrganizationReadResponse from a dict"""
|
|
114
|
+
if obj is None:
|
|
115
|
+
return None
|
|
116
|
+
|
|
117
|
+
if not isinstance(obj, dict):
|
|
118
|
+
return cls.model_validate(obj)
|
|
119
|
+
|
|
120
|
+
_obj = cls.model_validate({
|
|
121
|
+
"id": obj.get("id"),
|
|
122
|
+
"name": obj.get("name"),
|
|
123
|
+
"display_name": obj.get("display_name"),
|
|
124
|
+
"aignostics_bucket_hmac_access_key_id": obj.get("aignostics_bucket_hmac_access_key_id"),
|
|
125
|
+
"aignostics_bucket_hmac_secret_access_key": obj.get("aignostics_bucket_hmac_secret_access_key"),
|
|
126
|
+
"aignostics_bucket_name": obj.get("aignostics_bucket_name"),
|
|
127
|
+
"aignostics_bucket_protocol": obj.get("aignostics_bucket_protocol"),
|
|
128
|
+
"aignostics_logfire_token": obj.get("aignostics_logfire_token"),
|
|
129
|
+
"aignostics_sentry_dsn": obj.get("aignostics_sentry_dsn")
|
|
130
|
+
})
|
|
131
|
+
return _obj
|
|
132
|
+
|
|
133
|
+
|