API Reference
User configuration management for uv-start.
Provides a fallback chain for author info: config file -> git config -> defaults. Config is stored at ~/.config/uv-start/config.toml.
- class uv_start.config.UserConfig(author_name, author_email)[source]
Bases:
objectUser configuration for project scaffolding.
- author_email: str
- author_name: str
- uv_start.config.clean_env()[source]
Return a minimal environment safe for uv/git subprocesses.
Only passes through variables needed for process execution, explicitly excluding secrets and tokens that may be exported in the shell session.
- Return type:
dict[str,str]
- uv_start.config.load_config()[source]
Load user config with fallback chain: config file -> git -> defaults.
- Return type:
- uv_start.config.save_config(name, email)[source]
Write user config to ~/.config/uv-start/config.toml.
- Return type:
None
- class uv_start.router.CommandDispatcher(args, original_cwd)[source]
Bases:
objectDispatch commands based on argument pattern
- args: Namespace
- dispatch()[source]
Route to appropriate command handler based on argument pattern
- Return type:
None
- original_cwd: Path
Module to copy the README.md, LICENCE, .gitignore and .pre-commit-config.yaml files to the build directory and add author information.