webknossos 4.3.2__tar.gz → 4.3.3__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.
- {webknossos-4.3.2 → webknossos-4.3.3}/PKG-INFO +3 -3
- {webknossos-4.3.2 → webknossos-4.3.3}/pyproject.toml +3 -3
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_utils/tensorstore_helpers.py +45 -25
- webknossos-4.3.3/webknossos/version.py +1 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos.egg-info/PKG-INFO +3 -3
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos.egg-info/requires.txt +2 -2
- webknossos-4.3.2/webknossos/version.py +0 -1
- {webknossos-4.3.2 → webknossos-4.3.3}/README.md +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/setup.cfg +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/tests/test_annotation.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/tests/test_api_client.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/tests/test_cli.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/tests/test_cli_utils.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/tests/test_skeleton.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/tests/test_utils.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/_nml/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/_nml/branchpoint.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/_nml/comment.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/_nml/edge.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/_nml/group.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/_nml/meta.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/_nml/metadata_entry.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/_nml/nml.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/_nml/node.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/_nml/parameters.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/_nml/segment.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/_nml/tree.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/_nml/utils.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/_nml/volume.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/administration/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/administration/project.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/administration/task.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/administration/team.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/administration/user.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/ai_model/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/ai_model/ai_model_category.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/ai_model/remote_ai_model.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/annotation/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/annotation/_nml_conversion.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/annotation/annotation.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/annotation/annotation_info.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/annotation/volume_layer.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/cli/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/cli/_utils.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/cli/check_equality.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/cli/compress.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/cli/convert.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/cli/convert_knossos.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/cli/convert_raw.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/cli/convert_zarr.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/cli/copy_dataset.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/cli/download.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/cli/downsample.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/cli/export_as_tiff.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/cli/main.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/cli/merge_fallback.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/cli/upload.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/cli/upsample.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/_defaults.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/_download_dataset.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/_resolve_short_link.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/_resumable/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/_resumable/chunk.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/_resumable/core.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/_resumable/file.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/_resumable/util.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/_upload_dataset.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/api_client/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/api_client/_abstract_api_client.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/api_client/_serialization.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/api_client/datastore_api_client.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/api_client/errors.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/api_client/models.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/api_client/tracingstore_api_client.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/api_client/wk_api_client.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/context.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/chunked_image_source.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/common_slice_readers.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/czi_image_source.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/dm_slice_reader.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/image_conversion.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/image_source.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/image_source_registry.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/ims_image_source.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/infer_bounding_box_existing_files.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/mrc_image_source.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/n5_image_source.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/neuroglancer_precomputed_image_source.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/ome_zarr_helpers.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/ozx_image_source.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/segmentation_recognition.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/slice_reader.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/sliced_image_source.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/tensorstore_chunked_image_source.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/tiff_slice_reader.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/vendor/dm3.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/vendor/dm4.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/zarr_image_source.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_metadata.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_utils/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_utils/buffered_slice_reader.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_utils/buffered_slice_writer.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_utils/tinywkw.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/abstract_dataset.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/dataset.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/defaults.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/errors.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/_downsampling_numba.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/_downsampling_utils.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/_transform_utils.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/_upsampling_utils.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/abstract_layer.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/export.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/layer.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/layer_to_link.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/remote_layer.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/segmentation_layer/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/segmentation_layer/abstract_segmentation_layer.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/segmentation_layer/attachments/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/segmentation_layer/attachments/agglomerate_attachment.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/segmentation_layer/attachments/attachment.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/segmentation_layer/attachments/attachments.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/segmentation_layer/remote_segmentation_layer.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/segmentation_layer/segmentation_layer.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/view/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/view/_array.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/view/mag_view.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/view/remote_mag_view.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/view/view.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/ome_metadata.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/remote_access_mode.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/remote_dataset.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/remote_dataset_registry.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/remote_folder.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/sampling_modes.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/transfer_mode.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset_properties/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset_properties/_bigint_envelope.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset_properties/coordinate_transformations.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset_properties/data_format.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset_properties/dataset_properties.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset_properties/dtype_conversion.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset_properties/layer_categories.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset_properties/length_unit.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset_properties/structuring.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/datastore/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/datastore/datastore.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/geometry/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/geometry/bounding_box.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/geometry/constants.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/geometry/mag.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/geometry/nd_bounding_box.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/geometry/normalized_bounding_box.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/geometry/vec3_float.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/geometry/vec3_int.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/geometry/vec_int.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/proofreading/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/proofreading/agglomerate_graph_data.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/proofreading/generated/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/proofreading/generated/agglomerate_graph_pb2.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/proofreading/generated/agglomerate_graph_pb2.pyi +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/py.typed +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/skeleton/__init__.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/skeleton/group.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/skeleton/node.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/skeleton/skeleton.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/skeleton/tree.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/ssl_context.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos/utils.py +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos.egg-info/SOURCES.txt +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos.egg-info/dependency_links.txt +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos.egg-info/entry_points.txt +0 -0
- {webknossos-4.3.2 → webknossos-4.3.3}/webknossos.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: webknossos
|
|
3
|
-
Version: 4.3.
|
|
3
|
+
Version: 4.3.3
|
|
4
4
|
Summary: Python API for working with WEBKNOSSOS datasets, annotations, and for WEBKNOSSOS server interaction.
|
|
5
5
|
Author-email: scalable minds <hello@scalableminds.com>
|
|
6
6
|
License: AGPL-3.0
|
|
@@ -37,7 +37,7 @@ Requires-Dist: boltons>=21.0.0
|
|
|
37
37
|
Requires-Dist: cattrs>=22.0.0
|
|
38
38
|
Requires-Dist: certifi>=2023
|
|
39
39
|
Requires-Dist: click<8.2.0
|
|
40
|
-
Requires-Dist: cluster-tools==4.3.
|
|
40
|
+
Requires-Dist: cluster-tools==4.3.3
|
|
41
41
|
Requires-Dist: httpx~=0.27.0
|
|
42
42
|
Requires-Dist: imageio>=2.37.0
|
|
43
43
|
Requires-Dist: lz4>=4.0.0
|
|
@@ -50,7 +50,7 @@ Requires-Dist: protobuf<7,>=3.12.0
|
|
|
50
50
|
Requires-Dist: google-api-python-client>=2.0.0
|
|
51
51
|
Requires-Dist: psutil~=6.0.0
|
|
52
52
|
Requires-Dist: python-dateutil>=2.9.0
|
|
53
|
-
Requires-Dist: python-dotenv
|
|
53
|
+
Requires-Dist: python-dotenv<2,>=1.2.2
|
|
54
54
|
Requires-Dist: rich~=13.8.0
|
|
55
55
|
Requires-Dist: scipy>=1.13
|
|
56
56
|
Requires-Dist: tensorstore==0.1.76; sys_platform == "win32"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "webknossos"
|
|
3
|
-
version = "4.3.
|
|
3
|
+
version = "4.3.3" # filled by dunamai
|
|
4
4
|
description = "Python API for working with WEBKNOSSOS datasets, annotations, and for WEBKNOSSOS server interaction."
|
|
5
5
|
authors = [{ name = "scalable minds", email = "hello@scalableminds.com" }]
|
|
6
6
|
readme = "README.md"
|
|
@@ -39,7 +39,7 @@ dependencies = [
|
|
|
39
39
|
"cattrs >=22.0.0",
|
|
40
40
|
"certifi >=2023",
|
|
41
41
|
"click <8.2.0", # pinned because of incompatibility with typer
|
|
42
|
-
"cluster-tools==4.3.
|
|
42
|
+
"cluster-tools==4.3.3",
|
|
43
43
|
"httpx ~=0.27.0",
|
|
44
44
|
"imageio >=2.37.0",
|
|
45
45
|
"lz4 >=4.0.0",
|
|
@@ -52,7 +52,7 @@ dependencies = [
|
|
|
52
52
|
"google-api-python-client >= 2.0.0",
|
|
53
53
|
"psutil ~=6.0.0",
|
|
54
54
|
"python-dateutil >=2.9.0",
|
|
55
|
-
"python-dotenv
|
|
55
|
+
"python-dotenv >=1.2.2,<2",
|
|
56
56
|
"rich ~=13.8.0",
|
|
57
57
|
"scipy >=1.13",
|
|
58
58
|
"tensorstore ==0.1.76; sys_platform == 'win32'", # tensorstore crashes on windows with >0.1.76
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import atexit
|
|
2
2
|
import math
|
|
3
3
|
from functools import lru_cache
|
|
4
|
+
from hashlib import sha256
|
|
4
5
|
from tempfile import mkdtemp
|
|
5
6
|
from typing import Any
|
|
6
7
|
from urllib.parse import urlparse
|
|
8
|
+
from uuid import uuid4
|
|
7
9
|
|
|
8
10
|
import numpy as np
|
|
9
11
|
import tensorstore as ts
|
|
@@ -15,52 +17,70 @@ TS_CONTEXT = ts.Context()
|
|
|
15
17
|
|
|
16
18
|
|
|
17
19
|
class AWSCredentialManager:
|
|
18
|
-
|
|
20
|
+
"""Writes one credentials file per key pair, for tensorstore's `aws_credentials`.
|
|
21
|
+
|
|
22
|
+
A file is written once and never changed afterwards. Readers therefore never see
|
|
23
|
+
a partially written or rewritten file, without any locking between threads or
|
|
24
|
+
forked processes that share the folder.
|
|
25
|
+
"""
|
|
26
|
+
|
|
19
27
|
folder_path: UPath
|
|
20
28
|
|
|
21
29
|
def __init__(self, folder_path: UPath) -> None:
|
|
22
|
-
self.entries = {}
|
|
23
30
|
self.folder_path = folder_path
|
|
24
|
-
|
|
25
|
-
|
|
31
|
+
# Profiles whose file is known to exist. The folder starts out empty, so
|
|
32
|
+
# this replaces a disk check on each add. Without a lock, two threads may
|
|
33
|
+
# both write the same new file, which is harmless.
|
|
34
|
+
self._written_profiles: set[str] = set()
|
|
26
35
|
self.config_file_path.write_text("[default]\n")
|
|
27
36
|
|
|
28
37
|
atexit.register(self._cleanup)
|
|
29
38
|
|
|
30
|
-
@property
|
|
31
|
-
def credentials_file_path(self) -> UPath:
|
|
32
|
-
return self.folder_path / "credentials"
|
|
33
|
-
|
|
34
39
|
@property
|
|
35
40
|
def config_file_path(self) -> UPath:
|
|
36
41
|
return self.folder_path / "config"
|
|
37
42
|
|
|
38
|
-
def
|
|
39
|
-
self.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
def credentials_file_path(self, profile: str) -> UPath:
|
|
44
|
+
return self.folder_path / f"credentials-{profile}"
|
|
45
|
+
|
|
46
|
+
def _write_credentials_file(
|
|
47
|
+
self, path: UPath, profile: str, access_key_id: str, secret_access_key: str
|
|
48
|
+
) -> None:
|
|
49
|
+
# Written to a unique temporary file and renamed into place, so that
|
|
50
|
+
# tensorstore never reads a partially written file
|
|
51
|
+
tmp_path = self.folder_path / f"{path.name}.{uuid4().hex}.tmp"
|
|
52
|
+
try:
|
|
53
|
+
tmp_path.write_text(
|
|
54
|
+
f"[{profile}]\naws_access_key_id = {access_key_id}\naws_secret_access_key = {secret_access_key}\n"
|
|
48
55
|
)
|
|
49
|
-
|
|
56
|
+
try:
|
|
57
|
+
tmp_path.rename(path)
|
|
58
|
+
except FileExistsError:
|
|
59
|
+
# On Windows, rename does not replace an existing file. Another
|
|
60
|
+
# thread or process already wrote the same content.
|
|
61
|
+
pass
|
|
62
|
+
finally:
|
|
63
|
+
tmp_path.unlink(missing_ok=True)
|
|
50
64
|
|
|
51
65
|
def _cleanup(self) -> None:
|
|
52
66
|
rmtree(self.folder_path)
|
|
53
67
|
|
|
54
68
|
def add(self, access_key_id: str, secret_access_key: str) -> dict[str, str]:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
69
|
+
# A stable digest, so that equal key pairs map to the same file in all
|
|
70
|
+
# processes. The secret is not recoverable from it.
|
|
71
|
+
digest = sha256(f"{access_key_id}\0{secret_access_key}".encode()).hexdigest()
|
|
72
|
+
profile = f"profile-{digest}"
|
|
73
|
+
credentials_file_path = self.credentials_file_path(profile)
|
|
74
|
+
if profile not in self._written_profiles:
|
|
75
|
+
self._write_credentials_file(
|
|
76
|
+
credentials_file_path, profile, access_key_id, secret_access_key
|
|
77
|
+
)
|
|
78
|
+
self._written_profiles.add(profile)
|
|
59
79
|
return {
|
|
60
80
|
"type": "profile",
|
|
61
|
-
"profile":
|
|
81
|
+
"profile": profile,
|
|
62
82
|
"config_file": str(self.config_file_path),
|
|
63
|
-
"credentials_file": str(
|
|
83
|
+
"credentials_file": str(credentials_file_path),
|
|
64
84
|
}
|
|
65
85
|
|
|
66
86
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '4.3.3'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: webknossos
|
|
3
|
-
Version: 4.3.
|
|
3
|
+
Version: 4.3.3
|
|
4
4
|
Summary: Python API for working with WEBKNOSSOS datasets, annotations, and for WEBKNOSSOS server interaction.
|
|
5
5
|
Author-email: scalable minds <hello@scalableminds.com>
|
|
6
6
|
License: AGPL-3.0
|
|
@@ -37,7 +37,7 @@ Requires-Dist: boltons>=21.0.0
|
|
|
37
37
|
Requires-Dist: cattrs>=22.0.0
|
|
38
38
|
Requires-Dist: certifi>=2023
|
|
39
39
|
Requires-Dist: click<8.2.0
|
|
40
|
-
Requires-Dist: cluster-tools==4.3.
|
|
40
|
+
Requires-Dist: cluster-tools==4.3.3
|
|
41
41
|
Requires-Dist: httpx~=0.27.0
|
|
42
42
|
Requires-Dist: imageio>=2.37.0
|
|
43
43
|
Requires-Dist: lz4>=4.0.0
|
|
@@ -50,7 +50,7 @@ Requires-Dist: protobuf<7,>=3.12.0
|
|
|
50
50
|
Requires-Dist: google-api-python-client>=2.0.0
|
|
51
51
|
Requires-Dist: psutil~=6.0.0
|
|
52
52
|
Requires-Dist: python-dateutil>=2.9.0
|
|
53
|
-
Requires-Dist: python-dotenv
|
|
53
|
+
Requires-Dist: python-dotenv<2,>=1.2.2
|
|
54
54
|
Requires-Dist: rich~=13.8.0
|
|
55
55
|
Requires-Dist: scipy>=1.13
|
|
56
56
|
Requires-Dist: tensorstore==0.1.76; sys_platform == "win32"
|
|
@@ -4,7 +4,7 @@ boltons>=21.0.0
|
|
|
4
4
|
cattrs>=22.0.0
|
|
5
5
|
certifi>=2023
|
|
6
6
|
click<8.2.0
|
|
7
|
-
cluster-tools==4.3.
|
|
7
|
+
cluster-tools==4.3.3
|
|
8
8
|
httpx~=0.27.0
|
|
9
9
|
imageio>=2.37.0
|
|
10
10
|
lz4>=4.0.0
|
|
@@ -17,7 +17,7 @@ protobuf<7,>=3.12.0
|
|
|
17
17
|
google-api-python-client>=2.0.0
|
|
18
18
|
psutil~=6.0.0
|
|
19
19
|
python-dateutil>=2.9.0
|
|
20
|
-
python-dotenv
|
|
20
|
+
python-dotenv<2,>=1.2.2
|
|
21
21
|
rich~=13.8.0
|
|
22
22
|
scipy>=1.13
|
|
23
23
|
typer~=0.12.5
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '4.3.2'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/client/api_client/tracingstore_api_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/chunked_image_source.py
RENAMED
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/common_slice_readers.py
RENAMED
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/czi_image_source.py
RENAMED
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/dm_slice_reader.py
RENAMED
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/image_conversion.py
RENAMED
|
File without changes
|
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/image_source_registry.py
RENAMED
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/ims_image_source.py
RENAMED
|
File without changes
|
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/mrc_image_source.py
RENAMED
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/n5_image_source.py
RENAMED
|
File without changes
|
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/ome_zarr_helpers.py
RENAMED
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/ozx_image_source.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/sliced_image_source.py
RENAMED
|
File without changes
|
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/tiff_slice_reader.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/_image_conversion/zarr_image_source.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset/layer/segmentation_layer/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/dataset_properties/coordinate_transformations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/proofreading/generated/agglomerate_graph_pb2.py
RENAMED
|
File without changes
|
{webknossos-4.3.2 → webknossos-4.3.3}/webknossos/proofreading/generated/agglomerate_graph_pb2.pyi
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|