Toolkit for defining, generating, validating, and substituting data models with a data description language
Project description
d42
The d42
package is a comprehensive toolkit for data modeling, which includes functionalities for definition, generation, validation, and substitution of data models using a robust data description language.
Installation
$ pip3 install d42
Usage Example
from d42 import schema, fake, validate_or_fail
# Define a schema for a string containing "banana"
sch = schema.str("banana")
# Generate a fake value based on the schema and validate it
assert validate_or_fail(sch, fake(sch))
Documentation
For detailed documentation, visit the official d42 documentation.
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
d42-2.0.3.tar.gz
(31.3 kB
view details)
Built Distribution
d42-2.0.3-py3-none-any.whl
(48.4 kB
view details)
File details
Details for the file d42-2.0.3.tar.gz
.
File metadata
- Download URL: d42-2.0.3.tar.gz
- Upload date:
- Size: 31.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0781d6c894242f4a22446694592523df1af5f3e94804c6412dd640b436a23a9f |
|
MD5 | 06304ac8cdb4bc935079d939f5dbf18a |
|
BLAKE2b-256 | ddd13ff42b7a04f1e61076b801f615728fb761fc7637d8330a373ce22ad3e502 |
File details
Details for the file d42-2.0.3-py3-none-any.whl
.
File metadata
- Download URL: d42-2.0.3-py3-none-any.whl
- Upload date:
- Size: 48.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7842384e1c11824910ce1113eed55b7bc15bbb6eba5c26d2ad731d77b01c978e |
|
MD5 | 88017b6cc5b52cce3f201c62ac676d04 |
|
BLAKE2b-256 | ad148fa526831dce73c0a2330db0213006cc12d9128c12457690c6311dc56dc2 |