Skip to main content

Build Status

serializable

Base class with serialization methods for user-defined Python objects

Usage

Classes which inherit from Serializable are given default implementations of to_json, from_json, __reduce__ (for pickling), and other serialization helpers.

Your derived class must:

  • provide a user-defined to_dict() method which returns a dictionary.

  • The keys of the dictionary returned by to_dict() must match the arguments to the __init__ of your class.

Limitations

  • Serializable objects must inherit from Serializable, be tuples or namedtuples, be serializble primitive types such as dict, list, int, float, or str.

  • The serialized representation of objects relies on reserved keywords (such as "__name__", and "__class__"), so dictionaries are expect to not contain any keys which begin with two underscores.

Release files for serializable 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for serializable 0.0.4
File Size Uploaded
serializable-0.0.4.tar.gz 6.7 kB Details

Release files / serializable-0.0.4.tar.gz

Download URL serializable-0.0.4.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
92a7ae43184ce538847519acf9bbcdc0e2a7d35c8adfba4f83c24156b06dc467
BLAKE2b-256 checksum
How to use checksums
0ada69e2ab26491595feca421aa8eff6ef099445cab0767d4c9edfd8a07a3971
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.1.0

2 release files

1.0.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

1 release file

0.2.0

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

This release

0.0.4 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

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