{ "info": { "author": "Ernst Odolphi", "author_email": "ernst.odolphi@gmail.com", "bugtrack_url": null, "classifiers": [], "description": ".. image:: https://drone.io/bitbucket.org/eodolphi/json-patch/status.png\n :target: https://drone.io/bitbucket.org/eodolphi/json-patch/latest\n\nJSON Patch\n=============\n\nImplementation of json-patch draft 04:\n\nhttp://tools.ietf.org/html/draft-pbryan-json-patch-04\n\nInstallation\n------------\n\n $ pip install json_patch\n\nUsage\n------------\n\nJSON patch makes it possible to patch arbitrary json objects\n\n>>> from json_patch import Patch\n>>> patch = Patch([\n {\n 'op': 'add'\n 'path': '/c',\n 'value': 'f'\n },\n {\n 'op': 'remove': \n 'path': '/a'\n },\n {\n 'op': 'replace'\n 'path': '/b',\n 'value': 'g'\n }\n ])\n >>> data = {'a': 'd', 'b': 'e'}\n >>> print patch.apply(data)\n {'b': 'g', 'c': 'f'}", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "json_patch", "package_url": "https://pypi.org/project/json_patch/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/json_patch/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/json_patch/0.1/", "requires_dist": null, "requires_python": null, "summary": "Implementation of the json-patch spec", "version": "0.1" }, "last_serial": 900924, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "ec6bd2ea726525ba8adcf377ebd11c50", "sha256": "cfa67749e1f4704975659bd9ef36f0e2d266ed0bf5999b2046f3a30e80b8c883" }, "downloads": -1, "filename": "json_patch-0.1.tar.gz", "has_sig": false, "md5_digest": "ec6bd2ea726525ba8adcf377ebd11c50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2486, "upload_time": "2013-10-22T19:28:15", "url": "https://files.pythonhosted.org/packages/2c/17/1f8d70831a05ed91a6ff19fb446b669810ebc4e079a6ba3e2ac1723fab27/json_patch-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ec6bd2ea726525ba8adcf377ebd11c50", "sha256": "cfa67749e1f4704975659bd9ef36f0e2d266ed0bf5999b2046f3a30e80b8c883" }, "downloads": -1, "filename": "json_patch-0.1.tar.gz", "has_sig": false, "md5_digest": "ec6bd2ea726525ba8adcf377ebd11c50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2486, "upload_time": "2013-10-22T19:28:15", "url": "https://files.pythonhosted.org/packages/2c/17/1f8d70831a05ed91a6ff19fb446b669810ebc4e079a6ba3e2ac1723fab27/json_patch-0.1.tar.gz" } ] }