Skip to main content

Functions for retrieving weather data from rp5.ru

Project description

weather_rp5

This package provides functions for automatically retrieving weather records from the rp5.ru website.

Installation

To install this project, run:

pip install weather_rp5

Example Usage

To get records for the weather station in Poitiers starting on February 1, 2024 and ending on April 1, 2024, you may use the following code:

from datetime import date
import pandas as pd
from weather_rp5 import get_station_id, get_weather_data

url = 'https://rp5.ru/Weather_archive_in_Poitiers_(airport)'
wmo_id = get_station_id(url)
start = date(2024, 2, 1)
end = date(2024, 4, 1)
df = get_weather_data(wmo_id, start, end, False)

If you need data from the airport (METAR) station, you may proceed as follows:

url = 'https://rp5.ru/Weather_archive_in_Sao_Paulo_(airport),_METAR'
station_id = get_station_id(url)
start = date(2024, 2, 1)
end = date(2024, 4, 1)
df = get_weather_data(station_id, start, end, True)

Acknowledgement

The functions for sending post requests were taken from https://github.com/KonstantenKomkov/weather.

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

weather_rp5-1.5.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

weather_rp5-1.5-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file weather_rp5-1.5.tar.gz.

File metadata

  • Download URL: weather_rp5-1.5.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for weather_rp5-1.5.tar.gz
Algorithm Hash digest
SHA256 186a0104bce7e6655ba3348a2c591894926f26759b339412766a1504bb7b7f80
MD5 64b2dafd3a4d3a088bfd10a7a832cab1
BLAKE2b-256 82dcbb97447a17344449288dd833f11237bcab4d387f6f682ed07feb826ef06a

See more details on using hashes here.

Provenance

The following attestation bundles were made for weather_rp5-1.5.tar.gz:

Publisher: publish.yml on jakmuell/weather_rp5

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file weather_rp5-1.5-py3-none-any.whl.

File metadata

  • Download URL: weather_rp5-1.5-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for weather_rp5-1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 046dc240577f75f1578be805da667e50d5f8f1fa351a23fc531ec4aac984357b
MD5 81562dfb02129eb37c3840c880fa25f5
BLAKE2b-256 93027aee1fb12894c478e4fd8e00428dd144c1f6d0bc8ef46007f3d900ba8dc8

See more details on using hashes here.

Provenance

The following attestation bundles were made for weather_rp5-1.5-py3-none-any.whl:

Publisher: publish.yml on jakmuell/weather_rp5

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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