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 = *
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
pyhpoapi-1.1.0.tar.gz
(41.4 kB
view hashes)
Built Distribution
pyhpoapi-1.1.0-py3-none-any.whl
(42.1 kB
view hashes)