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.7.0.tar.gz (47.3 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.7.0-py3-none-any.whl (41.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for eyconf-0.7.0.tar.gz
Algorithm Hash digest
SHA256 d5fee1a9c5ce8d88aeb33278dce4d60c81ddbcdb939a25038a29ab32528e0a1d
MD5 c5f8558b522f4c5f9120e679aab373f9
BLAKE2b-256 e5a836e8b7c870f8e7581fe7b3e604c3407e8fab87c411f359dcfa3afc7190ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for eyconf-0.7.0.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.7.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for eyconf-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd8c16f6acec5acb5343ada82973f3bc56425870bafc18e66a3ac62873b23575
MD5 da8373c632cd7c92f8c1803cb889d63f
BLAKE2b-256 aa6937a060f0e2c53fc4685aba0e998993e9bef8b4f745c40e42e2bc1296cc60

See more details on using hashes here.

Provenance

The following attestation bundles were made for eyconf-0.7.0-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