Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s-knibbs/pyvalico
Small python wrapper around https://github.com/rustless/valico
https://github.com/s-knibbs/pyvalico
json-schema rust-cpython
Last synced: 2 months ago
JSON representation
Small python wrapper around https://github.com/rustless/valico
- Host: GitHub
- URL: https://github.com/s-knibbs/pyvalico
- Owner: s-knibbs
- License: mit
- Created: 2018-09-07T14:20:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-08T09:52:15.000Z (over 5 years ago)
- Last Synced: 2024-10-11T09:12:19.889Z (3 months ago)
- Topics: json-schema, rust-cpython
- Language: Rust
- Homepage:
- Size: 14.6 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyValico
**⚠ Please Note ⚠:** This is not currently maintained due to a number of issues discovered in the upstream library which is not currently being regularly maintained.
Small python wrapper around the [valico](https://github.com/rustless/valico) rust library to provide fast JSON schema validation.
## Usage
```python
>>> from valico import validate
>>> validate([2,3,4], {"maxItems": 2})
valico.ValidationError: MaxLength condition is not met
```## Building
To build manylinux wheels for python 3.5, 3.6 and 3.7, follow the instructions at [setuptools-rust](https://pypi.org/project/setuptools-rust/), and build using `build-wheels.sh`
in the project root.## TODO
* Add tests / travis build
* Benchmark against [jsonschema](https://github.com/Julian/jsonschema)