Skip to content
This repository has been archived by the owner on Oct 22, 2022. It is now read-only.

Latest commit

 

History

History
49 lines (35 loc) · 1.81 KB

README.md

File metadata and controls

49 lines (35 loc) · 1.81 KB

Python Model Service

Based on a CanDIG OpenAPI variant service demo, this toy service demonstrates the Python OpenAPI stack with CanDIG API best practices.

Build Status CodeFactor PyUp Quay.io

Stack

Installation

The server software can be installed in a virtual environment:

pip install -r requirements.txt
pip install -r requirements_dev.txt
python setup.py develop

for automated testing you can install dredd; assuming you already have node and npm installed,

npm install -g dredd

Running

The server can be run with, for instance

python3 -m python_model_service --database=test.db --logfile=test.log --loglevel=WARN

For testing, the dredd config is currently set up to launch the service itself, so no server needs be running:

cd tests
dredd --hookfiles=dreddhooks.py