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
Close
Hashes for dataclasses_fromdict-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a2669ca3d0dbb7d5b855bca93503aa1de0e00baef899eb7fb71d8a68fc0ac67 |
|
MD5 | 81a1a23002b4985cce222f2a6b903011 |
|
BLAKE2b-256 | e38c4dc279c033c68e9f3002dc3bb9439d412c3b9f03f439a9a5e44325c84b3d |
Close
Hashes for dataclasses_fromdict-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc12efc10bf424ea36fbe7279a159e657140a2227dce1e2190bee69168f25b58 |
|
MD5 | dec293ab43c8d6f188a31257d1581591 |
|
BLAKE2b-256 | 0818e9f5b433346dbcf358ad93c428cff1dd56fa2d22b7e6f8b59e5c86ad031a |