quickstart

Installation

To install the package, run the following command:

pip3 install pyfl

To install the development package run:

pip3 install git+https://github.com/wotanut/pyfl.git

Warning

In order to install on windows please use pip instead of pip3

Synchornous Client Example

import os
import pyfl
from pyfl.client import client

key = os.getenv("api_key")

TFL = pyfl.client(key)

print(TFL.tube.get_line_status(TFL.helper.victoria))

Asynchronous Client Example

Note

The asynchronous client is not yet implemented.

You can check out the code in the GitHub examples folder