Skip to content

CodingDojoSilesia/py-jsonpatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-jsonpatch

Solutions

Mission

support http://jsonpatch.com/ in patch_lib.py

And of course, write tests in tests/test_patch_lib.py

Protips

  • Treat JSON like a tree structure
  • JSONPatch syntax is always valid
  • …but path to document can be invalid (not exist or syntax error)
  • don't move/modify root (/) - it's an insane!
  • when commands 'add' and 'remove' will be implemented then other commands would be very easy to implement

How to run

Pipenv

Install

pipenv install --three

Run tests

pipenv run tests

Run web console

pipenv run web

with virtualenv

Install

virtualenv venv -ppython3
source venv/bin/activate
pip install flask pytest pytest-cov flake8

Run tests

flake8 && pytest -v --cov=.

Run web console

FLASK_APP=web flask run

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published