{ "info": { "author": "Colm O'Connor", "author_email": "colm.oconnor.github@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries", "Topic :: Text Processing :: Markup" ], "description": "# StrictYAMLJSONSchema\n\nTranslate JSON schemas in to StrictYAML schema.\n\n\nSimple example:\n\n```json\n{\n \"type\": \"object\",\n \"properties\": {\n \"age\": {\n \"type\": \"integer\"\n },\n \"name\": {\n \"type\": \"string\"\n },\n \"possessions\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n \"required\": [\"age\", \"name\", \"possession\"]\n}\n\n```\n\n\n```yaml\n# All about the character\nname: Ford Prefect\nage: 42\npossessions:\n- Towel\n\n```\n\n\n```python\nfrom strictyamljsonschema import load_schema\nfrom strictyaml import load\nimport json\n\n```\n\n\n\n\n\nParse correctly:\n\n\n```python\nprint(load(yaml_snippet, load_schema(json.loads(json_schema))).data)\n\n```\n\n```yaml\nOrderedDict([('name', 'Ford Prefect'), ('age', 42), ('possessions', ['Towel'])])\n```\n\n\n\n\n\n\n## Install\n\n```sh\n$ pip install strictyamljsonschema\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "yaml", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "strictyamljsonschema", "package_url": "https://pypi.org/project/strictyamljsonschema/", "platform": "", "project_url": "https://pypi.org/project/strictyamljsonschema/", "project_urls": null, "release_url": "https://pypi.org/project/strictyamljsonschema/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "Create StrictYAML schemas from jsonschemas", "version": "0.1.0" }, "last_serial": 4397133, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "c76cf4cbe5c7d8cafda9916d76fb87c6", "sha256": "bb274f2cc0eee3426a4b40f4fa7a31eef82bce8d3edbac0b211c0c1f4c5be8a4" }, "downloads": -1, "filename": "strictyamljsonschema-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c76cf4cbe5c7d8cafda9916d76fb87c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3170, "upload_time": "2018-10-20T12:56:02", "url": "https://files.pythonhosted.org/packages/ba/6b/6e3aee092626d9deeba02910ab6a8e9f13da72d7cb93a8eb99505a793083/strictyamljsonschema-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c76cf4cbe5c7d8cafda9916d76fb87c6", "sha256": "bb274f2cc0eee3426a4b40f4fa7a31eef82bce8d3edbac0b211c0c1f4c5be8a4" }, "downloads": -1, "filename": "strictyamljsonschema-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c76cf4cbe5c7d8cafda9916d76fb87c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3170, "upload_time": "2018-10-20T12:56:02", "url": "https://files.pythonhosted.org/packages/ba/6b/6e3aee092626d9deeba02910ab6a8e9f13da72d7cb93a8eb99505a793083/strictyamljsonschema-0.1.0.tar.gz" } ] }