dandi 0.76.5__tar.gz → 0.76.7__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.
- {dandi-0.76.5 → dandi-0.76.7}/CHANGELOG.md +26 -0
- {dandi-0.76.5/dandi.egg-info → dandi-0.76.7}/PKG-INFO +3 -4
- {dandi-0.76.5 → dandi-0.76.7}/dandi/_version.py +3 -3
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/base.py +8 -12
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/test_base.py +2 -5
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/test_instances.py +1 -1
- {dandi-0.76.5 → dandi-0.76.7}/dandi/consts.py +3 -6
- {dandi-0.76.5 → dandi-0.76.7}/dandi/dandiapi.py +16 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/download.py +4 -13
- {dandi-0.76.5 → dandi-0.76.7}/dandi/files/bases.py +7 -1
- {dandi-0.76.5 → dandi-0.76.7}/dandi/files/zarr.py +2 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/move.py +3 -9
- {dandi-0.76.5 → dandi-0.76.7}/dandi/organize.py +5 -14
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/metadata/metadata2asset.json +1 -1
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/metadata/metadata2asset_3.json +1 -1
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/metadata/metadata2asset_cellline.json +1 -1
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/metadata/metadata2asset_simple1.json +1 -1
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/test_metadata.py +14 -5
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/test_upload.py +4 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/upload.py +3 -9
- {dandi-0.76.5 → dandi-0.76.7/dandi.egg-info}/PKG-INFO +3 -4
- {dandi-0.76.5 → dandi-0.76.7}/dandi.egg-info/requires.txt +1 -1
- {dandi-0.76.5 → dandi-0.76.7}/pyproject.toml +3 -4
- {dandi-0.76.5 → dandi-0.76.7}/tox.ini +0 -1
- {dandi-0.76.5 → dandi-0.76.7}/LICENSE +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/MANIFEST.in +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/README.md +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/__init__.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/bids_validator_deno/__init__.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/bids_validator_deno/_models.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/bids_validator_deno/_validator.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/__init__.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/cmd_delete.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/cmd_digest.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/cmd_download.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/cmd_instances.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/cmd_ls.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/cmd_move.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/cmd_organize.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/cmd_service_scripts.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/cmd_shell_completion.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/cmd_upload.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/cmd_validate.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/command.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/formatter.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/__init__.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/data/update_dandiset_from_doi/biorxiv.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/data/update_dandiset_from_doi/biorxiv.vcr.yaml +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/data/update_dandiset_from_doi/elife.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/data/update_dandiset_from_doi/elife.vcr.yaml +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/data/update_dandiset_from_doi/jneurosci.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/data/update_dandiset_from_doi/jneurosci.vcr.yaml +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/data/update_dandiset_from_doi/nature.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/data/update_dandiset_from_doi/nature.vcr.yaml +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/data/update_dandiset_from_doi/neuron.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/data/update_dandiset_from_doi/neuron.vcr.yaml +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/test_cmd_ls.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/test_cmd_validate.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/test_command.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/test_digest.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/test_download.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/test_formatter.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/test_move.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/test_service_scripts.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/test_shell_completion.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/dandiarchive.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/dandiset.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/delete.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/due.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/exceptions.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/files/__init__.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/files/_private.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/files/bids.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/keyring_utils.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/metadata/__init__.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/metadata/core.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/metadata/nwb.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/metadata/util.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/misctypes.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/pynwb_utils.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/pytest_plugin.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/support/__init__.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/support/digests.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/support/iterators.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/support/pyout.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/support/tests/__init__.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/support/tests/test_digests.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/support/tests/test_iterators.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/support/threaded_walk.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/__init__.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/dandiarchive-docker/docker-compose.yml +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/metadata/dandimeta_migration.new.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/array_v3_corrupt_zarr_json.zarr/c/0/0 +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/array_v3_corrupt_zarr_json.zarr/c/0/1 +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/array_v3_corrupt_zarr_json.zarr/c/1/0 +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/array_v3_corrupt_zarr_json.zarr/c/1/1 +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/array_v3_corrupt_zarr_json.zarr/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_missing_zarr_json.zarr/foo/bar/z/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_missing_zarr_json.zarr/foo/bar/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_missing_zarr_json.zarr/foo/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_missing_zarr_json.zarr/foo1/bar1/z1/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_missing_zarr_json.zarr/foo1/bar1/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_missing_zarr_json.zarr/foo1/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_node_type_problem.zarr/foo/bar/z/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_node_type_problem.zarr/foo/bar/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_node_type_problem.zarr/foo/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_node_type_problem.zarr/foo1/bar1/z1/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_node_type_problem.zarr/foo1/bar1/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_node_type_problem.zarr/foo1/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/arrays_in_groups_node_type_problem.zarr/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/single_array_missing_zarr_json.zarr/c/0/0 +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/single_array_missing_zarr_json.zarr/c/0/1 +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/single_array_missing_zarr_json.zarr/c/1/0 +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/single_array_missing_zarr_json.zarr/c/1/1 +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/single_array_node_type_problem.zarr/c/0/0 +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/single_array_node_type_problem.zarr/c/0/1 +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/single_array_node_type_problem.zarr/c/1/0 +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/single_array_node_type_problem.zarr/c/1/1 +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/invalid_stores/single_array_node_type_problem.zarr/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/valid_stores/arrays_in_groups.zarr/foo/bar/z/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/valid_stores/arrays_in_groups.zarr/foo/bar/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/valid_stores/arrays_in_groups.zarr/foo/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/valid_stores/arrays_in_groups.zarr/foo1/bar1/z1/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/valid_stores/arrays_in_groups.zarr/foo1/bar1/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/valid_stores/arrays_in_groups.zarr/foo1/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/valid_stores/arrays_in_groups.zarr/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/valid_stores/single_array.zarr/c/0/0 +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/valid_stores/single_array.zarr/c/0/1 +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/valid_stores/single_array.zarr/c/1/0 +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/valid_stores/single_array.zarr/c/1/1 +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/valid_stores/single_array.zarr/zarr.json +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/fixtures.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/skip.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/test_bids_validator_deno/test_validator.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/test_dandiapi.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/test_dandiarchive.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/test_dandiset.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/test_delete.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/test_download.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/test_files.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/test_fixtures.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/test_helpers.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/test_helptext.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/test_keyring.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/test_move.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/test_organize.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/test_pynwb_utils.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/test_utils.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/tests/xfail.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/utils.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/validate/__init__.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/validate/_core.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/validate/_io.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/validate/_types.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/validate/tests/__init__.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/validate/tests/test_core.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/validate/tests/test_io.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi/validate/tests/test_types.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi.egg-info/SOURCES.txt +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi.egg-info/dependency_links.txt +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi.egg-info/entry_points.txt +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi.egg-info/not-zip-safe +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/dandi.egg-info/top_level.txt +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/setup.cfg +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/setup.py +0 -0
- {dandi-0.76.5 → dandi-0.76.7}/versioneer.py +0 -0
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
# 0.76.7 (Fri Jul 10 2026)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Set uploaded asset metadata schemaKey to "Asset" [#1886](https://github.com/dandi/dandi-cli/pull/1886) ([@candleindark](https://github.com/candleindark))
|
|
6
|
+
- Drop python 3.10 and simplify for click 8.2 enum choice [#1890](https://github.com/dandi/dandi-cli/pull/1890) ([@yarikoptic](https://github.com/yarikoptic))
|
|
7
|
+
|
|
8
|
+
#### Authors: 2
|
|
9
|
+
|
|
10
|
+
- Isaac To ([@candleindark](https://github.com/candleindark))
|
|
11
|
+
- Yaroslav Halchenko ([@yarikoptic](https://github.com/yarikoptic))
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# 0.76.6 (Tue Jul 07 2026)
|
|
16
|
+
|
|
17
|
+
#### 🐛 Bug Fix
|
|
18
|
+
|
|
19
|
+
- New EMBER-DANDI sandbox frontend url [#1885](https://github.com/dandi/dandi-cli/pull/1885) ([@NEStock](https://github.com/NEStock))
|
|
20
|
+
|
|
21
|
+
#### Authors: 1
|
|
22
|
+
|
|
23
|
+
- Nicole Tregoning ([@NEStock](https://github.com/NEStock))
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
1
27
|
# 0.76.5 (Thu Jul 02 2026)
|
|
2
28
|
|
|
3
29
|
#### 🐛 Bug Fix
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dandi
|
|
3
|
-
Version: 0.76.
|
|
3
|
+
Version: 0.76.7
|
|
4
4
|
Summary: Command line client for interaction with DANDI instances
|
|
5
5
|
Author-email: DANDI developers <team@dandiarchive.org>
|
|
6
6
|
Maintainer-email: DANDI developers <team@dandiarchive.org>
|
|
@@ -216,18 +216,17 @@ Classifier: Intended Audience :: Science/Research
|
|
|
216
216
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
217
217
|
Classifier: Operating System :: OS Independent
|
|
218
218
|
Classifier: Programming Language :: Python
|
|
219
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
220
219
|
Classifier: Programming Language :: Python :: 3.11
|
|
221
220
|
Classifier: Programming Language :: Python :: 3.12
|
|
222
221
|
Classifier: Programming Language :: Python :: 3.13
|
|
223
222
|
Classifier: Programming Language :: Python :: 3.14
|
|
224
223
|
Classifier: Topic :: Scientific/Engineering
|
|
225
|
-
Requires-Python: >=3.
|
|
224
|
+
Requires-Python: >=3.11
|
|
226
225
|
Description-Content-Type: text/markdown
|
|
227
226
|
License-File: LICENSE
|
|
228
227
|
Requires-Dist: bidsschematools~=1.0
|
|
229
228
|
Requires-Dist: bids-validator-deno>=2.0.5
|
|
230
|
-
Requires-Dist: click>=
|
|
229
|
+
Requires-Dist: click>=8.2
|
|
231
230
|
Requires-Dist: click-didyoumean
|
|
232
231
|
Requires-Dist: dandischema~=0.12.0
|
|
233
232
|
Requires-Dist: etelemetry>=0.2.2
|
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2026-07-
|
|
11
|
+
"date": "2026-07-10T19:01:24+0000",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "0.76.
|
|
14
|
+
"full-revisionid": "0698b7d0ecace38828391de55c259fdd5a93e2ba",
|
|
15
|
+
"version": "0.76.7"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -31,21 +31,17 @@ class IntColonInt(click.ParamType):
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
class EnumChoice(click.Choice):
|
|
34
|
-
"""A ``click.Choice`` over
|
|
34
|
+
"""A ``click.Choice`` over an ``Enum``, matched on member values.
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
``click >= 8.2`` matches ``Enum`` members on ``.name`` by default; this
|
|
37
|
+
subclass overrides :meth:`click.Choice.normalize_choice` to match on
|
|
38
|
+
``.value`` instead, so command-line tokens stay the lowercase enum values
|
|
39
|
+
(``error``, ``skip``, ...). ``click.Choice.convert`` then returns the
|
|
40
|
+
matched enum member.
|
|
39
41
|
"""
|
|
40
42
|
|
|
41
|
-
def
|
|
42
|
-
|
|
43
|
-
super().__init__([e.value for e in enum_cls], case_sensitive=case_sensitive)
|
|
44
|
-
|
|
45
|
-
def convert(self, value, param, ctx):
|
|
46
|
-
if value is None or isinstance(value, self.enum_cls):
|
|
47
|
-
return value
|
|
48
|
-
return self.enum_cls(super().convert(value, param, ctx))
|
|
43
|
+
def normalize_choice(self, choice, ctx=None):
|
|
44
|
+
return choice.value if isinstance(choice, Enum) else str(choice)
|
|
49
45
|
|
|
50
46
|
|
|
51
47
|
class ChoiceList(click.ParamType):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from enum import
|
|
1
|
+
from enum import StrEnum
|
|
2
2
|
|
|
3
3
|
import click
|
|
4
4
|
from click.testing import CliRunner
|
|
@@ -7,14 +7,11 @@ import pytest
|
|
|
7
7
|
from ..base import EnumChoice
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class _Existing(
|
|
10
|
+
class _Existing(StrEnum):
|
|
11
11
|
ERROR = "error"
|
|
12
12
|
SKIP = "skip"
|
|
13
13
|
OVERWRITE = "overwrite-different"
|
|
14
14
|
|
|
15
|
-
def __str__(self) -> str:
|
|
16
|
-
return self.value
|
|
17
|
-
|
|
18
15
|
|
|
19
16
|
def _make_command(**option_kwargs):
|
|
20
17
|
@click.command()
|
|
@@ -24,7 +24,7 @@ def test_cmd_instances(monkeypatch):
|
|
|
24
24
|
" gui: https://dandi.emberarchive.org\n"
|
|
25
25
|
"ember-dandi-sandbox:\n"
|
|
26
26
|
" api: https://api-dandi.sandbox.emberarchive.org/api\n"
|
|
27
|
-
" gui: https://
|
|
27
|
+
" gui: https://dandi.sandbox.emberarchive.org\n"
|
|
28
28
|
"linc:\n"
|
|
29
29
|
" api: https://api.lincbrain.org/api\n"
|
|
30
30
|
" gui: https://lincbrain.org\n"
|
|
@@ -11,7 +11,7 @@ from __future__ import annotations
|
|
|
11
11
|
|
|
12
12
|
from collections.abc import Iterator
|
|
13
13
|
from dataclasses import dataclass
|
|
14
|
-
from enum import Enum
|
|
14
|
+
from enum import Enum, StrEnum
|
|
15
15
|
import os
|
|
16
16
|
|
|
17
17
|
#: A list of metadata fields which dandi extracts from .nwb files.
|
|
@@ -101,13 +101,10 @@ class EmbargoStatus(Enum):
|
|
|
101
101
|
EMBARGOED = "EMBARGOED"
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
class SyncMode(
|
|
104
|
+
class SyncMode(StrEnum):
|
|
105
105
|
ASK = "ask"
|
|
106
106
|
DO = "do"
|
|
107
107
|
|
|
108
|
-
def __str__(self) -> str:
|
|
109
|
-
return self.value
|
|
110
|
-
|
|
111
108
|
|
|
112
109
|
dandiset_metadata_file = "dandiset.yaml"
|
|
113
110
|
dandiset_identifier_regex = f"^{DANDISET_ID_REGEX}$"
|
|
@@ -167,7 +164,7 @@ known_instances = {
|
|
|
167
164
|
),
|
|
168
165
|
"ember-dandi-sandbox": DandiInstance(
|
|
169
166
|
"ember-dandi-sandbox",
|
|
170
|
-
"https://
|
|
167
|
+
"https://dandi.sandbox.emberarchive.org",
|
|
171
168
|
"https://api-dandi.sandbox.emberarchive.org/api",
|
|
172
169
|
),
|
|
173
170
|
}
|
|
@@ -70,6 +70,20 @@ if TYPE_CHECKING:
|
|
|
70
70
|
lgr = get_logger()
|
|
71
71
|
|
|
72
72
|
|
|
73
|
+
def set_asset_schema_key(metadata: dict[str, Any]) -> None:
|
|
74
|
+
"""
|
|
75
|
+
Set ``schemaKey`` to ``"Asset"`` on metadata bound for the server as asset metadata.
|
|
76
|
+
|
|
77
|
+
However the metadata was gathered (e.g. as a ``BareAsset``), if it is to be uploaded
|
|
78
|
+
to the server to populate, in part, an ``Asset`` instance, set the ``schemaKey`` of
|
|
79
|
+
the metadata to ``"Asset"`` here. The server expects the uploaded metadata to carry
|
|
80
|
+
``"Asset"`` as its ``schemaKey``.
|
|
81
|
+
|
|
82
|
+
The metadata is modified in place.
|
|
83
|
+
"""
|
|
84
|
+
metadata["schemaKey"] = "Asset"
|
|
85
|
+
|
|
86
|
+
|
|
73
87
|
class AssetType(Enum):
|
|
74
88
|
"""
|
|
75
89
|
.. versionadded:: 0.36.0
|
|
@@ -1993,6 +2007,7 @@ class RemoteBlobAsset(RemoteAsset, BaseRemoteBlobAsset):
|
|
|
1993
2007
|
Set the metadata for the asset on the server to the given value and
|
|
1994
2008
|
update the `RemoteBlobAsset` in place.
|
|
1995
2009
|
"""
|
|
2010
|
+
set_asset_schema_key(metadata)
|
|
1996
2011
|
data = self.client.put(
|
|
1997
2012
|
self.api_path, json={"metadata": metadata, "blob_id": self.blob}
|
|
1998
2013
|
)
|
|
@@ -2016,6 +2031,7 @@ class RemoteZarrAsset(RemoteAsset, BaseRemoteZarrAsset):
|
|
|
2016
2031
|
Set the metadata for the asset on the server to the given value and
|
|
2017
2032
|
update the `RemoteZarrAsset` in place.
|
|
2018
2033
|
"""
|
|
2034
|
+
set_asset_schema_key(metadata)
|
|
2019
2035
|
data = self.client.put(
|
|
2020
2036
|
self.api_path, json={"metadata": metadata, "zarr_id": self.zarr}
|
|
2021
2037
|
)
|
|
@@ -14,7 +14,7 @@ from collections import Counter, deque
|
|
|
14
14
|
from collections.abc import Callable, Iterable, Iterator, Sequence
|
|
15
15
|
from dataclasses import InitVar, dataclass, field
|
|
16
16
|
from datetime import datetime
|
|
17
|
-
from enum import Enum
|
|
17
|
+
from enum import Enum, StrEnum
|
|
18
18
|
from functools import partial
|
|
19
19
|
import hashlib
|
|
20
20
|
import inspect
|
|
@@ -69,32 +69,23 @@ from .utils import (
|
|
|
69
69
|
lgr = get_logger()
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
class DownloadExisting(
|
|
72
|
+
class DownloadExisting(StrEnum):
|
|
73
73
|
ERROR = "error"
|
|
74
74
|
SKIP = "skip"
|
|
75
75
|
OVERWRITE = "overwrite"
|
|
76
76
|
OVERWRITE_DIFFERENT = "overwrite-different"
|
|
77
77
|
REFRESH = "refresh"
|
|
78
78
|
|
|
79
|
-
def __str__(self) -> str:
|
|
80
|
-
return self.value
|
|
81
79
|
|
|
82
|
-
|
|
83
|
-
class DownloadFormat(str, Enum):
|
|
80
|
+
class DownloadFormat(StrEnum):
|
|
84
81
|
PYOUT = "pyout"
|
|
85
82
|
DEBUG = "debug"
|
|
86
83
|
|
|
87
|
-
def __str__(self) -> str:
|
|
88
|
-
return self.value
|
|
89
|
-
|
|
90
84
|
|
|
91
|
-
class PathType(
|
|
85
|
+
class PathType(StrEnum):
|
|
92
86
|
EXACT = "exact"
|
|
93
87
|
GLOB = "glob"
|
|
94
88
|
|
|
95
|
-
def __str__(self) -> str:
|
|
96
|
-
return self.value
|
|
97
|
-
|
|
98
89
|
|
|
99
90
|
def download(
|
|
100
91
|
urls: str | Sequence[str],
|
|
@@ -25,7 +25,12 @@ from pydantic_core import ErrorDetails
|
|
|
25
25
|
import requests
|
|
26
26
|
|
|
27
27
|
import dandi
|
|
28
|
-
from dandi.dandiapi import
|
|
28
|
+
from dandi.dandiapi import (
|
|
29
|
+
RemoteAsset,
|
|
30
|
+
RemoteDandiset,
|
|
31
|
+
RESTFullAPIClient,
|
|
32
|
+
set_asset_schema_key,
|
|
33
|
+
)
|
|
29
34
|
from dandi.metadata.core import get_default_metadata
|
|
30
35
|
from dandi.misctypes import DUMMY_DANDI_ETAG, Digest, LocalReadableFile, P
|
|
31
36
|
from dandi.utils import post_upload_size_check, pre_upload_size_check, yaml_load
|
|
@@ -363,6 +368,7 @@ class LocalFileAsset(LocalAsset):
|
|
|
363
368
|
from dandi.support.digests import get_dandietag
|
|
364
369
|
|
|
365
370
|
asset_path = metadata.setdefault("path", self.path)
|
|
371
|
+
set_asset_schema_key(metadata)
|
|
366
372
|
client = dandiset.client
|
|
367
373
|
yield {"status": "calculating etag"}
|
|
368
374
|
etagger = get_dandietag(self.filepath)
|
|
@@ -38,6 +38,7 @@ from dandi.dandiapi import (
|
|
|
38
38
|
RemoteZarrAsset,
|
|
39
39
|
RemoteZarrEntry,
|
|
40
40
|
RESTFullAPIClient,
|
|
41
|
+
set_asset_schema_key,
|
|
41
42
|
)
|
|
42
43
|
from dandi.exceptions import UploadError
|
|
43
44
|
from dandi.metadata.core import get_default_metadata
|
|
@@ -580,6 +581,7 @@ class ZarrAsset(LocalDirectoryAsset[LocalZarrEntry]):
|
|
|
580
581
|
`RemoteAsset`.
|
|
581
582
|
"""
|
|
582
583
|
asset_path = metadata.setdefault("path", self.path)
|
|
584
|
+
set_asset_schema_key(metadata)
|
|
583
585
|
client = dandiset.client
|
|
584
586
|
lgr.debug("%s: Producing asset", asset_path)
|
|
585
587
|
yield {"status": "producing asset"}
|
|
@@ -15,7 +15,7 @@ from abc import ABC, abstractmethod
|
|
|
15
15
|
from collections.abc import Iterator
|
|
16
16
|
from contextlib import ExitStack
|
|
17
17
|
from dataclasses import dataclass, field
|
|
18
|
-
from enum import
|
|
18
|
+
from enum import StrEnum
|
|
19
19
|
from itertools import zip_longest
|
|
20
20
|
import os.path
|
|
21
21
|
from pathlib import Path, PurePosixPath
|
|
@@ -35,24 +35,18 @@ from .support import pyout as pyouts
|
|
|
35
35
|
lgr = get_logger()
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
class MoveExisting(
|
|
38
|
+
class MoveExisting(StrEnum):
|
|
39
39
|
ERROR = "error"
|
|
40
40
|
SKIP = "skip"
|
|
41
41
|
OVERWRITE = "overwrite"
|
|
42
42
|
|
|
43
|
-
def __str__(self) -> str:
|
|
44
|
-
return self.value
|
|
45
|
-
|
|
46
43
|
|
|
47
|
-
class MoveWorkOn(
|
|
44
|
+
class MoveWorkOn(StrEnum):
|
|
48
45
|
AUTO = "auto"
|
|
49
46
|
BOTH = "both"
|
|
50
47
|
LOCAL = "local"
|
|
51
48
|
REMOTE = "remote"
|
|
52
49
|
|
|
53
|
-
def __str__(self) -> str:
|
|
54
|
-
return self.value
|
|
55
|
-
|
|
56
50
|
|
|
57
51
|
#: A /-separated path to an asset, relative to the root of the Dandiset
|
|
58
52
|
AssetPath = NewType("AssetPath", str)
|
|
@@ -15,11 +15,11 @@ import binascii
|
|
|
15
15
|
from collections import Counter
|
|
16
16
|
from collections.abc import Sequence
|
|
17
17
|
from copy import deepcopy
|
|
18
|
-
from enum import
|
|
18
|
+
from enum import StrEnum
|
|
19
19
|
import os
|
|
20
20
|
import os.path as op
|
|
21
|
-
import posixpath
|
|
22
21
|
from pathlib import Path, PurePosixPath
|
|
22
|
+
import posixpath
|
|
23
23
|
import re
|
|
24
24
|
import traceback
|
|
25
25
|
import uuid
|
|
@@ -54,7 +54,7 @@ from .validate._types import (
|
|
|
54
54
|
lgr = get_logger()
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
class FileOperationMode(
|
|
57
|
+
class FileOperationMode(StrEnum):
|
|
58
58
|
DRY = "dry"
|
|
59
59
|
SIMULATE = "simulate"
|
|
60
60
|
COPY = "copy"
|
|
@@ -63,23 +63,17 @@ class FileOperationMode(str, Enum):
|
|
|
63
63
|
SYMLINK = "symlink"
|
|
64
64
|
AUTO = "auto"
|
|
65
65
|
|
|
66
|
-
def __str__(self) -> str:
|
|
67
|
-
return self.value
|
|
68
|
-
|
|
69
66
|
def as_copy_mode(self) -> CopyMode:
|
|
70
67
|
# Raises ValueError if the mode can't be mapped to a CopyMode
|
|
71
68
|
return CopyMode(self.value)
|
|
72
69
|
|
|
73
70
|
|
|
74
|
-
class CopyMode(
|
|
71
|
+
class CopyMode(StrEnum):
|
|
75
72
|
SYMLINK = "symlink"
|
|
76
73
|
COPY = "copy"
|
|
77
74
|
MOVE = "move"
|
|
78
75
|
HARDLINK = "hardlink"
|
|
79
76
|
|
|
80
|
-
def __str__(self) -> str:
|
|
81
|
-
return self.value
|
|
82
|
-
|
|
83
77
|
def copy(self, old_path: AnyPath, new_path: AnyPath) -> None:
|
|
84
78
|
if self is CopyMode.SYMLINK:
|
|
85
79
|
os.symlink(old_path, new_path)
|
|
@@ -93,13 +87,10 @@ class CopyMode(str, Enum):
|
|
|
93
87
|
raise AssertionError(f"Unhandled CopyMode member: {self!r}")
|
|
94
88
|
|
|
95
89
|
|
|
96
|
-
class OrganizeInvalid(
|
|
90
|
+
class OrganizeInvalid(StrEnum):
|
|
97
91
|
FAIL = "fail"
|
|
98
92
|
WARN = "warn"
|
|
99
93
|
|
|
100
|
-
def __str__(self) -> str:
|
|
101
|
-
return self.value
|
|
102
|
-
|
|
103
94
|
|
|
104
95
|
dandi_path = op.join("sub-{subject_id}", "{dandi_filename}")
|
|
105
96
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dandiasset:0b0a1a0b-e3ea-4cf6-be94-e02c830d54be",
|
|
3
|
-
"schemaKey": "
|
|
3
|
+
"schemaKey": "ANYTHING GOOD NOW -- `schemaKey` of a `BareAsset` instance will be adjusted to the default value of the `schemaKey` field in the Pydantic `BareAsset` model",
|
|
4
4
|
"schemaVersion": "0.4.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"test",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dandiasset:0b0a1a0b-e3ea-4cf6-be94-e02c830d54be",
|
|
3
|
-
"schemaKey": "
|
|
3
|
+
"schemaKey": "ANYTHING GOOD NOW -- `schemaKey` of a `BareAsset` instance will be adjusted to the default value of the `schemaKey` field in the Pydantic `BareAsset` model",
|
|
4
4
|
"schemaVersion": "0.4.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"test",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dandiasset:0b0a1a0b-e3ea-4cf6-be94-e02c830d54be",
|
|
3
|
-
"schemaKey": "
|
|
3
|
+
"schemaKey": "ANYTHING GOOD NOW -- `schemaKey` of a `BareAsset` instance will be adjusted to the default value of the `schemaKey` field in the Pydantic `BareAsset` model",
|
|
4
4
|
"schemaVersion": "0.4.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"test",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dandiasset:bfc23fb6192b41c083a7257e09a3702b",
|
|
3
|
-
"schemaKey": "
|
|
3
|
+
"schemaKey": "ANYTHING GOOD NOW -- `schemaKey` of a `BareAsset` instance will be adjusted to the default value of the `schemaKey` field in the Pydantic `BareAsset` model",
|
|
4
4
|
"schemaVersion": "0.4.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"keyword1",
|
|
@@ -418,11 +418,22 @@ def test_prepare_metadata(filename: str, metadata: dict[str, Any]) -> None:
|
|
|
418
418
|
with (METADATA_DIR / filename).open() as fp:
|
|
419
419
|
data_as_dict = json.load(fp)
|
|
420
420
|
data_as_dict["schemaVersion"] = DANDI_SCHEMA_VERSION
|
|
421
|
+
# `prepare_metadata()` returns a `BareAsset`, so the top-level `schemaKey`
|
|
422
|
+
# of `data` is the default of the `schemaKey` field of `BareAsset` of the
|
|
423
|
+
# installed dandischema: "Asset" historically, but "BareAsset" once
|
|
424
|
+
# https://github.com/dandi/dandi-schema/pull/419 lands, which pins
|
|
425
|
+
# `BareAsset.schemaKey` to its own class name. The JSON files store a
|
|
426
|
+
# placeholder for this field, so set it to the current default here to keep
|
|
427
|
+
# the comparison independent of the installed dandischema version.
|
|
428
|
+
data_as_dict["schemaKey"] = BareAsset.model_fields["schemaKey"].default
|
|
421
429
|
assert data == data_as_dict
|
|
430
|
+
|
|
431
|
+
# `data_as_dict` is a BareAsset; the following lines turn it into an Asset
|
|
432
|
+
# instance so that `validate()` below checks it against the Asset class: set
|
|
433
|
+
# its `schemaKey`, and add the Asset-only fields `identifier` and (as of
|
|
434
|
+
# schema-0.5.0, https://github.com/dandi/dandischema/pull/52) `contentUrl`.
|
|
435
|
+
data_as_dict["schemaKey"] = "Asset"
|
|
422
436
|
data_as_dict["identifier"] = "0b0a1a0b-e3ea-4cf6-be94-e02c830d54be"
|
|
423
|
-
# as of schema-0.5.0 (https://github.com/dandi/dandischema/pull/52)
|
|
424
|
-
# contentUrl is required, and validate below would map into Asset,
|
|
425
|
-
# due to schemaKey
|
|
426
437
|
if Version(DANDI_SCHEMA_VERSION) >= Version("0.5.0"):
|
|
427
438
|
data_as_dict["contentUrl"] = ["http://example.com"]
|
|
428
439
|
validate(data_as_dict)
|
|
@@ -1135,7 +1146,6 @@ def test_nwb2asset(simple2_nwb: Path) -> None:
|
|
|
1135
1146
|
# Classes with ANY_AWARE_DATETIME fields need to be constructed with
|
|
1136
1147
|
# model_construct()
|
|
1137
1148
|
assert nwb2asset(simple2_nwb, digest=DUMMY_DANDI_ETAG) == BareAsset.model_construct(
|
|
1138
|
-
schemaKey="Asset",
|
|
1139
1149
|
schemaVersion=DANDI_SCHEMA_VERSION,
|
|
1140
1150
|
keywords=["keyword1", "keyword 2"],
|
|
1141
1151
|
access=[
|
|
@@ -1218,7 +1228,6 @@ def test_nwb2asset_remote_asset(nwb_dandiset: SampleDandiset) -> None:
|
|
|
1218
1228
|
# Classes with ANY_AWARE_DATETIME fields need to be constructed with
|
|
1219
1229
|
# model_construct()
|
|
1220
1230
|
assert nwb2asset(r, digest=digest) == BareAsset.model_construct(
|
|
1221
|
-
schemaKey="Asset",
|
|
1222
1231
|
schemaVersion=DANDI_SCHEMA_VERSION,
|
|
1223
1232
|
keywords=["keyword1", "keyword 2"],
|
|
1224
1233
|
access=[
|
|
@@ -50,6 +50,10 @@ def test_upload_download(
|
|
|
50
50
|
(dspath / parent).mkdir()
|
|
51
51
|
copyfile(nwb_file, dspath / parent / name)
|
|
52
52
|
new_dandiset.upload()
|
|
53
|
+
# The uploaded asset's metadata is derived from a ``BareAsset``, but it must
|
|
54
|
+
# be uploaded and stored with a ``schemaKey`` of `"Asset"`
|
|
55
|
+
(asset,) = d.get_assets()
|
|
56
|
+
assert asset.get_raw_metadata()["schemaKey"] == "Asset"
|
|
53
57
|
download(d.version_api_url, tmp_path)
|
|
54
58
|
assert list_paths(tmp_path) == [
|
|
55
59
|
tmp_path / d.identifier / dandiset_metadata_file,
|
|
@@ -14,7 +14,7 @@ from __future__ import annotations
|
|
|
14
14
|
from collections import defaultdict
|
|
15
15
|
from collections.abc import Iterator, Sequence
|
|
16
16
|
from contextlib import ExitStack
|
|
17
|
-
from enum import
|
|
17
|
+
from enum import StrEnum
|
|
18
18
|
import io
|
|
19
19
|
import os.path
|
|
20
20
|
from pathlib import Path
|
|
@@ -83,25 +83,19 @@ class Uploaded(TypedDict):
|
|
|
83
83
|
errors: list[str]
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
class UploadExisting(
|
|
86
|
+
class UploadExisting(StrEnum):
|
|
87
87
|
ERROR = "error"
|
|
88
88
|
SKIP = "skip"
|
|
89
89
|
FORCE = "force"
|
|
90
90
|
OVERWRITE = "overwrite"
|
|
91
91
|
REFRESH = "refresh"
|
|
92
92
|
|
|
93
|
-
def __str__(self) -> str:
|
|
94
|
-
return self.value
|
|
95
93
|
|
|
96
|
-
|
|
97
|
-
class UploadValidation(str, Enum):
|
|
94
|
+
class UploadValidation(StrEnum):
|
|
98
95
|
REQUIRE = "require"
|
|
99
96
|
SKIP = "skip"
|
|
100
97
|
IGNORE = "ignore"
|
|
101
98
|
|
|
102
|
-
def __str__(self) -> str:
|
|
103
|
-
return self.value
|
|
104
|
-
|
|
105
99
|
|
|
106
100
|
def upload(
|
|
107
101
|
paths: Sequence[str | Path] | None = None,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dandi
|
|
3
|
-
Version: 0.76.
|
|
3
|
+
Version: 0.76.7
|
|
4
4
|
Summary: Command line client for interaction with DANDI instances
|
|
5
5
|
Author-email: DANDI developers <team@dandiarchive.org>
|
|
6
6
|
Maintainer-email: DANDI developers <team@dandiarchive.org>
|
|
@@ -216,18 +216,17 @@ Classifier: Intended Audience :: Science/Research
|
|
|
216
216
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
217
217
|
Classifier: Operating System :: OS Independent
|
|
218
218
|
Classifier: Programming Language :: Python
|
|
219
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
220
219
|
Classifier: Programming Language :: Python :: 3.11
|
|
221
220
|
Classifier: Programming Language :: Python :: 3.12
|
|
222
221
|
Classifier: Programming Language :: Python :: 3.13
|
|
223
222
|
Classifier: Programming Language :: Python :: 3.14
|
|
224
223
|
Classifier: Topic :: Scientific/Engineering
|
|
225
|
-
Requires-Python: >=3.
|
|
224
|
+
Requires-Python: >=3.11
|
|
226
225
|
Description-Content-Type: text/markdown
|
|
227
226
|
License-File: LICENSE
|
|
228
227
|
Requires-Dist: bidsschematools~=1.0
|
|
229
228
|
Requires-Dist: bids-validator-deno>=2.0.5
|
|
230
|
-
Requires-Dist: click>=
|
|
229
|
+
Requires-Dist: click>=8.2
|
|
231
230
|
Requires-Dist: click-didyoumean
|
|
232
231
|
Requires-Dist: dandischema~=0.12.0
|
|
233
232
|
Requires-Dist: etelemetry>=0.2.2
|
|
@@ -7,7 +7,7 @@ build-backend = 'setuptools.build_meta'
|
|
|
7
7
|
name = "dandi"
|
|
8
8
|
description = "Command line client for interaction with DANDI instances"
|
|
9
9
|
readme = "README.md"
|
|
10
|
-
requires-python = ">=3.
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
11
|
license = {file = "LICENSE"}
|
|
12
12
|
authors = [
|
|
13
13
|
{name = "DANDI developers", email = "team@dandiarchive.org"},
|
|
@@ -36,7 +36,6 @@ classifiers = [
|
|
|
36
36
|
"License :: OSI Approved :: Apache Software License",
|
|
37
37
|
"Operating System :: OS Independent",
|
|
38
38
|
"Programming Language :: Python",
|
|
39
|
-
"Programming Language :: Python :: 3.10",
|
|
40
39
|
"Programming Language :: Python :: 3.11",
|
|
41
40
|
"Programming Language :: Python :: 3.12",
|
|
42
41
|
"Programming Language :: Python :: 3.13",
|
|
@@ -46,7 +45,7 @@ classifiers = [
|
|
|
46
45
|
dependencies = [
|
|
47
46
|
"bidsschematools ~= 1.0",
|
|
48
47
|
"bids-validator-deno >= 2.0.5",
|
|
49
|
-
"click >=
|
|
48
|
+
"click >= 8.2",
|
|
50
49
|
"click-didyoumean",
|
|
51
50
|
"dandischema ~= 0.12.0",
|
|
52
51
|
"etelemetry >= 0.2.2",
|
|
@@ -237,7 +236,7 @@ init_forbid_extra = true
|
|
|
237
236
|
|
|
238
237
|
[tool.hatch.envs.default]
|
|
239
238
|
installer = "uv"
|
|
240
|
-
python = "3.
|
|
239
|
+
python = "3.11"
|
|
241
240
|
|
|
242
241
|
[tool.hatch.envs.test]
|
|
243
242
|
features = ["test"]
|
|
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
|
{dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/data/update_dandiset_from_doi/biorxiv.vcr.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dandi-0.76.5 → dandi-0.76.7}/dandi/cli/tests/data/update_dandiset_from_doi/jneurosci.vcr.yaml
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
|
|
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
|
{dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/valid_stores/single_array.zarr/c/0/0
RENAMED
|
File without changes
|
{dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/valid_stores/single_array.zarr/c/0/1
RENAMED
|
File without changes
|
{dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/valid_stores/single_array.zarr/c/1/0
RENAMED
|
File without changes
|
{dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/valid_stores/single_array.zarr/c/1/1
RENAMED
|
File without changes
|
{dandi-0.76.5 → dandi-0.76.7}/dandi/tests/data/zarr3_stores/valid_stores/single_array.zarr/zarr.json
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
|
|
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
|