A LTA Datamall API Wrapper Library for Python
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ltasg-1.0.0.tar.gz.
File metadata
- Download URL: ltasg-1.0.0.tar.gz
- Upload date:
- Size: 22.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
879b750ba70f9a02d5bdb5b37359a68d78fbf18bdd6d143ae7a7093b8c700a4f
|
|
| MD5 |
bd343a10daa883be397b1b9b0265c3cd
|
|
| BLAKE2b-256 |
97d7ea949c1e4f3699ccbc37c6a1973daeabae3f88782c855691d1c515f88a23
|
Provenance
The following attestation bundles were made for ltasg-1.0.0.tar.gz:
Publisher:
release.yml on ashe0047/ltasg
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ltasg-1.0.0.tar.gz -
Subject digest:
879b750ba70f9a02d5bdb5b37359a68d78fbf18bdd6d143ae7a7093b8c700a4f - Sigstore transparency entry: 2194472458
- Sigstore integration time:
-
Permalink:
ashe0047/ltasg@024cd3da7e2a01094c4d9288f6a167829a657780 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/ashe0047
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@024cd3da7e2a01094c4d9288f6a167829a657780 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ltasg-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ltasg-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d37fd33f368fdac72ac8a98d46205346a14de95584fae312666969647b1d00b
|
|
| MD5 |
c0735a0c511d1c6787ed452effd1fd25
|
|
| BLAKE2b-256 |
1eefc5f030d7d868f3e7c5c781a728bec53f585cc9d1127588dfeab32d2663c3
|
Provenance
The following attestation bundles were made for ltasg-1.0.0-py3-none-any.whl:
Publisher:
release.yml on ashe0047/ltasg
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ltasg-1.0.0-py3-none-any.whl -
Subject digest:
5d37fd33f368fdac72ac8a98d46205346a14de95584fae312666969647b1d00b - Sigstore transparency entry: 2194472477
- Sigstore integration time:
-
Permalink:
ashe0047/ltasg@024cd3da7e2a01094c4d9288f6a167829a657780 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/ashe0047
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@024cd3da7e2a01094c4d9288f6a167829a657780 -
Trigger Event:
push
-
Statement type: