Skip to content

pwyf/data-quality-tester

Repository files navigation

Data Quality Tester

Test your IATI data against the Publish What You Fund Aid Transparency Index tests.

Installation option 1: using Vagrant

See the vagrant/README.md file for details.

Installation option 2: without Vagrant

  1. Clone the repository:

    git clone --recursive https://github.com/pwyf/data-quality-tester.git
    cd data-quality-tester
  2. Set up a virtualenv:

    python3.7 -m venv .ve
    source .ve/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Copy (and edit, if you wish) config.py.tmpl:

    cp config.py.tmpl config.py
  5. Set the environment variables:

    export FLASK_APP=DataQualityTester/__init__.py
    export FLASK_ENV=development

    …Or you can alternatively append it to .ve/bin/activate with something like:

    echo -e '\nexport FLASK_APP=DataQualityTester/__init__.py\nexport FLASK_ENV=development' >> .ve/bin/activate
  6. Build the assets, download codelists, and set up the database:

    flask assets build
    flask refresh-codelists
    flask db upgrade
    

Running (without Vagrant)

  1. Start a Redis server:

    If you have a native install of redis server:

    redis-server

    Alternatively, you can also run it in docker:

    docker run -d -p 6379:6379 redis
  2. Start a celery worker:

    celery --app DataQualityTester.celery worker
  3. Start the webserver:

    flask run

About

Test IATI activity files against PWYF index methodology

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published