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.emission_factors # cafein's default GHG factors as a CSV

Each attribute 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), 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.0.tar.gz (55.0 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.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cafein_sampledata-2026.8.0.tar.gz
  • Upload date:
  • Size: 55.0 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.0.tar.gz
Algorithm Hash digest
SHA256 7af52bb1fd00c08e5bc9986085c6105458d988a05fdc0da84aa2d013eb5e8d4f
MD5 e20c544cd31d27a5089d45e1557fc198
BLAKE2b-256 4035eab257f1ba1f25592e8514752d5ea9617f4aede82e510c4783745efc2fe6

See more details on using hashes here.

Provenance

The following attestation bundles were made for cafein_sampledata-2026.8.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cafein_sampledata-2026.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34a6d8953402fa4eac2e67712db6ad1e79a2ce85a1ad1328908e2676f47085b6
MD5 aedc389cf34fad3c391bf8e9cf62906b
BLAKE2b-256 19836dd765e17f83f3a14586016c21c931a38b8e7f9302f02c5f4730d7396d84

See more details on using hashes here.

Provenance

The following attestation bundles were made for cafein_sampledata-2026.8.0-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

2026.8.1

2 files

This release

2026.8.0 This release

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