Skip to main content

Helpers to parse dicts, e.g., from JSON parsing, to dataclasses.

Project description

dict2dc - dictionary to dataclass parsing

dict2dc is a small Python library that helps to parse Python dicts to dataclass structures. E.g., these dicts could originate from JSON deserialization.

The library supports nested dataclasses, collections and union types. It always tries to initiate the best matching class.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dict2dc-0.0.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dict2dc-0.0.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file dict2dc-0.0.1.tar.gz.

File metadata

  • Download URL: dict2dc-0.0.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dict2dc-0.0.1.tar.gz
Algorithm Hash digest
SHA256 10310754fede3ef7842a459745b29c5947ab4a0f855eceeb72e74663331917eb
MD5 94eee26e02e6753abb05d9a8aff3699d
BLAKE2b-256 0c793cd40ba5ec7007a6473a2ff5b5e94e452a3504827d88a48a3fb472a58537

See more details on using hashes here.

File details

Details for the file dict2dc-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: dict2dc-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dict2dc-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c2ec9249eadad74e57adc937e323b65589171960082ae7aba4b91d9c42404cc1
MD5 5e284f8b32a2cbb75a022c884a355d57
BLAKE2b-256 35f0e0deefbd6eea6efd8e050c7e1c105d398d68ddf40fa0d7b7bcbb10284371

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page