Skip to content

Z1ni/NellaPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NellaPy

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.

Dependencies

How-to

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))

Docs

$ cd docs
$ mkdir out
$ sphinx-build -b html . out/

Open out/index.html to view the generated docs.

Releases

No releases published

Packages

No packages published

Languages