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

JSON schema definition and validation library

Project Description

json_schema is a JSON-based schema validation package.

JSON-based means that its feature-set is adjusted to JSON, but it doesn’t require JSON data: any Python objects are fine, as long as they’re of the primary Python types.

Let’s start off with an example:

from json_schema import Schema, AnyInteger

my_schema = Schema([u"set-temp", {u"degrees": AnyInteger}])

if my_schema.validate([u"set-temp", {u"degrees": 10}]):
    print "Valid!"

It’s a very declarative way of saying how your schema looks. With the architechture that json_schema is built on, you can customize pretty much anything.

Release History

Release History

This version
History Node

0.3

History Node

0.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
json_schema-0.3.tar.gz (5.4 kB) Copy SHA256 Checksum SHA256 Source Aug 5, 2008

Supported By

WebFaction WebFaction Technical Writing 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 Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting