Skip to main content

GeoUK Python Library

The GeoUK Python library provides a pythonic interface to the GeoUK API. It includes an API client class, and a set of resource classes.

Installation

pip install geouk

Requirements

  • Python 3.7+

Usage

import geouk


client = geouk.Client('your_api_key...')

# Get a list of place names and postcodes starting with the query string's
# first 2 characters (ideal for use with a typeahead).
suggestions = geouk.resources.Place.typeahead(client, 'wo...')

# Fetch a list of `Place`s that match the given query string
places = geouk.resources.Place.search(client, 'worcester')

print(places[0].humanized_name, places[0].geo_coords)

>> Worcester [52.18935, -2.22001]

# Fetch all the (data) sources
sources = geouk.resources.Source.all(client)

# Fetch a single (data) source
source = geouk.resources.Source.one(client, 'geonames')

Release files for GeoUK 0.0.6

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

Source distribution (sdist)

Source distribution for GeoUK 0.0.6
File Size Uploaded
GeoUK-0.0.6.tar.gz 6.4 kB Details

Release files / GeoUK-0.0.6.tar.gz

Download URL GeoUK-0.0.6.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ad5d0cd5bf831650e7c743c157515221d4ea7ea5b53c7feb2dda1e860375eaf9
BLAKE2b-256 checksum
How to use checksums
311ec62cd8d9e6b99f84febae8c3b5028533941105dbebee864797e5388d3005
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.17

Release history Release notifications | RSS feed

This release

0.0.6 This release

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

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