Skip to content

v1.3.0

Choose a tag to compare

@arrayyandn arrayyandn released this 10 Jan 22:26
· 5 commits to main since this release

What's New?

  1. Cache System Added

    • You can now enable caching by adding cache=True to your request.
    • This will save the result for faster use in future requests.
    response = await AmariClient(...).foo(.., cache=True)  # Caches the result
  2. Set Maximum Requests

    • You can now set the maximum number of requests allowed during initialization.
    my_object = AmariClient("token", max_requests=max_requests=10)  # Limits to 10 requests
  3. Async Context Manager Support

    • The class now supports async with, letting you use it like this:
    async with AmariClient("token") as obj:
        result = await obj.some_method(...)
  4. Bug Fix: Correct Return Value

    • Fixed an issue where the class object was being returned instead of the correct result (self).