Configuration#
seagrid reads its settings with Dynaconf from these files, in order. A later file wins for each key it sets, and missing files are skipped:
Order |
File |
Use |
|---|---|---|
0 |
|
defaults, always read |
1 |
|
machine-wide settings |
2 |
|
your own defaults |
3 |
|
the current project |
4 |
|
per-run files, sorted by name |
5 |
|
an explicit extra file |
Locations 1–3 may also hold a .secrets.toml for credentials.
Each [section] is a Dynaconf environment. [default] applies to every
section, and each data source reads its own section, e.g. [ostia]. You can
override single keys with environment variables prefixed with SEAGRID_:
SEAGRID_BASEDATADIR=/scratch/seagrid python my_script.py
Check your files for misspelt keys with:
seagrid config check
seagrid config show ostia # resolved settings, credentials masked