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.6.tar.gz
(9.6 kB
view details)
Built Distribution
File details
Details for the file ols_client-0.0.6.tar.gz
.
File metadata
- Download URL: ols_client-0.0.6.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33a55a485f744f13ecbdea435913941c432d5d29c360c689aa10b73853d051b1 |
|
MD5 | 02c622514411fcc93dedb4f74b24e49f |
|
BLAKE2b-256 | 81019c379925eb035ead567be35a86b687909376a4e192afc06180e3da968026 |
Provenance
File details
Details for the file ols_client-0.0.6-py2.py3-none-any.whl
.
File metadata
- Download URL: ols_client-0.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a17cd31da2ade357706374c36b659b5096386c737a80e98f1b8bc06ef355d2f |
|
MD5 | e68f407fdd2a8ae064033914b3d1ab3e |
|
BLAKE2b-256 | ac027ea8a59d9f25d6a4204308ab80ea0ad349928fd624a37bf622292c7bbbc0 |