dandi.consts
¶
- dandi.consts.DANDISET_ID_REGEX = '[0-9]{6}'¶
Regular expression for a valid Dandiset identifier. This regex is not anchored.
- dandi.consts.DRAFT = 'draft'¶
The identifier for draft Dandiset versions
- class dandi.consts.DandiInstance(name: 'str', gui: 'str | None', api: 'str')[source]¶
- api: str¶
- gui: str | None¶
- name: str¶
- property redirector: None¶
- class dandi.consts.EmbargoStatus(value)[source]¶
An enumeration.
- EMBARGOED = 'EMBARGOED'¶
- OPEN = 'OPEN'¶
- UNEMBARGOING = 'UNEMBARGOING'¶
- dandi.consts.MAX_CHUNK_SIZE = 8388608¶
Chunk size when iterating a download (and upload) body. Taken from girder-cli TODO: should we make them smaller for download than for upload? ATM used only in download
- dandi.consts.MAX_ZARR_DEPTH = 7¶
Maximum allowed depth of a Zarr directory tree
- dandi.consts.PUBLISHED_VERSION_REGEX = '[0-9]+\\.[0-9]+\\.[0-9]+'¶
Regular expression for a valid published (i.e., non-draft) Dandiset version identifier. This regex is not anchored.
- dandi.consts.RETRY_STATUSES = (429, 500, 502, 503, 504)¶
HTTP response status codes that should always be retried (until we run out of retries)
- dandi.consts.VERSION_REGEX = '(?:[0-9]+\\.[0-9]+\\.[0-9]+|draft)'¶
Regular expression for a valid Dandiset version identifier. This regex is not anchored.
- dandi.consts.ZARR_DELETE_BATCH_SIZE = 100¶
Maximum number of Zarr directory entries to delete at once
- dandi.consts.ZARR_MIME_TYPE = 'application/x-zarr'¶
MIME type assigned to & used to identify Zarr assets
- dandi.consts.ZARR_UPLOAD_BATCH_SIZE = 255¶
Maximum number of Zarr directory entries to upload at once
- dandi.consts.metadata_nwb_file_fields = ('experiment_description', 'experimenter', 'identifier', 'institution', 'keywords', 'lab', 'related_publications', 'session_description', 'session_id', 'session_start_time')¶
A list of metadata fields which dandi extracts from .nwb files. Additional fields (such as
number_of_*
) might be added byget_metadata()