Since there was some chatter around here about the current library mentioned on the TBA API docs no longer working, I’d thought I’d mention the API I’ve been working on for those looking for a solution.
PyTBA is a fairly straightforward API, its main functionality involving taking the JSON response sent by the API and stuffing it into a dictionary match its structure. However, it also features numerous enhancements for power users, such as whole event queries and OPR / individual stats calculation.
You can take a look here: https://github.com/Thing342/pyTBA