Skip to main content

Interact with EBI Ontology Lookup Service

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


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.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

ols_client-0.0.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file ols_client-0.0.2.tar.gz.

File metadata

  • Download URL: ols_client-0.0.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ols_client-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2c827a99426a6966b1c568d1db2b8fb77c831f6b065ed5fe0994ec6c38b86877
MD5 3f82451f328bf90d4811a01d2d11b942
BLAKE2b-256 b96c8e9eee1a9229123eed069fe95f6ed47236a86285ef41e97d5812cf6ec876

See more details on using hashes here.

Provenance

File details

Details for the file ols_client-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ols_client-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 386ac32c0f73e9321217c1ef8de7fc0612812dc1fbe7f97e21abf7f50c81f347
MD5 e83d538490a917603ac6a88d814dd445
BLAKE2b-256 6cc309b59140cbddb6ca1fb8db9a802fb2ac69199867b83707fc823c58bd6f23

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page