Skip to main content

Dataclass Jsonable Dict parsing

Dataclass in Python is a excelent way to implement Data Transfer Objects, but lacks of a good integrated encoding system to transfer between applications.

One of the most used encoding is json. The standard library json only need a jsonable dictionary to dump to bytes or be loaded from them.

This library contains two easy functions to load/convert to dataclases from jsonable dictionaries:

  1. to_jdict(value: DataclassInstance, ommit_defaults: bool = True, enum_as_string: bool = True) -> JsonableDict:
    1. ommit_defaults sets if values with default will be generated as fields in the dict
    2. enum_as_string: sets the enum fields as its name instead its value.
  2. from_jdict(value: dict , cls: DataclassType, validate_types: bool = True )-> DataclassInstance
    1. validate: checks that the json fields has correct or compatible type for constructing the dataclass.

Metadata

Release files for dcjdict 0.2.1

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

Source distribution (sdist)

Source distribution for dcjdict 0.2.1
File Size Uploaded Provenance Actions
dcjdict-0.2.1.tar.gz 41.9 kB Without provenance Details for dcjdict-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dcjdict 0.2.1
File Interpreter ABI Platform Actions
dcjdict-0.2.1-py3-none-any.whl Python 3 none any Details for dcjdict-0.2.1-py3-none-any.whl

Total release size: 46.5 kB

Release files / dcjdict-0.2.1.tar.gz

Download URL dcjdict-0.2.1.tar.gz
Size 41.9 kB
Tags Source
SHA-256 checksum
How to use checksums
daf9ba53791afdd1a1a3e29b79c76cd2f817992f96927f139e286e03bf9bcf93
BLAKE2b-256 checksum
How to use checksums
b94c31e641e30b21dd958eb72cfe798343b214f672b75d118f179db3d3bd5368
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / dcjdict-0.2.1-py3-none-any.whl

Download URL dcjdict-0.2.1-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60ad0a51562946a5d1ed82c9fdac6a23e8f268576dabebcbbec4ed6d1f106477
BLAKE2b-256 checksum
How to use checksums
878b33e9ff63b6b5cd3050ad93868d0c9f3000e7f79945630df919c5aaacd0f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for dcjdict 0.2.1

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.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

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