Installation
Metapub can be installed using pip:
pip install metapub
Requirements
Python 3.7+
lxml
requests
eutils
habanero
Other dependencies listed in setup.py
Optional Dependencies
For testing:
pip install metapub[test]
Environment Variables
- NCBI_API_KEY
Your NCBI API key for increased rate limits. Obtain from https://www.ncbi.nlm.nih.gov/account/
- METAPUB_CACHE_DIR
Directory for caching NCBI responses. Defaults to user cache directory.
Example:
export NCBI_API_KEY="your_api_key_here"
export METAPUB_CACHE_DIR="/path/to/cache"