Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)