Skip to main content

cafein.sampledata

Sample datasets for cafein: up-to-date, openly licensed data for the Helsinki Metropolitan Area, downloaded on first access and cached locally.

import cafein.sampledata.helsinki as helsinki

helsinki.osm_pbf          # OpenStreetMap extract, capital region
helsinki.gtfs             # HSL GTFS feed
helsinki.dem              # NLS 10 m elevation model
helsinki.population_grid  # HSY 250 m population grid
helsinki.pois.library     # OSM destinations, one category per file
helsinki.emission_factors # cafein's default GHG factors as a CSV

Destination categories under poislibrary, kindergarten, university, supermarket, shopping_centre, sports_centre, swimming_hall — each a GeoPackage of points (layer pois, EPSG:4326) extracted from the same OpenStreetMap release as osm_pbf.

Each data attribute — including each category under pois — is a pathlib.Path; the file downloads and verifies on first use. A package release pins exact data snapshots — upgrade the package to get newer data.

Data files are cached under the platform user-cache directory; set CAFEIN_SAMPLEDATA_DIR to relocate the cache.

Data licenses

The package code is MIT. The datasets carry their own open licenses — OpenStreetMap (ODbL 1.0, the extract and the POI layers derived from it), HSL GTFS (CC BY 4.0), National Land Survey of Finland elevation model (CC BY 4.0), HSY population grid (CC BY 4.0) — with attribution recorded per asset in <region>.metadata.

Download files

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

Source Distribution

cafein_sampledata-2026.8.1.tar.gz (68.6 kB view details)

Uploaded Source

Built Distribution

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

cafein_sampledata-2026.8.1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file cafein_sampledata-2026.8.1.tar.gz.

File metadata

  • Download URL: cafein_sampledata-2026.8.1.tar.gz
  • Upload date:
  • Size: 68.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cafein_sampledata-2026.8.1.tar.gz
Algorithm Hash digest
SHA256 161a6ac0694f1ae4486b9ef3975bf0e74756abdb23f676a84d5d4df79eefa491
MD5 745e091d699d2b9fc26bfae5cd832e5b
BLAKE2b-256 f8a2ffe0f6af06d7f3ff8b2e6173109106e205af93aa39f23fee7c0a12aa613c

See more details on using hashes here.

Provenance

The following attestation bundles were made for cafein_sampledata-2026.8.1.tar.gz:

Publisher: release.yaml on cafein-py/cafein.sampledata

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

File details

Details for the file cafein_sampledata-2026.8.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cafein_sampledata-2026.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f1af52945db539ab0fc173817faf4d598c621cc4cb92869913d0538e50c35c7
MD5 9c5a721c5f1d24b13780758de952e266
BLAKE2b-256 0b09898c2e026991857034fc6c699862942b1dae793a8421295efbf6914cb86f

See more details on using hashes here.

Provenance

The following attestation bundles were made for cafein_sampledata-2026.8.1-py3-none-any.whl:

Publisher: release.yaml on cafein-py/cafein.sampledata

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

Release history Release notifications | RSS feed

2026.8.4

2 files

2026.8.3

2 files

2026.8.2

2 files

This release

2026.8.1 This release

2 files

2026.8.0

2 files

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