Skip to main content

world-rainfall-data

Mean annual precipitation for 270 cities worldwide. A tiny zero-dependency package for both JavaScript and Python, with the raw CSV bundled.

Data by GeoRank.place — see the interactive rainfall map. Licensed CC-BY-4.0.

Method

Annual precipitation (mm) from CHELSA v2.1 climatological normals (1981–2010), bias-corrected against ~25,000 GHCN-M v4 stations, sampled per city. Full sources in ATTRIBUTION.md.

Install

npm install world-rainfall-data      # JavaScript / TypeScript
pip install world-rainfall-data      # Python

Usage

JavaScript / TypeScript

import { byCity, byCountry, cities } from "world-rainfall-data";

byCity("Lisbon", "PT");   // { city: "Lisbon", countryIso2: "PT", annualMm: 665, ... }
byCountry("ES");          // every Spanish city
cities().length;          // 270

Python

from world_rainfall_data import by_city, by_country, cities

by_city("Lisbon", "PT")   # {"city": "Lisbon", "country_iso2": "PT", "annual_mm": 665, ...}
by_country("ES")          # every Spanish city
len(cities())             # 270

Data schema

Field Type Description
city string City name
countryIso2 / country_iso2 string ISO-3166 alpha-2 country code
lat, lon number Coordinates (decimal degrees)
annualMm / annual_mm number Mean annual precipitation, mm
source string Methodology label

The raw CSV ships in the package (world_rainfall_data/world-rainfall.csv).

Pairs well with

sunshine-hours-by-city, world-temperature-data, and georank — rank cities by weighted climate criteria. See it live at georank.place.

License

Data: CC-BY-4.0 © GeoRank.place. Attribution required — see ATTRIBUTION.md. Package code: MIT.

Metadata

Release files for world-rainfall-data 0.1.0

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

Source distribution (sdist)

Source distribution for world-rainfall-data 0.1.0
File Size Uploaded Provenance
world_rainfall_data-0.1.0.tar.gz 9.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for world-rainfall-data 0.1.0
File Interpreter ABI Platform
world_rainfall_data-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.2 kB

Release files / world_rainfall_data-0.1.0.tar.gz

Download URL world_rainfall_data-0.1.0.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7bc3a55a17442575ab8abbb387e9b710eb3f2f33ceb3e68ce169106624eebd7f
BLAKE2b-256 checksum
How to use checksums
fbae4215671d613c480b660e132a50bbdfa9a69a232f21423f28e1d56e540d63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / world_rainfall_data-0.1.0-py3-none-any.whl

Download URL world_rainfall_data-0.1.0-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69630cd0a9470ac4462435ffa0739a8f734bd9dc0544761a0105b00157830d86
BLAKE2b-256 checksum
How to use checksums
20797b4bcfabe2405cdbb772a73da2f7c9bfeb6de6c36b026ab4c99904f7abeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for world-rainfall-data 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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