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.1.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.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: czechfabric_sdk-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 866465ef32dcb7efb8c3004aeac2229070536b074fdfdea266bc392e7b7bd2e1
MD5 7865515ebe593a4294e9635adb66be5a
BLAKE2b-256 dafe0c36e1b4374af604fc0f80f2d296d38c1004d4af8287b3abbe9ea0401625

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for czechfabric_sdk-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4976aa9861543b2f70fde3380dcd2b709fcab7f065f5f28ff1b2812e8bc130a
MD5 919ab18cd3656bd2f50bddfa6dccb622
BLAKE2b-256 b81ab4b29cb0509d539a0ff84fd10d68e8643e408291a41052aea7bec846a42f

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