ontocast.cli.env_files¶
Load layered dotenv files into the environment for the ontocast CLI.
Files apply in the order given and a later file overrides an earlier one, so a
stack such as provider credentials, then project settings, reads as one
configuration. A variable already exported in the shell is never overridden,
which keeps a one-off VAR=value ontocast ... effective on top of the stack.
Attributes¶
logger = logging.getLogger(__name__)
module-attribute
¶
Functions:¶
apply_env_files(paths)
¶
Export the merged files into os.environ beneath the shell's own values.
Variables no setting reads are still exported -- libraries read some of
them, such as HF_TOKEN -- but are named in a warning, since a renamed or
removed OntoCast setting looks exactly like one. Values are never logged.
Source code in ontocast/cli/env_files.py
merge_env_files(paths)
¶
Merge dotenv files in order, a later file winning on a shared name.