Skip to main content

StatBridge

Python client for the StatBridge API — official statistics from ISTAT, Eurostat, OECD, and ECB in one unified interface.

Install

pip install statbridge

Quick start

from statbridge_sdk import StatBridge

sb = StatBridge("sb_live_xxxxxxxxxxxx")

# Search for topics
sb.search("unemployment")

# Get data
data = sb.get("unemployment_rate")
print(data["data"])       # list of records
print(data["citation"])   # proper source attribution

# Filter by dimension
data = sb.get("unemployment_rate", SESSO=2, CLASSE_ETA="Y15-24", year=2023)

# Get a pandas DataFrame instead
df = sb.get("gdp_growth", as_dataframe=True)

# Discover available filters
sb.dimensions("unemployment_rate")

# List all topics
sb.topics()

Environment variable

Instead of passing the key directly, set STATBRIDGE_API_KEY:

export STATBRIDGE_API_KEY="sb_live_xxxxxxxxxxxx"
sb = StatBridge()  # picks up the env var

Optional dependencies

pip install "statbridge[pandas]"   # enables as_dataframe=True

Available topics

25 topics across labour, economy, society, and energy — covering Italy (regional), EU, and OECD countries.

See the full list at statbridge.net/docs/datasets.

Links

Metadata

Release files for statbridge 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 statbridge 0.1.0
File Size Uploaded Provenance Actions
statbridge-0.1.0.tar.gz 4.6 kB Without provenance Details for statbridge-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for statbridge 0.1.0
File Interpreter ABI Platform Actions
statbridge-0.1.0-py3-none-any.whl Python 3 none any Details for statbridge-0.1.0-py3-none-any.whl

Total release size: 10.1 kB

Release files / statbridge-0.1.0.tar.gz

Download URL statbridge-0.1.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0bb1e1fb5afd39f0727ba29c66e992d338d8fb4000e4de86f2902e130bf0801e
BLAKE2b-256 checksum
How to use checksums
0d7c3fb730fbb5650365628297f692cba98592e5618cb142f8e7a2696a8cebb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

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

Download URL statbridge-0.1.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
546c629c3b0796855f08d33d2ac0ff6efba79b694a83e6e533f095bd378e47b0
BLAKE2b-256 checksum
How to use checksums
ebde326a2a430fe2b0472680251494303b66c9ee6730c1166fcf0f3aab65fd93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for statbridge 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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