yaml-dataclass
A basic Python library for mapping YAML data to Python dataclasses.
Installation
pip install yaml-pydantic-dataclass
Usage
# config.yaml
app:
api:
port: 8080
debug: false
from pydantic.dataclasses import dataclass
from yaml_dataclass import YamlConfig
@dataclass
class AppApiConfig:
port: int
@dataclass
class AppConfig(YamlConfig):
__path__ = "app"
__config_file__ = "./config.yaml"
api: AppApiConfig
debug: bool
if __name__ == '__main__':
config = AppConfig.read_config()
print(config.api.port) # 8080
print(config.debug) # False
Metadata
Release files for yaml-pydantic-dataclass 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yaml_pydantic_dataclass-0.1.4.tar.gz | 4.0 kB | With provenance | Details for yaml_pydantic_dataclass-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yaml_pydantic_dataclass-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for yaml_pydantic_dataclass-0.1.4-py3-none-any.whl |
Total release size: 8.3 kB
Release files / yaml_pydantic_dataclass-0.1.4.tar.gz
| Download URL | yaml_pydantic_dataclass-0.1.4.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b21501b0be59ea83305bddbe782d76fc5ba8f56f6b356487a4cc7470a0442610
|
|
BLAKE2b-256 checksum How to use checksums |
7d5be52f38a490bacf9ace2c18037de1ce343fce75d6150ff4446fd64107e506
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 23, 2026.
Transparency logRelease files / yaml_pydantic_dataclass-0.1.4-py3-none-any.whl
| Download URL | yaml_pydantic_dataclass-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f03acfec9d4964c6665119645b3f5e23e9ea05036808f6be91542439538600d
|
|
BLAKE2b-256 checksum How to use checksums |
8573ec6af5ce4fd2c9f20f2b14f7fcd0eed75261e3db9987c3db0e750ad2fe81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 23, 2026.
Transparency logSecurity for yaml-pydantic-dataclass 0.1.4
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for yaml_pydantic_dataclass-0.1.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 23, 2026.
Transparency logA 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.