BREAKING CHANGE - OVERHAUL
I had to updated the whole code structure to make things easier for me to develop + maintain and hopefully future-proof
- Divided the
Client
into many subEndpoints
as sub classes, now you only have to import the class you really need without having to import the whole library at once ! - Added error checking and type safety thanks to python's type hinting! Please activate type checking on vs code to get the benefits.
- REMOVED THROWING FROM THE WHOLE LIBRARY !! No more try: ... raise ! Errors are returned as
ApiError
class, so you can simply runif isinstance(res, ApiError)
and check without worrying about the method you're calling throwing any errors. This is the best course of action as we need as little unexpected behavior as possible. Runtime errors are a big no no so I had to make sure everything goes correctly!.