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.20.tar.gz
(23.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nr.databind.core-0.0.20.tar.gz.
File metadata
- Download URL: nr.databind.core-0.0.20.tar.gz
- Upload date:
- Size: 23.5 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b268ef7dd38c8f985290dbe8d0ebbdef6b816a86e833d347969854a50a139dfa
|
|
| MD5 |
c9d7ce7d9890ea7e87e95ad565dac403
|
|
| BLAKE2b-256 |
4faac3a3c71c86bd01ba025fabce2014ea20d32d3a46df6a68be44648c4970b6
|
File details
Details for the file nr.databind.core-0.0.20-py2.py3-none-any.whl.
File metadata
- Download URL: nr.databind.core-0.0.20-py2.py3-none-any.whl
- Upload date:
- Size: 30.9 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d442148068b742b9d325656c84f55bf50f778d02a478e42761cf91d8548778c1
|
|
| MD5 |
6dbe4441eb5eae03092853bf3d566395
|
|
| BLAKE2b-256 |
1cf4b1823402ef54d0e69bdbe83f2c4566795d4c66b815bd95184841291f21dc
|