CLI Reference¶
somnio¶
No description available
Usage¶
somnio [OPTIONS] COMMAND [ARGS]...
Arguments¶
No arguments available
Options¶
| Name | Description | Required | Default |
|---|---|---|---|
-l, --file-logging |
Enable file logging. By default, logs are written to logs/{command}_{timestamp}.log. Use before the subcommand. | No | False |
-f, --log-file |
Log to this file instead of the default. Implies file logging. Must appear before the subcommand. | No | - |
--install-completion |
Install completion for the current shell. | No | - |
--show-completion |
Show completion for the current shell, to copy it or customize the installation. | No | - |
Commands¶
| Name | Description |
|---|---|
download-nsrr |
Download files from an NSRR dataset. |
Subcommands¶
download-nsrr¶
Download files from an NSRR dataset.
Usage¶
somnio download-nsrr [OPTIONS] SLUG OUTPUT_DIR
Arguments¶
| Name | Description | Required |
|---|---|---|
SLUG |
Dataset slug (e.g., sof, shhs, mesa). | Yes |
OUTPUT_DIR |
Output directory; files are written to OUTPUT_DIR/SLUG/. | Yes |
Options¶
| Name | Description | Required | Default |
|---|---|---|---|
--token, -t |
NSRR auth token. | Yes | - |
--path, -p |
Subpath to download (e.g., polysomnography). Default: entire dataset. | No | - |
--timeout-seconds |
Per-request timeout in seconds. | No | 300.0 |
--download-retries |
Retries per file on connection/read timeout. | No | 3 |
--http-retries |
Retries for HTTP requests. | No | 6 |