Python interface to the Met Office's Datapoint API
Project description
Datapoint for Python
A Python module for accessing weather data via the Met Office’s open data API known as `Datapoint.
Disclaimer: This module is in no way part of the datapoint project/service. This module is intended to simplify the use of Datapoint for small Python projects (e.g school projects). No support for this module is provided by the Met Office and may break as the Datapoint service grows/evolves. The author will make reasonable efforts to keep it up to date and fully featured.
Changelog
- The nearest site is now calculated using the haversine formula. The nearest
site may change.
Locations must be within 30km of the nearest forecast site.
- Support for observations from DataPoint added. Locations must be within 20km
of the nearest observation site.
- Deprecation warning: the following function names have been changed:
get_all_sites to get_forecast_sites, get_nearest_site to get_nearest_forecast_site.
Installation
$ pip install datapoint
You will also require a Datapoint API key from http://www.metoffice.gov.uk/datapoint/API.
Features
List forecast sites
Get nearest forecast site from latitiude and longitude
Get the following 5 day forecast types for any site
Daily (Two timesteps, midday and midnight UTC)
3 hourly (Eight timesteps, every 3 hours starting at midnight UTC)
Get observation sites
Get observations for any site
Contributing changes
Please feel free to submit issues and pull requests.
License
GPLv3.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file datapoint-0.7.0.tar.gz
.
File metadata
- Download URL: datapoint-0.7.0.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e5616ba9091b6fcd55f6a573bcc3e2069744477544eeb2e3cdb4fa445ffbb27 |
|
MD5 | ae2875caec73a4a66915ebd4e8f3db0d |
|
BLAKE2b-256 | 3642340702a3cc683ee8d91e4b8ed72672e1ec6bb4dab15aff596f285c4f350f |