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.2.0.tar.gz
(32.5 kB
view details)
Built Distribution
d42-2.2.0-py3-none-any.whl
(49.7 kB
view details)
File details
Details for the file d42-2.2.0.tar.gz
.
File metadata
- Download URL: d42-2.2.0.tar.gz
- Upload date:
- Size: 32.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ea48c229c6bb668a9a68b0c4653e62ee86296ee7a8b3d6fced4386c96fefd7ca
|
|
MD5 |
1a54c7fcc9a08d57ad0bd53105bad47f
|
|
BLAKE2b-256 |
fb3f9eca3428602566d2155b0c9f013193ccec4453c3b5dfc8702e5421ff56a6
|
File details
Details for the file d42-2.2.0-py3-none-any.whl
.
File metadata
- Download URL: d42-2.2.0-py3-none-any.whl
- Upload date:
- Size: 49.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
36bd4d85952c265a126b007ab24d531c9dc0955b9602f659325f8d78b9d00c75
|
|
MD5 |
62fa710feaa030cd9e3d9d40ef71343f
|
|
BLAKE2b-256 |
423fb203d1a3404b178719515b1bc1af0b45d065dd3cba16b41b3cccd746ca49
|