{ "info": { "author": "Paul Glass", "author_email": "pnglass@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": ".. image:: https://travis-ci.org/pglass/voluptuary.svg?branch=master\n :target: https://travis-ci.org/pglass/voluptuary\n\n.. image:: https://img.shields.io/pypi/v/voluptuary.svg\n :target: https://pypi.python.org/pypi/voluptuary\n\n.. image:: https://img.shields.io/pypi/pyversions/voluptuary.svg\n :target: https://pypi.python.org/pypi/voluptuary\n\n\n============\n voluptuary\n============\n\nThis is a tool and library to convert a JSON Schema to a Voluptuous schema.\n\nUsage\n-----\n\n.. code-block:: python\n\n from voluptuary import to_voluptuous\n\n # some JSON Schema\n json_schema = {\n 'type': 'object',\n 'properties': {\n 'value': {'type': 'integer'},\n },\n }\n\n # convert to a voluptuous schema\n schema = to_voluptuous(json_schema)\n\n # validate something\n schema({'value': 1})\n\nTests\n-----\n\nTo run the tests, use `tox`_.\n\n.. code-block:: bash\n\n $ tox\n\nWhy?\n----\n\nThis library is for the people who aren't satisfied with JSON Schema but can't\njustify rewriting schemas (\"tedious\", \"time-consuming\", \"little benefit\"). But\nwith a library to rewrite the schemas for you, there are no more excuses!\n\nIf you are wondering \"why voluptuous over JSON Schema\", there are some good\n`reasons listed here`_. I find voluptuous models to be nicer: more Pythonic,\nmore expressive, easier to read and maintain, easier to customize, better error\nmessages, and so on.\n\nHow do I know my converted schema will validate correctly?\n----------------------------------------------------------\n\nFirst of all, you should always test the validation behavior of your schemas.\nNo library is going to write correct schemas for you.\n\nAside from that, this library follows the following principles:\n\n1. Familiar behavior: This library strives to match the validation behavior of\n the (Draft 4) validator from `jsonschema`_.\n2. Proactive testing: This library includes and actively runs a comprehensive\n suite of tests to ensure behavior in the first point.\n3. Documentation: This library includes `detailed documentation`_ of support\n for JSON Schema validation features, and strive to keep this up to date.\n\n\n.. _tox: https://tox.readthedocs.io/en/latest/\n.. _reasons listed here: https://github.com/alecthomas/voluptuous#why-use-voluptuous-over-another-validation-library\n.. _jsonschema: https://github.com/Julian/jsonschema\n.. _detailed documentation: jsonschema-support.md\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pglass/voluptuary", "keywords": "convert schema json voluptuous", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "voluptuary", "package_url": "https://pypi.org/project/voluptuary/", "platform": "", "project_url": "https://pypi.org/project/voluptuary/", "project_urls": { "Homepage": "https://github.com/pglass/voluptuary" }, "release_url": "https://pypi.org/project/voluptuary/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "convert json schemas to voluptuous schemas", "version": "0.0.3" }, "last_serial": 3767559, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "4a4da7cec17f934fbcf01c10bfbaa80b", "sha256": "813c3d9417925c53873639acec9d8471b2f94ab2f67d2e63dc14148a20067120" }, "downloads": -1, "filename": "voluptuary-0.0.1.tar.gz", "has_sig": false, "md5_digest": "4a4da7cec17f934fbcf01c10bfbaa80b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4002, "upload_time": "2018-04-15T10:42:18", "url": "https://files.pythonhosted.org/packages/92/00/fd7a0f6223ef48f2e49ab4cb2e27802b82523b5fbf66debe5ab6a17b28c6/voluptuary-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "845ca70ec50af318eb06b5ef90d8e06a", "sha256": "38397b0e7108ec61eaa42d4d729f0741309731a5d10269523a5f45699b99bb1b" }, "downloads": -1, "filename": "voluptuary-0.0.2.tar.gz", "has_sig": false, "md5_digest": "845ca70ec50af318eb06b5ef90d8e06a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4100, "upload_time": "2018-04-15T11:05:12", "url": "https://files.pythonhosted.org/packages/59/3e/d3709b1c2f91787eb591b8bb86e90713512038ad0cd717651ad6da163ba9/voluptuary-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "36d41204a00854324c8fdb33400f91e1", "sha256": "9710fc8acea4e256ec687761818e9a3426d739db5ba1a1756bec956bd7f8cafb" }, "downloads": -1, "filename": "voluptuary-0.0.3.tar.gz", "has_sig": false, "md5_digest": "36d41204a00854324c8fdb33400f91e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4626, "upload_time": "2018-04-16T02:25:39", "url": "https://files.pythonhosted.org/packages/9f/b9/d0a6fd8ffb2fcf35330473cd230413334928a8ad4ca9c03fb0fb0a5a1a0c/voluptuary-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "36d41204a00854324c8fdb33400f91e1", "sha256": "9710fc8acea4e256ec687761818e9a3426d739db5ba1a1756bec956bd7f8cafb" }, "downloads": -1, "filename": "voluptuary-0.0.3.tar.gz", "has_sig": false, "md5_digest": "36d41204a00854324c8fdb33400f91e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4626, "upload_time": "2018-04-16T02:25:39", "url": "https://files.pythonhosted.org/packages/9f/b9/d0a6fd8ffb2fcf35330473cd230413334928a8ad4ca9c03fb0fb0a5a1a0c/voluptuary-0.0.3.tar.gz" } ] }