Skip to main content

Value substitutor for district42 schema

Project description


Codecov PyPI PyPI - Downloads Python Version

Value substitutor for district42 schema

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


pip3 install revolt


from district42 import schema
from revolt import substitute

UserSchema = schema.dict({
    "name": schema.str | schema.none,
    "id_deleted": schema.bool,

substituted = substitute(UserSchema, {"id": 1, "name": "Bob"})

# syntax sugar
substituted = UserSchema % {"id": 1, "name": "Bob"}

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

revolt-1.3.1.tar.gz (11.5 kB view hashes)

Uploaded Source

Built Distribution

revolt-1.3.1-py3-none-any.whl (17.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