HBNetwork/python-decouple
Strict separation of config from code. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4572
- days_rel: n/a
- days_push: 643
- n_releases_24m: 0
Adoption not part of the score
3038 stars · 218 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
python-decouple is a Python library that enforces strict separation of configuration settings from code, reading parameters from .env or .ini files with typed casting and sensible defaults. Originally built for Django, it works as a generic settings helper for any Python application.
Use cases
- load environment variables from a .env file in python
- parse DEBUG=False as a boolean instead of a truthy string
- manage Django settings with defaults and type casting
- keep secrets like API keys out of source code
- share one settings module across dev and production instances
When to choose
- you want typed config values (bool, int) instead of raw strings from os.environ
- you use Django or Flask and want simple .env/.ini based settings
- you need per-deploy configuration without redeploying code
When to avoid
- you need schema validation or nested config structures - use pydantic-settings or dynaconf
- you only need plain os.environ access with no casting
- you need hierarchical config across many services
Facets
library · maturity stable
configuration-management developer-tools developer-tools web-development backend python cli env-files ini-files django settings twelve-factor
1 source
- readme: https://github.com/HBNetwork/python-decouple · fetched 2026-08-28 · 9cb7f9a38fe6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| HBNetwork/python-decouple | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="HBNetwork/python-decouple")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem