One package for district42 ecosystem


Keywords
d42, district42
License
Apache-2.0
Install
pip install d42==1.7.1

Documentation

d42

PyPI PyPI - Downloads Python Version

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.