Ravenports generated: 21 May 2018 21:56
[ravenports.git] / bucket_F4 / python-jsonschema
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               python-jsonschema
4 VERSION=                2.6.0
5 KEYWORDS=               python
6 VARIANTS=               py27 py35 py36
7 SDESC[py35]=            Alternate implementation of JSON Schema (PY 35)
8 SDESC[py36]=            Alternate implementation of JSON Schema (PY 36)
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-2.6.0.tar.gz:main
16 DF_INDEX=               1
17 SPKGS[py35]=            single
18 SPKGS[py36]=            single
19 SPKGS[py27]=            single
20
21 OPTIONS_AVAILABLE=      PY27 PY35 PY36
22 OPTIONS_STANDARD=       none
23 VOPTS[py35]=            PY27=OFF PY35=ON PY36=OFF
24 VOPTS[py36]=            PY27=OFF PY35=OFF PY36=ON
25 VOPTS[py27]=            PY27=ON PY35=OFF PY36=OFF
26
27 DISTNAME=               jsonschema-2.6.0
28
29 GENERATED=              yes
30
31 [PY35].BUILDRUN_DEPENDS_ON=             python-vcversioner:single:py35
32 [PY35].USES_ON=                         python:py35
33
34 [PY36].BUILDRUN_DEPENDS_ON=             python-vcversioner:single:py36
35 [PY36].USES_ON=                         python:py36
36
37 [PY27].BUILDRUN_DEPENDS_ON=             python-vcversioner:single:py27
38 [PY27].USES_ON=                         python:py27
39
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
47
48 ==========
49 jsonschema
50 ==========
51
52 ``jsonschema`` is an implementation of `JSON Schema
53 <http://json-schema.org>`_
54 for Python (supporting 2.7+ including Python 3).
55
56 .. code-block:: python
57
58     >>> from jsonschema import validate
59
60     >>> # A sample schema, like what we'd get from json.load()
61     >>> schema = {
62     ...     "type" : "object",
63     ...     "properties" : {
64     ...         "price" : {"type" : "number"},
65     ...         "name" : {"type" : "string"},
66     ...     },
67     ... }
68
69     >>> # If no exception is raised by validate(), the instance is valid.
70     >>> validate({"name" : "Eggs", "price" : 34.99}, schema)
71
72     >>> validate(
73     ...     {"name" : "Eggs", "price" : "Invalid"}, schema
74     ... )                                   # doctest:
75 +IGNORE_EXCEPTION_DETAIL
76     Traceback (most recent call last):
77         ...
78     ValidationError: 'Invalid' is not of type 'number'
79
80 It can also be used from console:
81
82 .. code-block:: bash
83
84     $ jsonschema -i sample.json sample.schema
85
86 Features
87 --------
88
89 * Full support for
90   `Draft 3
91 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.Dr
92 aft3Validator>`_
93   **and** `Draft 4
94 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.Dr
95 aft4Validator>`_
96   of the schema.
97
98 * `Lazy validation
99 <https://python-jsonschema.readthedocs.io/en/latest/validate/#jsonschema.IV
100 alidator.iter_errors>`_
101   that can iteratively report *all* validation errors.
102
103 * Small and extensible
104
105 * `Programmatic querying
106 <https://python-jsonschema.readthedocs.io/en/latest/errors/#module-jsonsche
107 ma>`_
108   of which properties or items failed validation.
109
110
111 Release Notes
112 -------------
113
114 Version 2.5.0 is mainly a performance release. The interface for
115 `RefResolver`
116 was extended to add methods that improve performance on CPython.
117
118 Support for custom `RefResolver` objects with the legacy interface should
119 *not*
120 be affected. If you notice something amiss please file an issue ticket.
121
122
123 Running the Test Suite
124 ----------------------
125
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
128 will
129 run ``jsonschema``'s test suite on all of the versions of Python
130 ``jsonschema``
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
133 fail)
134 the tests on that version.
135
136 Of course you're also free to just run the tests on a single version with
137 your
138 favorite test runner. The tests live in the ``jsonschema.tests`` package.
139
140
141 Community
142 ---------
143
144 There's a `mailing list
145 <https://groups.google.com/forum/#!forum/jsonschema>`_
146 for this implementation on Google Groups.
147
148 Please join, and feel free to send questions there.
149
150
151 Contributing
152 ------------
153
154 I'm Julian Berman.
155
156 ``jsonschema`` is on `GitHub <http://github.com/Julian/jsonschema>`_.
157
158
159
160 [FILE:102:distinfo]
161 6ff5f3180870836cae40f06fa10419f557208175f13ad7bc26caa77beb1f6e02        53252 jsonschema-2.6.0.tar.gz
162