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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for nr.databind.core-0.0.5.tar.gz
Algorithm Hash digest
SHA256 2d60bb0728b51af4d4b3c3dab08e83e3c95b7d2b46b2ed7c6f1b61886968ed99
MD5 7c4373bc5658ea47efdea76e4cc22994
BLAKE2b-256 05d0b5c2d2b147163664497bd2edbbfcd614f3fde8bb808f6c488ac714a8606f

See more details on using hashes here.

Supported by

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