Skip to content

Unofficial Python Wrapper for official ltadatamall API

Notifications You must be signed in to change notification settings

TheReaper62/ltadatamall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LTA Datamall API Wrapper (Python)

This is an Unoffical Wrapper and this repo has no relation nor endorsement with/from LTA ####v0.0.7 Library Features:

  • Sync/Async
  • Lightweight
  • Easy to Use
  • Open Source

Setup


Windows
>>> pip install LTADatamall
MacOS
>>> pip3 install LTADatamall

Services/Information Provided


  1. Bus Related

    • Bus Arrival
    • Bus Stop
    • Bus Route
  2. Passenger Volume

    • Train Station
    • Bus Stop
  3. Taxi

    • Taxi Stop/Stand
    • Avaliable Taxis
  4. Train Service Alert

    • Train Service Alert Messages

Simple Usage


  1. Asynchronous
from LTADatamall import BusManager
import asyncio
async def main():
    client = BusManager('APIKEY')
    fav = await client.async_get_services([3,68])
    print(fav)
asyncio.run(main())
  1. Synchronous (Normal)
from LTADatamall import BusManager
client = BusManager('APIKEY')
fav_timings = client.get_bus_arrival(12345,[3,68])
print(fav_timings)

About

Unofficial Python Wrapper for official ltadatamall API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages