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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ltadatamall_py-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 0735b5bdd6a8e97d8a10b1453e1410b7245160ad26ecd8936957ef751e91a815
MD5 f041e160cba7df8ecda17cc5d2c2e3a4
BLAKE2b-256 1eab2f84728ffadcdec79c2b34ff777412b28bd84ae339c5baee7a6b6658e3e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ltadatamall_py-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1538fa7018f7f8029368b58f560904e1540b5e766f00e4747d3f69578a7e188b
MD5 a0dedb4ba3e51c72d1b59b18648147fe
BLAKE2b-256 dcf8484ced26d91b921951de303ea2f98cd9c59719933d5acaf4687617fecc31

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