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.7.tar.gz
(9.9 kB
view hashes)
Built Distribution
Close
Hashes for ols_client-0.0.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 725c4e6d80732dee1cff0b6f59ae071fe31df36ce57bc04d531abb2d4978f17c |
|
MD5 | 323e493eff7326a6458af32c1f1056a3 |
|
BLAKE2b-256 | 3839d5185ba57884e6c5fd0c4dfb029d9246c8bc21e74e5a06041fabb8a1cec6 |