Skip to main content

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

Project description

d42

Codecov 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.3.0.tar.gz (33.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

d42-2.3.0-py3-none-any.whl (50.2 kB view details)

Uploaded Python 3

File details

Details for the file d42-2.3.0.tar.gz.

File metadata

  • Download URL: d42-2.3.0.tar.gz
  • Upload date:
  • Size: 33.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for d42-2.3.0.tar.gz
Algorithm Hash digest
SHA256 5952036ffcfd23367db385b2af567d5f9cd6eedaaecf202fed52c21a198112b7
MD5 593e01c6f19502abb43660a7aeb1231a
BLAKE2b-256 9202efcc29a6abd06961b5101f9da3f518a77f37696f58541977cd59f0a10f5e

See more details on using hashes here.

File details

Details for the file d42-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: d42-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 50.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for d42-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31d4f0f56c974e6e334bdab202e49dcb66df6c9d385c7bddc1a5ada68a153a3e
MD5 bc0e7c3adbedadfa562f225c52b0233a
BLAKE2b-256 ab9a01288cf19c3a7e8fdf8e2aa95e79a75ff8be8c41e42c115c03d6de15f94d

See more details on using hashes here.

Supported by

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