API Reference¶
Auto-generated from docstrings using mkdocstrings.
Main¶
python_template.main
¶
Entry point for python-template.
main()
¶
Run the main application.
This is the CLI entry point configured in pyproject.toml
under [project.scripts].
Source code in src/python_template/main.py
Config¶
python_template.config
¶
Typed configuration using dataclasses.
Field defaults are read from the environment (and a local .env file if
present), falling back to the literal defaults below. Values passed explicitly
to Config(...) always take precedence over the environment.
Usage
from python_template.config import Config
config = Config() config = Config(seed=42, data_dir="data/processed")
Config
dataclass
¶
Project configuration.