{ "info": { "author": "ider", "author_email": "326737833@qq.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development :: Libraries" ], "description": "a tool to diff dict list set data output like the npm package [deep_diff](https://www.npmjs.com/package/deep-diff)\n\n# USAGE\n```\npip install deep_diff\nfrom deep_diff import diff\ndiff({'a':1},{'b':1})\n```\n``` json\n[ { kind: 'E',\n path: [ 'name' ],\n lhs: 'my object',\n rhs: 'updated object' },\n { kind: 'E',\n path: [ 'details', 'with', 2 ],\n lhs: 'elements',\n rhs: 'more' },\n { kind: 'A',\n path: [ 'details', 'with' ],\n index: 3,\n item: { kind: 'N', rhs: 'elements' } },\n { kind: 'A',\n path: [ 'details', 'with' ],\n index: 4,\n item: { kind: 'N', rhs: { than: 'before' } } } ]\n```\n\n### Differences\n\nDifferences are reported as one or more change records. Change records have the following structure:\n\n* `kind` - indicates the kind of change; will be one of the following:\n * `N` - indicates a newly added property/element\n * `D` - indicates a property/element was deleted\n * `E` - indicates a property/element was edited\n * `A` - indicates a change occurred within an array\n* `path` - the property path (from the left-hand-side root)\n* `lhs` - the value on the left-hand-side of the comparison (undefined if kind == 'N')\n* `rhs` - the value on the right-hand-side of the comparison (undefined if kind == 'D')\n* `index` - when kind == 'A', indicates the array index where the change occurred\n* `item` - when kind == 'A', contains a nested change record indicating the change that occurred at the array index\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ider-zh/diff", "keywords": "", "license": "BSD 3-Clause license", "maintainer": "", "maintainer_email": "", "name": "deep-diff", "package_url": "https://pypi.org/project/deep-diff/", "platform": "", "project_url": "https://pypi.org/project/deep-diff/", "project_urls": { "Homepage": "https://github.com/ider-zh/diff" }, "release_url": "https://pypi.org/project/deep-diff/0.0.4/", "requires_dist": null, "requires_python": "", "summary": "a tool to diff dict list set data", "version": "0.0.4" }, "last_serial": 4643111, "releases": { "0.0.4": [ { "comment_text": "", "digests": { "md5": "adf346ff6d4c37e647a668970a59285d", "sha256": "6c7a3d5dfffa6633de09d28da42c8c6056d2367d70491389a2d6f8016a58c8ef" }, "downloads": -1, "filename": "deep_diff-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "adf346ff6d4c37e647a668970a59285d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2783, "upload_time": "2018-12-29T03:09:38", "url": "https://files.pythonhosted.org/packages/42/bb/975a0c0c1164988dbb45fb16b7c8697a716c998e7c4958326fb1001a769a/deep_diff-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "99e543e1c68f24e605c1b9d072546249", "sha256": "a26e2e12e47309eb882a560241c88aa3634223239462f9b8a3c8ee7fb0350cab" }, "downloads": -1, "filename": "deep_diff-0.0.4.tar.gz", "has_sig": false, "md5_digest": "99e543e1c68f24e605c1b9d072546249", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2556, "upload_time": "2018-12-29T03:09:40", "url": "https://files.pythonhosted.org/packages/9a/60/365c232a3a77187f48c42915f0aae7afa90d37dd284377b2c573e1a628ff/deep_diff-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "adf346ff6d4c37e647a668970a59285d", "sha256": "6c7a3d5dfffa6633de09d28da42c8c6056d2367d70491389a2d6f8016a58c8ef" }, "downloads": -1, "filename": "deep_diff-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "adf346ff6d4c37e647a668970a59285d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2783, "upload_time": "2018-12-29T03:09:38", "url": "https://files.pythonhosted.org/packages/42/bb/975a0c0c1164988dbb45fb16b7c8697a716c998e7c4958326fb1001a769a/deep_diff-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "99e543e1c68f24e605c1b9d072546249", "sha256": "a26e2e12e47309eb882a560241c88aa3634223239462f9b8a3c8ee7fb0350cab" }, "downloads": -1, "filename": "deep_diff-0.0.4.tar.gz", "has_sig": false, "md5_digest": "99e543e1c68f24e605c1b9d072546249", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2556, "upload_time": "2018-12-29T03:09:40", "url": "https://files.pythonhosted.org/packages/9a/60/365c232a3a77187f48c42915f0aae7afa90d37dd284377b2c573e1a628ff/deep_diff-0.0.4.tar.gz" } ] }