Skip to content

Commit 0c60106

Browse files
Merge pull request #1787 from dandi/enh-lad-docstrings-core
Add module docstrings to core API and configuration modules
2 parents 011120a + 47a1698 commit 0c60106

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

dandi/consts.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
"""Constants and configuration for DANDI CLI.
2+
3+
This module defines constants used throughout the DANDI CLI including:
4+
- Metadata field definitions for NWB files
5+
- Known DANDI Archive instances and their configurations
6+
- File organization patterns and BIDS-related constants
7+
- Request timeouts and retry settings
8+
"""
9+
110
from __future__ import annotations
211

312
from collections.abc import Iterator

dandi/dandiapi.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
"""REST API client for interacting with DANDI Archive instances.
2+
3+
This module provides client classes for communicating with DANDI Archive API
4+
servers, including asset management, dandiset operations, and authentication.
5+
6+
The main classes are:
7+
- DandiAPIClient: High-level client for DANDI API operations
8+
- RESTFullAPIClient: Base HTTP client with retry and authentication
9+
- RemoteDandiset: Represents a dandiset on the server
10+
- RemoteAsset: Represents an asset (file) on the server
11+
"""
12+
113
from __future__ import annotations
214

315
from abc import ABC, abstractmethod

dandi/exceptions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
"""Custom exceptions for DANDI CLI operations.
2+
3+
This module defines exception classes used throughout the DANDI CLI for
4+
handling various error conditions including network errors, validation
5+
failures, and version incompatibilities.
6+
"""
7+
18
from __future__ import annotations
29

310
import requests

0 commit comments

Comments
 (0)