Skip to main content

Python SDK for Czech Intelligence Fabric (CzechFabric MCP)

Project description

🇨🇿 CzechFabric SDK

The official Python SDK for accessing the Czech Intelligence Fabric (MCP) - a unified API for public services like public transport, geolocation, and stop metadata across the Czech Republic.


🚀 Features

  • Plan public transport trips using OTP
  • Get real-time departures from any stop or coordinates
  • Geocode and reverse-geocode locations
  • Search nearby transport stops
  • Fetch detailed stop metadata
  • Built-in retry and caching support

📦 Installation

pip install czechfabric-sdk

🧪 Quick Start

from czechfabric_sdk.client import CzechFabricClient

client = CzechFabricClient(
    api_key="your-api-key",
    base_url="https://mcp.czechfabric.cz"
)

# Plan a trip
trip = await client.plan_trip("Florenc", "Karlovo náměstí", departure_time="in 15 minutes")
print(trip)

📚 Usage Examples

All usage examples are available in examples.md:


🧪 Running Tests

This SDK includes pytest-based tests for all endpoints.

pip install -r requirements-dev.txt
pytest tests/

📜 License

MIT © 2025 Aliyu Abdulbasit Ayinde


🌐 Project Links

Project details


Download files

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

Source Distribution

czechfabric_sdk-0.2.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

czechfabric_sdk-0.2.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file czechfabric_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: czechfabric_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for czechfabric_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 082611523fd2889fd2d9972db6997f00233bd92751b5360a3350baaec53c9150
MD5 60c369fa2c79d0c07bb74a71e62aeaf2
BLAKE2b-256 eabd54a1a876d1347ece646def91573905e6404e06c0d04e41671e79839dd35d

See more details on using hashes here.

File details

Details for the file czechfabric_sdk-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for czechfabric_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 346aa749fcdf02a64598dea354463616c1b8aecf35a9438e6ed5dea8f254f266
MD5 b05391bcdfb693d47d1a2e4cc40a07a7
BLAKE2b-256 96aa2f25c5b58250b7c82c9b02082c7ca1a72b3087d60115a27f35355a7714bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page