Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Simple data validation library

Project Description

Decent is a data validation library for Python 2 & 3. There are many like it, but this one is mine.

Read the documentation for more details.

Quick example

from decent import *

schema = Schema({
    'name': All(Strip(), NotEmpty()),
    'age': Range(min=0, max=200),

    output = schema(input)
except Invalid as e:


This library takes inspiration from Voluptuous and Good, but doesn’t implement many of their more magical features. You may be interested in them if you find yourself wanting more.


MIT, see the LICENSE file.

Release History

This version
History Node


Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting