world-temperature-data
Monthly mean air temperature for 270 cities worldwide. Twelve monthly normals plus an annual mean, as a tiny zero-dependency package for both JavaScript and Python, with the raw CSV bundled.
Data by GeoRank.place — see the interactive temperature map. Licensed CC-BY-4.0.
Method
Mean monthly near-surface air temperature (°C) from CHELSA v2.1 climatological
normals (1981–2010), warped to a 0.05° grid and sampled per city. annualC is the
mean of the 12 months. Full sources in ATTRIBUTION.md.
Install
npm install world-temperature-data # JavaScript / TypeScript
pip install world-temperature-data # Python
Usage
JavaScript / TypeScript
import { byCity, byCountry, cities } from "world-temperature-data";
const lisbon = byCity("Lisbon", "PT");
lisbon.annualC; // e.g. 16.3
lisbon.monthly.jul; // July mean, °C
lisbon.warmestMonth; // "aug"
cities().length; // 270
Python
from world_temperature_data import by_city, by_country, cities
lisbon = by_city("Lisbon", "PT")
lisbon["annual_c"] # e.g. 16.3
lisbon["monthly"]["jul"] # July mean, °C
lisbon["warmest_month"] # "aug"
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) |
monthly |
object | { jan … dec } mean temperature in °C |
annualC / annual_c |
number | Mean annual temperature, °C |
warmestMonth / coldestMonth |
string | Extreme months (e.g. "aug", "jan") |
source |
string | Methodology label |
The raw CSV ships in the package (world_temperature_data/world-temperature.csv).
Pairs well with
sunshine-hours-by-city,
world-rainfall-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-temperature-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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| world_temperature_data-0.1.0.tar.gz | 15.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| world_temperature_data-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.4 kB
Release files / world_temperature_data-0.1.0.tar.gz
| Download URL | world_temperature_data-0.1.0.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50be4f7ce394cc4420401fd94de553855441e52977378fbc93f6508a527eeb8c
|
|
BLAKE2b-256 checksum How to use checksums |
dc5edcebe7f969098f7586eb8d0c4b4af8da99c7e27efab741dca405c2cdb637
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / world_temperature_data-0.1.0-py3-none-any.whl
| Download URL | world_temperature_data-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb3f00c89a6c0914b5cd5359f14e07571e1d3d9f7445c7060bdb39b6300c9aad
|
|
BLAKE2b-256 checksum How to use checksums |
ea81671384cd3d22b49cc5d1fb63137a80a054ddd88cfa36c02208b59305a5e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for world-temperature-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.