aignostics 0.2.44__tar.gz → 0.2.47__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.44 → aignostics-0.2.47}/PKG-INFO +3 -3
- aignostics-0.2.47/dist_native_all/dist_native-macos-latest/aignostics/_internal/boto3/examples/cloudfront.rst +35 -0
- aignostics-0.2.47/dist_native_all/dist_native-macos-latest/aignostics/_internal/boto3/examples/s3.rst +185 -0
- aignostics-0.2.47/dist_native_all/dist_native-macos-latest/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.jquery +20 -0
- aignostics-0.2.47/dist_native_all/dist_native-macos-latest/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon +28 -0
- aignostics-0.2.47/dist_native_all/dist_native-macos-latest/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon-scalebar +9 -0
- aignostics-0.2.47/dist_native_all/dist_native-macos-latest/aignostics.app/Contents/Frameworks/boto3/examples/cloudfront.rst +35 -0
- aignostics-0.2.47/dist_native_all/dist_native-macos-latest/aignostics.app/Contents/Frameworks/boto3/examples/s3.rst +185 -0
- aignostics-0.2.47/dist_native_all/dist_native-macos-latest/aignostics.app/Contents/Frameworks/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.jquery +20 -0
- aignostics-0.2.47/dist_native_all/dist_native-macos-latest/aignostics.app/Contents/Frameworks/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon +28 -0
- aignostics-0.2.47/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 +9 -0
- aignostics-0.2.47/dist_native_all/dist_native-macos-latest/aignostics.app/Contents/Resources/boto3/examples/cloudfront.rst +35 -0
- aignostics-0.2.47/dist_native_all/dist_native-macos-latest/aignostics.app/Contents/Resources/boto3/examples/s3.rst +185 -0
- aignostics-0.2.47/dist_native_all/dist_native-macos-latest/aignostics.app/Contents/Resources/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.jquery +20 -0
- aignostics-0.2.47/dist_native_all/dist_native-macos-latest/aignostics.app/Contents/Resources/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon +28 -0
- aignostics-0.2.47/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 +9 -0
- aignostics-0.2.47/dist_native_all/dist_native-ubuntu-24.04-arm/aignostics/_internal/boto3/examples/cloudfront.rst +35 -0
- aignostics-0.2.47/dist_native_all/dist_native-ubuntu-24.04-arm/aignostics/_internal/boto3/examples/s3.rst +185 -0
- aignostics-0.2.47/dist_native_all/dist_native-ubuntu-24.04-arm/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.jquery +20 -0
- aignostics-0.2.47/dist_native_all/dist_native-ubuntu-24.04-arm/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon +28 -0
- aignostics-0.2.47/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 +9 -0
- aignostics-0.2.47/dist_native_all/dist_native-ubuntu-latest/aignostics/_internal/boto3/examples/cloudfront.rst +35 -0
- aignostics-0.2.47/dist_native_all/dist_native-ubuntu-latest/aignostics/_internal/boto3/examples/s3.rst +185 -0
- aignostics-0.2.47/dist_native_all/dist_native-ubuntu-latest/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.jquery +20 -0
- aignostics-0.2.47/dist_native_all/dist_native-ubuntu-latest/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon +28 -0
- aignostics-0.2.47/dist_native_all/dist_native-ubuntu-latest/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon-scalebar +9 -0
- aignostics-0.2.47/dist_native_all/dist_native-windows-11-arm/aignostics/_internal/boto3/examples/cloudfront.rst +35 -0
- aignostics-0.2.47/dist_native_all/dist_native-windows-11-arm/aignostics/_internal/boto3/examples/s3.rst +185 -0
- aignostics-0.2.47/dist_native_all/dist_native-windows-11-arm/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.jquery +20 -0
- aignostics-0.2.47/dist_native_all/dist_native-windows-11-arm/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon +28 -0
- aignostics-0.2.47/dist_native_all/dist_native-windows-11-arm/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon-scalebar +9 -0
- aignostics-0.2.47/dist_native_all/dist_native-windows-latest/aignostics/_internal/boto3/examples/cloudfront.rst +35 -0
- aignostics-0.2.47/dist_native_all/dist_native-windows-latest/aignostics/_internal/boto3/examples/s3.rst +185 -0
- aignostics-0.2.47/dist_native_all/dist_native-windows-latest/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.jquery +20 -0
- aignostics-0.2.47/dist_native_all/dist_native-windows-latest/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon +28 -0
- aignostics-0.2.47/dist_native_all/dist_native-windows-latest/aignostics/_internal/openslide_python-1.4.2.dist-info/licenses/examples/deepzoom/licenses/LICENSE.openseadragon-scalebar +9 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/examples/notebook.py +1 -1
- {aignostics-0.2.44 → aignostics-0.2.47}/pyproject.toml +5 -5
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/notebook/_service.py +2 -2
- aignostics-0.2.44/examples/e2e.py +0 -165
- {aignostics-0.2.44 → aignostics-0.2.47}/.gitignore +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/LICENSE +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/README.md +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/.openapi-generator/FILES +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/.openapi-generator/VERSION +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/api/public_api.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/api_client.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/api_response.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/configuration.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/exceptions.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/__init__.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/application_read_response.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/application_run_status.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/application_version_read_response.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/http_validation_error.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/input_artifact_creation_request.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/input_artifact_read_response.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/item_creation_request.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/item_result_read_response.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/item_status.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/output_artifact_read_response.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/output_artifact_result_read_response.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/output_artifact_scope.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/payload_input_artifact.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/payload_item.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/payload_output_artifact.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/run_creation_request.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/run_creation_response.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/run_read_response.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/transfer_urls.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/user_payload.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/validation_error.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/models/validation_error_loc_inner.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/aignx/codegen/rest.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/codegen/out/docs/PublicApi.md +0 -0
- {aignostics-0.2.44/dist_native_all → aignostics-0.2.47/dist_native_all/dist_native-macos-13}/aignostics/_internal/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.44/dist_native_all → aignostics-0.2.47/dist_native_all/dist_native-macos-13}/aignostics/_internal/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.44/dist_native_all → aignostics-0.2.47/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.44/dist_native_all → aignostics-0.2.47/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.44/dist_native_all → aignostics-0.2.47/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.44/dist_native_all → aignostics-0.2.47/dist_native_all/dist_native-macos-13}/aignostics.app/Contents/Frameworks/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.44/dist_native_all → aignostics-0.2.47/dist_native_all/dist_native-macos-13}/aignostics.app/Contents/Frameworks/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.44/dist_native_all → aignostics-0.2.47/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.44/dist_native_all → aignostics-0.2.47/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.44/dist_native_all → aignostics-0.2.47/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.44/dist_native_all → aignostics-0.2.47/dist_native_all/dist_native-macos-13}/aignostics.app/Contents/Resources/boto3/examples/cloudfront.rst +0 -0
- {aignostics-0.2.44/dist_native_all → aignostics-0.2.47/dist_native_all/dist_native-macos-13}/aignostics.app/Contents/Resources/boto3/examples/s3.rst +0 -0
- {aignostics-0.2.44/dist_native_all → aignostics-0.2.47/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.44/dist_native_all → aignostics-0.2.47/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.44/dist_native_all → aignostics-0.2.47/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.44 → aignostics-0.2.47}/examples/__init__.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/examples/notebook.ipynb +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/examples/script.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/__init__.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/__init__.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_cli.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/_frame.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/_page_application_describe.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/_page_application_run_describe.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/_page_builder.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/_page_index.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/_utils.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/assets/canceled.lottie +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/assets/done.lottie +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/assets/empty.lottie +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/assets/error.lottie +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/assets/error_alt.lottie +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/assets/home-card-1.png +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/assets/home-card-2.png +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/assets/home-card-3.png +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/assets/home-card-4.png +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/assets/home-card-5.png +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/assets/image-not-found.png +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/assets/pending.lottie +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/assets/pending_alt.lottie +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/assets/ruo.png +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_gui/assets/ruo.svg +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_service.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_settings.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/application/_utils.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/bucket/__init__.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/bucket/_cli.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/bucket/_gui.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/bucket/_service.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/bucket/_settings.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/bucket/assets/Google-Cloud-logo.png +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/bucket/assets/Google-Cloud-logo.svg +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/cli.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/constants.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/dataset/__init__.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/dataset/_cli.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/dataset/_gui.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/dataset/_service.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/dataset/assets/NIH-IDC-logo.svg +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/gui/__init__.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/gui/_frame.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/gui/_theme.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/gui/assets/cabin-v27-latin-regular.woff2 +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/gui/assets/logo.png +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/notebook/__init__.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/notebook/_gui.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/notebook/_notebook.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/notebook/assets/python.lottie +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/platform/__init__.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/platform/_authentication.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/platform/_client.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/platform/_constants.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/platform/_messages.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/platform/_service.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/platform/_settings.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/platform/_utils.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/platform/resources/__init__.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/platform/resources/applications.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/platform/resources/runs.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/platform/resources/utils.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/qupath/__init__.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/qupath/_cli.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/qupath/_gui.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/qupath/_service.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/qupath/_settings.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/qupath/assets/download.lottie +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/qupath/assets/microscope.lottie +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/qupath/assets/update.lottie +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/qupath/scripts/add.groovy +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/qupath/scripts/annotate.groovy +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/qupath/scripts/inspect.groovy +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/qupath/scripts/test.groovy +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/system/__init__.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/system/_cli.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/system/_exceptions.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/system/_gui.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/system/_service.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/system/_settings.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/system/assets/system.lottie +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/third_party/bottle.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/third_party/idc_index.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/utils/__init__.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/utils/_cli.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/utils/_console.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/utils/_constants.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/utils/_di.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/utils/_fs.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/utils/_gui.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/utils/_health.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/utils/_log.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/utils/_logfire.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/utils/_notebook.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/utils/_process.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/utils/_sentry.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/utils/_service.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/utils/_settings.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/utils/boot.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/wsi/__init__.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/wsi/_cli.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/wsi/_gui.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/wsi/_openslide_handler.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/wsi/_pydicom_handler.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/wsi/_service.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/wsi/_utils.py +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/src/aignostics/wsi/assets/fallback.png +0 -0
- {aignostics-0.2.44 → aignostics-0.2.47}/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.47
|
|
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/
|
|
@@ -49,11 +49,11 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
49
49
|
Classifier: Typing :: Typed
|
|
50
50
|
Requires-Python: <4.0,>=3.11
|
|
51
51
|
Requires-Dist: appdirs>=1.4.4
|
|
52
|
-
Requires-Dist: boto3>=1.38.
|
|
52
|
+
Requires-Dist: boto3>=1.38.33
|
|
53
53
|
Requires-Dist: click
|
|
54
54
|
Requires-Dist: dicom-validator>=0.7.1
|
|
55
55
|
Requires-Dist: dicomweb-client[gcp]>=0.59.2
|
|
56
|
-
Requires-Dist: duckdb<=1.
|
|
56
|
+
Requires-Dist: duckdb<=1.4.0,>=0.10.0
|
|
57
57
|
Requires-Dist: fastapi[all,standard]>=0.115.12
|
|
58
58
|
Requires-Dist: google-cloud-storage>=2.12.0
|
|
59
59
|
Requires-Dist: google-crc32c>=1.7.1
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Generate a signed URL for Amazon CloudFront
|
|
2
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
3
|
+
|
|
4
|
+
The following example shows how to generate a signed URL for Amazon CloudFront.
|
|
5
|
+
Note that you will need the ``cryptography`` `library <https://cryptography.io/en/latest/>`__ to follow this example::
|
|
6
|
+
|
|
7
|
+
import datetime
|
|
8
|
+
|
|
9
|
+
from cryptography.hazmat.backends import default_backend
|
|
10
|
+
from cryptography.hazmat.primitives import hashes
|
|
11
|
+
from cryptography.hazmat.primitives import serialization
|
|
12
|
+
from cryptography.hazmat.primitives.asymmetric import padding
|
|
13
|
+
from botocore.signers import CloudFrontSigner
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def rsa_signer(message):
|
|
17
|
+
with open('path/to/key.pem', 'rb') as key_file:
|
|
18
|
+
private_key = serialization.load_pem_private_key(
|
|
19
|
+
key_file.read(),
|
|
20
|
+
password=None,
|
|
21
|
+
backend=default_backend()
|
|
22
|
+
)
|
|
23
|
+
return private_key.sign(message, padding.PKCS1v15(), hashes.SHA1())
|
|
24
|
+
|
|
25
|
+
key_id = 'AKIAIOSFODNN7EXAMPLE'
|
|
26
|
+
url = 'http://d2949o5mkkp72v.cloudfront.net/hello.txt'
|
|
27
|
+
expire_date = datetime.datetime(2017, 1, 1)
|
|
28
|
+
|
|
29
|
+
cloudfront_signer = CloudFrontSigner(key_id, rsa_signer)
|
|
30
|
+
|
|
31
|
+
# Create a signed url that will be valid until the specific expiry date
|
|
32
|
+
# provided using a canned policy.
|
|
33
|
+
signed_url = cloudfront_signer.generate_presigned_url(
|
|
34
|
+
url, date_less_than=expire_date)
|
|
35
|
+
print(signed_url)
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
List objects in an Amazon S3 bucket
|
|
2
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
3
|
+
|
|
4
|
+
The following example shows how to use an Amazon S3 bucket resource to list
|
|
5
|
+
the objects in the bucket.
|
|
6
|
+
|
|
7
|
+
.. code-block:: python
|
|
8
|
+
|
|
9
|
+
import boto3
|
|
10
|
+
|
|
11
|
+
s3 = boto3.resource('s3')
|
|
12
|
+
bucket = s3.Bucket('amzn-s3-demo-bucket')
|
|
13
|
+
for obj in bucket.objects.all():
|
|
14
|
+
print(obj.key)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
List top-level common prefixes in Amazon S3 bucket
|
|
18
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
19
|
+
|
|
20
|
+
This example shows how to list all of the top-level common prefixes in an
|
|
21
|
+
Amazon S3 bucket:
|
|
22
|
+
|
|
23
|
+
.. code-block:: python
|
|
24
|
+
|
|
25
|
+
import boto3
|
|
26
|
+
|
|
27
|
+
client = boto3.client('s3')
|
|
28
|
+
paginator = client.get_paginator('list_objects')
|
|
29
|
+
result = paginator.paginate(Bucket='amzn-s3-demo-bucket', Delimiter='/')
|
|
30
|
+
for prefix in result.search('CommonPrefixes'):
|
|
31
|
+
print(prefix.get('Prefix'))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
Restore Glacier objects in an Amazon S3 bucket
|
|
35
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
36
|
+
|
|
37
|
+
The following example shows how to initiate restoration of glacier objects in
|
|
38
|
+
an Amazon S3 bucket, determine if a restoration is on-going, and determine if a
|
|
39
|
+
restoration is finished.
|
|
40
|
+
|
|
41
|
+
.. code-block:: python
|
|
42
|
+
|
|
43
|
+
import boto3
|
|
44
|
+
|
|
45
|
+
s3 = boto3.resource('s3')
|
|
46
|
+
bucket = s3.Bucket('amzn-s3-demo-bucket')
|
|
47
|
+
for obj_sum in bucket.objects.all():
|
|
48
|
+
obj = s3.Object(obj_sum.bucket_name, obj_sum.key)
|
|
49
|
+
if obj.storage_class == 'GLACIER':
|
|
50
|
+
# Try to restore the object if the storage class is glacier and
|
|
51
|
+
# the object does not have a completed or ongoing restoration
|
|
52
|
+
# request.
|
|
53
|
+
if obj.restore is None:
|
|
54
|
+
print('Submitting restoration request: %s' % obj.key)
|
|
55
|
+
obj.restore_object(RestoreRequest={'Days': 1})
|
|
56
|
+
# Print out objects whose restoration is on-going
|
|
57
|
+
elif 'ongoing-request="true"' in obj.restore:
|
|
58
|
+
print('Restoration in-progress: %s' % obj.key)
|
|
59
|
+
# Print out objects whose restoration is complete
|
|
60
|
+
elif 'ongoing-request="false"' in obj.restore:
|
|
61
|
+
print('Restoration complete: %s' % obj.key)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
Uploading/downloading files using SSE KMS
|
|
65
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
66
|
+
|
|
67
|
+
This example shows how to use SSE-KMS to upload objects using
|
|
68
|
+
server side encryption with a key managed by KMS.
|
|
69
|
+
|
|
70
|
+
We can either use the default KMS master key, or create a
|
|
71
|
+
custom key in AWS and use it to encrypt the object by passing in its
|
|
72
|
+
key id.
|
|
73
|
+
|
|
74
|
+
With KMS, nothing else needs to be provided for getting the
|
|
75
|
+
object; S3 already knows how to decrypt the object.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
.. code-block:: python
|
|
79
|
+
|
|
80
|
+
import boto3
|
|
81
|
+
import os
|
|
82
|
+
|
|
83
|
+
BUCKET = 'amzn-s3-demo-bucket'
|
|
84
|
+
s3 = boto3.client('s3')
|
|
85
|
+
keyid = '<the key id>'
|
|
86
|
+
|
|
87
|
+
print("Uploading S3 object with SSE-KMS")
|
|
88
|
+
s3.put_object(Bucket=BUCKET,
|
|
89
|
+
Key='encrypt-key',
|
|
90
|
+
Body=b'foobar',
|
|
91
|
+
ServerSideEncryption='aws:kms',
|
|
92
|
+
# Optional: SSEKMSKeyId
|
|
93
|
+
SSEKMSKeyId=keyid)
|
|
94
|
+
print("Done")
|
|
95
|
+
|
|
96
|
+
# Getting the object:
|
|
97
|
+
print("Getting S3 object...")
|
|
98
|
+
response = s3.get_object(Bucket=BUCKET,
|
|
99
|
+
Key='encrypt-key')
|
|
100
|
+
print("Done, response body:")
|
|
101
|
+
print(response['Body'].read())
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
Uploading/downloading files using SSE Customer Keys
|
|
105
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
106
|
+
|
|
107
|
+
This example shows how to use SSE-C to upload objects using
|
|
108
|
+
server side encryption with a customer provided key.
|
|
109
|
+
|
|
110
|
+
First, we'll need a 32 byte key. For this example, we'll
|
|
111
|
+
randomly generate a key but you can use any 32 byte key
|
|
112
|
+
you want. Remember, you must the same key to download
|
|
113
|
+
the object. If you lose the encryption key, you lose
|
|
114
|
+
the object.
|
|
115
|
+
|
|
116
|
+
Also note how we don't have to provide the SSECustomerKeyMD5.
|
|
117
|
+
Boto3 will automatically compute this value for us.
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
.. code-block:: python
|
|
121
|
+
|
|
122
|
+
import boto3
|
|
123
|
+
import os
|
|
124
|
+
|
|
125
|
+
BUCKET = 'amzn-s3-demo-bucket'
|
|
126
|
+
KEY = os.urandom(32)
|
|
127
|
+
s3 = boto3.client('s3')
|
|
128
|
+
|
|
129
|
+
print("Uploading S3 object with SSE-C")
|
|
130
|
+
s3.put_object(Bucket=BUCKET,
|
|
131
|
+
Key='encrypt-key',
|
|
132
|
+
Body=b'foobar',
|
|
133
|
+
SSECustomerKey=KEY,
|
|
134
|
+
SSECustomerAlgorithm='AES256')
|
|
135
|
+
print("Done")
|
|
136
|
+
|
|
137
|
+
# Getting the object:
|
|
138
|
+
print("Getting S3 object...")
|
|
139
|
+
# Note how we're using the same ``KEY`` we
|
|
140
|
+
# created earlier.
|
|
141
|
+
response = s3.get_object(Bucket=BUCKET,
|
|
142
|
+
Key='encrypt-key',
|
|
143
|
+
SSECustomerKey=KEY,
|
|
144
|
+
SSECustomerAlgorithm='AES256')
|
|
145
|
+
print("Done, response body:")
|
|
146
|
+
print(response['Body'].read())
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
Downloading a specific version of an S3 object
|
|
150
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
151
|
+
|
|
152
|
+
This example shows how to download a specific version of an
|
|
153
|
+
S3 object.
|
|
154
|
+
|
|
155
|
+
.. code-block:: python
|
|
156
|
+
|
|
157
|
+
import boto3
|
|
158
|
+
s3 = boto3.client('s3')
|
|
159
|
+
|
|
160
|
+
s3.download_file(
|
|
161
|
+
"amzn-s3-demo-bucket", "key-name", "tmp.txt",
|
|
162
|
+
ExtraArgs={"VersionId": "my-version-id"}
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
Filter objects by last modified time using JMESPath
|
|
167
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
168
|
+
|
|
169
|
+
This example shows how to filter objects by last modified time
|
|
170
|
+
using JMESPath.
|
|
171
|
+
|
|
172
|
+
.. code-block:: python
|
|
173
|
+
|
|
174
|
+
import boto3
|
|
175
|
+
s3 = boto3.client("s3")
|
|
176
|
+
|
|
177
|
+
s3_paginator = s3.get_paginator('list_objects_v2')
|
|
178
|
+
s3_iterator = s3_paginator.paginate(Bucket='amzn-s3-demo-bucket')
|
|
179
|
+
|
|
180
|
+
filtered_iterator = s3_iterator.search(
|
|
181
|
+
"Contents[?to_string(LastModified)>='\"2022-01-05 08:05:37+00:00\"'].Key"
|
|
182
|
+
)
|
|
183
|
+
|
|
184
|
+
for key_data in filtered_iterator:
|
|
185
|
+
print(key_data)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Copyright (C) 2009 CodePlex Foundation
|
|
2
|
+
Copyright (C) 2010-2024 OpenSeadragon contributors
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
|
6
|
+
|
|
7
|
+
- Redistributions of source code must retain the above copyright notice,
|
|
8
|
+
this list of conditions and the following disclaimer.
|
|
9
|
+
|
|
10
|
+
- Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
- Neither the name of CodePlex Foundation nor the names of its contributors
|
|
15
|
+
may be used to endorse or promote products derived from this software
|
|
16
|
+
without specific prior written permission.
|
|
17
|
+
|
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
19
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
20
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
21
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
|
22
|
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
23
|
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
24
|
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
25
|
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
26
|
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
27
|
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
28
|
+
POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
This software was developed at the National Institute of Standards and
|
|
2
|
+
Technology by employees of the Federal Government in the course of
|
|
3
|
+
their official duties. Pursuant to title 17 Section 105 of the United
|
|
4
|
+
States Code this software is not subject to copyright protection and is
|
|
5
|
+
in the public domain. This software is an experimental system. NIST assumes
|
|
6
|
+
no responsibility whatsoever for its use by other parties, and makes no
|
|
7
|
+
guarantees, expressed or implied, about its quality, reliability, or
|
|
8
|
+
any other characteristic. We would appreciate acknowledgement if the
|
|
9
|
+
software is used.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Generate a signed URL for Amazon CloudFront
|
|
2
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
3
|
+
|
|
4
|
+
The following example shows how to generate a signed URL for Amazon CloudFront.
|
|
5
|
+
Note that you will need the ``cryptography`` `library <https://cryptography.io/en/latest/>`__ to follow this example::
|
|
6
|
+
|
|
7
|
+
import datetime
|
|
8
|
+
|
|
9
|
+
from cryptography.hazmat.backends import default_backend
|
|
10
|
+
from cryptography.hazmat.primitives import hashes
|
|
11
|
+
from cryptography.hazmat.primitives import serialization
|
|
12
|
+
from cryptography.hazmat.primitives.asymmetric import padding
|
|
13
|
+
from botocore.signers import CloudFrontSigner
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def rsa_signer(message):
|
|
17
|
+
with open('path/to/key.pem', 'rb') as key_file:
|
|
18
|
+
private_key = serialization.load_pem_private_key(
|
|
19
|
+
key_file.read(),
|
|
20
|
+
password=None,
|
|
21
|
+
backend=default_backend()
|
|
22
|
+
)
|
|
23
|
+
return private_key.sign(message, padding.PKCS1v15(), hashes.SHA1())
|
|
24
|
+
|
|
25
|
+
key_id = 'AKIAIOSFODNN7EXAMPLE'
|
|
26
|
+
url = 'http://d2949o5mkkp72v.cloudfront.net/hello.txt'
|
|
27
|
+
expire_date = datetime.datetime(2017, 1, 1)
|
|
28
|
+
|
|
29
|
+
cloudfront_signer = CloudFrontSigner(key_id, rsa_signer)
|
|
30
|
+
|
|
31
|
+
# Create a signed url that will be valid until the specific expiry date
|
|
32
|
+
# provided using a canned policy.
|
|
33
|
+
signed_url = cloudfront_signer.generate_presigned_url(
|
|
34
|
+
url, date_less_than=expire_date)
|
|
35
|
+
print(signed_url)
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
List objects in an Amazon S3 bucket
|
|
2
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
3
|
+
|
|
4
|
+
The following example shows how to use an Amazon S3 bucket resource to list
|
|
5
|
+
the objects in the bucket.
|
|
6
|
+
|
|
7
|
+
.. code-block:: python
|
|
8
|
+
|
|
9
|
+
import boto3
|
|
10
|
+
|
|
11
|
+
s3 = boto3.resource('s3')
|
|
12
|
+
bucket = s3.Bucket('amzn-s3-demo-bucket')
|
|
13
|
+
for obj in bucket.objects.all():
|
|
14
|
+
print(obj.key)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
List top-level common prefixes in Amazon S3 bucket
|
|
18
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
19
|
+
|
|
20
|
+
This example shows how to list all of the top-level common prefixes in an
|
|
21
|
+
Amazon S3 bucket:
|
|
22
|
+
|
|
23
|
+
.. code-block:: python
|
|
24
|
+
|
|
25
|
+
import boto3
|
|
26
|
+
|
|
27
|
+
client = boto3.client('s3')
|
|
28
|
+
paginator = client.get_paginator('list_objects')
|
|
29
|
+
result = paginator.paginate(Bucket='amzn-s3-demo-bucket', Delimiter='/')
|
|
30
|
+
for prefix in result.search('CommonPrefixes'):
|
|
31
|
+
print(prefix.get('Prefix'))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
Restore Glacier objects in an Amazon S3 bucket
|
|
35
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
36
|
+
|
|
37
|
+
The following example shows how to initiate restoration of glacier objects in
|
|
38
|
+
an Amazon S3 bucket, determine if a restoration is on-going, and determine if a
|
|
39
|
+
restoration is finished.
|
|
40
|
+
|
|
41
|
+
.. code-block:: python
|
|
42
|
+
|
|
43
|
+
import boto3
|
|
44
|
+
|
|
45
|
+
s3 = boto3.resource('s3')
|
|
46
|
+
bucket = s3.Bucket('amzn-s3-demo-bucket')
|
|
47
|
+
for obj_sum in bucket.objects.all():
|
|
48
|
+
obj = s3.Object(obj_sum.bucket_name, obj_sum.key)
|
|
49
|
+
if obj.storage_class == 'GLACIER':
|
|
50
|
+
# Try to restore the object if the storage class is glacier and
|
|
51
|
+
# the object does not have a completed or ongoing restoration
|
|
52
|
+
# request.
|
|
53
|
+
if obj.restore is None:
|
|
54
|
+
print('Submitting restoration request: %s' % obj.key)
|
|
55
|
+
obj.restore_object(RestoreRequest={'Days': 1})
|
|
56
|
+
# Print out objects whose restoration is on-going
|
|
57
|
+
elif 'ongoing-request="true"' in obj.restore:
|
|
58
|
+
print('Restoration in-progress: %s' % obj.key)
|
|
59
|
+
# Print out objects whose restoration is complete
|
|
60
|
+
elif 'ongoing-request="false"' in obj.restore:
|
|
61
|
+
print('Restoration complete: %s' % obj.key)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
Uploading/downloading files using SSE KMS
|
|
65
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
66
|
+
|
|
67
|
+
This example shows how to use SSE-KMS to upload objects using
|
|
68
|
+
server side encryption with a key managed by KMS.
|
|
69
|
+
|
|
70
|
+
We can either use the default KMS master key, or create a
|
|
71
|
+
custom key in AWS and use it to encrypt the object by passing in its
|
|
72
|
+
key id.
|
|
73
|
+
|
|
74
|
+
With KMS, nothing else needs to be provided for getting the
|
|
75
|
+
object; S3 already knows how to decrypt the object.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
.. code-block:: python
|
|
79
|
+
|
|
80
|
+
import boto3
|
|
81
|
+
import os
|
|
82
|
+
|
|
83
|
+
BUCKET = 'amzn-s3-demo-bucket'
|
|
84
|
+
s3 = boto3.client('s3')
|
|
85
|
+
keyid = '<the key id>'
|
|
86
|
+
|
|
87
|
+
print("Uploading S3 object with SSE-KMS")
|
|
88
|
+
s3.put_object(Bucket=BUCKET,
|
|
89
|
+
Key='encrypt-key',
|
|
90
|
+
Body=b'foobar',
|
|
91
|
+
ServerSideEncryption='aws:kms',
|
|
92
|
+
# Optional: SSEKMSKeyId
|
|
93
|
+
SSEKMSKeyId=keyid)
|
|
94
|
+
print("Done")
|
|
95
|
+
|
|
96
|
+
# Getting the object:
|
|
97
|
+
print("Getting S3 object...")
|
|
98
|
+
response = s3.get_object(Bucket=BUCKET,
|
|
99
|
+
Key='encrypt-key')
|
|
100
|
+
print("Done, response body:")
|
|
101
|
+
print(response['Body'].read())
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
Uploading/downloading files using SSE Customer Keys
|
|
105
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
106
|
+
|
|
107
|
+
This example shows how to use SSE-C to upload objects using
|
|
108
|
+
server side encryption with a customer provided key.
|
|
109
|
+
|
|
110
|
+
First, we'll need a 32 byte key. For this example, we'll
|
|
111
|
+
randomly generate a key but you can use any 32 byte key
|
|
112
|
+
you want. Remember, you must the same key to download
|
|
113
|
+
the object. If you lose the encryption key, you lose
|
|
114
|
+
the object.
|
|
115
|
+
|
|
116
|
+
Also note how we don't have to provide the SSECustomerKeyMD5.
|
|
117
|
+
Boto3 will automatically compute this value for us.
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
.. code-block:: python
|
|
121
|
+
|
|
122
|
+
import boto3
|
|
123
|
+
import os
|
|
124
|
+
|
|
125
|
+
BUCKET = 'amzn-s3-demo-bucket'
|
|
126
|
+
KEY = os.urandom(32)
|
|
127
|
+
s3 = boto3.client('s3')
|
|
128
|
+
|
|
129
|
+
print("Uploading S3 object with SSE-C")
|
|
130
|
+
s3.put_object(Bucket=BUCKET,
|
|
131
|
+
Key='encrypt-key',
|
|
132
|
+
Body=b'foobar',
|
|
133
|
+
SSECustomerKey=KEY,
|
|
134
|
+
SSECustomerAlgorithm='AES256')
|
|
135
|
+
print("Done")
|
|
136
|
+
|
|
137
|
+
# Getting the object:
|
|
138
|
+
print("Getting S3 object...")
|
|
139
|
+
# Note how we're using the same ``KEY`` we
|
|
140
|
+
# created earlier.
|
|
141
|
+
response = s3.get_object(Bucket=BUCKET,
|
|
142
|
+
Key='encrypt-key',
|
|
143
|
+
SSECustomerKey=KEY,
|
|
144
|
+
SSECustomerAlgorithm='AES256')
|
|
145
|
+
print("Done, response body:")
|
|
146
|
+
print(response['Body'].read())
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
Downloading a specific version of an S3 object
|
|
150
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
151
|
+
|
|
152
|
+
This example shows how to download a specific version of an
|
|
153
|
+
S3 object.
|
|
154
|
+
|
|
155
|
+
.. code-block:: python
|
|
156
|
+
|
|
157
|
+
import boto3
|
|
158
|
+
s3 = boto3.client('s3')
|
|
159
|
+
|
|
160
|
+
s3.download_file(
|
|
161
|
+
"amzn-s3-demo-bucket", "key-name", "tmp.txt",
|
|
162
|
+
ExtraArgs={"VersionId": "my-version-id"}
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
Filter objects by last modified time using JMESPath
|
|
167
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
168
|
+
|
|
169
|
+
This example shows how to filter objects by last modified time
|
|
170
|
+
using JMESPath.
|
|
171
|
+
|
|
172
|
+
.. code-block:: python
|
|
173
|
+
|
|
174
|
+
import boto3
|
|
175
|
+
s3 = boto3.client("s3")
|
|
176
|
+
|
|
177
|
+
s3_paginator = s3.get_paginator('list_objects_v2')
|
|
178
|
+
s3_iterator = s3_paginator.paginate(Bucket='amzn-s3-demo-bucket')
|
|
179
|
+
|
|
180
|
+
filtered_iterator = s3_iterator.search(
|
|
181
|
+
"Contents[?to_string(LastModified)>='\"2022-01-05 08:05:37+00:00\"'].Key"
|
|
182
|
+
)
|
|
183
|
+
|
|
184
|
+
for key_data in filtered_iterator:
|
|
185
|
+
print(key_data)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Copyright (C) 2009 CodePlex Foundation
|
|
2
|
+
Copyright (C) 2010-2024 OpenSeadragon contributors
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
|
6
|
+
|
|
7
|
+
- Redistributions of source code must retain the above copyright notice,
|
|
8
|
+
this list of conditions and the following disclaimer.
|
|
9
|
+
|
|
10
|
+
- Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
- Neither the name of CodePlex Foundation nor the names of its contributors
|
|
15
|
+
may be used to endorse or promote products derived from this software
|
|
16
|
+
without specific prior written permission.
|
|
17
|
+
|
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
19
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
20
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
21
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
|
22
|
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
23
|
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
24
|
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
25
|
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
26
|
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
27
|
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
28
|
+
POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
This software was developed at the National Institute of Standards and
|
|
2
|
+
Technology by employees of the Federal Government in the course of
|
|
3
|
+
their official duties. Pursuant to title 17 Section 105 of the United
|
|
4
|
+
States Code this software is not subject to copyright protection and is
|
|
5
|
+
in the public domain. This software is an experimental system. NIST assumes
|
|
6
|
+
no responsibility whatsoever for its use by other parties, and makes no
|
|
7
|
+
guarantees, expressed or implied, about its quality, reliability, or
|
|
8
|
+
any other characteristic. We would appreciate acknowledgement if the
|
|
9
|
+
software is used.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Generate a signed URL for Amazon CloudFront
|
|
2
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
3
|
+
|
|
4
|
+
The following example shows how to generate a signed URL for Amazon CloudFront.
|
|
5
|
+
Note that you will need the ``cryptography`` `library <https://cryptography.io/en/latest/>`__ to follow this example::
|
|
6
|
+
|
|
7
|
+
import datetime
|
|
8
|
+
|
|
9
|
+
from cryptography.hazmat.backends import default_backend
|
|
10
|
+
from cryptography.hazmat.primitives import hashes
|
|
11
|
+
from cryptography.hazmat.primitives import serialization
|
|
12
|
+
from cryptography.hazmat.primitives.asymmetric import padding
|
|
13
|
+
from botocore.signers import CloudFrontSigner
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def rsa_signer(message):
|
|
17
|
+
with open('path/to/key.pem', 'rb') as key_file:
|
|
18
|
+
private_key = serialization.load_pem_private_key(
|
|
19
|
+
key_file.read(),
|
|
20
|
+
password=None,
|
|
21
|
+
backend=default_backend()
|
|
22
|
+
)
|
|
23
|
+
return private_key.sign(message, padding.PKCS1v15(), hashes.SHA1())
|
|
24
|
+
|
|
25
|
+
key_id = 'AKIAIOSFODNN7EXAMPLE'
|
|
26
|
+
url = 'http://d2949o5mkkp72v.cloudfront.net/hello.txt'
|
|
27
|
+
expire_date = datetime.datetime(2017, 1, 1)
|
|
28
|
+
|
|
29
|
+
cloudfront_signer = CloudFrontSigner(key_id, rsa_signer)
|
|
30
|
+
|
|
31
|
+
# Create a signed url that will be valid until the specific expiry date
|
|
32
|
+
# provided using a canned policy.
|
|
33
|
+
signed_url = cloudfront_signer.generate_presigned_url(
|
|
34
|
+
url, date_less_than=expire_date)
|
|
35
|
+
print(signed_url)
|