Skip to main content

Toolkit for defining, generating, validating, and substituting data models with a data description language

Project description

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.

Project details


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.2.tar.gz (30.4 kB view hashes)

Uploaded Source

Built Distribution

d42-2.0.2-py3-none-any.whl (47.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page