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

Uploaded Source

File details

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

File metadata

  • Download URL: nr.databind.core-0.0.1.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/42.0.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.6

File hashes

Hashes for nr.databind.core-0.0.1.tar.gz
Algorithm Hash digest
SHA256 25d3a5dfbe2a0c727d1f4626e6ca2bfa54f6ae7437626643f85c46e088d43a63
MD5 a8f549c3ae468fb42ae7999e3243a4be
BLAKE2b-256 f02c5e5cb35a4b0b5f09dc76495e5d7d7ec584db8392b6e33170480b5fcf8009

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