{ "info": { "author": "Craig Labenz", "author_email": "craig.labenz@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "[![Build Status](https://img.shields.io/travis/zapier/jsonmask/master.svg)](https://travis-ci.org/zapier/jsonmask) [![Coverage Status](https://img.shields.io/coveralls/zapier/jsonmask/master.svg)](https://coveralls.io/r/zapier/jsonmask) [![PyPI Version](https://img.shields.io/pypi/v/jsonmask.svg)](https://pypi.org/project/jsonmask)\n\n# Overview\n\nImplements [Google Partial Response](https://developers.google.com/discovery/v1/performance#partial-response) / [`json-mask`](https://github.com/nemtsov/json-mask) in Python.\n\n## Requirements\n\n* Python 2.7\n* Python 3.6+\n\n## Installation\n\nInstall jsonmask with pip:\n\n```sh\n$ pip install jsonmask\n```\n\nor directly from the source code:\n\n```sh\n$ git clone https://github.com/zapier/jsonmask.git\n$ cd jsonmask\n$ python setup.py install\n```\n\n# Usage\n\nAfter installation, the package can imported:\n\n```sh\n$ python\n>>> import jsonmask\n>>> jsonmask.__version__\n```\n\nTo prune dictionaries:\n\n```py\n>>> import jsonmask\n>>> mask = jsonmask.parse_fields('a,b(c,d)')\n>>> jsonmask.apply_json_mask(\n {\n 'a': {\n 'nested_within_a': True,\n },\n 'b' {\n 'c': True,\n 'd': {'Will get included?': 'Yes'},\n 'e': 'Tough luck here',\n },\n 'c': 'Definitely hopeless',\n },\n mask,\n)\n\n{\n 'a': {\n 'nested_within_a': True,\n },\n 'b' {\n 'c': True,\n 'd': {'Will get included?': 'Yes'},\n },\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/zapier/jsonmask", "keywords": "jsonmask,json,google partial response", "license": "MIT", "maintainer": "Craig Labenz", "maintainer_email": "craig.labenz@gmail.com", "name": "jsonmask", "package_url": "https://pypi.org/project/jsonmask/", "platform": "", "project_url": "https://pypi.org/project/jsonmask/", "project_urls": { "Documentation": "https://github.com/zapier/jsonmask/blob/master/README.md", "Homepage": "https://github.com/zapier/jsonmask", "Repository": "https://github.com/zapier/jsonmask" }, "release_url": "https://pypi.org/project/jsonmask/0.1.1/", "requires_dist": null, "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*", "summary": "Implements the Google Partial Response protocol in Python", "version": "0.1.1" }, "last_serial": 4544126, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "1eaa20e34eae023b6f8d44db89c6a226", "sha256": "0312d0eafd5aaae8bcb5fcf2c38e82d5da82d17d0a61d44d905b5038b1123a61" }, "downloads": -1, "filename": "jsonmask-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1eaa20e34eae023b6f8d44db89c6a226", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*", "size": 14811, "upload_time": "2018-08-27T16:17:56", "url": "https://files.pythonhosted.org/packages/4c/22/121a961f11e40c2782157b56bb647163245cb54743ec6f2b5906447903e3/jsonmask-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4659061040d705492a9733c3ce17af80", "sha256": "ffaf681f5ba68b9708f21e44849d8168a47f535182c298618d6700cd1d258e4a" }, "downloads": -1, "filename": "jsonmask-0.1.0.tar.gz", "has_sig": false, "md5_digest": "4659061040d705492a9733c3ce17af80", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*", "size": 5363, "upload_time": "2018-08-27T16:17:57", "url": "https://files.pythonhosted.org/packages/b4/46/4265ee870da821e469765d8c3754418b502a66a8645bc0475fcee74e8002/jsonmask-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "9875553ba8bec6d466fb872dc16f89b9", "sha256": "0251c83f3530d21016dd50130e34cee17044f0b9da4a8ebef85197c9fff1ce67" }, "downloads": -1, "filename": "jsonmask-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9875553ba8bec6d466fb872dc16f89b9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*", "size": 15596, "upload_time": "2018-11-29T19:35:03", "url": "https://files.pythonhosted.org/packages/99/ef/6b9f0ef4347d8a0365e7ba28092d8f5625c2e370e704c707be7160b91819/jsonmask-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5391aa3c1db744ca0b0909d4ef05ceee", "sha256": "de73eeea74e1eed12ded1fe1dca729119d7640a4cb69b8e1e255da5e7cb6d268" }, "downloads": -1, "filename": "jsonmask-0.1.1.tar.gz", "has_sig": false, "md5_digest": "5391aa3c1db744ca0b0909d4ef05ceee", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*", "size": 5594, "upload_time": "2018-11-29T19:35:05", "url": "https://files.pythonhosted.org/packages/a5/23/d8a16e6c8e6cbbd78a428aa904563ca5441ae2659f669ad9345037798749/jsonmask-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9875553ba8bec6d466fb872dc16f89b9", "sha256": "0251c83f3530d21016dd50130e34cee17044f0b9da4a8ebef85197c9fff1ce67" }, "downloads": -1, "filename": "jsonmask-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9875553ba8bec6d466fb872dc16f89b9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*", "size": 15596, "upload_time": "2018-11-29T19:35:03", "url": "https://files.pythonhosted.org/packages/99/ef/6b9f0ef4347d8a0365e7ba28092d8f5625c2e370e704c707be7160b91819/jsonmask-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5391aa3c1db744ca0b0909d4ef05ceee", "sha256": "de73eeea74e1eed12ded1fe1dca729119d7640a4cb69b8e1e255da5e7cb6d268" }, "downloads": -1, "filename": "jsonmask-0.1.1.tar.gz", "has_sig": false, "md5_digest": "5391aa3c1db744ca0b0909d4ef05ceee", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*", "size": 5594, "upload_time": "2018-11-29T19:35:05", "url": "https://files.pythonhosted.org/packages/a5/23/d8a16e6c8e6cbbd78a428aa904563ca5441ae2659f669ad9345037798749/jsonmask-0.1.1.tar.gz" } ] }