1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-jsonschema
7 SDESC[py38]= Alternate implementation of JSON Schema (PY38)
8 SDESC[py39]= Alternate implementation of JSON Schema (PY39)
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= PY38 PY39
20 OPTIONS_STANDARD= none
21 VOPTS[py38]= PY38=ON PY39=OFF
22 VOPTS[py39]= PY38=OFF PY39=ON
24 DISTNAME= jsonschema-4.2.1.dist-info
28 [PY38].RUN_DEPENDS_ON= python-attrs:single:py38
29 python-pyrsistent:single:py38
30 python-importlib-resources:single:py38
31 [PY38].USES_ON= python:py38,wheel
33 [PY39].RUN_DEPENDS_ON= python-attrs:single:py39
34 python-pyrsistent:single:py39
35 [PY39].USES_ON= python:py39,wheel
37 [FILE:2606:descriptions/desc.single]
42 |PyPI| |Pythons| |CI| |ReadTheDocs| |Precommit| |Zenodo|
44 jsonschema is an implementation of the [JSON Schema
45 ] specification for Python.
47 .. code-block:: python
49 >>> from jsonschema import validate
51 >>> # A sample schema, like what we'd get from json.load()
53 ... "type" : "object",
55 ... "price" : {"type" : "number"},
56 ... "name" : {"type" : "string"},
60 >>> # If no exception is raised by validate(), the instance is valid.
61 >>> validate(instance={"name" : "Eggs", "price" : 34.99},
65 ... instance={"name" : "Eggs", "price" : "Invalid"}, schema=schema,
67 +IGNORE_EXCEPTION_DETAIL
68 Traceback (most recent call last):
70 ValidationError: 'Invalid' is not of type 'number'
72 It can also be used from console:
76 $ jsonschema --instance sample.json sample.schema
83 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.Draft202012Validator>`_
86 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.Draft201909Validator>`_,
87 except for dynamicRef / recursiveRef and ``$vocabulary`` (in-progress).
96 that can iteratively report *all* validation errors.
98 * [Programmatic querying]
99 of which properties or items failed validation.
104 jsonschema is available on [PyPI]. You can install using [pip]:
108 $ pip install jsonschema
110 Running the Test Suite
111 ----------------------
113 If you have tox installed (perhaps via pip install tox or your
114 package manager), running tox in the directory of your source
115 checkout will run jsonschema's test suite on all of the versions
116 of Python jsonschema supports. If you don't have all of the
117 versions that jsonschema is tested under, you'll likely want to run
118 using tox's ``--skip-missing-interpreters`` option.
120 Of course you're also free to just run the tests on a single version with
122 favorite test runner. The tests live in the ``jsonschema.tests`` package.
127 jsonschema's benchmarks make use of [pyperf
128 ]. Running them can be done via::
135 The JSON Schema specification has [a Slack
136 ], with an [invite link on its home page
137 ]. Many folks knowledgeable on authoring
141 2a0f162822a64d95287990481b45d82f096e99721c86534f48201b64ebca6e8c 69377 jsonschema-4.2.1-py3-none-any.whl