Skip to main content

confkit

Test Coverage Status

Type-safe configuration manager for Python projects using descriptors and ConfigParser.

Full documentation: confkit docs

Supported Python Versions

confkit follows the Python version support policy as outlined in the Python Developer's Guide:

  • We support all active and maintenance releases of Python, starting with 3.11
  • End-of-life (EOL) Python versions are not supported
  • We aim to support Python release candidates to stay ahead of the release cycle

This ensures that confkit remains compatible with current Python versions while allowing us to leverage modern language features.

What is it?

confkit is a Python library that provides type-safe configuration management with automatic type conversion and validation. It uses descriptors to define configuration values as class attributes that automatically read from and write to configuration files.

What does it do?

  • Type-safe configuration with automatic type conversion
  • Automatic configuration file management
  • Default value handling with file persistence
  • Optional value support
  • Enum support (Enum, StrEnum, IntEnum, IntFlag)
  • Method decorators for injecting configuration values
  • Runtime type validation

Getting Started / Usage

For full quickstart, advanced patterns (custom data types, decorators, argparse integration), and runnable examples, visit the documentation site:

👉 confkit documentation site

Direct entry points:

  • Quickstart & descriptor patterns: Usage Guide
  • All examples: Examples Overview
  • Custom datatype tutorial: Custom Data Type example
  • API reference: pdoc-generated symbol index

You can still browse example source locally under examples/.

How to contribute?

  1. Fork the repository and clone locally
  2. Install dependencies: uv sync --group test
  3. Run tests: pytest .
  4. Run linting: ruff check .
  5. Make changes following existing patterns
  6. Add tests for new functionality
  7. Submit a pull request

Development

git clone https://github.com/HEROgold/confkit.git
cd confkit
uv sync --group test
pytest .
ruff check .

Building Documentation

To build and preview documentation locally:

# Install documentation dependencies
uv sync --group docs

# Generate API documentation with pdoc
uv run pdoc confkit -o docs/api

# Build documentation site with zensical
uv run zensical build --clean

# Or serve locally for live preview (with auto-reload)
uv run zensical serve

Documentation is automatically built and deployed to GitHub Pages when changes are pushed to the master branch.

After updating code that affects documentation:

  1. Update relevant .md files in docs/ directory (examples, reference, etc.)
  2. Run uv run pdoc confkit -o docs/api to regenerate API documentation
  3. Preview changes with uv run zensical serve and verify at http://127.0.0.1:8000
  4. Commit both code and documentation changes together

Metadata

Release files for confkit 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for confkit 2.2.0
File Size Uploaded Provenance Actions
confkit-2.2.0.tar.gz 137.2 kB Without provenance Details for confkit-2.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for confkit 2.2.0
File Interpreter ABI Platform Actions
confkit-2.2.0-py3-none-any.whl Python 3 none any Details for confkit-2.2.0-py3-none-any.whl

Total release size: 161.4 kB

Release files / confkit-2.2.0.tar.gz

Download URL confkit-2.2.0.tar.gz
Size 137.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9cb37e41f7dbbce242d1053e964030f16475188dbe15d0279b6a5e8bd8cdca32
BLAKE2b-256 checksum
How to use checksums
2a798f46c97bb23ffd39479648a28021fc0b40195a4d6160d7559557861e2f6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / confkit-2.2.0-py3-none-any.whl

Download URL confkit-2.2.0-py3-none-any.whl
Size 24.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c0aaa76048fff801ee018d0d52dffcd4a512cc7bf48a9b1c4af29093c484075
BLAKE2b-256 checksum
How to use checksums
82117cc99ce221f3117010a3d3cdc9f8191804f3ea97fe75be63203bb265c8e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for confkit 2.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page