Skip to main content

Data description language for defining data models

Project description

district42

Codecov PyPI PyPI - Downloads Python Version

Data description language for defining data models

(!) Work in progress, breaking changes are possible until v2.0 is released

Installation

pip3 install district42

Usage

from district42 import schema

UserSchema = schema.dict({
    "id": schema.int.min(1),
    "name": schema.str | schema.none,
    "is_deleted": schema.bool,
})

print(UserSchema)

More powerful with:

And more

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

district42-1.3.1.tar.gz (22.1 kB view hashes)

Uploaded Source

Built Distribution

district42-1.3.1-py3-none-any.whl (40.2 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