aignostics 0.2.230__tar.gz → 0.2.232__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.
Files changed (201) hide show
  1. {aignostics-0.2.230 → aignostics-0.2.232}/PKG-INFO +16 -5
  2. aignostics-0.2.232/dist_native_all/dist_native-macos-15-intel/extracted/aignostics.app/Contents/Frameworks/boto3/examples/cloudfront.rst +35 -0
  3. aignostics-0.2.232/dist_native_all/dist_native-macos-15-intel/extracted/aignostics.app/Contents/Frameworks/boto3/examples/s3.rst +185 -0
  4. aignostics-0.2.232/dist_native_all/dist_native-macos-latest/extracted/aignostics.app/Contents/Frameworks/boto3/examples/cloudfront.rst +35 -0
  5. aignostics-0.2.232/dist_native_all/dist_native-macos-latest/extracted/aignostics.app/Contents/Frameworks/boto3/examples/s3.rst +185 -0
  6. aignostics-0.2.232/dist_native_all/dist_native-ubuntu-24.04-arm/extracted/aignostics/_internal/boto3/examples/cloudfront.rst +35 -0
  7. aignostics-0.2.232/dist_native_all/dist_native-ubuntu-24.04-arm/extracted/aignostics/_internal/boto3/examples/s3.rst +185 -0
  8. aignostics-0.2.232/dist_native_all/dist_native-ubuntu-latest/extracted/aignostics/_internal/boto3/examples/cloudfront.rst +35 -0
  9. aignostics-0.2.232/dist_native_all/dist_native-ubuntu-latest/extracted/aignostics/_internal/boto3/examples/s3.rst +185 -0
  10. aignostics-0.2.232/dist_native_all/dist_native-windows-latest/extracted/aignostics/_internal/boto3/examples/cloudfront.rst +35 -0
  11. aignostics-0.2.232/dist_native_all/dist_native-windows-latest/extracted/aignostics/_internal/boto3/examples/s3.rst +185 -0
  12. {aignostics-0.2.230 → aignostics-0.2.232}/examples/notebook.py +1 -1
  13. {aignostics-0.2.230 → aignostics-0.2.232}/pyproject.toml +37 -25
  14. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/utils/_gui.py +6 -0
  15. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/wsi/_cli.py +35 -0
  16. {aignostics-0.2.230 → aignostics-0.2.232}/.gitignore +0 -0
  17. {aignostics-0.2.230 → aignostics-0.2.232}/LICENSE +0 -0
  18. {aignostics-0.2.230 → aignostics-0.2.232}/README.md +0 -0
  19. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/.openapi-generator/FILES +0 -0
  20. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/.openapi-generator/VERSION +0 -0
  21. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/api/public_api.py +0 -0
  22. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/api_client.py +0 -0
  23. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/api_response.py +0 -0
  24. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/configuration.py +0 -0
  25. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/exceptions.py +0 -0
  26. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/__init__.py +0 -0
  27. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/application_read_response.py +0 -0
  28. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/application_read_short_response.py +0 -0
  29. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/application_version.py +0 -0
  30. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/artifact_output.py +0 -0
  31. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/artifact_state.py +0 -0
  32. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/artifact_termination_reason.py +0 -0
  33. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/auth0_organization.py +0 -0
  34. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/auth0_user.py +0 -0
  35. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/custom_metadata_update_request.py +0 -0
  36. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/http_validation_error.py +0 -0
  37. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/input_artifact.py +0 -0
  38. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/input_artifact_creation_request.py +0 -0
  39. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/item_creation_request.py +0 -0
  40. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/item_output.py +0 -0
  41. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/item_result_read_response.py +0 -0
  42. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/item_state.py +0 -0
  43. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/item_termination_reason.py +0 -0
  44. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/me_read_response.py +0 -0
  45. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/organization_read_response.py +0 -0
  46. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/output_artifact.py +0 -0
  47. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/output_artifact_result_read_response.py +0 -0
  48. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/output_artifact_scope.py +0 -0
  49. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/output_artifact_visibility.py +0 -0
  50. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/run_creation_request.py +0 -0
  51. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/run_creation_response.py +0 -0
  52. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/run_item_statistics.py +0 -0
  53. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/run_output.py +0 -0
  54. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/run_read_response.py +0 -0
  55. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/run_state.py +0 -0
  56. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/run_termination_reason.py +0 -0
  57. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/user_read_response.py +0 -0
  58. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/validation_error.py +0 -0
  59. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/validation_error_loc_inner.py +0 -0
  60. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/models/version_read_response.py +0 -0
  61. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/aignx/codegen/rest.py +0 -0
  62. {aignostics-0.2.230 → aignostics-0.2.232}/codegen/out/docs/PublicApi.md +0 -0
  63. {aignostics-0.2.230 → aignostics-0.2.232}/examples/__init__.py +0 -0
  64. {aignostics-0.2.230 → aignostics-0.2.232}/examples/notebook.ipynb +0 -0
  65. {aignostics-0.2.230 → aignostics-0.2.232}/examples/script.py +0 -0
  66. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/CLAUDE.md +0 -0
  67. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/__init__.py +0 -0
  68. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/CLAUDE.md +0 -0
  69. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/__init__.py +0 -0
  70. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_cli.py +0 -0
  71. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_download.py +0 -0
  72. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/_frame.py +0 -0
  73. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/_page_application_describe.py +0 -0
  74. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/_page_application_run_describe.py +0 -0
  75. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/_page_builder.py +0 -0
  76. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/_page_index.py +0 -0
  77. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/_utils.py +0 -0
  78. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/assets/.gitignore +0 -0
  79. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/assets/canceled.lottie +0 -0
  80. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/assets/done.lottie +0 -0
  81. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/assets/empty.lottie +0 -0
  82. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/assets/error.lottie +0 -0
  83. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/assets/error_alt.lottie +0 -0
  84. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/assets/home-card-1.png +0 -0
  85. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/assets/home-card-2.png +0 -0
  86. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/assets/home-card-3.png +0 -0
  87. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/assets/home-card-4.png +0 -0
  88. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/assets/home-card-5.png +0 -0
  89. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/assets/image-not-found.png +0 -0
  90. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/assets/pending.lottie +0 -0
  91. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/assets/processing.lottie +0 -0
  92. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/assets/ruo.png +0 -0
  93. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_gui/assets/ruo.svg +0 -0
  94. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_models.py +0 -0
  95. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_service.py +0 -0
  96. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_settings.py +0 -0
  97. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/application/_utils.py +0 -0
  98. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/bucket/CLAUDE.md +0 -0
  99. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/bucket/__init__.py +0 -0
  100. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/bucket/_cli.py +0 -0
  101. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/bucket/_gui.py +0 -0
  102. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/bucket/_service.py +0 -0
  103. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/bucket/_settings.py +0 -0
  104. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/bucket/assets/Google-Cloud-logo.png +0 -0
  105. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/bucket/assets/Google-Cloud-logo.svg +0 -0
  106. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/cli.py +0 -0
  107. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/constants.py +0 -0
  108. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/dataset/CLAUDE.md +0 -0
  109. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/dataset/__init__.py +0 -0
  110. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/dataset/_cli.py +0 -0
  111. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/dataset/_gui.py +0 -0
  112. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/dataset/_service.py +0 -0
  113. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/dataset/assets/NIH-IDC-logo.svg +0 -0
  114. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/gui/CLAUDE.md +0 -0
  115. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/gui/__init__.py +0 -0
  116. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/gui/_error.py +0 -0
  117. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/gui/_frame.py +0 -0
  118. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/gui/_theme.py +0 -0
  119. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/gui/assets/cabin-v27-latin-regular.woff2 +0 -0
  120. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/gui/assets/cat.lottie +0 -0
  121. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/gui/assets/logo.png +0 -0
  122. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/notebook/CLAUDE.md +0 -0
  123. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/notebook/__init__.py +0 -0
  124. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/notebook/_gui.py +0 -0
  125. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/notebook/_notebook.py +0 -0
  126. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/notebook/_service.py +0 -0
  127. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/notebook/assets/python.lottie +0 -0
  128. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/platform/CLAUDE.md +0 -0
  129. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/platform/__init__.py +0 -0
  130. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/platform/_authentication.py +0 -0
  131. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/platform/_cli.py +0 -0
  132. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/platform/_client.py +0 -0
  133. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/platform/_constants.py +0 -0
  134. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/platform/_messages.py +0 -0
  135. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/platform/_operation_cache.py +0 -0
  136. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/platform/_sdk_metadata.py +0 -0
  137. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/platform/_service.py +0 -0
  138. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/platform/_settings.py +0 -0
  139. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/platform/_utils.py +0 -0
  140. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/platform/resources/__init__.py +0 -0
  141. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/platform/resources/applications.py +0 -0
  142. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/platform/resources/runs.py +0 -0
  143. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/platform/resources/utils.py +0 -0
  144. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/qupath/CLAUDE.md +0 -0
  145. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/qupath/__init__.py +0 -0
  146. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/qupath/_cli.py +0 -0
  147. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/qupath/_gui.py +0 -0
  148. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/qupath/_service.py +0 -0
  149. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/qupath/_settings.py +0 -0
  150. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/qupath/assets/download.lottie +0 -0
  151. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/qupath/assets/microscope.lottie +0 -0
  152. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/qupath/assets/update.lottie +0 -0
  153. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/qupath/scripts/add.groovy +0 -0
  154. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/qupath/scripts/annotate.groovy +0 -0
  155. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/qupath/scripts/inspect.groovy +0 -0
  156. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/qupath/scripts/test.groovy +0 -0
  157. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/system/CLAUDE.md +0 -0
  158. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/system/__init__.py +0 -0
  159. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/system/_cli.py +0 -0
  160. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/system/_exceptions.py +0 -0
  161. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/system/_gui.py +0 -0
  162. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/system/_service.py +0 -0
  163. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/system/_settings.py +0 -0
  164. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/system/assets/system.lottie +0 -0
  165. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/third_party/bottle.py +0 -0
  166. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/third_party/idc_index.py +0 -0
  167. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/third_party/showinfm/__init__.py +0 -0
  168. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/third_party/showinfm/argumentsparse.py +0 -0
  169. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/third_party/showinfm/constants.py +0 -0
  170. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/third_party/showinfm/py.typed +0 -0
  171. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/third_party/showinfm/showinfm.py +0 -0
  172. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/third_party/showinfm/system/__init__.py +0 -0
  173. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/third_party/showinfm/system/linux.py +0 -0
  174. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/third_party/showinfm/system/tools.py +0 -0
  175. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/third_party/showinfm/system/urivalidate.py +0 -0
  176. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/third_party/showinfm/system/windows.py +0 -0
  177. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/utils/CLAUDE.md +0 -0
  178. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/utils/__init__.py +0 -0
  179. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/utils/_cli.py +0 -0
  180. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/utils/_console.py +0 -0
  181. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/utils/_constants.py +0 -0
  182. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/utils/_di.py +0 -0
  183. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/utils/_fs.py +0 -0
  184. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/utils/_health.py +0 -0
  185. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/utils/_log.py +0 -0
  186. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/utils/_notebook.py +0 -0
  187. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/utils/_process.py +0 -0
  188. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/utils/_sentry.py +0 -0
  189. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/utils/_service.py +0 -0
  190. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/utils/_settings.py +0 -0
  191. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/utils/_user_agent.py +0 -0
  192. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/utils/boot.py +0 -0
  193. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/wsi/CLAUDE.md +0 -0
  194. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/wsi/__init__.py +0 -0
  195. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/wsi/_gui.py +0 -0
  196. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/wsi/_openslide_handler.py +0 -0
  197. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/wsi/_pydicom_handler.py +0 -0
  198. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/wsi/_service.py +0 -0
  199. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/wsi/_utils.py +0 -0
  200. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics/wsi/assets/fallback.png +0 -0
  201. {aignostics-0.2.230 → aignostics-0.2.232}/src/aignostics.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aignostics
3
- Version: 0.2.230
3
+ Version: 0.2.232
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,6 +49,7 @@ Classifier: Programming Language :: Python :: 3.13
49
49
  Classifier: Programming Language :: Python :: 3.14
50
50
  Classifier: Typing :: Typed
51
51
  Requires-Python: <3.15,>=3.11
52
+ Requires-Dist: aiohttp>=3.12.14
52
53
  Requires-Dist: boto3<2,>=1.42.4
53
54
  Requires-Dist: certifi>=2025.11.12
54
55
  Requires-Dist: crc32c<3,>=2.8
@@ -59,7 +60,8 @@ Requires-Dist: duckdb<=2,>=1.4.2
59
60
  Requires-Dist: fastapi[all,standard]>=0.123.10
60
61
  Requires-Dist: fastparquet>=2024.11.0; python_version < '3.14'
61
62
  Requires-Dist: google-cloud-storage<4,>=3.6.0
62
- Requires-Dist: highdicom<1,>=0.26.1
63
+ Requires-Dist: h11>=0.16.0
64
+ Requires-Dist: highdicom<1,>=0.26.1; python_version < '3.14'
63
65
  Requires-Dist: html-sanitizer<3,>=2.6.0
64
66
  Requires-Dist: httpx<1,>=0.28.1
65
67
  Requires-Dist: humanize<5,>=4.14.0
@@ -68,11 +70,13 @@ Requires-Dist: ijson<4,>=3.4.0.post0
68
70
  Requires-Dist: jsf<1,>=0.11.2
69
71
  Requires-Dist: jsonschema[format-nongpl]<5,>=4.25.1
70
72
  Requires-Dist: loguru<1,>=0.7.3
71
- Requires-Dist: nicegui[native]<4,>=3.3.1
73
+ Requires-Dist: lxml>=6.0.2
74
+ Requires-Dist: nicegui[native]<4,>=3.4.0
72
75
  Requires-Dist: openslide-bin<5,>=4.0.0.10
73
76
  Requires-Dist: openslide-python<2,>=1.4.3
74
77
  Requires-Dist: packaging<26,>=25.0
75
78
  Requires-Dist: pandas<3,>=2.3.3
79
+ Requires-Dist: pillow>=11.3.0
76
80
  Requires-Dist: platformdirs<5,>=4.3.2
77
81
  Requires-Dist: platformdirs<5,>=4.5.1
78
82
  Requires-Dist: procrastinate>=3.5.3
@@ -85,23 +89,30 @@ Requires-Dist: pywin32<312,>=311; sys_platform == 'win32'
85
89
  Requires-Dist: pyyaml<7,>=6.0.3
86
90
  Requires-Dist: requests-oauthlib<3,>=2.0.0
87
91
  Requires-Dist: requests<3,>=2.32.5
92
+ Requires-Dist: rfc3987; sys_platform == 'never'
88
93
  Requires-Dist: s5cmd<1,>=0.3.3
89
94
  Requires-Dist: semver<4,>=3.0.4
90
95
  Requires-Dist: sentry-sdk<3,>=2.47.0
91
96
  Requires-Dist: shapely<3,>=2.1.2
97
+ Requires-Dist: starlette>=0.47.2
98
+ Requires-Dist: starlette>=0.49.1
92
99
  Requires-Dist: tenacity<10,>=9.1.2
100
+ Requires-Dist: tornado>=6.5.0
93
101
  Requires-Dist: tqdm<5,>=4.67.1
94
102
  Requires-Dist: truststore<1,>=0.10.4
95
103
  Requires-Dist: typer<1,>=0.20.0
96
104
  Requires-Dist: uptime<4,>=3.0.1
97
- Requires-Dist: urllib3<3,>=2.5.0
105
+ Requires-Dist: urllib3<3,>=2.6.1
106
+ Requires-Dist: urllib3>=2.5.0
98
107
  Requires-Dist: wsidicom<1,>=0.28.1
99
108
  Provides-Extra: jupyter
109
+ Requires-Dist: jupyter-core>=5.8.1; extra == 'jupyter'
100
110
  Requires-Dist: jupyter<2,>=1.1.1; extra == 'jupyter'
111
+ Requires-Dist: jupyterlab>=4.4.9; extra == 'jupyter'
101
112
  Provides-Extra: marimo
102
113
  Requires-Dist: cloudpathlib<1,>=0.23.0; extra == 'marimo'
103
114
  Requires-Dist: ipython<10,>=9.8.0; extra == 'marimo'
104
- Requires-Dist: marimo<1,>=0.18.3; extra == 'marimo'
115
+ Requires-Dist: marimo<1,>=0.18.4; extra == 'marimo'
105
116
  Requires-Dist: matplotlib<4,>=3.10.7; extra == 'marimo'
106
117
  Requires-Dist: shapely<3,>=2.1.0; extra == 'marimo'
107
118
  Provides-Extra: pyinstaller
@@ -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,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,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)