This release is a pre-release and may not be stable for production use.
Getting Started with enembl-rest-client
version: 0.2.0a0
enembl-rest-client provides Pythonic access to the
Ensembl REST API. It implements most current
endpoints at https://rest.ensembl.org and was last refreshed against Ensembl
REST ~15.12–16.0.
Python support: 3.9–3.13 (requires-python = ">=3.9,<3.14").
Note that not all endpoint methods have full live coverage. Offline unit tests cover recent path and surface changes; additional pytest coverage is added as methods are used.
Breaking changes in 0.2.x
Hard removals and signature changes (no compatibility shims):
- Comparative genomics member/homology by-id methods require
speciesas the first argument (path form used by Ensembl REST ≥15.8) - Removed: eQTL wrappers (Ensembl REST 15.0) — use the EMBL-EBI eQTL Catalogue instead
- Removed: gene family methods (REST 15.3)
- Removed: regulation microarray / epigenome / regulatory-id wrappers (REST 15.9); binding-matrix remains
Full notes: CHANGELOG.md.
Now there are other ensembl rest implementations. You may be better using these:
There is online documentation for ensembl-rest-client.
Installation instructions
You can install using pip or conda.
Installation using pip
pip install ensembl-rest-client
Installation using conda
I maintain a conda package in my personal conda channel. To install this please run:
conda install -c cfin -c conda-forge ensembl-rest-client
Basic usage
There are some examples in ./resources/examples where . is the root of the cloned repository.
Run tests
If you have cloned the repository, install an editable checkout first so tests use this tree rather than an older wheel from site-packages:
pip install -e ".[dev]"
# Full suite (archive / lookup / overlap / xrefs hit live Ensembl REST;
# conftest pings rest.ensembl.org at session start)
pytest ./tests
# Offline-only suites (mock rest_query; no network required for these files)
pytest ./tests/test_comp_genomics.py \
./tests/test_client_surface.py \
./tests/test_regulation.py \
./tests/test_vep.py -q
# Optional live comparative-genomics probes (and other @pytest.mark.live tests)
ENSEMBL_LIVE=1 pytest ./tests -m live
- Marker:
live— optional integration probes against Ensembl REST - Gate: set
ENSEMBL_LIVE=1or those tests are skipped - Markers and
pythonpathare registered intests/pytest.ini
If any fail please contact us (see the contribution page for contact info).
Release files for ensembl-rest-client 0.2.0a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ensembl_rest_client-0.2.0a0.tar.gz | 59.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ensembl_rest_client-0.2.0a0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 128.9 kB
Release files / ensembl_rest_client-0.2.0a0.tar.gz
| Download URL | ensembl_rest_client-0.2.0a0.tar.gz |
|---|---|
| Size | 59.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
acfd6132033204a40bae1391c75a04eb6fc93d492fd17e5400650d3788b290c6
|
|
BLAKE2b-256 checksum How to use checksums |
0d3f5badfdb0d8fe97887c03bc53ec644e8f449635ea2baa734dee65093d80da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.0
|
Release files / ensembl_rest_client-0.2.0a0-py3-none-any.whl
| Download URL | ensembl_rest_client-0.2.0a0-py3-none-any.whl |
|---|---|
| Size | 69.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dbf307463663dd95cf2d99a5e2fbf1acc3b182f932f85effe6b7a1f2c724a4fb
|
|
BLAKE2b-256 checksum How to use checksums |
7205ef33f7926f721cfa3dfa8129d0708612289affe5e1313cc4ed52f37fdf11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.0
|