Skip to main content

A HTTP REST API to work with the HPO Ontology

Project description

A HTTP REST-API wrapper for PyHPO

Main features

This package allows an easy setup of a REST API to interact with HPO Terms using the PyHPO package.

Installation / Setup

The easiest way to install PyHPO-API is via pip

pip install pyhpoapi

Usage

Getting started

The easiest way to get started is to run the API via

uvicorn pyhpoapi.main:app

Parallel processing

If you want better performance for parallel request handling, you can run PyHPO-API with multiple workers

uvicorn pyhpoapi.main:app --workers 15

CORS

If you need to allow cross-origin requests, you can simply create a config.ini file in your working directory and specify CORS settings:

[default]
cors-origins = *
cors-methods = GET,POST
cors-headers = *

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyhpoapi-1.1.0.tar.gz (41.4 kB view hashes)

Uploaded Source

Built Distribution

pyhpoapi-1.1.0-py3-none-any.whl (42.1 kB view hashes)

Uploaded Python 3

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