Ravenports generated: 26 Nov 2019 23:39
[ravenports.git] / bucket_F4 / python-jsonschema
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               python-jsonschema
4 VERSION=                3.2.0
5 KEYWORDS=               python
6 VARIANTS=               py27 py38 py37
7 SDESC[py37]=            Alternate implementation of JSON Schema (PY 37)
8 SDESC[py38]=            Alternate implementation of JSON Schema (PY 38)
9 SDESC[py27]=            Alternate implementation of JSON Schema (PY 27)
10 HOMEPAGE=               https://github.com/Julian/jsonschema
11 CONTACT=                Python_Automaton[python@ironwolf.systems]
12
13 DOWNLOAD_GROUPS=        main
14 SITES[main]=            PYPI/j/jsonschema
15 DISTFILE[1]=            jsonschema-3.2.0.tar.gz:main
16 DF_INDEX=               1
17 SPKGS[py37]=            single
18 SPKGS[py38]=            single
19 SPKGS[py27]=            single
20
21 OPTIONS_AVAILABLE=      PY27 PY38 PY37
22 OPTIONS_STANDARD=       none
23 VOPTS[py37]=            PY27=OFF PY38=OFF PY37=ON
24 VOPTS[py38]=            PY27=OFF PY38=ON PY37=OFF
25 VOPTS[py27]=            PY27=ON PY38=OFF PY37=OFF
26
27 BUILDRUN_DEPENDS=       python-setuptools_scm:single:python_used
28
29 DISTNAME=               jsonschema-3.2.0
30
31 GENERATED=              yes
32
33 [PY37].USES_ON=                         python:py37
34
35 [PY38].USES_ON=                         python:py38
36
37 [PY27].USES_ON=                         python:py27
38
39 [FILE:3390:descriptions/desc.single]
40 ==========
41 jsonschema
42 ==========
43
44 |PyPI| |Pythons| |Travis| |AppVeyor| |Codecov| |ReadTheDocs|
45
46 .. |PyPI| image:: https://img.shields.io/pypi/v/jsonschema.svg
47    :alt: PyPI version
48    :target: https://pypi.org/project/jsonschema/
49
50 .. |Pythons| image:: https://img.shields.io/pypi/pyversions/jsonschema.svg
51    :alt: Supported Python versions
52    :target: https://pypi.org/project/jsonschema/
53
54 .. |Travis| image::
55 https://travis-ci.com/Julian/jsonschema.svg?branch=master
56    :alt: Travis build status
57    :target: https://travis-ci.com/Julian/jsonschema
58
59 .. |AppVeyor| image::
60 https://ci.appveyor.com/api/projects/status/adtt0aiaihy6muyn/branch/master?
61 svg=true
62    :alt: AppVeyor build status
63    :target: https://ci.appveyor.com/project/Julian/jsonschema
64
65 .. |Codecov| image::
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
69
70 .. |ReadTheDocs| image::
71 https://readthedocs.org/projects/python-jsonschema/badge/?version=stable&st
72 yle=flat
73    :alt: ReadTheDocs status
74    :target: https://python-jsonschema.readthedocs.io/en/stable/
75
76
77 ``jsonschema`` is an implementation of `JSON Schema
78 <https://json-schema.org>`_
79 for Python (supporting 2.7+ including Python 3).
80
81 .. code-block:: python
82
83     >>> from jsonschema import validate
84
85     >>> # A sample schema, like what we'd get from json.load()
86     >>> schema = {
87     ...     "type" : "object",
88     ...     "properties" : {
89     ...         "price" : {"type" : "number"},
90     ...         "name" : {"type" : "string"},
91     ...     },
92     ... }
93
94     >>> # If no exception is raised by validate(), the instance is valid.
95     >>> validate(instance={"name" : "Eggs", "price" : 34.99},
96 schema=schema)
97
98     >>> validate(
99     ...     instance={"name" : "Eggs", "price" : "Invalid"}, schema=schema,
100     ... )                                   # doctest:
101 +IGNORE_EXCEPTION_DETAIL
102     Traceback (most recent call last):
103         ...
104     ValidationError: 'Invalid' is not of type 'number'
105
106 It can also be used from console:
107
108 .. code-block:: bash
109
110     $ jsonschema -i sample.json sample.schema
111
112 Features
113 --------
114
115 * Full support for
116   `Draft 7
117 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.Dr
118 aft7Validator>`_,
119   `Draft 6
120 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.Dr
121 aft6Validator>`_,
122   `Draft 4
123 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.Dr
124 aft4Validator>`_
125   and
126   `Draft 3
127 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.Dr
128 aft3Validator>`_
129
130 * `Lazy validation
131 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.IV
132 alidator.iter_errors>`_
133   that can iteratively report *all* validation errors.
134
135 * `Programmatic querying
136 <https://python-jsonschema.readthedocs.io/en/latest/errors/>`_
137   of which properties or items failed validation.
138
139
140 Installation
141 ------------
142
143 ``jsonschema`` is available on `PyPI
144 <https://pypi.org/project/jsonschema/>`_. You can install using `pip
145 <https://pip.pypa.io/en/stable/>`_:
146
147 .. code-block:: bash
148
149     $ pip install jsonschema
150
151
152 Demo
153 ----
154
155 Try ``jsonschema`` interactively in this online demo:
156
157 .. image::
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
161     :alt: Open Live Demo
162
163
164
165
166 [FILE:102:distinfo]
167 c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a       167226 jsonschema-3.2.0.tar.gz
168