Metadata-Version: 2.0
Name: ols-client
Version: 0.0.4
Summary: Interact with EBI Ontology Lookup Service
Home-page: https://github.com/cthoyt/ols-client
Author: Charles Tapley Hoyt
Author-email: charles.hoyt@scai.fraunhofer.de
License: Apache 2.0 License
Keywords: Ontology Lookup Service,Semantics
Platform: UNKNOWN
Requires-Dist: click
Requires-Dist: requests

OLS Client
==========
A Python wrapper for accessing the RESTful API of the Ontology Lookup Service

Installation
------------
Install the latest stable version from PyPI

.. code:: sj

    $ python3 -m pip install ols_client

Install the latest version directly from GitHub

.. code:: sh

    $ 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
~~~~~~~~~~~~~
.. code:: sh

    $ python3 -m ols_client labels chebi > chebi.txt


