Skip to content
This repository was archived by the owner on Jun 25, 2018. It is now read-only.

workforce-data-initiative/tpot-warehouse

Repository files navigation

IMPORTANT NOTE: THIS REPOSITORY IS NOW RETIRED. CURRENT TRANSACTIONAL DB IS HERE

Training Provider Outcomes Toolkit (TPOT) - Transactional Data Store

Transactional database holding pre-aggregated data that services the outcomes warehouse

License Updates Python 3 CircleCI

Developer Guide

To set up in local development environment:

Requirements

  1. Install Python 3.6.1 as applicable using downloads here

  2. Pip install the virtualenv module

    python3 -m pip install -U virtualenv
    
  3. Get latest source code from repository

    git clone https://github.com/workforce-data-initiative/tpot-warehouse.git
    cd tpot-warehouse
    

Setup: Transactional Database

  1. Update sqlite.transactional.database element in conf/db.dev.yml with the absolute path to the location where SQLite database file will be saved.

    Note: The .db file will be created when the migration(s) are run however all parent directories need to exist and current user have w+ permissions on those directories

  2. Create Python virtualenv and install requirements

    python3 -m venv ${VENV_NAME} ${ENV_DIR}
    . ${ENV_DIR}/bin/activate
    pip install -r requirements.dev.txt
    
  3. Run tests to verify install

    PYTHONPATH="." pytest -v -s --name transactional --adapter sqlite \
                               --dbconf conf/db.dev.yml tests/test_dbtransactional.py
    
  4. Run migrations to setup local transactional database instance

    PYTHONPATH='.' alembic -c alembic.ini -n transactional \
                           -x dbconf=conf/db.dev.yml -x adapter=sqlite upgrade head
    
  5. Connect to SQLite instance of transactional database from your database client of choice, using the absolute path set in Step 1

About

Warehouse for aggregated training provider outcomes data

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors