pyson0

This package ports the json0-ot-diff and ottypes/json0 to python.


License
MIT
Install
pip install pyson0==0.1

Documentation

pyson0

Use ottypes operations with python objects and find differences between objects following the ottypes defintion and format https://github.com/ottypes/docs.

On its essence this project is a port of the following projects from javascript to python, with a few modifications.

Status

TravisCI Build Status

At the moment some parts of the library are not complete and others need validations in terms of use cases and performance.

json0

For now the port is only implementing the apply without support for si/sd. We will be adding this in the near future.

json0-ot-diff

It is fully ported. To support string operations it is using the python diff-match-patch implementation from google.

Install

Using Package Manager

Manually

Testing

To run the tests simply run: python -m unittest discover -s tests/ -p "test_*.py"