A mock system for testing MPI implementations
Loads .csv into pandas and dumps to sqlite table in common database
Exposes API for processing ingested tables
Exposes API to de-identify a table
MPI NoSQL demos require a configured MongoDB instance.
Setting up MongoDB
- Start MongoDB container
podman run -d --name mongo_db -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=mongoadmin -e MONGO_INITDB_ROOT_PASSWORD=dbpassword mongo
- Enter the container and create a collection
podman exec -it mongo_db bash
- Create application Role and DB (or skip and use root stuff for testing)
XXXX
Tests written with pytest
Run all tests with:
pytest
Update environment.yml with
conda env export > environment.yml
- Check that pip dependencies written in.
You can create a pipenv shell from environment.yml via:
- Steps (probably want a requirements.txt or something)