Skip to content

Commit 0a09670

Browse files
Merge pull request #1788 from dandi/enh-lad-docstrings-operations
Add module docstrings to operation modules
2 parents 78d5b27 + 149feff commit 0a09670

5 files changed

Lines changed: 51 additions & 2 deletions

File tree

dandi/delete.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
"""Delete assets and dandisets from DANDI Archive.
2+
3+
This module provides functionality for deleting assets and entire dandisets
4+
from DANDI Archive instances. It supports:
5+
- Single and batch asset deletion
6+
- Dandiset deletion with confirmation
7+
- URL-based and path-based deletion
8+
- Skip-missing option for non-existent resources
9+
"""
10+
111
from __future__ import annotations
212

313
from collections.abc import Iterable, Iterator

dandi/download.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
"""Download assets from DANDI Archive.
2+
3+
This module provides functionality for downloading files and Zarr archives
4+
from DANDI Archive instances. It supports:
5+
- Individual file downloads with integrity verification
6+
- Zarr archive downloads with parallel entry handling
7+
- Resume capability for interrupted downloads
8+
- Progress tracking and error recovery
9+
"""
10+
111
from __future__ import annotations
212

313
from collections import Counter, deque

dandi/move.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
"""Move and rename assets in DANDI Archive.
2+
3+
This module provides functionality for moving and renaming assets both
4+
locally and remotely in DANDI Archive instances. Features include:
5+
- Local file reorganization
6+
- Remote asset path changes
7+
- Combined local and remote moves
8+
- Conflict resolution (skip, overwrite, error)
9+
- Validation of move operations
10+
"""
11+
112
from __future__ import annotations
213

314
from abc import ABC, abstractmethod

dandi/organize.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
"""
2-
ATM primarily a sandbox for some functionality for dandi organize
1+
"""Organize and structure NWB files according to DANDI conventions.
2+
3+
This module provides functionality for organizing neuroscience data files
4+
according to DANDI's file organization schema. Features include:
5+
- Automatic path generation from metadata
6+
- BIDS-like subject/session organization
7+
- Metadata-driven file naming
8+
- Validation of organized paths
9+
- Support for videos and generic files
310
"""
411

512
from __future__ import annotations

dandi/upload.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
"""Upload assets to DANDI Archive.
2+
3+
This module handles uploading NWB files and other assets to DANDI Archive
4+
instances. Features include:
5+
- Validation of files before upload
6+
- Progress tracking with resume capability
7+
- Metadata extraction and assignment
8+
- BIDS validation integration
9+
- Concurrent uploads with thread pool
10+
"""
11+
112
from __future__ import annotations
213

314
from collections import defaultdict

0 commit comments

Comments
 (0)