Skip to main content

ltasg

Build Status License PyPI version Python versions

A LTA Datamall API Wrapper Library for Python

Table of Contents

Installation

Use the package manager pip to install ltasg:

pip install ltasg

Usage

  • Bus Arrival: Querying bus arrival timings
from ltasg.transport.bus import Bus

# Default base URL uses HTTPS; optionally pass a custom base_url.
api_key = "<YOUR_LTA_DATAMALL_API_KEY>"

bus = Bus(api_key=api_key)
result = bus.arrival(71111, '63')
print(result)

Features

Bus (8 APIs)

  1. Bus Arrival (v3)
  2. Bus Services (with optional ServiceNo filter)
  3. Bus Routes
  4. Bus Stops (with optional BusStopCode filter)
  5. Passenger Volume by Bus Stops (download Link)
  6. Passenger Volume by Origin-Destination Bus Stops (download Link)
  7. Planned Bus Routes
  8. Stop Services (client-side route filter)

Train (6 APIs)

  1. Train Service Alerts
  2. Facilities Maintenance (v2)
  3. Station Crowd Density Real-time
  4. Station Crowd Density Forecast
  5. Passenger Volume by Origin-Destination Train Stations (download Link)
  6. Passenger Volume by Train Stations (download Link)

Taxi (2 APIs)

  1. Taxi Availability
  2. Taxi Stands

Traffic (11 APIs)

  1. Carpark Availability (v2)
  2. Estimated Travel Times
  3. Faulty Traffic Lights
  4. Planned Road Openings
  5. Approved Road Works
  6. Traffic Images (v2)
  7. Traffic Incidents
  8. Traffic Speed Bands (v4)
  9. VMS / EMAS
  10. Traffic Flow (download Link)
  11. Flood Alerts

Other (4 APIs)

  1. Bicycle Parking (v2)
  2. Geospatial Whole Island
  3. EV Charging Points
  4. EV Charging Points Batch

Documentation

Full API reference: LTA DataMall API User Guide v6.8

For parameter details and response schemas, refer to the PDF guide.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for ltasg 1.0.0

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

Source distribution (sdist)

Source distribution for ltasg 1.0.0
File Size Uploaded
ltasg-1.0.0.tar.gz 22.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ltasg 1.0.0
File Interpreter ABI Platform
ltasg-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 34.5 kB

Release files / ltasg-1.0.0.tar.gz

Download URL ltasg-1.0.0.tar.gz
Size 22.9 kB
Tags Source
SHA-256 checksum
How to use checksums
879b750ba70f9a02d5bdb5b37359a68d78fbf18bdd6d143ae7a7093b8c700a4f
BLAKE2b-256 checksum
How to use checksums
97d7ea949c1e4f3699ccbc37c6a1973daeabae3f88782c855691d1c515f88a23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 18, 2026.

Transparency log

Release files / ltasg-1.0.0-py3-none-any.whl

Download URL ltasg-1.0.0-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d37fd33f368fdac72ac8a98d46205346a14de95584fae312666969647b1d00b
BLAKE2b-256 checksum
How to use checksums
1eefc5f030d7d868f3e7c5c781a728bec53f585cc9d1127588dfeab32d2663c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 18, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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