Skip to main content

Lightweight and Easy to use configuration manager for Python projects

Project description

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 INI files.

What does it do?

  • Type-safe configuration with automatic type conversion
  • Automatic INI 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 .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

confkit-0.6.0.tar.gz (88.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

confkit-0.6.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file confkit-0.6.0.tar.gz.

File metadata

  • Download URL: confkit-0.6.0.tar.gz
  • Upload date:
  • Size: 88.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for confkit-0.6.0.tar.gz
Algorithm Hash digest
SHA256 e626f445292fea5b9a6d733ee502438ab9ac0890169bae38b7c1011b07d648c5
MD5 a6c4bbf9859f4a6c5ca120bac213c674
BLAKE2b-256 f61451ffd75e56c3cd4edecbd091a0c977b77beabdf7bdf70cf6c9dd55b04afe

See more details on using hashes here.

Provenance

The following attestation bundles were made for confkit-0.6.0.tar.gz:

Publisher: pypi.yml on HEROgold/confkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file confkit-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: confkit-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for confkit-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2528b0a3c18646928747dde346047bc6c5a5e71df0f7151f3021d721e25d3f9
MD5 cadf4f3b84443afd6da3dd99424972df
BLAKE2b-256 17c377be3732b852b71f65af7c285b6348ee1e739b77cd4096f832f43fbfd81f

See more details on using hashes here.

Provenance

The following attestation bundles were made for confkit-0.6.0-py3-none-any.whl:

Publisher: pypi.yml on HEROgold/confkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page