{ "info": { "author": "Mikolaj Nowak", "author_email": "mikolaj.nowak@likedata.pl", "bugtrack_url": null, "classifiers": [], "description": "# Python dictionary/JSON digger\r\n\r\n# About\r\n\r\nThe script is to help you look either for specific keys or values in multi-tier nested python dictionaries (either native or converted from JSON).\r\n\r\n# Usage\r\n\r\nI am using it heavily in analyzing the data retrieved from REST APIs (Google, Bing, Linkedin etc.), NoSQL dbs (MongoDB etc.), python dictionaries.\r\n\r\n# Installation\r\n\r\n```\r\n$ pip install json-digger\r\n```\r\n\r\n# Python Version\r\n\r\nIt has been developed and tested under Python 2.7. However it supports also Python 3.\r\n\r\n# How to use?\r\n\r\n```python\r\nfrom json_digger.json_digger import JsonDigger\r\n\r\nweather = {\"coord\":{\"lon\":-0.13,\"lat\":51.51},\"sys\":{\"type\":3,\"id\":60992,\"message\":0.0921,\"country\":\"GB\",\"sunrise\":1423639268,\"sunset\":1423674497},\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"base\":\"cmc stations\",\"main\":{\"temp\":278.05,\"humidity\":84,\"pressure\":1025.6,\"temp_min\":278.05,\"temp_max\":278.05},\"wind\":{\"speed\":2.39,\"deg\":122.505},\"rain\":{\"3h\":0},\"clouds\":{\"all\":80},\"dt\":1423646999,\"id\":2643743,\"name\":\"London\",\"cod\":200}\r\n\r\ni = JsonDigger(weather) # initialize class instance\r\n\r\nr_k = i.get_keys('country') # search for key 'country'\r\nr_v = i.get_values(278.05) # search for value '278.05'\r\n\r\nprint r_k # response: {u':sys:country': [u'GB']}\r\nprint r_v # response: {u':main:temp': [278.05], u':main:temp_max': [278.05], u':main:temp_min': [278.05]}\r\n```\r\n\r\nMore in tester.py!\r\n\r\n# Must have (if work with JSONs)\r\n\r\nJSON module for Python (https://docs.python.org/2/library/json.html).\r\n\r\n\r\n\r\n# Release History\r\n\r\n0.2.0 (2016-02-20)\r\nAdded support for Python 3.\r\n\r\n0.1.0 (2015-02-11)\r\nFirst release.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/likedata/py-json-digger/tarball/0.2", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/likedata/py-json-digger", "keywords": "python,json,digger,dict,nested,py,dictionary,multi-tier", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "json-digger", "package_url": "https://pypi.org/project/json-digger/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/json-digger/", "project_urls": { "Download": "https://github.com/likedata/py-json-digger/tarball/0.2", "Homepage": "https://github.com/likedata/py-json-digger" }, "release_url": "https://pypi.org/project/json-digger/0.2/", "requires_dist": null, "requires_python": null, "summary": "The script is to help you look either for specific keys or values in multi-tier nested python dictionaries (either native or converted from JSON).", "version": "0.2" }, "last_serial": 1968248, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e396fea5a5e9ab0c29a5f474c00a7515", "sha256": "14d966438917fe4b1dcf8709097e9ef52d51d8197512b7e97c3d4c4d5d2b809e" }, "downloads": -1, "filename": "json-digger-0.1.tar.gz", "has_sig": false, "md5_digest": "e396fea5a5e9ab0c29a5f474c00a7515", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4089, "upload_time": "2015-02-11T15:30:21", "url": "https://files.pythonhosted.org/packages/b3/80/2b081a4384867203e9166e0c6bfb00d484a891f2dd840a6152e2503511e2/json-digger-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "4f81aaf3da2645d701165703c19562fa", "sha256": "a6d6bc665c1f9c671ffef2c679d1298b4cc7ed40dc74d88a32ac1666a0e2b514" }, "downloads": -1, "filename": "json-digger-0.2.tar.gz", "has_sig": false, "md5_digest": "4f81aaf3da2645d701165703c19562fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4109, "upload_time": "2016-02-20T22:04:17", "url": "https://files.pythonhosted.org/packages/db/ea/47440d90614aae641008a01e559d69c6f372ba644f6d7d99804ae8f66b7c/json-digger-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4f81aaf3da2645d701165703c19562fa", "sha256": "a6d6bc665c1f9c671ffef2c679d1298b4cc7ed40dc74d88a32ac1666a0e2b514" }, "downloads": -1, "filename": "json-digger-0.2.tar.gz", "has_sig": false, "md5_digest": "4f81aaf3da2645d701165703c19562fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4109, "upload_time": "2016-02-20T22:04:17", "url": "https://files.pythonhosted.org/packages/db/ea/47440d90614aae641008a01e559d69c6f372ba644f6d7d99804ae8f66b7c/json-digger-0.2.tar.gz" } ] }