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.1.1

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.1.1
File Size Uploaded Provenance Actions
confkit-2.1.1.tar.gz 133.5 kB Without provenance Details for confkit-2.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 155.5 kB

Release files / confkit-2.1.1.tar.gz

Download URL confkit-2.1.1.tar.gz
Size 133.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2677fb6b2947bacddf97ece2c1691d248074158efcc8d4b9fad162ea0eae1c35
BLAKE2b-256 checksum
How to use checksums
17c1500f17f254be4266999345ced7f42c6916f61900ea7c9315c5c7ec972fa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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

Download URL confkit-2.1.1-py3-none-any.whl
Size 22.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
258be883ce48ecf4770c82f496334881c12bfb997400686819378e007a54e44d
BLAKE2b-256 checksum
How to use checksums
9f43f3366f355c52e0d73e5e08cd9cafb47279c5f52dc44fc175e8759e5ae327
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for confkit 2.1.1

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