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 3.0.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 3.0.0
File Size Uploaded Provenance Actions
confkit-3.0.0.tar.gz 193.4 kB Without provenance Details for confkit-3.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 217.8 kB

Release files / confkit-3.0.0.tar.gz

Download URL confkit-3.0.0.tar.gz
Size 193.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6a4126341f68a65dc34328ef5d2cbb311bcf160fef060f3b98de22802b15bcb2
BLAKE2b-256 checksum
How to use checksums
2bf5dae7a997dfbe0fcbd800a4d1a4c43fe2e5190f12adc686f14c60012d15ef
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-3.0.0-py3-none-any.whl

Download URL confkit-3.0.0-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36308f52ecc553a97c1837d478e954789c766f27e619e565e39e40eb428f9ce7
BLAKE2b-256 checksum
How to use checksums
5e0c4e7f1dcb5b917a285fd3a93d1a3e9de05efef098b6659d802bc599e99134
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 3.0.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