Ravenports generated: 15 Feb 2023 23:13
[ravenports.git] / bucket_F4 / python-jsonschema
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               python-jsonschema
4 VERSION=                4.17.3
5 KEYWORDS=               python
6 VARIANTS=               py310 v11
7 SDESC[py310]=           Alternate implementation of JSON Schema (3.10)
8 SDESC[v11]=             Alternate implementation of JSON Schema (3.11)
9 HOMEPAGE=               none
10 CONTACT=                Python_Automaton[python@ironwolf.systems]
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            PYPIWHL/c1/97/c698bd9350f307daad79dd740806e1a59becd693bd11443a0f531e3229b3
14 DISTFILE[1]=            jsonschema-4.17.3-py3-none-any.whl:main
15 DF_INDEX=               1
16 SPKGS[py310]=           single
17 SPKGS[v11]=             single
18
19 OPTIONS_AVAILABLE=      PY310 PY311
20 OPTIONS_STANDARD=       none
21 VOPTS[py310]=           PY310=ON PY311=OFF
22 VOPTS[v11]=             PY310=OFF PY311=ON
23
24 DISTNAME=               jsonschema-4.17.3.dist-info
25
26 GENERATED=              yes
27
28 [PY310].RUN_DEPENDS_ON=                 python-attrs:single:py310
29                                         python-pyrsistent:single:py310
30 [PY310].USES_ON=                        python:py310,wheel
31
32 [PY311].RUN_DEPENDS_ON=                 python-attrs:single:v11
33                                         python-pyrsistent:single:v11
34 [PY311].USES_ON=                        python:v11,wheel
35
36 [FILE:2431:descriptions/desc.single]
37 ==========
38 jsonschema
39 ==========
40
41 |PyPI| |Pythons| |CI| |ReadTheDocs| |Precommit| |Zenodo|
42
43 jsonschema is an implementation of the [JSON Schema
44 ] specification for Python.
45
46 .. code-block:: python
47
48     >>> from jsonschema import validate
49
50     >>> # A sample schema, like what we'd get from json.load()
51     >>> schema = {
52     ...     "type" : "object",
53     ...     "properties" : {
54     ...         "price" : {"type" : "number"},
55     ...         "name" : {"type" : "string"},
56     ...     },
57     ... }
58
59     >>> # If no exception is raised by validate(), the instance is valid.
60     >>> validate(instance={"name" : "Eggs", "price" : 34.99},
61 schema=schema)
62
63     >>> validate(
64     ...     instance={"name" : "Eggs", "price" : "Invalid"}, schema=schema,
65     ... )                                   # doctest:
66 +IGNORE_EXCEPTION_DETAIL
67     Traceback (most recent call last):
68         ...
69     ValidationError: 'Invalid' is not of type 'number'
70
71 It can also be used from console:
72
73 .. code-block:: bash
74
75     $ jsonschema --instance sample.json sample.schema
76
77 Features
78 --------
79
80 * Partial support for
81   `Draft 2020-12
82 <https://python-jsonschema.readthedocs.io/en/latest/api/jsonschema/validators/#jsonschema.validators.Draft202012Validator>`_
83 and
84   `Draft 2019-09
85 <https://python-jsonschema.readthedocs.io/en/latest/api/jsonschema/validators/#jsonschema.validators.Draft201909Validator>`_,
86   except for dynamicRef / recursiveRef and ``$vocabulary`` (in-progress).
87   Full support for
88   [Draft 7],
89   [Draft 6],
90   [Draft 4]
91   and
92   [Draft 3]
93
94 * [Lazy validation]
95   that can iteratively report *all* validation errors.
96
97 * [Programmatic querying]
98   of which properties or items failed validation.
99
100 Installation
101 ------------
102
103 jsonschema is available on [PyPI]. You can install using [pip]:
104
105 .. code-block:: bash
106
107     $ pip install jsonschema
108
109 Extras
110 ======
111
112 Two extras are available when installing the package, both currently
113 related to format validation:
114
115     * format
116     * ``format-nongpl``
117
118 They can be used when installing in order to include additional
119 dependencies, e.g.:
120
121 .. code-block:: bash
122
123     $ pip install jsonschema'[format]'
124
125 Be aware that the mere presence of these dependencies – or even the
126 specification of format checks in a schema – do *not* activate format
127 checks (as per the specification).
128 Please read the [format validation documentation] for further details.
129
130 About
131 -----
132
133 I'm Julian Berman.
134
135 jsonschema is on [GitHub].
136
137
138
139 [FILE:113:distinfo]
140 a870ad254da1a8ca84b6a2905cac29d265f805acc57af304784962a2aa6508f6        90379 jsonschema-4.17.3-py3-none-any.whl
141