ltasg
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)
- Bus Arrival (v3)
- Bus Services (with optional ServiceNo filter)
- Bus Routes
- Bus Stops (with optional BusStopCode filter)
- Passenger Volume by Bus Stops (download Link)
- Passenger Volume by Origin-Destination Bus Stops (download Link)
- Planned Bus Routes
- Stop Services (client-side route filter)
Train (6 APIs)
- Train Service Alerts
- Facilities Maintenance (v2)
- Station Crowd Density Real-time
- Station Crowd Density Forecast
- Passenger Volume by Origin-Destination Train Stations (download Link)
- Passenger Volume by Train Stations (download Link)
Taxi (2 APIs)
- Taxi Availability
- Taxi Stands
Traffic (11 APIs)
- Carpark Availability (v2)
- Estimated Travel Times
- Faulty Traffic Lights
- Planned Road Openings
- Approved Road Works
- Traffic Images (v2)
- Traffic Incidents
- Traffic Speed Bands (v4)
- VMS / EMAS
- Traffic Flow (download Link)
- Flood Alerts
Other (4 APIs)
- Bicycle Parking (v2)
- Geospatial Whole Island
- EV Charging Points
- 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)
| File | Size | Uploaded | |
|---|---|---|---|
| ltasg-1.0.0.tar.gz | 22.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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