Skip to main content

dataclasses_fromdict

Usage

from dataclasses import dataclass, asdict
from dataclasses_fromdict import from_dict

@dataclass
class Point:
    x: int
    y: int

assert from_dict(asdict(Point(10, 20)), Point) == Point(10, 20)

Support

  • generic list
  • generic tuple
  • generic var tuple

Release files for dataclasses-fromdict 0.0.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 dataclasses-fromdict 0.0.1
File Size Uploaded
dataclasses_fromdict-0.0.1.tar.gz 1.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dataclasses-fromdict 0.0.1
File Interpreter ABI Platform
dataclasses_fromdict-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.8 kB

Release files / dataclasses_fromdict-0.0.1.tar.gz

Download URL dataclasses_fromdict-0.0.1.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8a2669ca3d0dbb7d5b855bca93503aa1de0e00baef899eb7fb71d8a68fc0ac67
BLAKE2b-256 checksum
How to use checksums
e38c4dc279c033c68e9f3002dc3bb9439d412c3b9f03f439a9a5e44325c84b3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

Release files / dataclasses_fromdict-0.0.1-py3-none-any.whl

Download URL dataclasses_fromdict-0.0.1-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc12efc10bf424ea36fbe7279a159e657140a2227dce1e2190bee69168f25b58
BLAKE2b-256 checksum
How to use checksums
0818e9f5b433346dbcf358ad93c428cff1dd56fa2d22b7e6f8b59e5c86ad031a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

Release history Release notifications | RSS feed

This release

0.0.1 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