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.21.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

nr.databind.core-0.0.21-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.21.tar.gz.

File metadata

  • Download URL: nr.databind.core-0.0.21.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3

File hashes

Hashes for nr.databind.core-0.0.21.tar.gz
Algorithm Hash digest
SHA256 5f61f63294dea0fca8b71be6aec6df4b960bac25a7a74fbec666fadfd2b79968
MD5 89ca2e4a19cb1c72af86a4f2d0ef3bde
BLAKE2b-256 29991ee09f28a6aa2a825cfc143960743fbda6b9633f15eef68cf05c983226ca

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: nr.databind.core-0.0.21-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.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3

File hashes

Hashes for nr.databind.core-0.0.21-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fcee082fbf24be6db90e4c5a852a8c4d305f3ab226e09d9938dbee777d8e803c
MD5 3810313c6bec2dac4e52539a17601327
BLAKE2b-256 8bc15a7733bb4ceb6ae554aa5f3154389eea6b2a73af2884a3d179ff35760455

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