{ "info": { "author": "Tom Manterfield @ Tic Tocs Tech", "author_email": "tom@tictocs.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Topic :: Software Development :: Build Tools" ], "description": "# markdown-google-map\nPython markdown extension for Google Maps. Should be [loaded as an extension](https://python-markdown.github.io/extensions/) \nto the [markdown library](https://python-markdown.github.io/).\n\n### Installation:\npip install mdx-google-map\n\n### Usage:\n```python\nimport markdown\n\nmd = markdown.Markdown(extensions=[\"mdx_google_map\"])\nmd.convert(\"[map:Central Paris]\")\n```\n\nOr if you want to alter the config:\n\n```python\nimport markdown\nfrom mdx_google_map import GoogleMapExtension\n\nmd = markdown.Markdown(extensions=[GoogleMapExtension(...config values...)])\nmd.convert(\"[map:Central Paris]\")\n```\n\n### Markdown syntax:\nIt's pretty simple:\n\n```markdown\nHey look at my map!\n[map:City of London]\n```\n\nWhich will output:\n\n```html\n
\nHey look at my map!\n\n
\n```\n\n### Configuring:\nYou will need an API Key from Google to use the Maps APIs, once obtained it can\nbe configured as an environment variable:\n\n`$ export GOOGLE_API_KEY=MyGoogleAPIKey1234`\n\nor simply passed through to the extension as with any other config:\n\n`GoogleMapExtension(google_api_key='MyGoogleAPIKey1234')`\n\nYou can also load the API key by passing a callable that conforms to the same\nsyntax as dict.get('KEY', 'default value'). This is more of an\nimplementation detail, but it is supported if you find the need.\n\n```python\n\nmy_dict = {'GOOGLE_API_KEY': 'MyGoogleAPIKey1234'}\n\nGoogleMapExtension(config_getter=my_dict.get)\n```\n\n***Explicitly passing the google_api_key config param takes precedence over other\nmethods of setting the API Key.***\n\n*All other config is optional and detailed below*\n\nConfig is passed through when loading the extension as with the API Key example\nabove:\n\n`GoogleMapExtension(width='500', height='400', ...)`\n\n- **width**: Sets width of iframe. Default is 500\n- **height**: Sets height of iframe. Default is 300\n- **fluid**: If True the iframe will be wrapped in a styled outer div set to 100%\n width. This will make the iframe expand to full width of the page (or any \n other container you put it in) fluidly, whilst maintaining the same aspect\n ratio. Default is False.\n\n### Contributing\nPull requests are welcome, though we'd be grateful if you would \nopen an issue to discuss your feature/bugfix first.\n\nTo install the development dependencies locally it's:\n`$ pip install -e .[dev]`\n\nTo run the tests it is just:\n`$ python -m unittest `\n\nYou'll need to follow PEP8 in addition to the [Google Python Style Guide.](https://github.com/google/styleguide/blob/gh-pages/pyguide.md)\nSensible deviations from the above will be considered.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tictocs/markdown-google-map/", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "mdx-google-map", "package_url": "https://pypi.org/project/mdx-google-map/", "platform": "", "project_url": "https://pypi.org/project/mdx-google-map/", "project_urls": { "Bug Reports": "https://github.com/tictocs/markdown-google-map/issues", "Homepage": "https://github.com/tictocs/markdown-google-map/", "Source": "https://github.com/tictocs/markdown-google-map/" }, "release_url": "https://pypi.org/project/mdx-google-map/1.0.1/", "requires_dist": [ "markdown (>=2.6.11)", "beautifulsoup4; extra == 'dev'" ], "requires_python": "", "summary": "A python Markdown extension providing Google Maps syntax", "version": "1.0.1" }, "last_serial": 4276209, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "7e4a40d08915729cdf346975e3fa94bf", "sha256": "89a85a21187b6864bb7ef101a3198450da0f238f56c4e1c2478e501d933aa073" }, "downloads": -1, "filename": "mdx_google_map-1.0.0.tar.gz", "has_sig": false, "md5_digest": "7e4a40d08915729cdf346975e3fa94bf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2617, "upload_time": "2018-09-15T22:30:10", "url": "https://files.pythonhosted.org/packages/37/61/10814228a478b59ebfe58303a55162930de9f17a53623a1c10a5b3fe9334/mdx_google_map-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "6c547882faf6510458a7559e0349b13a", "sha256": "e5b2d1149c28fb8c24029aaf33375cd99882e981634274ed2b121ca7ec31083b" }, "downloads": -1, "filename": "mdx_google_map-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "6c547882faf6510458a7559e0349b13a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4285, "upload_time": "2018-09-16T09:38:43", "url": "https://files.pythonhosted.org/packages/10/66/716f30560274cdb2dcba05b4bc85872a1637b549438517b3f435829a09de/mdx_google_map-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d7991a3fead0b87cad8e5d0cb18ccb54", "sha256": "ce41990093b7922c2cc65478cac6801c175462aeddfc00bb7964421b59672847" }, "downloads": -1, "filename": "mdx_google_map-1.0.1.tar.gz", "has_sig": false, "md5_digest": "d7991a3fead0b87cad8e5d0cb18ccb54", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4161, "upload_time": "2018-09-16T09:38:45", "url": "https://files.pythonhosted.org/packages/e0/d3/dc1e9527eed64a8a0357d97df5ef64890ab97b0c81c1952ba3f7629d3a96/mdx_google_map-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6c547882faf6510458a7559e0349b13a", "sha256": "e5b2d1149c28fb8c24029aaf33375cd99882e981634274ed2b121ca7ec31083b" }, "downloads": -1, "filename": "mdx_google_map-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "6c547882faf6510458a7559e0349b13a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4285, "upload_time": "2018-09-16T09:38:43", "url": "https://files.pythonhosted.org/packages/10/66/716f30560274cdb2dcba05b4bc85872a1637b549438517b3f435829a09de/mdx_google_map-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d7991a3fead0b87cad8e5d0cb18ccb54", "sha256": "ce41990093b7922c2cc65478cac6801c175462aeddfc00bb7964421b59672847" }, "downloads": -1, "filename": "mdx_google_map-1.0.1.tar.gz", "has_sig": false, "md5_digest": "d7991a3fead0b87cad8e5d0cb18ccb54", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4161, "upload_time": "2018-09-16T09:38:45", "url": "https://files.pythonhosted.org/packages/e0/d3/dc1e9527eed64a8a0357d97df5ef64890ab97b0c81c1952ba3f7629d3a96/mdx_google_map-1.0.1.tar.gz" } ] }