No project description provided
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dataclasses_fromdict-0.0.1.tar.gz
.
File metadata
- Download URL: dataclasses_fromdict-0.0.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a2669ca3d0dbb7d5b855bca93503aa1de0e00baef899eb7fb71d8a68fc0ac67 |
|
MD5 | 81a1a23002b4985cce222f2a6b903011 |
|
BLAKE2b-256 | e38c4dc279c033c68e9f3002dc3bb9439d412c3b9f03f439a9a5e44325c84b3d |
File details
Details for the file dataclasses_fromdict-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: dataclasses_fromdict-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc12efc10bf424ea36fbe7279a159e657140a2227dce1e2190bee69168f25b58 |
|
MD5 | dec293ab43c8d6f188a31257d1581591 |
|
BLAKE2b-256 | 0818e9f5b433346dbcf358ad93c428cff1dd56fa2d22b7e6f8b59e5c86ad031a |