{ "info": { "author": "Peter Bengtsson", "author_email": "mail@peterbe.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "===================\njson-schema-reducer\n===================\n\n.. image:: https://travis-ci.org/peterbe/json-schema-reducer.svg?branch=master\n :target: https://travis-ci.org/peterbe/json-schema-reducer\n\n.. image:: https://badge.fury.io/py/json-schema-reducer.svg\n :target: https://pypi.python.org/pypi/json-schema-reducer\n\nExtract from a JSON/dict only whats in the JSON Schema. Assumes that the\nJSON/dict you supply is valid according to the JSON Schema you also supply.\n\n\nInstallation\n============\n\nSimple install with ``pip``::\n\n pip install json-schema-reducer\n\nHow to use it\n=============\n\nSuppose you have two files on disk: ``schema.json`` and ``mything.json``.\nAnd suppose that the ``schema.json`` only lists the properties ``foo`` and\n``bar`` but the file ``mything.json`` contains many more things::\n\n >>> from json_schema_reducer import make_reduced_dict\n >>> make_reduced_dict('schema.json', 'mything.json')\n {'foo': 'value1', 'bar': 'value2'}\n\nThe arguments are flexible. You can also do this::\n\n >>> make_reduced_dict(open('schema.json'), open('mything.json'))\n\nOr this::\n\n >>> make_reduced_dict(open('schema.json').read(), open('mything.json').read())\n\nOr this::\n\n >>> make_reduced_dict(\n ... json.load(open('schema.json')),\n ... json.load(open('mything.json')))\n\n\nRunnings tests\n==============\n\nSimply run::\n\n python setup.py test\n\n\nVersion History\n===============\n\n0.1.4\n * Universal wheel\n\n0.1.3\n * Better, but basic, cli (e.g. ``--help``)\n * Support for optional nested keys\n\n0.1.2\n * Correct README restructured text\n\n0.1.1\n * Tidying up loose ends\n\n0.1.0\n * First, hopefully, working version.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/peterbe/json-schema-reducer", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "json-schema-reducer", "package_url": "https://pypi.org/project/json-schema-reducer/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/json-schema-reducer/", "project_urls": { "Homepage": "https://github.com/peterbe/json-schema-reducer" }, "release_url": "https://pypi.org/project/json-schema-reducer/0.1.4/", "requires_dist": null, "requires_python": "", "summary": "Extract from a JSON/dict only whats in the JSON Schema", "version": "0.1.4" }, "last_serial": 2251963, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "45ae6dfd463f421ea31e0b40de221fdc", "sha256": "1efb30794853e0c05a456f9d86437cbb116f14f5f2a389bb8d462a13a72fd644" }, "downloads": -1, "filename": "json_schema_reducer-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "45ae6dfd463f421ea31e0b40de221fdc", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4028, "upload_time": "2016-07-28T18:14:11", "url": "https://files.pythonhosted.org/packages/c7/7c/ddc3340cd91e22ab81e02bef5842c152b8576230a01e959daaf5f593000f/json_schema_reducer-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f6720bbd9c54336eae8e9292096b4060", "sha256": "57618cf998701c4fe236663c7ef7576629bee6a46192b2432a8b2f87b586bdce" }, "downloads": -1, "filename": "json-schema-reducer-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f6720bbd9c54336eae8e9292096b4060", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2322, "upload_time": "2016-07-28T18:14:09", "url": "https://files.pythonhosted.org/packages/3f/e1/a53a849c964e3bec62b07ab9f828639c1723ef470bbef59cf784988c587f/json-schema-reducer-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "6c25f946e1f2a9581f39f1d30da32540", "sha256": "f61d559269027967e546104df8edb14685ef070bc3e58ff8a9a88f1386ab9668" }, "downloads": -1, "filename": "json_schema_reducer-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "6c25f946e1f2a9581f39f1d30da32540", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4059, "upload_time": "2016-07-28T18:19:27", "url": "https://files.pythonhosted.org/packages/a0/d9/0e4636104ec480316b7b8c1197895e91aab17df6c729f4638c934fbb22cf/json_schema_reducer-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e7e31e753da45480e8f0ecf71d279607", "sha256": "e1db4831985c6b702576f575caf1c2873082016db8862a8b17522bb61f466cff" }, "downloads": -1, "filename": "json-schema-reducer-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e7e31e753da45480e8f0ecf71d279607", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2320, "upload_time": "2016-07-28T18:19:29", "url": "https://files.pythonhosted.org/packages/ea/fb/9a980e30a2da9b36c150f0629d68dfd7f29e399c2f9eb452695d6a23fec4/json-schema-reducer-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "22dbed72a838c148ac3e792d074e4d64", "sha256": "07b38c2f9bf57274096f45ed7d8726390431f3b048b28a92a3fc92532bf86b0e" }, "downloads": -1, "filename": "json_schema_reducer-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "22dbed72a838c148ac3e792d074e4d64", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4112, "upload_time": "2016-07-28T18:26:35", "url": "https://files.pythonhosted.org/packages/52/12/9ce67e0f6569880ac0a0b61c6582537fd7bf175bbe9ee219c1d8662220c7/json_schema_reducer-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1db061619f9ee3e859b9d8afcbd11b2e", "sha256": "e64d6754390ae129513a27af811f657bc104cfdd9e5e300902a1a5b57f83ebd4" }, "downloads": -1, "filename": "json-schema-reducer-0.1.2.tar.gz", "has_sig": false, "md5_digest": "1db061619f9ee3e859b9d8afcbd11b2e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2347, "upload_time": "2016-07-28T18:26:37", "url": "https://files.pythonhosted.org/packages/53/54/a903f1f1eaf2c14aa21f7ef2c978ff8fe06892cd63b5e3d1fca055cb529e/json-schema-reducer-0.1.2.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "5fd2ec1ecca08aef6f7a09abda5a7c2d", "sha256": "41c674275c2650dadb7f8af1193640ca41eb863926985ecda5bfee93aef265c0" }, "downloads": -1, "filename": "json_schema_reducer-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5fd2ec1ecca08aef6f7a09abda5a7c2d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4390, "upload_time": "2016-07-29T20:16:47", "url": "https://files.pythonhosted.org/packages/51/1a/5ac1131dcffa1063a0e0ded04e1326ea5a98dcc76d763b3532ecb7c73cfd/json_schema_reducer-0.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1d749989b42721b5b36e1e7db3b00813", "sha256": "b6fbe437361e0ec14f5c05daf752604834bd9abe5af9ab6bdcb05ea1f8df1df6" }, "downloads": -1, "filename": "json-schema-reducer-0.1.4.tar.gz", "has_sig": false, "md5_digest": "1d749989b42721b5b36e1e7db3b00813", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2651, "upload_time": "2016-07-29T20:16:50", "url": "https://files.pythonhosted.org/packages/28/f6/1e2cc23d6379879b96c601fe3d0992585af37cc60cbd17de9ba4dc73d616/json-schema-reducer-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5fd2ec1ecca08aef6f7a09abda5a7c2d", "sha256": "41c674275c2650dadb7f8af1193640ca41eb863926985ecda5bfee93aef265c0" }, "downloads": -1, "filename": "json_schema_reducer-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5fd2ec1ecca08aef6f7a09abda5a7c2d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4390, "upload_time": "2016-07-29T20:16:47", "url": "https://files.pythonhosted.org/packages/51/1a/5ac1131dcffa1063a0e0ded04e1326ea5a98dcc76d763b3532ecb7c73cfd/json_schema_reducer-0.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1d749989b42721b5b36e1e7db3b00813", "sha256": "b6fbe437361e0ec14f5c05daf752604834bd9abe5af9ab6bdcb05ea1f8df1df6" }, "downloads": -1, "filename": "json-schema-reducer-0.1.4.tar.gz", "has_sig": false, "md5_digest": "1d749989b42721b5b36e1e7db3b00813", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2651, "upload_time": "2016-07-29T20:16:50", "url": "https://files.pythonhosted.org/packages/28/f6/1e2cc23d6379879b96c601fe3d0992585af37cc60cbd17de9ba4dc73d616/json-schema-reducer-0.1.4.tar.gz" } ] }