ols-client


Nameols-client JSON
Version 0.1.4 PyPI version JSON
download
home_pagehttps://github.com/cthoyt/ols-client
SummaryA client to the EBI Ontology Lookup Service
upload_time2023-05-06 10:20:33
maintainerCharles Tapley Hoyt
docs_urlNone
authorCharles Tapley Hoyt
requires_python>=3.7
licenseMIT
keywords snekpack cookiecutter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">
  OLS Client
</h1>

<p align="center">
    <a href="https://github.com/cthoyt/ols-client/actions?query=workflow%3ATests">
        <img alt="Tests" src="https://github.com/cthoyt/ols-client/workflows/Tests/badge.svg" />
    </a>
    <a href="https://pypi.org/project/ols_client">
        <img alt="PyPI" src="https://img.shields.io/pypi/v/ols_client" />
    </a>
    <a href="https://pypi.org/project/ols_client">
        <img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/ols_client" />
    </a>
    <a href="https://github.com/cthoyt/ols-client/blob/main/LICENSE">
        <img alt="PyPI - License" src="https://img.shields.io/pypi/l/ols_client" />
    </a>
    <a href='https://ols_client.readthedocs.io/en/latest/?badge=latest'>
        <img src='https://readthedocs.org/projects/ols_client/badge/?version=latest' alt='Documentation Status' />
    </a>
    <a href="https://codecov.io/gh/cthoyt/ols-client/branch/main">
        <img src="https://codecov.io/gh/cthoyt/ols-client/branch/main/graph/badge.svg" alt="Codecov status" />
    </a>  
    <a href="https://github.com/cthoyt/cookiecutter-python-package">
        <img alt="Cookiecutter template from @cthoyt" src="https://img.shields.io/badge/Cookiecutter-snekpack-blue" /> 
    </a>
    <a href='https://github.com/psf/black'>
        <img src='https://img.shields.io/badge/code%20style-black-000000.svg' alt='Code style: black' />
    </a>
    <a href="https://github.com/cthoyt/ols-client/blob/main/.github/CODE_OF_CONDUCT.md">
        <img src="https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg" alt="Contributor Covenant"/>
    </a>
    <a href="https://zenodo.org/badge/latestdoi/97004286">
        <img src="https://zenodo.org/badge/97004286.svg" alt="DOI">
    </a>
</p>

A client to the EBI Ontology Lookup Service (OLS) and other instances.

## 💪 Getting Started

One of several OLS clients can be instantiated and accessed with the same API:

```python
from ols_client import EBIClient

ebi_client = EBIClient()
ontologies = ebi_client.get_ontologies()
```

Further documentation can be found at
[ols-client.readthedocs.io](https://ols-client.readthedocs.io).

## 🚀 Installation

The most recent release can be installed from
[PyPI](https://pypi.org/project/ols_client/) with:

```bash
$ pip install ols_client
```

The most recent code and data can be installed directly from GitHub with:

```bash
$ pip install git+https://github.com/cthoyt/ols-client.git
```

## 👐 Contributing

Contributions, whether filing an issue, making a pull request, or forking, are appreciated. See
[CONTRIBUTING.md](https://github.com/cthoyt/ols-client/blob/master/.github/CONTRIBUTING.md) for more information on getting involved.

## 👋 Attribution

### ⚖️ License

The code in this package is licensed under the MIT License.

### Related

Since the creation of this repository, the EBI has also generated their
own client that can be found at https://github.com/Ensembl/ols-client and
on PyPI as `ebi-ols-client`.

### 🍪 Cookiecutter

This package was created with [@audreyfeldroy](https://github.com/audreyfeldroy)'s
[cookiecutter](https://github.com/cookiecutter/cookiecutter) package using [@cthoyt](https://github.com/cthoyt)'s
[cookiecutter-snekpack](https://github.com/cthoyt/cookiecutter-snekpack) template.

## 🛠️ For Developers

<details>
  <summary>See developer instructions</summary>


The final section of the README is for if you want to get involved by making a code contribution.

### Development Installation

To install in development mode, use the following:

```bash
$ git clone git+https://github.com/cthoyt/ols-client.git
$ cd ols-client
$ pip install -e .
```

### 🥼 Testing

After cloning the repository and installing `tox` with `pip install tox`, the unit tests in the `tests/` folder can be
run reproducibly with:

```shell
$ tox
```

Additionally, these tests are automatically re-run with each commit in a [GitHub Action](https://github.com/cthoyt/ols-client/actions?query=workflow%3ATests).

### 📖 Building the Documentation

The documentation can be built locally using the following:

```shell
$ git clone git+https://github.com/cthoyt/ols-client.git
$ cd ols-client
$ tox -e docs
$ open docs/build/html/index.html
``` 

The documentation automatically installs the package as well as the `docs`
extra specified in the [`setup.cfg`](setup.cfg). `sphinx` plugins
like `texext` can be added there. Additionally, they need to be added to the
`extensions` list in [`docs/source/conf.py`](docs/source/conf.py).

### 📦 Making a Release

After installing the package in development mode and installing
`tox` with `pip install tox`, the commands for making a new release are contained within the `finish` environment
in `tox.ini`. Run the following from the shell:

```shell
$ tox -e finish
```

This script does the following:

1. Uses [Bump2Version](https://github.com/c4urself/bump2version) to switch the version number in the `setup.cfg`,
   `src/ols_client/version.py`, and [`docs/source/conf.py`](docs/source/conf.py) to not have the `-dev` suffix
2. Packages the code in both a tar archive and a wheel using [`build`](https://github.com/pypa/build)
3. Uploads to PyPI using [`twine`](https://github.com/pypa/twine). Be sure to have a `.pypirc` file configured to avoid the need for manual input at this
   step
4. Push to GitHub. You'll need to make a release going with the commit where the version was bumped.
5. Bump the version to the next patch. If you made big changes and want to bump the version by minor, you can
   use `tox -e bumpversion minor` after.
</details>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/cthoyt/ols-client",
    "name": "ols-client",
    "maintainer": "Charles Tapley Hoyt",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "cthoyt@gmail.com",
    "keywords": "snekpack,cookiecutter",
    "author": "Charles Tapley Hoyt",
    "author_email": "cthoyt@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/7a/09/eeca61cc40048d764dacb955e5991cb13f16efe841e6eed37ad7e2a601ec/ols_client-0.1.4.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">\n  OLS Client\n</h1>\n\n<p align=\"center\">\n    <a href=\"https://github.com/cthoyt/ols-client/actions?query=workflow%3ATests\">\n        <img alt=\"Tests\" src=\"https://github.com/cthoyt/ols-client/workflows/Tests/badge.svg\" />\n    </a>\n    <a href=\"https://pypi.org/project/ols_client\">\n        <img alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/ols_client\" />\n    </a>\n    <a href=\"https://pypi.org/project/ols_client\">\n        <img alt=\"PyPI - Python Version\" src=\"https://img.shields.io/pypi/pyversions/ols_client\" />\n    </a>\n    <a href=\"https://github.com/cthoyt/ols-client/blob/main/LICENSE\">\n        <img alt=\"PyPI - License\" src=\"https://img.shields.io/pypi/l/ols_client\" />\n    </a>\n    <a href='https://ols_client.readthedocs.io/en/latest/?badge=latest'>\n        <img src='https://readthedocs.org/projects/ols_client/badge/?version=latest' alt='Documentation Status' />\n    </a>\n    <a href=\"https://codecov.io/gh/cthoyt/ols-client/branch/main\">\n        <img src=\"https://codecov.io/gh/cthoyt/ols-client/branch/main/graph/badge.svg\" alt=\"Codecov status\" />\n    </a>  \n    <a href=\"https://github.com/cthoyt/cookiecutter-python-package\">\n        <img alt=\"Cookiecutter template from @cthoyt\" src=\"https://img.shields.io/badge/Cookiecutter-snekpack-blue\" /> \n    </a>\n    <a href='https://github.com/psf/black'>\n        <img src='https://img.shields.io/badge/code%20style-black-000000.svg' alt='Code style: black' />\n    </a>\n    <a href=\"https://github.com/cthoyt/ols-client/blob/main/.github/CODE_OF_CONDUCT.md\">\n        <img src=\"https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg\" alt=\"Contributor Covenant\"/>\n    </a>\n    <a href=\"https://zenodo.org/badge/latestdoi/97004286\">\n        <img src=\"https://zenodo.org/badge/97004286.svg\" alt=\"DOI\">\n    </a>\n</p>\n\nA client to the EBI Ontology Lookup Service (OLS) and other instances.\n\n## \ud83d\udcaa Getting Started\n\nOne of several OLS clients can be instantiated and accessed with the same API:\n\n```python\nfrom ols_client import EBIClient\n\nebi_client = EBIClient()\nontologies = ebi_client.get_ontologies()\n```\n\nFurther documentation can be found at\n[ols-client.readthedocs.io](https://ols-client.readthedocs.io).\n\n## \ud83d\ude80 Installation\n\nThe most recent release can be installed from\n[PyPI](https://pypi.org/project/ols_client/) with:\n\n```bash\n$ pip install ols_client\n```\n\nThe most recent code and data can be installed directly from GitHub with:\n\n```bash\n$ pip install git+https://github.com/cthoyt/ols-client.git\n```\n\n## \ud83d\udc50 Contributing\n\nContributions, whether filing an issue, making a pull request, or forking, are appreciated. See\n[CONTRIBUTING.md](https://github.com/cthoyt/ols-client/blob/master/.github/CONTRIBUTING.md) for more information on getting involved.\n\n## \ud83d\udc4b Attribution\n\n### \u2696\ufe0f License\n\nThe code in this package is licensed under the MIT License.\n\n### Related\n\nSince the creation of this repository, the EBI has also generated their\nown client that can be found at https://github.com/Ensembl/ols-client and\non PyPI as `ebi-ols-client`.\n\n### \ud83c\udf6a Cookiecutter\n\nThis package was created with [@audreyfeldroy](https://github.com/audreyfeldroy)'s\n[cookiecutter](https://github.com/cookiecutter/cookiecutter) package using [@cthoyt](https://github.com/cthoyt)'s\n[cookiecutter-snekpack](https://github.com/cthoyt/cookiecutter-snekpack) template.\n\n## \ud83d\udee0\ufe0f For Developers\n\n<details>\n  <summary>See developer instructions</summary>\n\n\nThe final section of the README is for if you want to get involved by making a code contribution.\n\n### Development Installation\n\nTo install in development mode, use the following:\n\n```bash\n$ git clone git+https://github.com/cthoyt/ols-client.git\n$ cd ols-client\n$ pip install -e .\n```\n\n### \ud83e\udd7c Testing\n\nAfter cloning the repository and installing `tox` with `pip install tox`, the unit tests in the `tests/` folder can be\nrun reproducibly with:\n\n```shell\n$ tox\n```\n\nAdditionally, these tests are automatically re-run with each commit in a [GitHub Action](https://github.com/cthoyt/ols-client/actions?query=workflow%3ATests).\n\n### \ud83d\udcd6 Building the Documentation\n\nThe documentation can be built locally using the following:\n\n```shell\n$ git clone git+https://github.com/cthoyt/ols-client.git\n$ cd ols-client\n$ tox -e docs\n$ open docs/build/html/index.html\n``` \n\nThe documentation automatically installs the package as well as the `docs`\nextra specified in the [`setup.cfg`](setup.cfg). `sphinx` plugins\nlike `texext` can be added there. Additionally, they need to be added to the\n`extensions` list in [`docs/source/conf.py`](docs/source/conf.py).\n\n### \ud83d\udce6 Making a Release\n\nAfter installing the package in development mode and installing\n`tox` with `pip install tox`, the commands for making a new release are contained within the `finish` environment\nin `tox.ini`. Run the following from the shell:\n\n```shell\n$ tox -e finish\n```\n\nThis script does the following:\n\n1. Uses [Bump2Version](https://github.com/c4urself/bump2version) to switch the version number in the `setup.cfg`,\n   `src/ols_client/version.py`, and [`docs/source/conf.py`](docs/source/conf.py) to not have the `-dev` suffix\n2. Packages the code in both a tar archive and a wheel using [`build`](https://github.com/pypa/build)\n3. Uploads to PyPI using [`twine`](https://github.com/pypa/twine). Be sure to have a `.pypirc` file configured to avoid the need for manual input at this\n   step\n4. Push to GitHub. You'll need to make a release going with the commit where the version was bumped.\n5. Bump the version to the next patch. If you made big changes and want to bump the version by minor, you can\n   use `tox -e bumpversion minor` after.\n</details>\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A client to the EBI Ontology Lookup Service",
    "version": "0.1.4",
    "project_urls": {
        "Bug Tracker": "https://github.com/cthoyt/ols-client/issues",
        "Download": "https://github.com/cthoyt/ols-client/releases",
        "Homepage": "https://github.com/cthoyt/ols-client",
        "Source Code": "https://github.com/cthoyt/ols-client"
    },
    "split_keywords": [
        "snekpack",
        "cookiecutter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1490104f364c37ff9e5f250540da38a00ba5e7facd05a831bd089f8ed7b7cc2e",
                "md5": "ad6546ab50b3b4068553aee21a93e06f",
                "sha256": "7bdca0590042e07cc7ee3ef3fba99c3b6862cde6c8835afb129de31284b3e010"
            },
            "downloads": -1,
            "filename": "ols_client-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ad6546ab50b3b4068553aee21a93e06f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 10206,
            "upload_time": "2023-05-06T10:20:31",
            "upload_time_iso_8601": "2023-05-06T10:20:31.166190Z",
            "url": "https://files.pythonhosted.org/packages/14/90/104f364c37ff9e5f250540da38a00ba5e7facd05a831bd089f8ed7b7cc2e/ols_client-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7a09eeca61cc40048d764dacb955e5991cb13f16efe841e6eed37ad7e2a601ec",
                "md5": "0bf1034930a8b117ec2cdad680df861a",
                "sha256": "cd2a0f39107f39eaf0f40b9098f12d442cf3d43e28228e63feb407d0aeb44470"
            },
            "downloads": -1,
            "filename": "ols_client-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "0bf1034930a8b117ec2cdad680df861a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 16259,
            "upload_time": "2023-05-06T10:20:33",
            "upload_time_iso_8601": "2023-05-06T10:20:33.521500Z",
            "url": "https://files.pythonhosted.org/packages/7a/09/eeca61cc40048d764dacb955e5991cb13f16efe841e6eed37ad7e2a601ec/ols_client-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-06 10:20:33",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cthoyt",
    "github_project": "ols-client",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "ols-client"
}
        
Elapsed time: 0.06318s