Skip to main content

Client implementation for open-meteo

Project description

jetblack-open-meteo

A client API for open-meteo.

Status

This is work in progress.

Usage

Rather than provide a client, this library provides the url and params.

This means you can use the http library of you choice.

For example with requests:

import pandas as pd
import requests

from jetblack_open_meteo import prepare_weather_forecast_request


url, params = prepare_weather_forecast_request(
    (51.50242846391432, -0.1423227420691731),
    hourly=['temperature_2m'],
)

# Use requests to get the data.
response = requests.get(url, params=params)
data = response.json()

df = pd.DataFrame(data['hourly'])
print(df)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jetblack_open_meteo-1.0.0a0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jetblack_open_meteo-1.0.0a0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file jetblack_open_meteo-1.0.0a0.tar.gz.

File metadata

  • Download URL: jetblack_open_meteo-1.0.0a0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for jetblack_open_meteo-1.0.0a0.tar.gz
Algorithm Hash digest
SHA256 1175d3e176195b40c7b15262385bad246d13da114509fc2b82f55caf613155d8
MD5 1c8eb81c78c5ba4bf9af740cec944996
BLAKE2b-256 32ffc0c6be385f62c167590101e54517210b18c03dcce21e4278eca2c42d0bce

See more details on using hashes here.

File details

Details for the file jetblack_open_meteo-1.0.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for jetblack_open_meteo-1.0.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 db0b542779bb8efc2e69e5dc8838967bde3d4b59d2d54e783d4bd9822824b1d4
MD5 3fcc2e76c5c1f94457740f92a412f655
BLAKE2b-256 d92368ccae716958739a98aff56f2ec626e0af99ee8460db545960974c44b21c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page