Skip to main content

howard

Python datatype marshalling

This libary marshalls dictionaries (think json) into instances of defined dataclasses and back.

i.e.

from dataclasses import dataclass

import howard

@dataclass
class Person:
    name: str
    age: int


my_dict = {'name': 'Bob', 'age': 24}
person = howard.from_dict(my_dict, Person)
assert person.name == 'Bob'
assert person.age == 24

to install:

pip install howard

Download files

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

Source Distribution

howard-1.4.1.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file howard-1.4.1.tar.gz.

File metadata

  • Download URL: howard-1.4.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for howard-1.4.1.tar.gz
Algorithm Hash digest
SHA256 da4ed77e402fe8fc837840012890948eea6e16e28533cdf98a2efbed530b8481
MD5 41d51f2e936e2728fcb1653f84e5eb55
BLAKE2b-256 f5ea752cbdfd80c934ba6cf6bae8fa41d708937f60ce9e0262ad2ed970ad757c

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 Sentry Error logging StatusPage Status page