Config
timenet.config ¶source
Runtime configuration, resolved with pydantic-settings.
All local state lives under a single home directory (default ~/.cache/timenet), mirroring
HuggingFace's HF_HOME -> HF_DATASETS_CACHE / HF_HUB_CACHE hierarchy. Setting TIMENET_HOME
relocates everything; the per-area env vars override just their own path. Precedence for any value is
explicit argument (e.g. a CLI flag) > environment variable > default. This model is the single place
to add future configuration.
TimeNetSettings ¶source
Bases: BaseSettings
TimeNet's settings. Reads TIMENET_* environment variables (and an optional .env).
cache_dir
property
¶source
cache_dir: Path
Where curation raw sources and Hub downloads are cached (analog of HF_HUB_CACHE).
settings ¶source
settings(**overrides: Any) -> TimeNetSettings
Build settings, letting explicit non-None overrides win over env and defaults.
None overrides are dropped so a missing CLI flag falls through to the environment, then the
default.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**overrides
|
Any
|
Field overrides (e.g. |
{}
|
Returns:
| Type | Description |
|---|---|
TimeNetSettings
|
The resolved :class: |