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.19.tar.gz
(23.5 kB
view details)
Built Distribution
File details
Details for the file nr.databind.core-0.0.19.tar.gz
.
File metadata
- Download URL: nr.databind.core-0.0.19.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 | b4277bf6c2eb7355daa23062d10bebcc91e90a60d289932e357ce151f874ca50 |
|
MD5 | 0cd9310028c16f420dc79d88e28a058a |
|
BLAKE2b-256 | 85c90d9325ae191f0d66eb1071c43566df651b5ec0df5c17f8c7cac4d532dcc1 |
Provenance
File details
Details for the file nr.databind.core-0.0.19-py2.py3-none-any.whl
.
File metadata
- Download URL: nr.databind.core-0.0.19-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 | c9c5d1fe1b42cce1105aa13bc3236611605c1ec3c5a1598bdada04deaa600da1 |
|
MD5 | 7eac8c70318d1fc2eb340e3c79a9548e |
|
BLAKE2b-256 | 863c40c135e15beb64d63be169a5c1b0c02605bee53289259a56c01c93f5ed1c |