Skip to main content

Bind structured data directly to typed objects.

Project description

nr.databind.core

The nr.databind.core package provides a framework for binding structured data to typed objects as well as the (de-) serialization of that data from/to other formats.

See also: nr.databind.json.

Example

from nr.databind.core import Field, Struct

class Person(Struct):
    name = Field(str, prominent=True)
    age = Field(int)
    address = Field(int, default=None)

print(Person('John Wick', 48, 'Wicked St.'))  # Person(name='John Wick')

Project details


Download files

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

Source Distribution

nr.databind.core-0.0.17.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

nr.databind.core-0.0.17-py2.py3-none-any.whl (30.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file nr.databind.core-0.0.17.tar.gz.

File metadata

  • Download URL: nr.databind.core-0.0.17.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for nr.databind.core-0.0.17.tar.gz
Algorithm Hash digest
SHA256 73cad323e0d6b208991e88b7f827f1b542e207890acfd0b60b5c02c0f75b8e0d
MD5 77a5c4da54cd927a91aa11513c616fce
BLAKE2b-256 e7f453525f9355b6c17fc963f3329f0cd8a6c68e96f549b2fcfb79b7ce2b3ecf

See more details on using hashes here.

Provenance

File details

Details for the file nr.databind.core-0.0.17-py2.py3-none-any.whl.

File metadata

  • Download URL: nr.databind.core-0.0.17-py2.py3-none-any.whl
  • Upload date:
  • Size: 30.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for nr.databind.core-0.0.17-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 44ba7a99de981060f9755da64454ef1b7822c3fcefa85dbb380e752da9f9474b
MD5 a6d049136212e6fc4f576e954bb91db4
BLAKE2b-256 70c55c3c2bca6130f9745d1d0f58e0b5bbdc8d9e8bcc6c858b4ec38b7281a876

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page