Skip to main content

PyGLE

PyGLE is a wrapper for the WiGLE WiFi mapping API.

Installation

To install PyGLE for Python 2.x or 3.x just call pip install pygle.

You’ll also need to set up an account with WiGLE and retrieve your API details to go into the config.py file.

Usage

Using the API wrapper is very much like using the API itself. PyGLE has four modules, corresponding to the four sections of the WiGLE API v2. So each section is a module in PyGLE and each API endpoint is a function in that module.

To use the API, first import the section, then call the endpoint function. So to perform an authenticated GET request against an endpoint:

>>> from pygle import network
>>> network.geocode(addresscode="London")
{'success': True, 'results': [{'address': {'city': 'London',
'county': 'London', 'state_district': 'Greater London', 'state': 'England',
'country': 'UK', 'country_code': 'gb'}, 'lat': 51.50732, 'lon': -0.1276399,
'importance': 0.9754895765402, 'place_id': 233847357,
'licence': 'Data (c) OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright',
'osm_type': 'relation',
'boundingbox': [51.28676, 51.69187, -0.5103699, 0.33401]}]}

This returns a dict, or raises an HTTPError if something went wrong.

API documentation

The PyGLE API wrapper is fully documented with docstrings which were correct as of 11/2/2017, but in case of any disagreement between these and the interactive WiGLE API docs, the WiGLE docs take precedence. Please submit any discrepancies as issues here.

The sections and endpoints available are:

Metadata

Release files for pygle 0.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygle 0.20
File Size Uploaded
pygle-0.20.tar.gz 7.1 kB Details

Release files / pygle-0.20.tar.gz

Download URL pygle-0.20.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d5c130f4c0e26ed00862dbcafef2a1e03f5bafbf3bfe2073542688acfb05b4a4
BLAKE2b-256 checksum
How to use checksums
bb90609317e9a4fc990621606d5e95c6208701386e1c8cf117761e63768cce06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.20 This release

1 release file

0.19

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page