This collection of Python 3.6 scripts automates download, processing, and import into ActionKit of donation records from a vendor. process.py
runs the entire process. Each step is in a separate file that can also be run independently. Each script can be run with --help
to get info on the script and parameters. All parameters can be passed in as command line flags or added to settings.py
.
Travis is setup to auto-deploy this repo on commits to the main
branch. Deploying requires both settings.py
and zappa_settings.json
, which are excluded from the repo, but included in an encrypted tar file, secrets.tar.enc
. If either of these files need to be updated, the process for updating what Travis uses for deploy is:
tar cvf secrets.tar zappa_settings.json settings.py
travis encrypt-file secrets.tar --add
rm secrets.tar
git add .travis.yml
git add secrets.tar.enc
Python 3.6
Setup with:
virtualenv -p python3 venv source venv/bin/activate pip install -r requirements.txt