Skip to main content

Python module for interacting with Dublin Luas real-time API

Project description

# Introduction [![Build Status](]( [![Coverage Status](]( is a python module providing a simple interface to the Dublin Luas API is licensed under the MIT license.

Getting started
=============== uses the Luas Forecasting API from [](

------------ requires:
* requests>=2.0

pip install

# Usage

import luas.api
from luas.api import LuasLine, LuasDirection

luas_client = luas.api.LuasClient()

# This will return the status text for the Green Line
green_line_status = luas_client.line_status(LuasLine.Green)

# This will return the next tram from Balally, in the default direction (inbound)
next_bal = client.next_tram('BAL')

# This will return the next outbound tram from Ranelagh
next_ran = client.next_tram('RAN', LuasDirection.Outbound)

# Return raw JSON for a stop
stop_details = client.stop_details('BAL')


========= is hosted by Github at

Code has been tested with the following before commit:

flake8 luas
pylint luas
coverage run --source luas -m unittest discover tests

Copyright (c) 2018 Ronan Murray.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page