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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ebi-ols-client-1.1.0.tar.gz.
File metadata
- Download URL: ebi-ols-client-1.1.0.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
903cd231c2ca189017ceacd3a82dbaa906ff4221c00d71a493d234d6a01b5a53
|
|
| MD5 |
bee61d44a39a3f8d9bcd26540ac7d0f4
|
|
| BLAKE2b-256 |
f422736949375dca9a3b70f80f73fbd2bee71b308de14795ba5f42075356bd72
|
File details
Details for the file ebi_ols_client-1.1.0-py3-none-any.whl.
File metadata
- Download URL: ebi_ols_client-1.1.0-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.5.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c4135611d0d88228f4f1ebde28ae6a7b5be00633ac5fa47de8abd8392772dac
|
|
| MD5 |
803122ca3b95f445ecdd85a7d371999e
|
|
| BLAKE2b-256 |
9806c2acf9b42713823fd282822f8d8aa03936ec60a56158c858cd73f17bcd11
|