Skip to content

chicagopcdc/PcdcAnalysisTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PCDC Analysis tool

Installation

For Development

python -m venv env
source env/bin/activate
poetry install
python run.py
deactivate

For Development

build the container

docker build -t pcdcanalysistools:test .

add the container in the revproxy conf and in the docker-compose.yml file

Documentation

Sphinx

Auto-documentation is set up using Sphinx. To build it, run

cd docs
make html

which by default will output the index.html page to docs/build/html/index.html.

Swagger

OpenAPI documentation available here.

The YAML file comtaining the OpenAPI documentation is in the openapi folder; see the README in that folder for more details.

End Point Tests

python -m venv env source env/bin/activate poetry install

create .env file: Full_DATA_PATH = 'test_data\data.json' SHORT_DATA_PATH = 'test_data\data_short.json' NO_DATA_PATH = 'test_data\no_data.json' DATA_PATH = 'test_data\data_short_stats.json' Short_DATA_SURVIVAL_PATH = 'test_data\data_short_survival.json' Short_DATA_STATS_PATH = 'test_data\data_short_stats.json' SHORT_DATA_EXTERNAL_PATH = 'test_data\data_external.json' Short_DATA_TABLEONE_PATH = 'test_data\data_short_tableone.json' MOCK_DATA = 'True'

if MOCK_DATA does not equal true then data will come from guppy data otherwise data will come from mock data from json files

pytest tests\endpoint.py

About

microservice for analysis tools

Topics

Resources

License

Stars

Watchers

Forks

Contributors 8

Languages