
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Telemetry
A Python module for accessing weather data via the Met Office's open data API known as DataPoint.
For personal reasons I have changed my GitHub username. The repository location has changed. The homepage link on PyPi is up-to-date
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.
$ pip install DataPoint
You will also require a DataPoint API key.
For more installation methods see the installation guide.
Detailed documentation for this project is available on Read the Docs. This project uses semantic versioning as defined at semver.org.
import datapoint
# Create connection to DataPoint with your API key
conn = datapoint.connection(api_key="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")
# Get the nearest site for my latitude and longitude
site = conn.get_nearest_forecast_site(51.500728, -0.124626)
# Get a forecast for my nearest site with 3 hourly timesteps
forecast = conn.get_forecast_for_site(site.location_id, "3hourly")
# Get the current timestep from the forecast
current_timestep = forecast.now()
# Print out the site and current weather
print(site.name + "-" + current_timestep.weather.text)
Example output
London - Heavy rain
See examples directory for more in depth examples.
Please feel free to submit issues and pull requests.
GPLv3
FAQs
Python interface to the Met Office's Datapoint API
We found that datapoint demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.