Python 3 module for using the TKL Nella service.
Implemented classes support basic information, but every get_*
method accepts get_raw
keyword argument for returning "raw" dict/list parsed from JSON. Check the docstrings/generate documentation.
import nella
nc = nella.NellaClient()
try:
nc.auth("username", "password")
except nella.NellaAuthFailedError as err:
# Auth failed
print(str(err))
else:
# Logged in
# Get the first card and print its balance
card = nc.get_cards()[0]
balance = card.tickets[0].balance
print("Card %s, balance: %.2f €" % (card.number, balance))
$ cd docs
$ mkdir out
$ sphinx-build -b html . out/
Open out/index.html
to view the generated docs.