{ "info": { "author": "Joe McIntyre", "author_email": "j_h_mcintyre@yahoo.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Topic :: Software Development" ], "description": "=====================\nJSON Validate Utility\n=====================\n\nPart of the\n`Using JSON Schema `_\nproject.\n\n``jsonvalidate`` is a command line and library utility allowing JSON content\nto be validated using JSON Schema content from local or remote sources, and\nuse of custom schema storage and URI access.\n\nThe utility uses the\n`jsonschema `_\nlibrary for the schema validation processing\n(`GitHub repo `_).\n\nFor command line/script use, a console message is displayed and the process\nexits with 0 for success, 1 for failure.\n\n.. image:: https://travis-ci.org/usingjsonschema/ujs-jsonvalidate-python.svg?branch=master\n :target: https://travis-ci.org/usingjsonschema/ujs-jsonvalidate-python\n\nCommand Line / Script Use\n-------------------------\n\nTo run the validation (command line or script), use the ``validate``\ncommand with a file name (path optional). For example, to check the file\n``example.json`` against the schema ``example_schema.json``, use,\n\n.. code:: bash\n\n validate example.json example_schema.json\n\nLibrary Function Use\n--------------------\n\n**validate** (dataFile, schemaFile, refFiles, jsdbFile, callback)\n\n| Arguments:\n| dataFile *String* File name of JSON data file (path optional)\n| schemaFile *String* File name of JSON Schema file (path optional)\n| refFiles *String[]* Array of file names for $ref files (path optional)\n| jsdbFile *String* File name for JSDB file (path optional)\n|\n| Returns:\n| code, data, message\n|\n| - *code* is the validation result\n| - *data* is the validated JSON content from dataFile\n| - *message* is text message associated with the *code*\n\nFor example,\n\n.. code:: python\n\n from jsonvalidate import validate, VALID\n\n dataFile = \"example.json\"\n schemaFile = \"example_schema.json\"\n refFiles = [\"ref1_schema.json\", \"ref2_schema.json\"]\n jsdbFile = None\n\n code, data, message = validate (dataFile, schemaFile, refFiles, jsdbFile)\n if code == VALID:\n print (\"Valid JSON content\");\n else:\n print (\"Error: \" + str (message))\n\nInstallation\n------------\n\nThe program can be installed using ``pip``, with the command,\n\n.. code:: bash\n\n pip install ujs-jsonvalidate\n\nLicense\n-------\n\nMIT", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/usingjsonschema/ujs-jsonvalidate-python", "keywords": "bookujs json json-schema", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "ujs-jsonvalidate", "package_url": "https://pypi.org/project/ujs-jsonvalidate/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ujs-jsonvalidate/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/usingjsonschema/ujs-jsonvalidate-python" }, "release_url": "https://pypi.org/project/ujs-jsonvalidate/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "JSON validation utility", "version": "0.1.0" }, "last_serial": 1155797, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "9307afa59b37637436396085b8e37ccb", "sha256": "e033d6e95860bae7a3948e983b4f3b9a4a033f7496ad1e0d486805c302230b56" }, "downloads": -1, "filename": "ujs-jsonvalidate-0.1.0.zip", "has_sig": false, "md5_digest": "9307afa59b37637436396085b8e37ccb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10724, "upload_time": "2014-07-12T20:28:02", "url": "https://files.pythonhosted.org/packages/f5/80/78cf137edafa40ebc60879f48955219616563a9d46ac72c597da76196890/ujs-jsonvalidate-0.1.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9307afa59b37637436396085b8e37ccb", "sha256": "e033d6e95860bae7a3948e983b4f3b9a4a033f7496ad1e0d486805c302230b56" }, "downloads": -1, "filename": "ujs-jsonvalidate-0.1.0.zip", "has_sig": false, "md5_digest": "9307afa59b37637436396085b8e37ccb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10724, "upload_time": "2014-07-12T20:28:02", "url": "https://files.pythonhosted.org/packages/f5/80/78cf137edafa40ebc60879f48955219616563a9d46ac72c597da76196890/ujs-jsonvalidate-0.1.0.zip" } ] }