Easy Yaml based Configuration for Python
Project description
EYConf
Easy Yaml based Configuration for Python
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eyconf-0.3.4.tar.gz.
File metadata
- Download URL: eyconf-0.3.4.tar.gz
- Upload date:
- Size: 64.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1884dc2f8b2b07627981a41ae53f0b3e41d1bd61e4f82b93ac927855b0972f29
|
|
| MD5 |
241d2c6e3ada399d62a08ce7d8dede1e
|
|
| BLAKE2b-256 |
233a5cc508eced46453d13d263e36d861c110b099a49c7e74edf4107f875ba81
|
Provenance
The following attestation bundles were made for eyconf-0.3.4.tar.gz:
Publisher:
publish.yml on semohr/eyconf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eyconf-0.3.4.tar.gz -
Subject digest:
1884dc2f8b2b07627981a41ae53f0b3e41d1bd61e4f82b93ac927855b0972f29 - Sigstore transparency entry: 708770282
- Sigstore integration time:
-
Permalink:
semohr/eyconf@cab31205de1904135297a59fbc02d73069f76995 -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/semohr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cab31205de1904135297a59fbc02d73069f76995 -
Trigger Event:
release
-
Statement type:
File details
Details for the file eyconf-0.3.4-py3-none-any.whl.
File metadata
- Download URL: eyconf-0.3.4-py3-none-any.whl
- Upload date:
- Size: 32.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57df4ee3a08297e22dcfb97dac6239e7fd9ea27261027a8b068f642e0ef4f426
|
|
| MD5 |
77e5a9aa62debeb651d3b40899ac15be
|
|
| BLAKE2b-256 |
1f5f86468e51292f23d7071b67f3d9b0589fb5d9672570892c58544df77a3011
|
Provenance
The following attestation bundles were made for eyconf-0.3.4-py3-none-any.whl:
Publisher:
publish.yml on semohr/eyconf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eyconf-0.3.4-py3-none-any.whl -
Subject digest:
57df4ee3a08297e22dcfb97dac6239e7fd9ea27261027a8b068f642e0ef4f426 - Sigstore transparency entry: 708770284
- Sigstore integration time:
-
Permalink:
semohr/eyconf@cab31205de1904135297a59fbc02d73069f76995 -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/semohr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cab31205de1904135297a59fbc02d73069f76995 -
Trigger Event:
release
-
Statement type: