Skip to main content

Coverage Status Build Status

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)

Source distribution for ebi-ols-client 1.1.0
File Size Uploaded
ebi-ols-client-1.1.0.tar.gz 15.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ebi-ols-client 1.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page