Python REST API for Entrez E-Utilities: stateless, easy to use, reliable.
Project description
Python REST API for Entrez E-Utilities, aiming to be easy to use and reliable.
While other packages attempt to use stateful extensions (queries with history) which is error-prone and led to misleading results, this implementation: - avoids the problem altogether by not using such stateful API, - makes common tasks easy thanks to Pythonic API, - is typed and integrates well with mypy
Stats: Beta
from easy_entrez import EntrezAPI
entrez_api = EntrezAPI(
'your-tool-name',
'e@mail.com',
# optional
return_type='json'
)
# find up to 10 000 results for cancer in human
result = entrez_api.search('cancer AND human[organism]', max_results=10_000)
# data will be populated with JSON or XML (depending on the `return_type` value)
result.data
See more in the Demo notebook.
Installation
Requires Python 3.6+. Install with:
pip install easy-entrez
If you wish to enable (optional, tqdm-based) progress bars use:
pip install easy-entrez[with_progress_bars]
Alternatives:
entrezpy
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file easy_entrez-0.1.4.tar.gz
.
File metadata
- Download URL: easy_entrez-0.1.4.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 505899fcedfcaba33464023cc4c053c7e141d0700ac3f53d439f7a8ce0e5651f |
|
MD5 | 22f44e9943750069580c3a4650821ff3 |
|
BLAKE2b-256 | ff054bf6c285daf9ecfa8322762871a964f432069d2e92be5461d2084cf599a7 |