Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Latest commit

 

History

History
48 lines (28 loc) · 1.1 KB

README.md

File metadata and controls

48 lines (28 loc) · 1.1 KB

This repo is no longer maintained or updated.

datasets_service

Microservice implementation of Datasets from CanDIG v1 for CanDIG v2

Based on CanDIG demo projects: OpenAPI variant service demo, Python Model Service.

Stack

Installation

The datasets_service can be installed in a py3.7+ virtual environment:

pip install -r requirements.txt

Running

The service can be started with:

python -m candig_dataset_service

If wanting to run multiple nodes on the same network, create different service configs and specify them at runtime:

python -m candig_dataset_service --host 0.0.0.0 --port 4232 --logfile ./log/newlog.log

Once the service is running, a Swagger UI can be accessed at : /v2/

Testing

Tests can be run with pytest and coverage:

pytest --cov=candig_datasets tests/