What is this?
A client library for the Supernova REST API.
Usage
use ;
Important notes
- Every response is cached and currently there is no way to bypass cache other than instantiating a new client.
- One can call
warmup()
upon instantiation to eagerly load the buildings, courses, classes, departments and places. This might be desirable to speed up subsequent access in exchange for a startup penalty (between 5 and 15 seconds). - If one doesn't desire all of these, it is possible to simply call the
get_[collection]
functions independently. - Most relations are lazily loaded through a special type of pointer that is bound to the client. These can be loaded concurrently.
- Yes, the library is thread-safe. An async port might happen, but for now this is it.