{ "info": { "author": "Anton Romanovich", "author_email": "anthony.romanovich@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Markup :: HTML" ], "description": "jinja2schema\n============\n\n.. image:: https://travis-ci.org/aromanovich/jinja2schema.svg?branch=master\n :target: https://travis-ci.org/aromanovich/jinja2schema\n :alt: Build Status\n\n.. image:: https://coveralls.io/repos/aromanovich/jinja2schema/badge.svg?branch=master\n :target: https://coveralls.io/r/aromanovich/jinja2schema?branch=master\n :alt: Coverage\n\n.. image:: http://img.shields.io/pypi/v/jinja2schema.svg\n :target: https://pypi.python.org/pypi/jinja2schema\n :alt: PyPI Version\n\n.. image:: http://img.shields.io/pypi/dm/jinja2schema.svg\n :target: https://pypi.python.org/pypi/jinja2schema\n :alt: PyPI Downloads\n\nDemo_ | Documentation_ | GitHub_ | PyPI_\n\nA library that provides a heuristic type inference algorithm for `Jinja2`_ templates.\n\n.. code-block:: python\n\n >>> from jinja2schema import infer, to_json_schema\n >>> s = infer('{{ (x.a.b|first).name }}')\n >>> s\n {'x': {'a': {'b': [{'name': }]}}\n\n >>> s = infer('''\n ... {% for x in xs %}\n ... {{ x }}\n ... {% endfor %}\n ''')\n >>> s\n {'xs': []}\n >>> to_json_schema(s)\n {\n 'type': 'object',\n 'required': ['xs'],\n 'properties': {\n 'xs': {\n 'type': 'array'\n 'title': 'xs',\n 'items': {\n 'title': 'x',\n 'anyOf': [\n {'type': 'string'},\n {'type': 'number'},\n {'type': 'boolean'},\n {'type': 'null'}\n ],\n },\n }\n }\n }\n\nMore examples can be found at the `demo page`_.\n\nInstalling\n----------\n\n::\n\n pip install jinja2schema\n\nLicense\n-------\n\n`BSD license`_\n\n.. _Jinja2: http://jinja.pocoo.org/docs/\n.. _Demo: http://jinja2schema.aromanovich.ru/\n.. _demo page: http://jinja2schema.aromanovich.ru/\n.. _Documentation: https://jinja2schema.readthedocs.io/\n.. _GitHub: https://github.com/aromanovich/jinja2schema\n.. _PyPI: https://pypi.python.org/pypi/jinja2schema\n.. _BSD license: https://github.com/aromanovich/jinja2schema/blob/master/LICENSE", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://jinja2schema.readthedocs.io", "keywords": null, "license": "Copyright (c) 2014 by Anton Romanovich.\n\nSome rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n* Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials provided\n with the distribution.\n\n* The names of the contributors may not be used to endorse or\n promote products derived from this software without specific\n prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", "maintainer": null, "maintainer_email": null, "name": "jinja2schema", "package_url": "https://pypi.org/project/jinja2schema/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/jinja2schema/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://jinja2schema.readthedocs.io" }, "release_url": "https://pypi.org/project/jinja2schema/0.1.4/", "requires_dist": null, "requires_python": null, "summary": "Type inference for Jinja2 templates.", "version": "0.1.4" }, "last_serial": 2755681, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "dee841a3ef6c223e9569dc95fa88fd95", "sha256": "f15917a5e7c2e56d57b12f7435c65b26a8ea85ff637647ac6d469f0a83ec85c7" }, "downloads": -1, "filename": "jinja2schema-0.0.1.tar.gz", "has_sig": false, "md5_digest": "dee841a3ef6c223e9569dc95fa88fd95", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14263, "upload_time": "2014-07-17T19:33:07", "url": "https://files.pythonhosted.org/packages/c1/7a/e80ba57a2f99b4f417edda3d2fe241e8df781605b0bdd98fb86369c33e18/jinja2schema-0.0.1.tar.gz" } ], "0.0.10": [ { "comment_text": "", "digests": { "md5": "ed2e7e1d06225d5f49579ecc98f99545", "sha256": "9430032f875a6825693a074bf74fdf7c95d1f67b62f8ca305ae25e2e1fd63f6a" }, "downloads": -1, "filename": "jinja2schema-0.0.10.tar.gz", "has_sig": false, "md5_digest": "ed2e7e1d06225d5f49579ecc98f99545", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17183, "upload_time": "2014-09-23T10:05:52", "url": "https://files.pythonhosted.org/packages/e2/e2/275d6f50dcabd35292bc476852be6fdbce00b47259ce817e3c370404bdfa/jinja2schema-0.0.10.tar.gz" } ], "0.0.11": [ { "comment_text": "", "digests": { "md5": "f01d3cf038ba02cdbde8a2e0d4055768", "sha256": "2bc0bcd7aceb6702f71651af4234ec967081eb4fe58e83173f45837ffbe0e551" }, "downloads": -1, "filename": "jinja2schema-0.0.11.tar.gz", "has_sig": false, "md5_digest": "f01d3cf038ba02cdbde8a2e0d4055768", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17191, "upload_time": "2014-09-29T07:12:49", "url": "https://files.pythonhosted.org/packages/d7/1c/a587d4ca227a6e0a5fbb8c3cad659caf93d9c71939c6ca46c4a6319c4725/jinja2schema-0.0.11.tar.gz" } ], "0.0.12": [ { "comment_text": "", "digests": { "md5": "44f12797fa75db9caab15585499e28df", "sha256": "6e36b4019496aee41a061f694dc883345d1b5f89d5e0b0198d60659021879b1a" }, "downloads": -1, "filename": "jinja2schema-0.0.12.tar.gz", "has_sig": false, "md5_digest": "44f12797fa75db9caab15585499e28df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17299, "upload_time": "2014-10-01T08:18:41", "url": "https://files.pythonhosted.org/packages/df/96/fedba1b371d560f56e56799d7292449b9d4275efa1ed9f9dd4eb7eef3972/jinja2schema-0.0.12.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "2bbf03d82fe963f3309bd6a211a33d38", "sha256": "0476b92746e88c2eb43bc0866f4511ca248e963cb4cf2e2eaab255c93a053fb9" }, "downloads": -1, "filename": "jinja2schema-0.0.2.tar.gz", "has_sig": false, "md5_digest": "2bbf03d82fe963f3309bd6a211a33d38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15408, "upload_time": "2014-08-19T19:50:11", "url": "https://files.pythonhosted.org/packages/05/10/09da86060f485c7a1d063c7146f8e6f4a83f109bee89cc411f856af323d8/jinja2schema-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "183ac07737b9b355e43da1304e887e70", "sha256": "932f9cabee1fae5ec7fac2b336c5179435a0f732328c1e9a83c7d378fbed1eeb" }, "downloads": -1, "filename": "jinja2schema-0.0.3.tar.gz", "has_sig": false, "md5_digest": "183ac07737b9b355e43da1304e887e70", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16472, "upload_time": "2014-08-26T12:53:42", "url": "https://files.pythonhosted.org/packages/5a/67/d793569efb742bd14f6adb5180693f1c31e0391c0a4596cbe754c9013bb5/jinja2schema-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "7582ebc53172cdf105e061921365aa61", "sha256": "c3a181628a9f5ebb843277db95ad199ebb78c34f8b13822c9b3af6b343d17933" }, "downloads": -1, "filename": "jinja2schema-0.0.4.tar.gz", "has_sig": false, "md5_digest": "7582ebc53172cdf105e061921365aa61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16665, "upload_time": "2014-08-27T08:18:26", "url": "https://files.pythonhosted.org/packages/c8/6d/8e86d94b564ff060257a0fc6187cad644b7e1894e88f2eb55933e5af1720/jinja2schema-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "0c0f956c6fc8948e4f8a95f9093a8d10", "sha256": "c7b5cb3b3930a5a915d401a06f5778fc56616081635728249cf3ac247cceb140" }, "downloads": -1, "filename": "jinja2schema-0.0.5.tar.gz", "has_sig": false, "md5_digest": "0c0f956c6fc8948e4f8a95f9093a8d10", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16712, "upload_time": "2014-08-28T09:02:57", "url": "https://files.pythonhosted.org/packages/a1/e6/2dd7289f9880a888964c8d312f8aa45ec4dffa6b5b9499dc6aeb507e67dc/jinja2schema-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "2a2430793eae7f204c25fa7b873888cd", "sha256": "0efa0b259d1ec4bbf7639cb24ec174116e2c540c8e6569379a8cfe7a2fb9668e" }, "downloads": -1, "filename": "jinja2schema-0.0.6.tar.gz", "has_sig": false, "md5_digest": "2a2430793eae7f204c25fa7b873888cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16870, "upload_time": "2014-09-15T11:24:27", "url": "https://files.pythonhosted.org/packages/a8/74/d8c7437b964f07157307aee911e7d4e900201f27dd3e9f18215986600f4d/jinja2schema-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "7a714b4d9a74b0c7fd8c9d17c49060b3", "sha256": "31d8d6e3de51aef90705f0f042fb431b02326b992afbe7bde2857dc3551d47ff" }, "downloads": -1, "filename": "jinja2schema-0.0.7.tar.gz", "has_sig": false, "md5_digest": "7a714b4d9a74b0c7fd8c9d17c49060b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16928, "upload_time": "2014-09-19T11:47:57", "url": "https://files.pythonhosted.org/packages/5c/1f/fb6eb7f473c8ff09cc48ee4c7adb8ef68314fbf96237490d97f6a9c882cc/jinja2schema-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "859f37fd19239daad44d381575a31a62", "sha256": "58c9dc0d6314ec4b0ea44ea91d4c7fd8e98344edd99d3e927b61b9ffbb84a3ce" }, "downloads": -1, "filename": "jinja2schema-0.0.8.tar.gz", "has_sig": false, "md5_digest": "859f37fd19239daad44d381575a31a62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16954, "upload_time": "2014-09-22T07:23:02", "url": "https://files.pythonhosted.org/packages/a9/86/3559033ec08d2d19319a91b1bc0f08df840d0c327d2843ffc41d59f9125f/jinja2schema-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "0e9503bbc8543ea6c57e2407a821fb2a", "sha256": "7b477724d2583ae62c6efcc18291907b934172fb017df880f365dc56ced537c4" }, "downloads": -1, "filename": "jinja2schema-0.0.9.tar.gz", "has_sig": false, "md5_digest": "0e9503bbc8543ea6c57e2407a821fb2a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17035, "upload_time": "2014-09-22T12:37:58", "url": "https://files.pythonhosted.org/packages/a5/0c/451a16498a4dcf7b6f1bc1b1e2b10032cf26d638f1d9a7e41b976adb9a95/jinja2schema-0.0.9.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "0f3feacd5f813c86a63c7d26291fde27", "sha256": "32760b98cdd2fd5e05ee6b62c093bfa6df68eb78d9738688479432d02d9d89a6" }, "downloads": -1, "filename": "jinja2schema-0.1.0.tar.gz", "has_sig": false, "md5_digest": "0f3feacd5f813c86a63c7d26291fde27", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18064, "upload_time": "2014-10-11T17:57:44", "url": "https://files.pythonhosted.org/packages/e1/fc/57e5e209cfdbc71afdcc5f4d8e538db33dd5a7561fa6a3f4a2c4b48e2719/jinja2schema-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "f67d8fad05acba9f67eb53c3e77849fc", "sha256": "d52ec09115cb2e0a9c9025731aa32957b166da44bb0b9b2503cb8ddc7d02176a" }, "downloads": -1, "filename": "jinja2schema-0.1.1.tar.gz", "has_sig": false, "md5_digest": "f67d8fad05acba9f67eb53c3e77849fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18213, "upload_time": "2014-12-08T09:13:31", "url": "https://files.pythonhosted.org/packages/e3/13/31fdabe6b21d4326be3f7c55164485e49118fbfe03527dbcde45b31cbd3f/jinja2schema-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "4b69a4594c9ca84b6c0bbb368e3064ce", "sha256": "21f2c52bb0050584367ccf1c2edbd098db60e9c015a965ac98263c4bc4d9cd41" }, "downloads": -1, "filename": "jinja2schema-0.1.2.tar.gz", "has_sig": false, "md5_digest": "4b69a4594c9ca84b6c0bbb368e3064ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19087, "upload_time": "2015-12-31T12:40:13", "url": "https://files.pythonhosted.org/packages/a8/d7/a0ea1ac175b43046ce7725e88ae4ca1bb26511d27f083c9cc1728ed6ffe8/jinja2schema-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "cea07478ee10fb634e6e2eff6e5585a2", "sha256": "df60deba5d2b4a82a1bc042e20011559f370106aaf3973f4e76f1aee7cdb42b3" }, "downloads": -1, "filename": "jinja2schema-0.1.3.tar.gz", "has_sig": false, "md5_digest": "cea07478ee10fb634e6e2eff6e5585a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19154, "upload_time": "2017-03-23T19:01:26", "url": "https://files.pythonhosted.org/packages/9f/49/aa8c77e9a3ccf51cbb721a4ad2fce49c5aff59f9ffb93e693c1f4954ea73/jinja2schema-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "66d51d65a02b61607909c4a4e966670a", "sha256": "236e4ee6612a0ab5a5664c453c954a2c7e42b6be986c12f7b31f34f9082043bc" }, "downloads": -1, "filename": "jinja2schema-0.1.4.tar.gz", "has_sig": false, "md5_digest": "66d51d65a02b61607909c4a4e966670a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19794, "upload_time": "2017-04-05T18:04:12", "url": "https://files.pythonhosted.org/packages/60/6f/8db433c9b644654f77a5a85a251298b278b6fefe668c1d856ad34c61c811/jinja2schema-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "66d51d65a02b61607909c4a4e966670a", "sha256": "236e4ee6612a0ab5a5664c453c954a2c7e42b6be986c12f7b31f34f9082043bc" }, "downloads": -1, "filename": "jinja2schema-0.1.4.tar.gz", "has_sig": false, "md5_digest": "66d51d65a02b61607909c4a4e966670a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19794, "upload_time": "2017-04-05T18:04:12", "url": "https://files.pythonhosted.org/packages/60/6f/8db433c9b644654f77a5a85a251298b278b6fefe668c1d856ad34c61c811/jinja2schema-0.1.4.tar.gz" } ] }