Skip to content

v0.8.0

Compare
Choose a tag to compare
@prkumar prkumar released this 13 Mar 05:52
· 157 commits to stable since this release
ac0f1b2

Added

  • A retry decorator to enable reattempts of failed requests. (#132)
  • A ratelimit decorator to constrain consumers to making some maximum number
    of calls within a given time period. (#132)
  • Timeout argument annotation to be able to pass the timeout as a consumer
    method argument or to inject it as a transaction hook using a Consumer
    instance's _inject method. (#133 by @daa)

Changed

  • Consumer subclasses now inherit class decorators from their
    Consumer parents, so those decorators are also applied to the subclasses'
    methods that are decorated with @get, @post, @patch, etc.
    (#138 by @daa)

Fixed

  • Memory leaks in RequestsClient and AiohttpClient caused by
    use of atexit.register, which was holding references to session objects
    and preventing the garbage collector from freeing memory reserved for those
    objects. (#134 by @SakornW)