Skip to content

BREAKING CHANGE - OVERHAUL

Compare
Choose a tag to compare
@DroidZed DroidZed released this 20 Jun 23:52
· 25 commits to main since this release

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 sub Endpoints 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 run if 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!.