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

Accommodate NCBI API Keys #1

Open
MikeTrizna opened this issue Nov 6, 2017 · 1 comment
Open

Accommodate NCBI API Keys #1

MikeTrizna opened this issue Nov 6, 2017 · 1 comment
Milestone

Comments

@MikeTrizna
Copy link
Owner

NCBI will start requiring API Keys beginning May 1, 2018: https://ncbiinsights.ncbi.nlm.nih.gov/2017/11/02/new-api-keys-for-the-e-utilities/

I author software that accesses the E-utilities, and this software is used by other people. Do those users need keys?

Yes, but only if your software allows them to post more than 3 requests/second. For such cases, we recommend that you allow users to enter their own API key as a setting in the software.

I'll need to modify the code to allow for users to provide their own API key.

I should also utilize https://github.com/SerpentAI/requests-respectful to limit requests to users who haven't provided API keys.

@MikeTrizna MikeTrizna added this to the 0.2 milestone Nov 6, 2017
@MikeTrizna
Copy link
Owner Author

https://github.com/SerpentAI/requests-respectful requires installation of Redis, which seems like overkill.

Two possible solutions I've found in the meantime:

The ratelimit package looks like the easiest to implement first. So start with that.

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

1 participant