Data description language for defining data models
Project description
district42
Data description language for defining data models
(!) Work in progress, breaking changes are possible until v2.0 is released
Installation
pip3 install district42
Usage
from district42 import schema
UserSchema = schema.dict({
"id": schema.int.min(1),
"name": schema.str | schema.none,
"is_deleted": schema.bool,
})
print(UserSchema)
More powerful with:
And more
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
district42-1.3.1.tar.gz
(22.1 kB
view hashes)
Built Distribution
district42-1.3.1-py3-none-any.whl
(40.2 kB
view hashes)
Close
Hashes for district42-1.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 824d17bed94fe4dff9acf79595cbec7c215b5b0ddcc1a0682ef7e8759cca3bb1 |
|
MD5 | 41823e9d62a590620efe0198f9432621 |
|
BLAKE2b-256 | c28d4cc32f8d043d9e0a1fcb05806e32bc3c1f78f190d66601c246277a3b5fd7 |