Skip to main content

Fastest Python implementation of JSON schema

Project description

===========================
Fast JSON schema for Python
===========================

|PyPI| |Pythons|

.. |PyPI| image:: https://img.shields.io/pypi/v/fastjsonschema.svg
:alt: PyPI version
:target: https://pypi.python.org/pypi/fastjsonschema

.. |Pythons| image:: https://img.shields.io/pypi/pyversions/fastjsonschema.svg
:alt: Supported Python versions
:target: https://pypi.python.org/pypi/fastjsonschema

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 <https://horejsek.github.io/python-fastjsonschema/>`_ for
performance test details.

This library follows and implements `JSON schema draft-04, draft-06 and draft-07
<http://json-schema.org>`_. 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
-------

.. code-block:: bash

pip install fastjsonschema

Support only for Python 3.3 and higher.

Documentation
-------------

Documentation: `https://horejsek.github.io/python-fastjsonschema<https://horejsek.github.io/python-fastjsonschema>`_

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

fastjsonschema-2.0.tar.gz (14.8 kB view details)

Uploaded Source

File details

Details for the file fastjsonschema-2.0.tar.gz.

File metadata

  • Download URL: fastjsonschema-2.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.5

File hashes

Hashes for fastjsonschema-2.0.tar.gz
Algorithm Hash digest
SHA256 4ed93ff664c5e6036e9687a12483570108abc845aec0f83bd97eba93cbeb23d4
MD5 c375caac7865b60d504b9717cc71a833
BLAKE2b-256 7d5245293114ddacd43713ac752292d2fa03b331e288572dea6ab6d3e66d2299

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page