This repo is no longer maintained or updated.
Microservice implementation of Datasets from CanDIG v1 for CanDIG v2
Based on CanDIG demo projects: OpenAPI variant service demo, Python Model Service.
- Connexion for implementing the API
- Bravado-core for Python classes from the spec
- Python 3
- Pytest
The datasets_service can be installed in a py3.7+ virtual environment:
pip install -r requirements.txt
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/
Tests can be run with pytest and coverage:
pytest --cov=candig_datasets tests/