Skip to main content

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}")

Metadata

Release files for LTADatamall-py 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for LTADatamall-py 0.1.2
File Size Uploaded Provenance Actions
ltadatamall_py-0.1.2.tar.gz 11.9 kB Without provenance Details for ltadatamall_py-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for LTADatamall-py 0.1.2
File Interpreter ABI Platform Actions
ltadatamall_py-0.1.2-py3-none-any.whl Python 3 none any Details for ltadatamall_py-0.1.2-py3-none-any.whl

Total release size: 26.6 kB

Release files / ltadatamall_py-0.1.2.tar.gz

Download URL ltadatamall_py-0.1.2.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0735b5bdd6a8e97d8a10b1453e1410b7245160ad26ecd8936957ef751e91a815
BLAKE2b-256 checksum
How to use checksums
1eab2f84728ffadcdec79c2b34ff777412b28bd84ae339c5baee7a6b6658e3e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / ltadatamall_py-0.1.2-py3-none-any.whl

Download URL ltadatamall_py-0.1.2-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1538fa7018f7f8029368b58f560904e1540b5e766f00e4747d3f69578a7e188b
BLAKE2b-256 checksum
How to use checksums
dcf8484ced26d91b921951de303ea2f98cd9c59719933d5acaf4687617fecc31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for LTADatamall-py 0.1.2

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.

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