Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CodingDojoSilesia/py-jsonpatch

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
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

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.