OLS - REST Api Client - python library
Project description
OLS Ontologies loader
Provide class based client for accessing OLS RestAPI from EMBL-EBI
Install
with pip
pip install ebi-ols-client
See: https://www.ebi.ac.uk/ols/docs/api for more information on OLS API
Main files
- ebi.ols.api.client.py: contains main classes to access OLS via HAL schema.
- ebi.ols.api.helpers.py: data tranfer object loaded from API calls
How to use
from ebi.ols.api.client import OlsClient
client = OlsClient()
ontology = client.ontology('fpo')
terms = ontology.terms()
individuals = ontology.individuals()
properties = ontology.properties()
# work with all 'list' item types (terms, individuals, properties
for term in terms:
# do whatever
print(term)
# Direct List'like access on all list types
term = terms[1254]
individual = individuals[123]
# ...
Contribute
Please do ! If you need to run tests locally, add to your virtual env requirements-dev.txt content.None
pip install -r requirements.txt
pip install -r requirements-dev.txt
# to run tests
nosetests --withcoverage
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
ebi-ols-client-1.1.0.tar.gz
(15.7 kB
view hashes)
Built Distribution
Close
Hashes for ebi_ols_client-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c4135611d0d88228f4f1ebde28ae6a7b5be00633ac5fa47de8abd8392772dac |
|
MD5 | 803122ca3b95f445ecdd85a7d371999e |
|
BLAKE2b-256 | 9806c2acf9b42713823fd282822f8d8aa03936ec60a56158c858cd73f17bcd11 |