virtool/virtool-cli

Share REQUEST_INTERVAL

Closed this issue · 0 comments

Share this code either in a new module called ncbi.py or existing utils.py, whichever makes more sense. Import into taxid and isolate modules.

Entrez.email = os.environ.get("NCBI_EMAIL")
Entrez.api_key = os.environ.get("NCBI_API_KEY")
REQUEST_INTERVAL = 0.4 if Entrez.email and Entrez.api_key else 0.6