json_schema is a JSON-based schema validation package.
JSON-based means that its feature-set is adjusted to JSON, but it doesn’t require JSON data: any Python objects are fine, as long as they’re of the primary Python types.
Let’s start off with an example:
from json_schema import Schema, AnyInteger
my_schema = Schema([u"set-temp", {u"degrees": AnyInteger}])
if my_schema.validate([u"set-temp", {u"degrees": 10}]):
print "Valid!"
It’s a very declarative way of saying how your schema looks. With the architechture that json_schema is built on, you can customize pretty much anything.
Metadata
Release files for json_schema 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| json_schema-0.3.tar.gz | 5.4 kB | Without provenance | Details for json_schema-0.3.tar.gz |
Release files / json_schema-0.3.tar.gz
| Download URL | json_schema-0.3.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a164efbb405f535615e58aff191b55fbfdad61d2ff0e7bfce6acf086358ca4b3
|
|
BLAKE2b-256 checksum How to use checksums |
2a04855eecfdd379ff774ce86770808c6663ad4fdf14c43ed4e6fd7156aa5cf9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for json_schema 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.