{ "info": { "author": "Jamie Bull", "author_email": "jamie.bull@oco-carbon.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "PyGLE\r\n=====\r\n\r\nPyGLE is a wrapper for the WiGLE WiFi mapping API.\r\n\r\nInstallation\r\n------------\r\n\r\nTo install PyGLE for Python 2.x or 3.x just call ``pip install pygle``.\r\n\r\nYou'll also need to set up an account with WiGLE and retrieve your API\r\ndetails to go into the config.py file.\r\n\r\nUsage\r\n-----\r\n\r\nUsing the API wrapper is very much like using the API itself. PyGLE has\r\nfour modules, corresponding to the four sections of the WiGLE API v2. So\r\neach section is a module in PyGLE and each API endpoint is a function in\r\nthat module.\r\n\r\nTo use the API, first import the section, then call the endpoint\r\nfunction. So to perform an authenticated GET request against an\r\nendpoint:\r\n\r\n::\r\n\r\n >>> from pygle import network\r\n >>> network.geocode(addresscode=\"London\")\r\n {'success': True, 'results': [{'address': {'city': 'London', \r\n 'county': 'London', 'state_district': 'Greater London', 'state': 'England', \r\n 'country': 'UK', 'country_code': 'gb'}, 'lat': 51.50732, 'lon': -0.1276399, \r\n 'importance': 0.9754895765402, 'place_id': 233847357, \r\n 'licence': 'Data (c) OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright', \r\n 'osm_type': 'relation', \r\n 'boundingbox': [51.28676, 51.69187, -0.5103699, 0.33401]}]}\r\n\r\nThis returns a ``dict``, or raises an ``HTTPError`` if something went\r\nwrong.\r\n\r\nAPI documentation\r\n-----------------\r\n\r\nThe PyGLE API wrapper is fully documented with docstrings which were\r\ncorrect as of 11/2/2017, but in case of any disagreement between these\r\nand the `interactive WiGLE API docs `__,\r\nthe WiGLE docs take precedence. Please submit any discrepancies as\r\nissues `here `__.\r\n\r\nThe sections and endpoints available are:\r\n\r\n- `file `__\r\n\r\n - `kml `__\r\n - `transactions `__\r\n - `upload `__\r\n\r\n- `network `__\r\n\r\n - `comment `__\r\n - `detail `__\r\n - `geocode `__\r\n - `search `__\r\n\r\n- `stats `__\r\n\r\n - `countries `__\r\n - `general `__\r\n - `group `__\r\n - `regions `__\r\n - `site `__\r\n - `standings `__\r\n - `user `__\r\n\r\n- `profile `__\r\n\r\n - `apiToken `__\r\n - `user `__", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/jamiebull1/pygle/tarball/v0.20", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jamiebull1/pygle", "keywords": "WiGLE,WiFi,mapping", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "pygle", "package_url": "https://pypi.org/project/pygle/", "platform": "any", "project_url": "https://pypi.org/project/pygle/", "project_urls": { "Download": "https://github.com/jamiebull1/pygle/tarball/v0.20", "Homepage": "https://github.com/jamiebull1/pygle" }, "release_url": "https://pypi.org/project/pygle/0.20/", "requires_dist": null, "requires_python": null, "summary": "API wrapper for WiGLE", "version": "0.20" }, "last_serial": 2880073, "releases": { "0.19": [ { "comment_text": "", "digests": { "md5": "f310a9a2bef6727d5babf33900acfdf9", "sha256": "dfd4b43a3c978c5b070f106e36748849d13abdf88ed1beef3285b77947fa0f22" }, "downloads": -1, "filename": "pygle-0.19.tar.gz", "has_sig": false, "md5_digest": "f310a9a2bef6727d5babf33900acfdf9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7095, "upload_time": "2017-05-17T08:55:54", "url": "https://files.pythonhosted.org/packages/97/9a/72d0fa571d4f32fc134067c5959c44c3b897c56441c8f657d9b4f3d6ea42/pygle-0.19.tar.gz" } ], "0.20": [ { "comment_text": "", "digests": { "md5": "b4c304ee33aba96ce320979e7cd8eebb", "sha256": "d5c130f4c0e26ed00862dbcafef2a1e03f5bafbf3bfe2073542688acfb05b4a4" }, "downloads": -1, "filename": "pygle-0.20.tar.gz", "has_sig": false, "md5_digest": "b4c304ee33aba96ce320979e7cd8eebb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7066, "upload_time": "2017-05-17T09:45:19", "url": "https://files.pythonhosted.org/packages/bb/90/609317e9a4fc990621606d5e95c6208701386e1c8cf117761e63768cce06/pygle-0.20.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b4c304ee33aba96ce320979e7cd8eebb", "sha256": "d5c130f4c0e26ed00862dbcafef2a1e03f5bafbf3bfe2073542688acfb05b4a4" }, "downloads": -1, "filename": "pygle-0.20.tar.gz", "has_sig": false, "md5_digest": "b4c304ee33aba96ce320979e7cd8eebb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7066, "upload_time": "2017-05-17T09:45:19", "url": "https://files.pythonhosted.org/packages/bb/90/609317e9a4fc990621606d5e95c6208701386e1c8cf117761e63768cce06/pygle-0.20.tar.gz" } ] }