Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 825 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 825 Bytes

What is this?

A client library for the Supernova REST API.

Installation

  • Install maturin
  • Run maturin build in the repo root.
  • Install wheel with pip install wheel

Usage

from supernova import Supernova

client = Supernova()
# VVV Only needed for privileged data VVV
client.set_token("token")
# Or
client.login("username", "password")
departments = client.departments
some_department = department[0]
print(department.name) # Something like "Física" gets printed
department.classes
...
# (Look at the source, should be quite self-explanatory for now)

Important notes

  • Very explodey. Trivial to get exceptions out of nowhere. Could get more polish :)
  • To be written, but probably the same notes as the Rust client as this is a derivative work.