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
Metadata
Release files for ebi-ols-client 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ebi-ols-client-1.1.0.tar.gz | 15.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ebi_ols_client-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.0 kB
Release files / ebi-ols-client-1.1.0.tar.gz
| Download URL | ebi-ols-client-1.1.0.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
903cd231c2ca189017ceacd3a82dbaa906ff4221c00d71a493d234d6a01b5a53
|
|
BLAKE2b-256 checksum How to use checksums |
f422736949375dca9a3b70f80f73fbd2bee71b308de14795ba5f42075356bd72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / ebi_ols_client-1.1.0-py3-none-any.whl
| Download URL | ebi_ols_client-1.1.0-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c4135611d0d88228f4f1ebde28ae6a7b5be00633ac5fa47de8abd8392772dac
|
|
BLAKE2b-256 checksum How to use checksums |
9806c2acf9b42713823fd282822f8d8aa03936ec60a56158c858cd73f17bcd11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|