Skip to main content

LTA Datamall API Wrapper

Project description

LTADatamall-py

Welcome to the documentation for LTADatamall-py, an elegant Python wrapper for Singapore's Land Transport Authority (LTA) DataMall API. It offers full synchronous and asynchronous implementations to monitor real-time transport services smoothly.


Navigation & API Reference

Explore the different modules of the SDK by jumping straight to their specific reference guides:

  • 🚍 Bus Manager: Track real-time bus arrival timings, view comprehensive metadata for active services, and fetch route paths or bus stop positions.
  • 🚇 Train Alerts: Monitor live MRT and LRT network operational breakdowns, affected station codes, and free shuttle bus availability options.
  • 📊 Passenger Volume: Generate dynamic download URL links for bulk monthly passenger volume CSV matrix sheets.

Quick Installation

Install the package directly from PyPI:

pip install LTADatamall-py

Services/Information Provided

  1. Bus Related

    • Bus Arrival
    • Bus Stop
    • Bus Route
  2. Passenger Volume

    • Train Station
    • Bus Stop
  3. Train Service Alert

    • Train Service Alert Messages

    Quick Start Paradigm

    Here is a quick-start example showing how easily you can use the package to stream real-time Singapore transit configurations:

from ltadatamall import BusManager

# Initialize the manager using your confidential LTA Account Key profile
manager = BusManager(api_key="YOUR_LTA_DATAMALL_ACCOUNT_KEY")

# Fetch structured real-time arrival metrics for an explicit bus stop
arrivals = manager.get_bus_arrival(bus_stop_code="65009")

for service in arrivals:
    print(f"Service: {service.service_no} -> Next Bus: {service.next_bus.estimated_arrival}")

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

ltadatamall_py-0.1.1.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

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

ltadatamall_py-0.1.1-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file ltadatamall_py-0.1.1.tar.gz.

File metadata

  • Download URL: ltadatamall_py-0.1.1.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for ltadatamall_py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 02fb79076360bd027406b11ec59e5f0ab989a4f0d5aa6e56b76de1643498f271
MD5 e7c72358bae6cd5b35fb431f61ee2ab9
BLAKE2b-256 8ddfe8fe2192ba29c9d2d4ac72a711904398f6cad5c812269ee3a383b76ef3aa

See more details on using hashes here.

File details

Details for the file ltadatamall_py-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ltadatamall_py-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for ltadatamall_py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3e35cea6866db4947a5574572d9a303b0a97aea5af61f30d002ca0ee1dfb6868
MD5 e35e73db1d79dc1504e4ca1db1fa9fd3
BLAKE2b-256 3cd0c0ccb95d8f5d8192e5a624de6c69b41286d4bea14e110b8e9c4554815415

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