pip install pyeuropepmc
git clone https://github.com/JonasHeinickeBio/pyEuropePMC.git
cd pyEuropePMC
pip install -e .
git clone https://github.com/JonasHeinickeBio/pyEuropePMC.git
cd pyEuropePMC
pip install -e ".[dev]"
pre-commit install
When additional modules become available:
# For fulltext PDF processing
pip install pyeuropepmc[fulltext]
# For ontology integration
pip install pyeuropepmc[ontology]
# Install all optional dependencies
pip install pyeuropepmc[all]
Test your installation:
import pyeuropepmc
print(pyeuropepmc.__version__)
# Quick test
from pyeuropepmc.search import SearchClient
with SearchClient() as client:
count = client.get_hit_count("test")
print(f"API connection successful! Found {count} results for 'test'")
Import Error: Make sure you have Python 3.10+ installed
python --version
Network Issues: Check your internet connection and firewall settings
https://www.ebi.ac.uk/europepmc/webservices/rest/Rate Limiting: If you encounter rate limit errors, increase the delay:
client = SearchClient(rate_limit_delay=2.0) # 2 second delay