Skip to main content

Easy Yaml based Configuration for Python

Project description

EYConf

Easy Yaml based Configuration for Python

PyPI - Version build status docs License: GPL v3

Why EYConf?

  • Schema-First Configuration: Define your config structure with Python dataclasses, get automatic YAML generation with comments
  • Type-Safe Access: Access nested configuration values with full IDE support and runtime type checking
  • Validation First: Catch configuration errors early with detailed, human-readable validation messages
  • Zero Boilerplate: No manual YAML parsing, no dictionary access - just clean attribute access to your configuration

Installation

You can install EYConf from PyPI using pip.

pip install eyconf

Example Usage

from dataclasses import dataclass
from eyconf import EYConf

@dataclass
class AppConfig:
    """Application configuration"""
    database_url: str = "sqlite:///app.db"
    debug: bool = False

# Creates/loads config.yaml automatically
config = EYConf(AppConfig)

# Use your config
print(config.data.debug)  # False

This will create a config.yaml file in your current working directory with the following content:

# Application configuration

database_url: sqlite:///app.db
debug: false

Please refer to the documentation for more examples and detailed usage instructions.

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

eyconf-0.6.1.tar.gz (46.5 kB view details)

Uploaded Source

Built Distribution

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

eyconf-0.6.1-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

File details

Details for the file eyconf-0.6.1.tar.gz.

File metadata

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

File hashes

Hashes for eyconf-0.6.1.tar.gz
Algorithm Hash digest
SHA256 b54a01ea6af9c79e99fb0f7f2fdd3ffddb93d7757bfbfd64daf2ae28b873bfa7
MD5 b0fc46f1577b8832ec9395f9c8f26c1f
BLAKE2b-256 50926d0bf3b3f486fc78fd48a63b4d649041db9d697e5b3944aef57a027b0986

See more details on using hashes here.

Provenance

The following attestation bundles were made for eyconf-0.6.1.tar.gz:

Publisher: publish.yml on semohr/eyconf

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

File details

Details for the file eyconf-0.6.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for eyconf-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f8b1e87f942ac5d396b1d1be91784cc3b50cb8ba497e970660e94baa7bd473b
MD5 a0b3cdcb78db78a078411e89cc38b1bd
BLAKE2b-256 b21fda083c926f12d08d5d72e46e713b931cc54f1ebe063bd5466f16b1ca773c

See more details on using hashes here.

Provenance

The following attestation bundles were made for eyconf-0.6.1-py3-none-any.whl:

Publisher: publish.yml on semohr/eyconf

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