donfig
Python package for configuring a python package
Decision gist · record as of 2026-08-14
Yes. Donfig is a lightweight, actively maintained library with no known vulnerabilities, a permissive MIT license, and low install friction. It solves a real problem—multi-source configuration management—that library authors would otherwise implement themselves. Suitable for any Python package that needs flexible user-facing configuration.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later.
- Low install friction with a single pure-Python dependency (pyyaml).
- Actively maintained with recent commits; last release was in 2024-05-23 and the repository remains active.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) allows use in commercial and proprietary projects with minimal restrictions; original dask code also acknowledged under its prior license.
last release 2024-05-23 (813 days) · last repo commit 2026-08-04 · 42 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 5,985,314 downloads/mo, #1,996 on PyPI
Alternatives
Verify before relying
pip install donfig
from donfig import Config
config = Config('mypkg')
config.set(important_key=5)
value = config.get('important_key')- Whether the package handles complex nested YAML structures or has limitations on config depth.
- Performance characteristics when loading large configuration files or managing many config keys.
- Thread-safety guarantees for concurrent access to the Config object.
What it is and what it does
Donfig is a configuration library that abstracts away the boilerplate of managing application settings across multiple sources. It originated from the dask library's configuration system and provides a Config object that can be instantiated per package to centralize settings management. The library automatically loads configuration from environment variables (prefixed with the config object's name in uppercase), YAML files in standard system locations (~/.config, /etc, sys.prefix/etc), and programmatic calls. This multi-source approach lets developers and users configure applications without modifying code, using whichever method fits their workflow.
The package is lightweight, depending only on pyyaml, and supports context managers for temporary configuration changes. It's designed to be embedded in other packages rather than used standalone, making it useful for library authors who want to offer their users flexible configuration without building a custom system.
Use it for
- Embed configuration management in a data science or scientific Python package without building custom config logic.
- Allow users to override package settings via environment variables in containerized or cloud deployments.
- Load application defaults from YAML files in standard system locations, with user overrides in home directories.
- Provide temporary configuration changes within a code block using context managers without global state pollution.
- Centralize package-wide settings in a single Config object accessible throughout a codebase.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Donfig is a lightweight, actively maintained library with no known vulnerabilities, a permissive MIT license, and low install friction. It solves a real problem—multi-source configuration management—that library authors would otherwise implement themselves. Suitable for any Python package that needs flexible user-facing configuration.
Install
donfig on PyPI
Before you install
Low install friction with a single pure-Python dependency (pyyaml). Actively maintained with recent commits; last release was in 2024-05-23 and the repository remains active.
Requires Python 3.8 or later.
License in practice
MIT license (permissive) allows use in commercial and proprietary projects with minimal restrictions; original dask code also acknowledged under its prior license.
Quickstart
pip install donfig
from donfig import Config
config = Config('mypkg')
config.set(important_key=5)
value = config.get('important_key')
Verify before relying
- Whether the package handles complex nested YAML structures or has limitations on config depth.
- Performance characteristics when loading large configuration files or managing many config keys.
- Thread-safety guarantees for concurrent access to the Config object.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepyyaml |
| Maintenance | Actively maintained 813 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,985,314 / month, #1,996 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonTopic :: Scientific/Engineering |
Evidence: donfig-0.8.1.post1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “config object for packages”
- donfigDonfig provides a unified configuration system for Python packages,…
- django-settings-holderProvides a settings container for Django extensions that allows…
- lib-layered-configLoads and merges configuration from multiple sources (defaults,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Scientific/Engineering packages
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.
scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.
scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.
Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.
dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.
Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.
Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.
See also bestconfig · apipkg · yaml-config · lib-layered-config · rapids-dask-dependency · configurator · hierarchical-conf · confuse · ConfigArgParse · pyaml-env