aignostics 0.2.62__tar.gz → 0.2.65__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.62 → aignostics-0.2.65}/PKG-INFO +7 -7
- {aignostics-0.2.62 → aignostics-0.2.65}/examples/notebook.py +1 -1
- {aignostics-0.2.62 → aignostics-0.2.65}/pyproject.toml +14 -13
- aignostics-0.2.65/src/aignostics/application/_gui/assets/.gitignore +1 -0
- aignostics-0.2.65/src/aignostics/application/_gui/assets/home-card-1.png +0 -0
- aignostics-0.2.65/src/aignostics/application/_gui/assets/home-card-2.png +0 -0
- aignostics-0.2.65/src/aignostics/application/_gui/assets/home-card-3.png +0 -0
- aignostics-0.2.65/src/aignostics/application/_gui/assets/home-card-4.png +0 -0
- aignostics-0.2.65/src/aignostics/application/_gui/assets/home-card-5.png +0 -0
- aignostics-0.2.65/src/aignostics/bucket/_cli.py +324 -0
- aignostics-0.2.65/src/aignostics/bucket/_gui.py +414 -0
- aignostics-0.2.65/src/aignostics/bucket/_service.py +627 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/dataset/_gui.py +1 -1
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/platform/_authentication.py +4 -1
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/platform/_service.py +1 -1
- aignostics-0.2.62/src/aignostics/application/_gui/assets/home-card-1.png +0 -0
- aignostics-0.2.62/src/aignostics/application/_gui/assets/home-card-2.png +0 -0
- aignostics-0.2.62/src/aignostics/application/_gui/assets/home-card-3.png +0 -0
- aignostics-0.2.62/src/aignostics/application/_gui/assets/home-card-4.png +0 -0
- aignostics-0.2.62/src/aignostics/application/_gui/assets/home-card-5.png +0 -0
- aignostics-0.2.62/src/aignostics/bucket/_cli.py +0 -345
- aignostics-0.2.62/src/aignostics/bucket/_gui.py +0 -172
- aignostics-0.2.62/src/aignostics/bucket/_service.py +0 -387
- {aignostics-0.2.62 → aignostics-0.2.65}/.gitignore +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/LICENSE +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/README.md +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/.openapi-generator/FILES +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/.openapi-generator/VERSION +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/api/public_api.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/api_client.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/api_response.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/configuration.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/exceptions.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/__init__.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/application_read_response.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/application_run_status.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/application_version_read_response.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/http_validation_error.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/input_artifact_creation_request.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/input_artifact_read_response.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/item_creation_request.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/item_result_read_response.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/item_status.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/output_artifact_read_response.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/output_artifact_result_read_response.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/output_artifact_scope.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/payload_input_artifact.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/payload_item.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/payload_output_artifact.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/run_creation_request.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/run_creation_response.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/run_read_response.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/transfer_urls.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/user_payload.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/validation_error.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/models/validation_error_loc_inner.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/aignx/codegen/rest.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/codegen/out/docs/PublicApi.md +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-13/aignostics/_internal/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-13/aignostics/_internal/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-13/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.jquery +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-13/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-13/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon-scalebar +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-13/aignostics.app/Contents/Frameworks/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-13/aignostics.app/Contents/Frameworks/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-13/aignostics.app/Contents/Frameworks/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.jquery +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-13/aignostics.app/Contents/Frameworks/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-13/aignostics.app/Contents/Frameworks/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon-scalebar +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-13/aignostics.app/Contents/Resources/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-13/aignostics.app/Contents/Resources/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-13/aignostics.app/Contents/Resources/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.jquery +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-13/aignostics.app/Contents/Resources/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-13/aignostics.app/Contents/Resources/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon-scalebar +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-latest/aignostics/_internal/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-latest/aignostics/_internal/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-latest/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.jquery +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-latest/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-latest/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon-scalebar +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-latest/aignostics.app/Contents/Frameworks/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-latest/aignostics.app/Contents/Frameworks/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-latest/aignostics.app/Contents/Frameworks/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.jquery +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-latest/aignostics.app/Contents/Frameworks/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-latest/aignostics.app/Contents/Frameworks/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon-scalebar +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-latest/aignostics.app/Contents/Resources/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-latest/aignostics.app/Contents/Resources/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-latest/aignostics.app/Contents/Resources/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.jquery +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-latest/aignostics.app/Contents/Resources/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-macos-latest/aignostics.app/Contents/Resources/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon-scalebar +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-ubuntu-24.04-arm/aignostics/_internal/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-ubuntu-24.04-arm/aignostics/_internal/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-ubuntu-24.04-arm/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.jquery +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-ubuntu-24.04-arm/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-ubuntu-24.04-arm/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon-scalebar +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-ubuntu-latest/aignostics/_internal/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-ubuntu-latest/aignostics/_internal/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-ubuntu-latest/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.jquery +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-ubuntu-latest/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-ubuntu-latest/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon-scalebar +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-windows-11-arm/aignostics/_internal/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-windows-11-arm/aignostics/_internal/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-windows-11-arm/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.jquery +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-windows-11-arm/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-windows-11-arm/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon-scalebar +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-windows-latest/aignostics/_internal/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-windows-latest/aignostics/_internal/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-windows-latest/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.jquery +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-windows-latest/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/dist_native_all/dist_native-windows-latest/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon-scalebar +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/examples/__init__.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/examples/notebook.ipynb +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/examples/script.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/__init__.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/__init__.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_cli.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_gui/_frame.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_gui/_page_application_describe.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_gui/_page_application_run_describe.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_gui/_page_builder.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_gui/_page_index.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_gui/_utils.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_gui/assets/canceled.lottie +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_gui/assets/done.lottie +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_gui/assets/empty.lottie +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_gui/assets/error.lottie +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_gui/assets/error_alt.lottie +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_gui/assets/image-not-found.png +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_gui/assets/pending.lottie +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_gui/assets/pending_alt.lottie +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_gui/assets/ruo.png +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_gui/assets/ruo.svg +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_service.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_settings.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/application/_utils.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/bucket/__init__.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/bucket/_settings.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/bucket/assets/Google-Cloud-logo.png +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/bucket/assets/Google-Cloud-logo.svg +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/cli.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/constants.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/dataset/__init__.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/dataset/_cli.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/dataset/_service.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/dataset/assets/NIH-IDC-logo.svg +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/gui/__init__.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/gui/_frame.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/gui/_theme.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/gui/assets/cabin-v27-latin-regular.woff2 +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/gui/assets/logo.png +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/notebook/__init__.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/notebook/_gui.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/notebook/_notebook.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/notebook/_service.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/notebook/assets/python.lottie +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/platform/__init__.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/platform/_cli.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/platform/_client.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/platform/_constants.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/platform/_messages.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/platform/_settings.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/platform/_utils.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/platform/resources/__init__.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/platform/resources/applications.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/platform/resources/runs.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/platform/resources/utils.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/qupath/__init__.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/qupath/_cli.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/qupath/_gui.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/qupath/_service.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/qupath/_settings.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/qupath/assets/download.lottie +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/qupath/assets/microscope.lottie +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/qupath/assets/update.lottie +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/qupath/scripts/add.groovy +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/qupath/scripts/annotate.groovy +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/qupath/scripts/inspect.groovy +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/qupath/scripts/test.groovy +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/system/__init__.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/system/_cli.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/system/_exceptions.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/system/_gui.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/system/_service.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/system/_settings.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/system/assets/system.lottie +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/third_party/bottle.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/third_party/idc_index.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/utils/__init__.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/utils/_cli.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/utils/_console.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/utils/_constants.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/utils/_di.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/utils/_fs.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/utils/_gui.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/utils/_health.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/utils/_log.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/utils/_logfire.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/utils/_notebook.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/utils/_process.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/utils/_sentry.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/utils/_service.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/utils/_settings.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/utils/boot.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/wsi/__init__.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/wsi/_cli.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/wsi/_gui.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/wsi/_openslide_handler.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/wsi/_pydicom_handler.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/wsi/_service.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/wsi/_utils.py +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/src/aignostics/wsi/assets/fallback.png +0 -0
- {aignostics-0.2.62 → aignostics-0.2.65}/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.65
|
|
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,12 +50,12 @@ 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.38.
|
|
53
|
+
Requires-Dist: boto3>=1.38.39
|
|
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.115.
|
|
58
|
-
Requires-Dist: google-cloud-storage>=
|
|
57
|
+
Requires-Dist: fastapi[all,standard]>=0.115.13
|
|
58
|
+
Requires-Dist: google-cloud-storage>=3.1.1
|
|
59
59
|
Requires-Dist: google-crc32c>=1.7.1
|
|
60
60
|
Requires-Dist: highdicom>=0.25.1
|
|
61
61
|
Requires-Dist: httpx>=0.28.1
|
|
@@ -64,7 +64,7 @@ Requires-Dist: idc-index-data==21.0.0
|
|
|
64
64
|
Requires-Dist: ijson>=3.4.0
|
|
65
65
|
Requires-Dist: jsf>=0.11.2
|
|
66
66
|
Requires-Dist: jsonschema>=4.24.0
|
|
67
|
-
Requires-Dist: logfire[system-metrics]>=3.
|
|
67
|
+
Requires-Dist: logfire[system-metrics]>=3.21.1
|
|
68
68
|
Requires-Dist: nicegui[native]>=2.20.0
|
|
69
69
|
Requires-Dist: openslide-bin>=4.0.0.8
|
|
70
70
|
Requires-Dist: openslide-python>=1.4.2
|
|
@@ -95,13 +95,13 @@ Requires-Dist: show-in-file-manager>=1.1.5
|
|
|
95
95
|
Requires-Dist: tqdm>=4.67.1
|
|
96
96
|
Requires-Dist: typer>=0.16.0
|
|
97
97
|
Requires-Dist: uptime>=3.0.1
|
|
98
|
-
Requires-Dist: urllib3>=2.
|
|
98
|
+
Requires-Dist: urllib3>=2.5.0
|
|
99
99
|
Requires-Dist: wsidicom>=0.27.1
|
|
100
100
|
Provides-Extra: jupyter
|
|
101
101
|
Requires-Dist: jupyter>=1.1.1; extra == 'jupyter'
|
|
102
102
|
Provides-Extra: marimo
|
|
103
103
|
Requires-Dist: cloudpathlib>=0.21.1; extra == 'marimo'
|
|
104
|
-
Requires-Dist: marimo>=0.
|
|
104
|
+
Requires-Dist: marimo>=0.14.0; extra == 'marimo'
|
|
105
105
|
Requires-Dist: matplotlib>=3.10.3; extra == 'marimo'
|
|
106
106
|
Requires-Dist: shapely>=2.1.0; extra == 'marimo'
|
|
107
107
|
Provides-Extra: qupath
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "aignostics"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.65"
|
|
4
4
|
description = "🔬 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
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
@@ -74,8 +74,8 @@ requires-python = ">=3.11, <4.0"
|
|
|
74
74
|
|
|
75
75
|
dependencies = [
|
|
76
76
|
# From Template
|
|
77
|
-
"fastapi[standard,all]>=0.115.
|
|
78
|
-
"logfire[system-metrics]>=3.
|
|
77
|
+
"fastapi[standard,all]>=0.115.13",
|
|
78
|
+
"logfire[system-metrics]>=3.21.1",
|
|
79
79
|
"nicegui[native]>=2.20.0",
|
|
80
80
|
"opentelemetry-instrumentation-fastapi>=0.53b0",
|
|
81
81
|
"opentelemetry-instrumentation-httpx>=0.53b0",
|
|
@@ -94,11 +94,11 @@ dependencies = [
|
|
|
94
94
|
# Custom
|
|
95
95
|
"appdirs>=1.4.4",
|
|
96
96
|
"auth0-python>=4.10.0",
|
|
97
|
-
"boto3>=1.38.
|
|
97
|
+
"boto3>=1.38.39",
|
|
98
98
|
"dicom-validator>=0.7.1",
|
|
99
99
|
"dicomweb-client[gcp]>=0.59.2",
|
|
100
100
|
"duckdb>=0.10.0,<=1.4.0",
|
|
101
|
-
"google-cloud-storage>=
|
|
101
|
+
"google-cloud-storage>=3.1.1",
|
|
102
102
|
"google-crc32c>=1.7.1",
|
|
103
103
|
"highdicom>=0.25.1",
|
|
104
104
|
"httpx>=0.28.1",
|
|
@@ -124,7 +124,7 @@ dependencies = [
|
|
|
124
124
|
"shapely>=2.1.1",
|
|
125
125
|
"show-in-file-manager>=1.1.5",
|
|
126
126
|
"tqdm>=4.67.1",
|
|
127
|
-
"urllib3>=2.
|
|
127
|
+
"urllib3>=2.5.0",
|
|
128
128
|
"wsidicom>=0.27.1",
|
|
129
129
|
]
|
|
130
130
|
|
|
@@ -132,7 +132,7 @@ dependencies = [
|
|
|
132
132
|
jupyter = ["jupyter>=1.1.1"]
|
|
133
133
|
marimo = [
|
|
134
134
|
"cloudpathlib>=0.21.1",
|
|
135
|
-
"marimo>=0.
|
|
135
|
+
"marimo>=0.14.0",
|
|
136
136
|
"matplotlib>=3.10.3",
|
|
137
137
|
"shapely>=2.1.0",
|
|
138
138
|
]
|
|
@@ -153,10 +153,10 @@ dev = [
|
|
|
153
153
|
"pip-licenses @ git+https://github.com/neXenio/pip-licenses.git@master", # https://github.com/raimon49/pip-licenses/pull/224
|
|
154
154
|
"pre-commit>=4.1.0",
|
|
155
155
|
"pyinstaller>=6.14.0",
|
|
156
|
-
"pyright>=1.1.
|
|
157
|
-
"pytest>=8.4.
|
|
156
|
+
"pyright>=1.1.402",
|
|
157
|
+
"pytest>=8.4.1",
|
|
158
158
|
"pytest-asyncio>=1.0.0",
|
|
159
|
-
"pytest-cov>=6.
|
|
159
|
+
"pytest-cov>=6.2.1",
|
|
160
160
|
"pytest-docker>=3.2.2",
|
|
161
161
|
"pytest-env>=1.1.5",
|
|
162
162
|
"pytest-md-report>=0.7.0",
|
|
@@ -167,7 +167,7 @@ dev = [
|
|
|
167
167
|
"pytest-timeout>=2.4.0",
|
|
168
168
|
"pytest-watcher>=0.4.3",
|
|
169
169
|
"pytest-xdist[psutil]>=3.7.0",
|
|
170
|
-
"ruff>=0.
|
|
170
|
+
"ruff>=0.12.0",
|
|
171
171
|
"scalene>=1.5.51",
|
|
172
172
|
"sphinx>=8.2.3",
|
|
173
173
|
"sphinx-autobuild>=2024.10.3",
|
|
@@ -182,7 +182,7 @@ dev = [
|
|
|
182
182
|
"swagger-plugin-for-sphinx>=5.1.0",
|
|
183
183
|
"tomli>=2.1.0",
|
|
184
184
|
"types-pyyaml>=6.0.12.20250516",
|
|
185
|
-
"types-requests>=2.32.
|
|
185
|
+
"types-requests>=2.32.4.20250611",
|
|
186
186
|
"watchdog>=6.0.0",
|
|
187
187
|
]
|
|
188
188
|
|
|
@@ -215,6 +215,7 @@ override-dependencies = [ # https://github.com/astral-sh/uv/issues/4422
|
|
|
215
215
|
"h11>=0.16.0", # CVE-2025-43859
|
|
216
216
|
"tornado>=6.5.0", # CVE-2025-47287
|
|
217
217
|
"jupyter-core>=5.8.1", # CVE-2025-30167
|
|
218
|
+
"urllib3>=2.5.0", # CVE-2025-50181, CVE-2025-50182
|
|
218
219
|
]
|
|
219
220
|
|
|
220
221
|
[tool.ruff]
|
|
@@ -352,7 +353,7 @@ source = ["src/"]
|
|
|
352
353
|
|
|
353
354
|
|
|
354
355
|
[tool.bumpversion]
|
|
355
|
-
current_version = "0.2.
|
|
356
|
+
current_version = "0.2.65"
|
|
356
357
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
|
357
358
|
serialize = ["{major}.{minor}.{patch}"]
|
|
358
359
|
search = "{current_version}"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
orig
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
"""CLI of bucket module."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import datetime
|
|
6
|
+
import json
|
|
7
|
+
import sys
|
|
8
|
+
from pathlib import Path # noqa: TC003
|
|
9
|
+
from typing import Annotated
|
|
10
|
+
|
|
11
|
+
import humanize
|
|
12
|
+
import typer
|
|
13
|
+
|
|
14
|
+
from aignostics.utils import console, get_logger, get_user_data_directory
|
|
15
|
+
|
|
16
|
+
from ._service import DownloadProgress, Service
|
|
17
|
+
|
|
18
|
+
MESSAGE_NOT_YET_IMPLEMENTED = "NOT YET IMPLEMENTED"
|
|
19
|
+
|
|
20
|
+
logger = get_logger(__name__)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
cli = typer.Typer(
|
|
24
|
+
name="bucket",
|
|
25
|
+
help="Operations on cloud bucket on Aignostics Platform.",
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@cli.command()
|
|
30
|
+
def upload(
|
|
31
|
+
source: Annotated[
|
|
32
|
+
Path,
|
|
33
|
+
typer.Argument(
|
|
34
|
+
help="Source file or directory to upload",
|
|
35
|
+
exists=True,
|
|
36
|
+
file_okay=True,
|
|
37
|
+
dir_okay=True,
|
|
38
|
+
writable=False,
|
|
39
|
+
readable=True,
|
|
40
|
+
resolve_path=False,
|
|
41
|
+
),
|
|
42
|
+
],
|
|
43
|
+
destination_prefix: Annotated[
|
|
44
|
+
str,
|
|
45
|
+
typer.Option(
|
|
46
|
+
help="Destination layout. Supports {username}, {timestamp}. "
|
|
47
|
+
'E.g. you might want to use "{username}/myproject/"'
|
|
48
|
+
),
|
|
49
|
+
] = "{username}",
|
|
50
|
+
) -> None:
|
|
51
|
+
"""Upload file or directory to bucket in Aignostics platform."""
|
|
52
|
+
import psutil # noqa: PLC0415
|
|
53
|
+
from rich.progress import ( # noqa: PLC0415
|
|
54
|
+
BarColumn,
|
|
55
|
+
FileSizeColumn,
|
|
56
|
+
Progress,
|
|
57
|
+
TaskProgressColumn,
|
|
58
|
+
TextColumn,
|
|
59
|
+
TimeRemainingColumn,
|
|
60
|
+
TotalFileSizeColumn,
|
|
61
|
+
TransferSpeedColumn,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
console.print(f"Uploading {source} to bucket...")
|
|
65
|
+
|
|
66
|
+
total_bytes = 0
|
|
67
|
+
files_count = 0
|
|
68
|
+
|
|
69
|
+
if source.is_file():
|
|
70
|
+
total_bytes = source.stat().st_size
|
|
71
|
+
files_count = 1
|
|
72
|
+
else:
|
|
73
|
+
for file_path in source.glob("**/*"):
|
|
74
|
+
if file_path.is_file():
|
|
75
|
+
total_bytes += file_path.stat().st_size
|
|
76
|
+
files_count += 1
|
|
77
|
+
|
|
78
|
+
console.print(f"Found {files_count} files with total size of {humanize.naturalsize(total_bytes)}")
|
|
79
|
+
|
|
80
|
+
username = psutil.Process().username()
|
|
81
|
+
timestamp = datetime.datetime.now(tz=datetime.UTC).strftime("%Y%m%d_%H%M%S")
|
|
82
|
+
base_prefix = destination_prefix.format(username=username, timestamp=timestamp)
|
|
83
|
+
base_prefix = base_prefix.strip("/")
|
|
84
|
+
|
|
85
|
+
with Progress(
|
|
86
|
+
TextColumn(
|
|
87
|
+
f"[progress.description]Uploading from {source.name} to "
|
|
88
|
+
f"{Service().get_bucket_protocol()}:/{Service().get_bucket_name()}/{base_prefix}"
|
|
89
|
+
),
|
|
90
|
+
BarColumn(),
|
|
91
|
+
TaskProgressColumn(),
|
|
92
|
+
TimeRemainingColumn(),
|
|
93
|
+
FileSizeColumn(),
|
|
94
|
+
TotalFileSizeColumn(),
|
|
95
|
+
TransferSpeedColumn(),
|
|
96
|
+
TextColumn("[progress.description]{task.description}"),
|
|
97
|
+
) as progress:
|
|
98
|
+
task = progress.add_task(f"Uploading to {base_prefix}/...", total=total_bytes)
|
|
99
|
+
|
|
100
|
+
def update_progress(bytes_uploaded: int, file: Path) -> None:
|
|
101
|
+
relpath = file.relative_to(source)
|
|
102
|
+
progress.update(task, advance=bytes_uploaded, description=f"{relpath}")
|
|
103
|
+
|
|
104
|
+
results = Service().upload(source, base_prefix, update_progress)
|
|
105
|
+
|
|
106
|
+
if results["success"]:
|
|
107
|
+
console.print(f"[green]Successfully uploaded {len(results['success'])} files:[/green]")
|
|
108
|
+
for key in results["success"]:
|
|
109
|
+
console.print(f" [green]- {key}[/green]")
|
|
110
|
+
|
|
111
|
+
if results["failed"]:
|
|
112
|
+
console.print(f"[red]Failed to upload {len(results['failed'])} files:[/red]")
|
|
113
|
+
for key in results["failed"]:
|
|
114
|
+
console.print(f" [red]- {key}[/red]")
|
|
115
|
+
|
|
116
|
+
if not results["failed"]:
|
|
117
|
+
console.print("[green]All files uploaded successfully![/green]")
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
@cli.command()
|
|
121
|
+
def find(
|
|
122
|
+
what: Annotated[
|
|
123
|
+
list[str] | None,
|
|
124
|
+
typer.Argument(help="Patterns or keys to match object keys against - all if not specified."),
|
|
125
|
+
] = None,
|
|
126
|
+
what_is_key: Annotated[
|
|
127
|
+
bool,
|
|
128
|
+
typer.Option(
|
|
129
|
+
help="Specify if 'what' is a single object key. If not specified, 'what' is treated as a regex pattern.",
|
|
130
|
+
),
|
|
131
|
+
] = False,
|
|
132
|
+
detail: Annotated[bool, typer.Option(help="Show details")] = False,
|
|
133
|
+
signed_urls: Annotated[bool, typer.Option("--signed-urls", help="Include signed download URLs")] = False,
|
|
134
|
+
) -> None:
|
|
135
|
+
"""Find objects in bucket on Aignostics Platform."""
|
|
136
|
+
try:
|
|
137
|
+
result = Service().find(what, what_is_key, detail, signed_urls)
|
|
138
|
+
console.print_json(json=json.dumps(result, default=str))
|
|
139
|
+
except ValueError as e:
|
|
140
|
+
msg = f"Failed to find objects matching {what or 'all'}: {e!s}"
|
|
141
|
+
logger.exception(msg)
|
|
142
|
+
console.print(f"[red]Error:[/red] {e}")
|
|
143
|
+
sys.exit(2)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
@cli.command()
|
|
147
|
+
def download(
|
|
148
|
+
what: Annotated[
|
|
149
|
+
list[str] | None,
|
|
150
|
+
typer.Argument(help="Patterns or keys to match object keys against - all if not specified."),
|
|
151
|
+
] = None,
|
|
152
|
+
what_is_key: Annotated[
|
|
153
|
+
bool,
|
|
154
|
+
typer.Option(
|
|
155
|
+
help="Specify if 'what' is a single object key. If not specified, 'what' is treated as a regex pattern.",
|
|
156
|
+
),
|
|
157
|
+
] = False,
|
|
158
|
+
destination: Annotated[
|
|
159
|
+
Path,
|
|
160
|
+
typer.Option(
|
|
161
|
+
help="Destination directory to download the matching objects to.",
|
|
162
|
+
exists=False,
|
|
163
|
+
file_okay=False,
|
|
164
|
+
dir_okay=True,
|
|
165
|
+
writable=True,
|
|
166
|
+
readable=True,
|
|
167
|
+
resolve_path=True,
|
|
168
|
+
),
|
|
169
|
+
] = get_user_data_directory("bucket_downloads"), # noqa: B008
|
|
170
|
+
) -> None:
|
|
171
|
+
"""Download objects from bucket in Aignostics platform to local directory."""
|
|
172
|
+
service = Service()
|
|
173
|
+
|
|
174
|
+
try:
|
|
175
|
+
matched_objects = service.find(what, what_is_key)
|
|
176
|
+
if not matched_objects:
|
|
177
|
+
console.print(f"[warning]No objects found matching {what or 'all'}[/warning]")
|
|
178
|
+
return
|
|
179
|
+
except ValueError as e:
|
|
180
|
+
msg = f"Failed to find objects matching {what or 'all'} on download to {destination}: {e!s}"
|
|
181
|
+
logger.exception(msg)
|
|
182
|
+
console.print(f"[red]Error:[/red] {e}")
|
|
183
|
+
sys.exit(2)
|
|
184
|
+
|
|
185
|
+
from rich.console import Group # noqa: PLC0415
|
|
186
|
+
from rich.live import Live # noqa: PLC0415
|
|
187
|
+
from rich.panel import Panel # noqa: PLC0415
|
|
188
|
+
from rich.progress import ( # noqa: PLC0415
|
|
189
|
+
BarColumn,
|
|
190
|
+
FileSizeColumn,
|
|
191
|
+
Progress,
|
|
192
|
+
TaskID,
|
|
193
|
+
TaskProgressColumn,
|
|
194
|
+
TextColumn,
|
|
195
|
+
TimeElapsedColumn,
|
|
196
|
+
TimeRemainingColumn,
|
|
197
|
+
TotalFileSizeColumn,
|
|
198
|
+
TransferSpeedColumn,
|
|
199
|
+
)
|
|
200
|
+
|
|
201
|
+
main_progress = Progress(
|
|
202
|
+
BarColumn(),
|
|
203
|
+
TaskProgressColumn(),
|
|
204
|
+
TimeElapsedColumn(),
|
|
205
|
+
TextColumn("[progress.description]{task.description}"),
|
|
206
|
+
)
|
|
207
|
+
|
|
208
|
+
file_progress = Progress(
|
|
209
|
+
BarColumn(),
|
|
210
|
+
TaskProgressColumn(),
|
|
211
|
+
TimeElapsedColumn(),
|
|
212
|
+
TimeRemainingColumn(),
|
|
213
|
+
FileSizeColumn(),
|
|
214
|
+
TotalFileSizeColumn(),
|
|
215
|
+
TransferSpeedColumn(),
|
|
216
|
+
TextColumn("[progress.description]{task.description}"),
|
|
217
|
+
)
|
|
218
|
+
|
|
219
|
+
progress_group = Panel(
|
|
220
|
+
Group(main_progress, file_progress),
|
|
221
|
+
title=f"Download objects matching {what or 'all'}",
|
|
222
|
+
subtitle=f"Destination '{destination}'",
|
|
223
|
+
)
|
|
224
|
+
|
|
225
|
+
current_file_task: TaskID | None = None
|
|
226
|
+
main_task = main_progress.add_task("", total=len(matched_objects))
|
|
227
|
+
|
|
228
|
+
def progress_callback(progress: DownloadProgress) -> None:
|
|
229
|
+
nonlocal current_file_task
|
|
230
|
+
main_progress.update(
|
|
231
|
+
main_task,
|
|
232
|
+
completed=progress.overall_processed,
|
|
233
|
+
description=f"Object {progress.overall_current} of {progress.overall_total}",
|
|
234
|
+
)
|
|
235
|
+
|
|
236
|
+
if progress.current_file_key:
|
|
237
|
+
file_description = f"{progress.current_file_key}"
|
|
238
|
+
if current_file_task is None:
|
|
239
|
+
current_file_task = file_progress.add_task(file_description, total=progress.current_file_size)
|
|
240
|
+
file_progress.update(
|
|
241
|
+
current_file_task,
|
|
242
|
+
completed=progress.current_file_downloaded,
|
|
243
|
+
total=progress.current_file_size,
|
|
244
|
+
description=file_description,
|
|
245
|
+
)
|
|
246
|
+
elif current_file_task is not None:
|
|
247
|
+
file_progress.remove_task(current_file_task)
|
|
248
|
+
current_file_task = None
|
|
249
|
+
|
|
250
|
+
try:
|
|
251
|
+
with Live(progress_group, console=console, refresh_per_second=10, transient=True):
|
|
252
|
+
result = service.download(what, destination, what_is_key, progress_callback)
|
|
253
|
+
except ValueError as e:
|
|
254
|
+
msg = f"Failed to download objects matching {what or 'all'} to {destination}: {e!s}"
|
|
255
|
+
logger.exception(msg)
|
|
256
|
+
console.print(f"[red]Error:[/red] {e!s}")
|
|
257
|
+
sys.exit(2)
|
|
258
|
+
|
|
259
|
+
for downloaded_path in result.downloaded:
|
|
260
|
+
console.print(f"[green]✓[/green] Downloaded: {downloaded_path.name}")
|
|
261
|
+
|
|
262
|
+
for failed_key in result.failed:
|
|
263
|
+
console.print(f"[red]✗[/red] Failed: {failed_key}")
|
|
264
|
+
|
|
265
|
+
console.print(
|
|
266
|
+
f"[bold]Summary:[/bold] [success]{result.downloaded_count}[/success] downloaded, "
|
|
267
|
+
f"[error]{result.failed_count}[/error] failed, [info]{result.total_count}[/info] total"
|
|
268
|
+
)
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
@cli.command()
|
|
272
|
+
def delete(
|
|
273
|
+
what: Annotated[
|
|
274
|
+
list[str],
|
|
275
|
+
typer.Argument(help="Patterns or keys to match object keys against."),
|
|
276
|
+
],
|
|
277
|
+
what_is_key: Annotated[
|
|
278
|
+
bool,
|
|
279
|
+
typer.Option(
|
|
280
|
+
help="Specify if 'what' is a single object key. If not specified, 'what' is treated as a regex pattern.",
|
|
281
|
+
),
|
|
282
|
+
] = False,
|
|
283
|
+
dry_run: Annotated[
|
|
284
|
+
bool,
|
|
285
|
+
typer.Option(
|
|
286
|
+
help="If set, only determines number of items that would be deleted, without actually deleting.",
|
|
287
|
+
),
|
|
288
|
+
] = True,
|
|
289
|
+
) -> None:
|
|
290
|
+
"""Delete objects in bucket on Aignostics Platform."""
|
|
291
|
+
try:
|
|
292
|
+
deleted_count = Service().delete(what, what_is_key, dry_run)
|
|
293
|
+
if deleted_count > 0:
|
|
294
|
+
action = "Would delete" if dry_run else "Deleted"
|
|
295
|
+
console.print(f"[green]✓[/green] {action} {deleted_count} object(s) matching {what}")
|
|
296
|
+
else:
|
|
297
|
+
console.print(f"[yellow]⚠[/yellow] No objects found matching pattern {what}")
|
|
298
|
+
except ValueError as e:
|
|
299
|
+
msg = f"Failed to delete objects matching {what}: {e!s}"
|
|
300
|
+
logger.exception(msg)
|
|
301
|
+
console.print(f"[red]Error:[/red] {e}")
|
|
302
|
+
sys.exit(2)
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
@cli.command()
|
|
306
|
+
def purge(
|
|
307
|
+
dry_run: Annotated[
|
|
308
|
+
bool,
|
|
309
|
+
typer.Option(help="If set, only determines number of items that would be deleted, without actually deleting."),
|
|
310
|
+
] = True,
|
|
311
|
+
) -> None:
|
|
312
|
+
"""Purge all objects in bucket on Aignostics Platform."""
|
|
313
|
+
try:
|
|
314
|
+
deleted_count = Service().delete(what=None, what_is_key=False, dry_run=dry_run)
|
|
315
|
+
if deleted_count > 0:
|
|
316
|
+
action = "Would purge bucket by deleting" if dry_run else "Purged bucket by deleting"
|
|
317
|
+
console.print(f"[green]✓[/green] {action} {deleted_count} object(s)")
|
|
318
|
+
else:
|
|
319
|
+
console.print("[yellow]⚠[/yellow] No objects found to purge.")
|
|
320
|
+
except ValueError as e:
|
|
321
|
+
msg = f"Failed to purge bucket: {e!s}"
|
|
322
|
+
logger.exception(msg)
|
|
323
|
+
console.print(f"[red]Error:[/red] {e}")
|
|
324
|
+
sys.exit(2)
|