Skip to content

bndo/python-fastjsonschema

 
 

Repository files navigation

Fast JSON schema for Python

PyPI version Supported Python versions

This project was made to come up with fast JSON validations. It is at least an order of magnitude faster than other Python implemantaions. See documentation for performance test details.

This library follows and implements JSON schema draft-04, draft-06 and draft-07. Note that there are some differences compared to JSON schema standard:

  • Regular expressions are full Python ones, not only what JSON schema allows. It's easier to allow everything and also it's faster to compile without limits. So keep in mind that when you will use more advanced regular expression, it may not work with other library or in other language.
  • JSON schema says you can use keyword default for providing default values. This implementation uses that and always returns transformed input data.

Install

pip install fastjsonschema

Support only for Python 3.3 and higher.

Documentation

Documentation: https://horejsek.github.io/python-fastjsonschema

Packages

No packages published

Languages

  • Python 98.1%
  • Makefile 1.9%