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-2.6.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 DISTNAME= jsonschema-2.6.0
31 [PY36].BUILDRUN_DEPENDS_ON= python-vcversioner:single:py36
32 [PY36].USES_ON= python:py36
34 [PY37].BUILDRUN_DEPENDS_ON= python-vcversioner:single:py37
35 [PY37].USES_ON= python:py37
37 [PY27].BUILDRUN_DEPENDS_ON= python-vcversioner:single:py27
38 [PY27].USES_ON= python:py27
40 [FILE:3221:descriptions/desc.single]
41 .. image:: https://img.shields.io/pypi/v/jsonschema.svg
42 :target: https://pypi.python.org/pypi/jsonschema
43 .. image:: https://travis-ci.org/Julian/jsonschema.svg?branch=master
44 :target: https://travis-ci.org/Julian/jsonschema
45 .. image:: https://img.shields.io/pypi/l/jsonschema.svg
46 :target: https://pypi.python.org/pypi/jsonschema
52 ``jsonschema`` is an implementation of `JSON Schema
53 <http://json-schema.org>`_
54 for Python (supporting 2.7+ including Python 3).
56 .. code-block:: python
58 >>> from jsonschema import validate
60 >>> # A sample schema, like what we'd get from json.load()
62 ... "type" : "object",
64 ... "price" : {"type" : "number"},
65 ... "name" : {"type" : "string"},
69 >>> # If no exception is raised by validate(), the instance is valid.
70 >>> validate({"name" : "Eggs", "price" : 34.99}, schema)
73 ... {"name" : "Eggs", "price" : "Invalid"}, schema
75 +IGNORE_EXCEPTION_DETAIL
76 Traceback (most recent call last):
78 ValidationError: 'Invalid' is not of type 'number'
80 It can also be used from console:
84 $ jsonschema -i sample.json sample.schema
91 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.Dr
94 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.Dr
99 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.IV
100 alidator.iter_errors>`_
101 that can iteratively report *all* validation errors.
103 * Small and extensible
105 * `Programmatic querying
106 <https://python-jsonschema.readthedocs.io/en/latest/errors/#module-jsonsche
108 of which properties or items failed validation.
114 Version 2.5.0 is mainly a performance release. The interface for
116 was extended to add methods that improve performance on CPython.
118 Support for custom `RefResolver` objects with the legacy interface should
120 be affected. If you notice something amiss please file an issue ticket.
123 Running the Test Suite
124 ----------------------
126 If you have ``tox`` installed (perhaps via ``pip install tox`` or your
127 package manager), running``tox`` in the directory of your source checkout
129 run ``jsonschema``'s test suite on all of the versions of Python
131 supports. Note that you'll need to have all of those versions installed in
132 order to run the tests on each of them, otherwise ``tox`` will skip (and
134 the tests on that version.
136 Of course you're also free to just run the tests on a single version with
138 favorite test runner. The tests live in the ``jsonschema.tests`` package.
144 There's a `mailing list
145 <https://groups.google.com/forum/#!forum/jsonschema>`_
146 for this implementation on Google Groups.
148 Please join, and feel free to send questions there.
156 ``jsonschema`` is on `GitHub <http://github.com/Julian/jsonschema>`_.
161 6ff5f3180870836cae40f06fa10419f557208175f13ad7bc26caa77beb1f6e02 53252 jsonschema-2.6.0.tar.gz