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
Release history Release notifications | RSS feed
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.16.tar.gz
(22.0 kB
view details)
Built Distribution
File details
Details for the file nr.databind.core-0.0.16.tar.gz
.
File metadata
- Download URL: nr.databind.core-0.0.16.tar.gz
- Upload date:
- Size: 22.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 264bba1d882b9372debd930ed85547c4f2622b3169ef241ea4aba6910de850c8 |
|
MD5 | 5619f347593c1c5ba44fcfc05314b10e |
|
BLAKE2b-256 | fe4018bc1370eddf18f2d17dd530133e4ce0850168b2c691fbec65223c555197 |
Provenance
File details
Details for the file nr.databind.core-0.0.16-py2.py3-none-any.whl
.
File metadata
- Download URL: nr.databind.core-0.0.16-py2.py3-none-any.whl
- Upload date:
- Size: 29.4 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/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a18622614b8bf6e01a62107b14fded643166f1ee78c67ab02a8e4f6653cd1b7a |
|
MD5 | 994210d72020d58e28fb68132e173169 |
|
BLAKE2b-256 | 8c57dd99e1ea4bc9afed53ea996dec120cbcd2bac8d7e8362f46b72604337f90 |