PyEuropePMC is a robust Python toolkit for automated search, extraction, and analysis of scientific literature from Europe PMC.
- 🔍 Comprehensive Search API - Query Europe PMC with advanced search options
- 📊 Multiple Output Formats - JSON, XML, and Dublin Core support
- 🔄 Smart Pagination - Automatic handling of large result sets
- 🛡️ Robust Error Handling - Built-in retry logic and connection management
- ⚡ Rate Limiting - Respectful API usage with configurable delays
- 🧪 Extensively Tested - 174 tests with 90%+ code coverage
pip install pyeuropepmc
from pyeuropepmc.search import SearchClient
# Search for papers
with SearchClient() as client:
results = client.search("CRISPR gene editing", pageSize=10)
for paper in results["resultList"]["result"]:
print(f"Title: {paper['title']}")
print(f"Authors: {paper.get('authorString', 'N/A')}")
print("---")
# Search and automatically parse results
papers = client.search_and_parse(
query="COVID-19 AND vaccine",
pageSize=50,
sort="CITED desc"
)
for paper in papers:
print(f"Citations: {paper.get('citedByCount', 0)}")
print(f"Title: {paper.get('title', 'N/A')}")
- Complete Documentation - Comprehensive guides and API reference
- Quick Start Guide - Get started in minutes
- API Reference - Detailed API documentation
- Examples - Code examples and use cases
We welcome contributions! See our Contributing Guide for details.
Distributed under the MIT License. See LICENSE for more information.
- PyPI Package: pyeuropepmc
- GitHub Repository: pyEuropePMC
- Documentation: GitHub Wiki
- Issue Tracker: GitHub Issues