A Python client for the EBI Ontology Lookup Service RESTful API
Project description
A Python wrapper for accessing the RESTful API of the Ontology Lookup Service
Installation
Install the latest stable version from PyPI
$ python3 -m pip install ols_client
Install the latest version directly from GitHub
$ python3 -m pip install git+https://github.com/cthoyt/ols-client.git
Cookbook
Getting labels from ontology
>>> from ols_client import get_labels >>> labels = get_labels('chebi')
Getting labels from ontology using an alternative OLS
>>> from ols_client import get_labels >>> labels = get_labels('chebi', ols_base='http://lookup.scaiview.com/ols-boot/api/')
Using the CLI
$ python3 -m ols_client labels chebi > chebi.txt
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
ols_client-0.0.8.tar.gz
(10.3 kB
view details)
Built Distribution
File details
Details for the file ols_client-0.0.8.tar.gz
.
File metadata
- Download URL: ols_client-0.0.8.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | feb022aadc9555ff218d2dcaedda858872ced827f8ba2beb9ee1910f217f0289 |
|
MD5 | 5e3cc13559451342e285f14b9c8ab653 |
|
BLAKE2b-256 | c6d25bea14aad7073a7407dd4a185e0626837e68eb62be5568fad442c6fc1f65 |
Provenance
File details
Details for the file ols_client-0.0.8-py2.py3-none-any.whl
.
File metadata
- Download URL: ols_client-0.0.8-py2.py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12e7d912ad2e4c672e54bdef1ae148dad07ce32a30beaf67cfc7bb554bfe0019 |
|
MD5 | f52c2df0918c0b4eac74c6dee0327e56 |
|
BLAKE2b-256 | 34dcad6365fe6e64ba502ceb44b46e991e124135679ae5d9fa6a0d0c39900caa |