1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-jsonschema
6 VARIANTS= py27 py36 py37
7 SDESC[py36]= Alternate implementation of JSON Schema (PY 36)
8 SDESC[py37]= Alternate implementation of JSON Schema (PY 37)
9 SDESC[py27]= Alternate implementation of JSON Schema (PY 27)
10 HOMEPAGE= https://github.com/Julian/jsonschema
11 CONTACT= Python_Automaton[python@ironwolf.systems]
14 SITES[main]= PYPI/j/jsonschema
15 DISTFILE[1]= jsonschema-3.2.0.tar.gz:main
21 OPTIONS_AVAILABLE= PY27 PY36 PY37
22 OPTIONS_STANDARD= none
23 VOPTS[py36]= PY27=OFF PY36=ON PY37=OFF
24 VOPTS[py37]= PY27=OFF PY36=OFF PY37=ON
25 VOPTS[py27]= PY27=ON PY36=OFF PY37=OFF
27 BUILDRUN_DEPENDS= python-setuptools_scm:single:python_used
29 DISTNAME= jsonschema-3.2.0
33 [PY36].USES_ON= python:py36
35 [PY37].USES_ON= python:py37
37 [PY27].USES_ON= python:py27
39 [FILE:3390:descriptions/desc.single]
44 |PyPI| |Pythons| |Travis| |AppVeyor| |Codecov| |ReadTheDocs|
46 .. |PyPI| image:: https://img.shields.io/pypi/v/jsonschema.svg
48 :target: https://pypi.org/project/jsonschema/
50 .. |Pythons| image:: https://img.shields.io/pypi/pyversions/jsonschema.svg
51 :alt: Supported Python versions
52 :target: https://pypi.org/project/jsonschema/
55 https://travis-ci.com/Julian/jsonschema.svg?branch=master
56 :alt: Travis build status
57 :target: https://travis-ci.com/Julian/jsonschema
60 https://ci.appveyor.com/api/projects/status/adtt0aiaihy6muyn/branch/master?
62 :alt: AppVeyor build status
63 :target: https://ci.appveyor.com/project/Julian/jsonschema
66 https://codecov.io/gh/Julian/jsonschema/branch/master/graph/badge.svg
67 :alt: Codecov Code coverage
68 :target: https://codecov.io/gh/Julian/jsonschema
70 .. |ReadTheDocs| image::
71 https://readthedocs.org/projects/python-jsonschema/badge/?version=stable&st
73 :alt: ReadTheDocs status
74 :target: https://python-jsonschema.readthedocs.io/en/stable/
77 ``jsonschema`` is an implementation of `JSON Schema
78 <https://json-schema.org>`_
79 for Python (supporting 2.7+ including Python 3).
81 .. code-block:: python
83 >>> from jsonschema import validate
85 >>> # A sample schema, like what we'd get from json.load()
87 ... "type" : "object",
89 ... "price" : {"type" : "number"},
90 ... "name" : {"type" : "string"},
94 >>> # If no exception is raised by validate(), the instance is valid.
95 >>> validate(instance={"name" : "Eggs", "price" : 34.99},
99 ... instance={"name" : "Eggs", "price" : "Invalid"}, schema=schema,
101 +IGNORE_EXCEPTION_DETAIL
102 Traceback (most recent call last):
104 ValidationError: 'Invalid' is not of type 'number'
106 It can also be used from console:
110 $ jsonschema -i sample.json sample.schema
117 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.Dr
120 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.Dr
123 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.Dr
127 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.Dr
131 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.IV
132 alidator.iter_errors>`_
133 that can iteratively report *all* validation errors.
135 * `Programmatic querying
136 <https://python-jsonschema.readthedocs.io/en/latest/errors/>`_
137 of which properties or items failed validation.
143 ``jsonschema`` is available on `PyPI
144 <https://pypi.org/project/jsonschema/>`_. You can install using `pip
145 <https://pip.pypa.io/en/stable/>`_:
149 $ pip install jsonschema
155 Try ``jsonschema`` interactively in this online demo:
158 https://user-images.githubusercontent.com/1155573/56745335-8b158a00-6750-11
159 e9-8776-83fa675939c4.png
160 :target: https://notebooks.ai/demo/gh/Julian/jsonschema
167 c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a 167226 jsonschema-3.2.0.tar.gz