This release is a pre-release and may not be stable for production use.
Json Extensions
This library implements several JSON specs, like JSON Schema:
It works on python 2.7, python 3.3 and above
It is release under the BSD license
Installation
This library has no special dependencies. You can simply use pip:
$ pip install json-extensions
Usage
Let say you want to validate JSON like objects. You can describe you data with JSON Schema:
from json.schema import load
# data will validate against this schema
validator = load({
'title': 'Example Schema',
'type': 'object',
'properties': {
'age': {
'description': 'Age in years',
'minimum': 0,
'type': 'integer'
},
'firstName': {
'type': 'string'
},
'lastName': {
'type': 'string'
}
},
'required': [
'firstName',
'lastName'
]
})
# validate this data
validator.validate({
'firstName': 'John',
'lastName': 'Noone',
'age': 33,
})
Other examples can be found in the documentation of in the tests.
Metadata
Release files for json-extensions b76bc7d
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-extensions-b76bc7d.tar.gz | 23.0 kB | Without provenance | Details for json-extensions-b76bc7d.tar.gz |
Release files / json-extensions-b76bc7d.tar.gz
| Download URL | json-extensions-b76bc7d.tar.gz |
|---|---|
| Size | 23.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4eb170baf09ba2ed47982e3e84580582cf04deedbd6e3e8ede37d2acfdf02d4b
|
|
BLAKE2b-256 checksum How to use checksums |
980afd054f2192cfc15c4ea7e2552b5fdb00e75226bae7274f23c2745f6e83a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for json-extensions b76bc7d
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.