# sloria/environs

simplified environment variable parsing

Repository: https://github.com/sloria/environs
Canonical: https://ross.abutalabs.com/products/environs
Language: Python
License: MIT
License Family: permissive
Topics: environment-variables, configuration, twelve-factor, python, marshmallow, django, flask
Last push: 2026-08-25T23:10:21+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 3782, "days_push": 8, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1373, forks 113 (observed 2026-08-28T04:04:32.422591+00:00)

## What it is
A Python library for parsing and validating environment variables with type casting, .env file support, and custom parsers. It follows the Twelve-Factor App methodology and integrates well with Flask and Django.

## Use cases
- parse environment variables with type casting in python
- load .env files without mutating os.environ
- validate required environment variables at startup
- read docker-style secret files into config
- manage twelve-factor app configuration in flask or django

## When to choose
- you want typed, validated environment variable parsing in Python
- you need .env file support with variable expansion and prefixes
- you use Flask or Django and want clean config handling

## When to avoid
- you need full config management with files, remote sources, or hot reload
- you prefer pydantic-settings or a settings framework with nested models

## Facets
- artifact type: library
- maturity: active
- function: configuration-management, serialization
- domain: developer-tools, web-development, backend
- platform: python, cli
- tags: environment-variables, twelve-factor, env-files, validation, type-casting, django, flask, marshmallow

## Member repositories
- sloria/environs (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:32.422591+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:40:43.676135+00:00, confidence not recorded.
  - readme: https://github.com/sloria/environs (fetched 2026-08-28T04:04:32.422591+00:00, sha 01ab4685584c)
  - registry_pypi: https://pypi.org/pypi/environs/json (fetched 2026-08-29T11:57:13.425342+00:00, sha 51c06afab1f7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
