| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A batteries-included Python script boilerplate for quickly spinning up new projects.
. ├── main.py # Entry point ├── config/ │ └── settings.py # Pydantic-based settings (reads from .env) ├── lib/ │ ├── dot_env_loader.py # Layered .env loader │ └── httpx_client.py # Sync/async HTTP client wrapper ├── utils/ # Utility functions │ └── http.py # HTTP utility functions ├── scripts/ # Standalone helper scripts ├── data/ │ ├── input/ # Raw / source data │ └── output/ # Generated / processed data ├── _docs/ # Internal documentation ├── .env.example # Template for environment variables └── pyproject.toml # Project metadata & dependencies (uv)
# 1. Clone / use as template
gh repo create my-script --template code4mk/python-script-template
cd my-script
# 2. Install dependencies (requires uv)
uv sync
# 3. Set up environment variables
cp .env.example .env
# edit .env with your values
# 4. Run
uv run python main.pyEnvironment variables are loaded in order:
Define your own settings in config/settings.py and access them anywhere:
from config.settings import settings
print(settings.db_host)See _docs/ for detailed documentation on included utilities.
MIT
| Back | FazBrowse Home | New Git URL |