Skip to main content

Serious Serializers

tests

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]

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)

Source distribution for serious-serializers 0.1.0
File Size Uploaded
serious_serializers-0.1.0.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for serious-serializers 0.1.0
File Interpreter ABI Platform
serious_serializers-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page