{ "info": { "author": "Baptiste Fontaine", "author_email": "b@ptistefontaine.fr", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT 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", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Markup :: HTML" ], "description": "===========\njinja2_maps\n===========\n\n``jinja2_maps`` is a set of filters to display locations in Jinja2 templates.\n\n.. image:: https://travis-ci.org/bfontaine/jinja2_maps.svg?branch=master\n :target: https://travis-ci.org/bfontaine/jinja2_maps\n\nInstall\n-------\n\n.. code-block::\n\n pip install jinja2_maps\n\nSupport\n-------\n\n============= === ===\nService URL Map\n============= === ===\nOpenStreetMap Yes Yes\nGoogle Maps Yes -\nApple Maps Yes -\nBing Maps Yes -\nMappy Yes -\n============= === ===\n\nBoth Python 2.x and 3.x are supported.\n\nUsage\n-----\n\nAll filters take a location as a dict with ``latitude`` and ``longitude`` keys.\nYou can also pass an object with these attributes.\n\nBefore using any template you need to add the filters to your Jinja2\nenvironment:\n\n.. code-block:: python\n\n from jinja2_maps import activate_filters\n activate_filters(your_env)\n\nIf using Flask you can do the following:\n\n.. code-block:: python\n\n from jinja2_maps import activate_filters\n activate_filters(app.jinja_env)\n\nURLs\n~~~~\n\n.. code-block:: html+jinja\n\n Check on OpenStreetMap\n Check on Google Maps\n Check in Maps\n Check on Bing Maps\n Check on Mappy\n\nURLs also support giving the zoom level (default is ``16``):\n\n.. code-block:: html+jinja\n\n Check on OpenStreetMap\n\nMaps\n~~~~\n\n.. code-block:: html+jinja\n\n {{ your_location | osm_map(width=500, height=400) }}", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bfontaine/jinja2_maps", "keywords": null, "license": "Copyright \u00a9 2016 \u2013 Baptiste Fontaine\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "jinja2_maps", "package_url": "https://pypi.org/project/jinja2_maps/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/jinja2_maps/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/bfontaine/jinja2_maps" }, "release_url": "https://pypi.org/project/jinja2_maps/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Maps filters for Jinja2", "version": "0.2.0" }, "last_serial": 2022896, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "ff8303d8cff75a921c4d15d45a837843", "sha256": "5952eef088a36d444e9f1ccccf1a73ab3ea376023374f74770196dae3e8dadbe" }, "downloads": -1, "filename": "jinja2_maps-0.1.0.tar.gz", "has_sig": false, "md5_digest": "ff8303d8cff75a921c4d15d45a837843", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4017, "upload_time": "2016-03-18T22:47:33", "url": "https://files.pythonhosted.org/packages/e7/d4/fb6addb64a843df109ad890c23a880d06a1a77b3bb862343088f6d5019e5/jinja2_maps-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "90d214a6ae728a537738ff9ad2f078d6", "sha256": "944dfb1516b5e31fb28c8b9f11b9ed9e5daa7bfc6cae6d9b2d5f81f7bf88003d" }, "downloads": -1, "filename": "jinja2_maps-0.1.1.tar.gz", "has_sig": false, "md5_digest": "90d214a6ae728a537738ff9ad2f078d6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4215, "upload_time": "2016-03-18T23:02:52", "url": "https://files.pythonhosted.org/packages/a4/a4/8e7f57386f8b913c9d3901294076afd5786422b16938551a770853fc0025/jinja2_maps-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "c63f68ba64f779e6668b927501644b1c", "sha256": "5e7a755540f4fb06ab97b23b885fc064667ad395b93474ef2b46a22e630f54d4" }, "downloads": -1, "filename": "jinja2_maps-0.2.0.tar.gz", "has_sig": false, "md5_digest": "c63f68ba64f779e6668b927501644b1c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5190, "upload_time": "2016-03-23T15:17:57", "url": "https://files.pythonhosted.org/packages/2a/db/8a6419327b13355349981bdce6aeebe7e703f53b86fa3f80014c90cc731e/jinja2_maps-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c63f68ba64f779e6668b927501644b1c", "sha256": "5e7a755540f4fb06ab97b23b885fc064667ad395b93474ef2b46a22e630f54d4" }, "downloads": -1, "filename": "jinja2_maps-0.2.0.tar.gz", "has_sig": false, "md5_digest": "c63f68ba64f779e6668b927501644b1c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5190, "upload_time": "2016-03-23T15:17:57", "url": "https://files.pythonhosted.org/packages/2a/db/8a6419327b13355349981bdce6aeebe7e703f53b86fa3f80014c90cc731e/jinja2_maps-0.2.0.tar.gz" } ] }