1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-jsonschema
7 SDESC[py310]= Alternate implementation of JSON Schema (3.10)
8 SDESC[py39]= Alternate implementation of JSON Schema (3.9)
9 HOMEPAGE= https://github.com/Julian/jsonschema
10 CONTACT= Python_Automaton[python@ironwolf.systems]
13 SITES[main]= PYPIWHL/3e/e9/e8eaf86cf7119e18d555413532b507b254454e0275645cbae11babaa2d20
14 DISTFILE[1]= jsonschema-4.2.1-py3-none-any.whl:main
19 OPTIONS_AVAILABLE= PY39 PY310
20 OPTIONS_STANDARD= none
21 VOPTS[py310]= PY39=OFF PY310=ON
22 VOPTS[py39]= PY39=ON PY310=OFF
24 DISTNAME= jsonschema-4.2.1.dist-info
28 [PY39].RUN_DEPENDS_ON= python-attrs:single:py39
29 python-pyrsistent:single:py39
30 [PY39].USES_ON= python:py39,wheel
32 [PY310].RUN_DEPENDS_ON= python-attrs:single:py310
33 python-pyrsistent:single:py310
34 [PY310].USES_ON= python:py310,wheel
36 [FILE:2606:descriptions/desc.single]
41 |PyPI| |Pythons| |CI| |ReadTheDocs| |Precommit| |Zenodo|
43 jsonschema is an implementation of the [JSON Schema
44 ] specification for Python.
46 .. code-block:: python
48 >>> from jsonschema import validate
50 >>> # A sample schema, like what we'd get from json.load()
52 ... "type" : "object",
54 ... "price" : {"type" : "number"},
55 ... "name" : {"type" : "string"},
59 >>> # If no exception is raised by validate(), the instance is valid.
60 >>> validate(instance={"name" : "Eggs", "price" : 34.99},
64 ... instance={"name" : "Eggs", "price" : "Invalid"}, schema=schema,
66 +IGNORE_EXCEPTION_DETAIL
67 Traceback (most recent call last):
69 ValidationError: 'Invalid' is not of type 'number'
71 It can also be used from console:
75 $ jsonschema --instance sample.json sample.schema
82 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.Draft202012Validator>`_
85 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.Draft201909Validator>`_,
86 except for dynamicRef / recursiveRef and ``$vocabulary`` (in-progress).
95 that can iteratively report *all* validation errors.
97 * [Programmatic querying]
98 of which properties or items failed validation.
103 jsonschema is available on [PyPI]. You can install using [pip]:
107 $ pip install jsonschema
109 Running the Test Suite
110 ----------------------
112 If you have tox installed (perhaps via pip install tox or your
113 package manager), running tox in the directory of your source
114 checkout will run jsonschema's test suite on all of the versions
115 of Python jsonschema supports. If you don't have all of the
116 versions that jsonschema is tested under, you'll likely want to run
117 using tox's ``--skip-missing-interpreters`` option.
119 Of course you're also free to just run the tests on a single version with
121 favorite test runner. The tests live in the ``jsonschema.tests`` package.
126 jsonschema's benchmarks make use of [pyperf
127 ]. Running them can be done via::
134 The JSON Schema specification has [a Slack
135 ], with an [invite link on its home page
136 ]. Many folks knowledgeable on authoring
140 2a0f162822a64d95287990481b45d82f096e99721c86534f48201b64ebca6e8c 69377 jsonschema-4.2.1-py3-none-any.whl