Everett - Configuration Library

3.5.0 · deprecated · verified Sat Apr 11

Everett is a Python configuration library for applications, offering flexible configuration management from various sources including process environment variables, .env files, dictionaries, INI files, and YAML files. It aims to provide clear error messages and support for automated documentation of configuration. As of October 15, 2025, the project is deprecated. The current version is 3.5.0, with prior releases indicating an active development cycle before deprecation.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to initialize a basic `ConfigManager` which automatically looks for configuration in environment variables. It retrieves 'host' and 'port' with specified defaults and a type parser for 'port'. The `doc` parameter provides helpful context for users encountering configuration errors.

import os
from everett.manager import ConfigManager

# Simulate environment variable for demonstration
os.environ['APP_HOST'] = '127.0.0.1'
os.environ['APP_PORT'] = '8080'

config = ConfigManager.basic_config(
    doc="Check https://example.com/configuration for documentation."
)

host = config('host', default='localhost')
port = config('port', parser=int, default='5000')

print(f"Application Host: {host}")
print(f"Application Port: {port}")

# Clean up simulated environment variable
del os.environ['APP_HOST']
del os.environ['APP_PORT']

view raw JSON →