Skip to main content

Json raw data to object

Project description



class Data:
    test_str: str
    test_int: int

obj = jsontofu.decode({'test_str': 'test', 'test_int': 123}, Data)

# Now you can call test_str like this


pip install git+git://


pipenv install 'git+ssh://'


pipenv install
pipenv install -d
pipenv run "pytest -s"


pipenv run 'pytest tests --cov=jsontofu'

Project details

Download files

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

Files for jsontofu, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size jsontofu-0.0.3.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page