Serious Serializers
Simple class mixin to add YAML serialization and deserialization to dataclass objects that use slots.
Examples
To add serialization to dataclass object:
from serious_serializers import SlotsSerializer
@dataclass(slots=True)
class Data(SlotsSerializer):
n: int
data: List[float]
To represent the class tag as !Data:
from serious_serializers import SlotsSerializer
@SlotsSerializer.show_tag
@dataclass(slots=True)
class Data(SlotsSerializer):
n: int
data: List[float]
Metadata
Release files for serious-serializers 0.1.0
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 |
|---|---|---|---|---|
| serious_serializers-0.1.0.tar.gz | 3.4 kB | Without provenance | Details for serious_serializers-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| serious_serializers-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for serious_serializers-0.1.0-py3-none-any.whl |
Total release size: 6.5 kB
Release files / serious_serializers-0.1.0.tar.gz
| Download URL | serious_serializers-0.1.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2bcc09dd9aea14d4978381e8bc688e801045725039f56b40797da4656622f5fc
|
|
BLAKE2b-256 checksum How to use checksums |
71f795aa15520ab5ff2503cc99fa7696343fb9986cca2fe49e698abf7583b1fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / serious_serializers-0.1.0-py3-none-any.whl
| Download URL | serious_serializers-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ad65a467e0f9c556a6f09c690e84a2446f7d4728fbc7d6da8164301ba5ba07e
|
|
BLAKE2b-256 checksum How to use checksums |
b8d093540cc3aa6f9d1a9c116edaeef7440d59eb28c0ac5f118b127c9fa63504
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for serious-serializers 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.