{ "info": { "author": "Paul Traina", "author_email": "bulk+pypi@pst.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Operating System :: POSIX", "Programming Language :: Python :: 3", "Topic :: Games/Entertainment" ], "description": "=================\nIntel URL Parsing\n=================\n\nThis module started as a simple parser for Intel URLs for Niantic Lab's\nIngress game. It then grew, like an ugly monster, to support most flavors\nof Google Maps and Apple Maps URLs.\n\nWhen a URL is parsed, we return a structure that contains the latitude and\nlongitude of the place, along with a host of other values, such as a name\nfor the map, potential zoom levels for the map, and human captions if we\ncan decipher them from the map service provider.\n\nSee the source code for the exact return values.\n\nNiantic Labs is not responsible for this program, and neither endorses\nnor supports it. The author is not associated with Niantic Labs and\nmakes no representations.\n\nUse\n---\n::\n\n >>> from intelurls import check_mapurl, parse_mapurl, parse_natural\n >>> from pprint import pprint\n\nAn Ingress Intel URL:\n\n::\n\n >>> check_mapurl(\"this is a string with a url in it https://intel.ingress.com/intel?ll=37.821523,-122.377385&z=17 and more test\")\n 'https://intel.ingress.com/intel?ll=37.821523,-122.377385&z=17'\n\nA Google Maps URL with a caption:\n\n::\n\n >>> pprint(parse_mapurl(\"https://maps.google.com/maps?ll=37.765727,-122.431961&cid=10889150637731333995&q=Beck's%20Motor%20Lodge\"))\n {'caption': \"Beck's Motor Lodge\",\n 'latlng': [37.765727, -122.431961],\n 'name': 'map_@37.765727,-122.431961'}\n\nA Google Maps ShortURL:\n\n::\n\n >>> pprint(parse_mapurl(\"http://goo.gl/maps/r6T6a\"))\n {'caption': '',\n 'latlng': [45.0215057, 14.6293757],\n 'name': 'map_@45.0215057,14.6293757'}\n\nA natural language location:\n\n::\n\n >>> pprint(parse_natural(\"San Francisco, CA\"))\n {'caption': 'San Francisco, CA, USA',\n 'latlng': [37.7749295, -122.4194155],\n 'name': 'map_@37.7749295,-122.4194155_z13',\n 'zoom': 13}\n\nFor a full list of everything we can parse, look at `tests/gentest.py`,\nthis list is fairly extensive.\n\nTesting\n-------\n\nThere are so many combinations of URLs, that a regression test jig\nwas created. Most of the code is self-contained, however the natural\nlanguage location and URLs that need expansion or page scraping need\nto interact with a third party service (typically the Google Maps API)\nand that data has been known to change over time.\n\nA failed test isn't a reason to not install the module.\n\n`valid.out` is correct at the time of this publication, but may get\nout of date if the third party services change or move map items. If\nunit test fails, it's best to examine -why- it failed to see if it is\nan actual bug or just a change by a third party. If you need to, you\nmay re-create `valid.out` with `gentest.py`\n\nChangeLog\n---------\n\n0.0.2: README.rst formatting\n0.0.1: Original publication\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/pleasantone/intelurls", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "intelurls", "package_url": "https://pypi.org/project/intelurls/", "platform": "", "project_url": "https://pypi.org/project/intelurls/", "project_urls": { "Homepage": "https://gitlab.com/pleasantone/intelurls" }, "release_url": "https://pypi.org/project/intelurls/0.0.5/", "requires_dist": [ "requests", "geocoder", "check-manifest ; extra == 'dev'", "coverage ; extra == 'test'" ], "requires_python": "", "summary": "Parse Ingress Intel, Google Maps, and Apple Maps URLs", "version": "0.0.5" }, "last_serial": 4539960, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "798dcaded2a81688386eb611ba464eb6", "sha256": "d4c4972c17a597fe94f9587156f31dbd2d83936b74ed52d8829e786b53cab5ff" }, "downloads": -1, "filename": "intelurls-0.0.1.tar.gz", "has_sig": false, "md5_digest": "798dcaded2a81688386eb611ba464eb6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17592, "upload_time": "2016-05-09T19:36:26", "url": "https://files.pythonhosted.org/packages/af/0a/40fed62fc5623fe5cde999d46c898008a273a9cfb7a470366f2902c09ae1/intelurls-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "e13f6a7cd42d731c4aae6c718e8b8458", "sha256": "ec4915672550829b02d2d3d3bea90058a5186d69e0cdd7cbcc7442607402e91c" }, "downloads": -1, "filename": "intelurls-0.0.2.tar.gz", "has_sig": false, "md5_digest": "e13f6a7cd42d731c4aae6c718e8b8458", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17945, "upload_time": "2016-05-09T19:57:56", "url": "https://files.pythonhosted.org/packages/9e/10/82ea560b2adb2845777cd3c33e915f36d174cb588f90a0851dd7fe12c1ef/intelurls-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "1099ba673e62cc0e5ccb253f65e581bd", "sha256": "a6409301f107a21591e64bf6942f0a646496c4f62e9b7ed84a01cba7ac9b5e3c" }, "downloads": -1, "filename": "intelurls-0.0.3.tar.gz", "has_sig": false, "md5_digest": "1099ba673e62cc0e5ccb253f65e581bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18076, "upload_time": "2017-02-22T08:11:35", "url": "https://files.pythonhosted.org/packages/80/7f/6f039351a8a851e950676c000c4737faf00e044df284df894e82d3a9aa77/intelurls-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "52ee00f9c707a44bb0d99c958ad4ce95", "sha256": "df33bb21c0f9d2bab800d2cf9cb4294c37bd95f4672aa60381c77225f98cb31c" }, "downloads": -1, "filename": "intelurls-0.0.4.tar.gz", "has_sig": false, "md5_digest": "52ee00f9c707a44bb0d99c958ad4ce95", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18093, "upload_time": "2017-02-24T18:12:32", "url": "https://files.pythonhosted.org/packages/b6/fb/2e9846ffd38fb166f1f8026fee24deb7c728dd50676d11bc757e6b811262/intelurls-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "24f9baae867cedcb92826dafbd5dfb2a", "sha256": "2f043b1bd32d8428be8202a500a51adb32a36f98370fb0c9f228dfbf9bd1ce87" }, "downloads": -1, "filename": "intelurls-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "24f9baae867cedcb92826dafbd5dfb2a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17264, "upload_time": "2018-11-28T19:33:12", "url": "https://files.pythonhosted.org/packages/26/1f/7abe62b43717df3ddb485ff594dbe6a1bb5d23f572bb2523f1333124d184/intelurls-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d8813362044f2adafcf7c18c56cfa742", "sha256": "ea6395eab00a8080a7a4779c7cbe6df5757a1d127578be5b583bbd64c5337879" }, "downloads": -1, "filename": "intelurls-0.0.5.tar.gz", "has_sig": false, "md5_digest": "d8813362044f2adafcf7c18c56cfa742", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17111, "upload_time": "2018-11-28T19:33:13", "url": "https://files.pythonhosted.org/packages/a9/6c/698fbdfdab69e223f4e861a80298c3851e0fb9378d51d08d7f8299f53475/intelurls-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "24f9baae867cedcb92826dafbd5dfb2a", "sha256": "2f043b1bd32d8428be8202a500a51adb32a36f98370fb0c9f228dfbf9bd1ce87" }, "downloads": -1, "filename": "intelurls-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "24f9baae867cedcb92826dafbd5dfb2a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17264, "upload_time": "2018-11-28T19:33:12", "url": "https://files.pythonhosted.org/packages/26/1f/7abe62b43717df3ddb485ff594dbe6a1bb5d23f572bb2523f1333124d184/intelurls-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d8813362044f2adafcf7c18c56cfa742", "sha256": "ea6395eab00a8080a7a4779c7cbe6df5757a1d127578be5b583bbd64c5337879" }, "downloads": -1, "filename": "intelurls-0.0.5.tar.gz", "has_sig": false, "md5_digest": "d8813362044f2adafcf7c18c56cfa742", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17111, "upload_time": "2018-11-28T19:33:13", "url": "https://files.pythonhosted.org/packages/a9/6c/698fbdfdab69e223f4e861a80298c3851e0fb9378d51d08d7f8299f53475/intelurls-0.0.5.tar.gz" } ] }