Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions dandi/consts.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
"""Constants and configuration for DANDI CLI.

This module defines constants used throughout the DANDI CLI including:
- Metadata field definitions for NWB files
- Known DANDI Archive instances and their configurations
- File organization patterns and BIDS-related constants
- Request timeouts and retry settings
"""

from __future__ import annotations

from collections.abc import Iterator
Expand Down
12 changes: 12 additions & 0 deletions dandi/dandiapi.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
"""REST API client for interacting with DANDI Archive instances.

This module provides client classes for communicating with DANDI Archive API
servers, including asset management, dandiset operations, and authentication.

The main classes are:
- DandiAPIClient: High-level client for DANDI API operations
- RESTFullAPIClient: Base HTTP client with retry and authentication
- RemoteDandiset: Represents a dandiset on the server
- RemoteAsset: Represents an asset (file) on the server
"""

from __future__ import annotations

from abc import ABC, abstractmethod
Expand Down
7 changes: 7 additions & 0 deletions dandi/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""Custom exceptions for DANDI CLI operations.

This module defines exception classes used throughout the DANDI CLI for
handling various error conditions including network errors, validation
failures, and version incompatibilities.
"""

from __future__ import annotations

import requests
Expand Down