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

Example CanDIG service following best practices in python. API viewable at:

License

Notifications You must be signed in to change notification settings

CanDIG/python_model_service

Repository files navigation

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

About

Example CanDIG service following best practices in python. API viewable at:

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published