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.20.post1.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

nr.databind.core-0.0.20.post1-py2.py3-none-any.whl (31.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file nr.databind.core-0.0.20.post1.tar.gz.

File metadata

  • Download URL: nr.databind.core-0.0.20.post1.tar.gz
  • Upload date:
  • Size: 23.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/47.3.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for nr.databind.core-0.0.20.post1.tar.gz
Algorithm Hash digest
SHA256 47323a0a0b6d547708e3c2bd472debdf44f5f9b0d52fd77066c9f30cd626c3d7
MD5 ab8931c9f0273701badf81c3cd84dfff
BLAKE2b-256 6454ec66f011ebec427c8877c2aa21be6bdefefda97f5c96a771bb145b9f5883

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: nr.databind.core-0.0.20.post1-py2.py3-none-any.whl
  • Upload date:
  • Size: 31.0 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.3.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for nr.databind.core-0.0.20.post1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0c477d3336575d56ee179ce7eb05773c62fae51511d93b145afac569e5048644
MD5 96f227903058964134d488d379a32773
BLAKE2b-256 8e2b86cda2c03ceaf0e23ed9844baa8be6fc1c55e48e04cb6f5322cf9a5e98cb

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