Skip to main content

One package for district42 ecosystem

Project description

d42

PyPI PyPI - Downloads Python Version

d42 package offers several tools to define, generate, validate, and substitute data based on models defined using the district42 data description language.

Installation

$ pip3 install d42

Components

The d42 package comprises the following components:

  • district42 — a data description language for defining data models
  • blahblah — a fake data generator tailored for the district42 schema
  • valera — a validator designed for the district42 schema
  • revolt — a value substitutor compatible with the district42 schema

Usage

from d42 import schema, fake, validate_or_fail

# Define a schema with a string "banana"
sch = schema.str("banana")

# Generate a fake value based on the schema and validate it
assert validate_or_fail(sch, fake(sch))

For a more comprehensive guide and detailed information, check out the official 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-1.7.0.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

d42-1.7.0-py3-none-any.whl (8.7 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