Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Return remaining API calls #86

Open
pwichmann opened this issue Mar 9, 2022 · 1 comment
Open

Feature request: Return remaining API calls #86

pwichmann opened this issue Mar 9, 2022 · 1 comment

Comments

@pwichmann
Copy link

What an amazing, easy to use tool this is!
Is it possible to return the number of remaining API calls (per decorator) to the user of the API?
This way the user of the API can better understand how his/her interaction with an app results in API calls and how many are left.

@twcurrie
Copy link
Collaborator

twcurrie commented Mar 9, 2022

There are headers injected to the response that provide some of that information. It's enabled within the __init__ of the Limiter, just set to false by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants