# fingerprint-capture
Daemon and associated code to capture all audio tracks for the AFIS (American Freedom Is Strong) project.

## Install
```
pyvenv-3.4 env
source env/bin/activate
pip install -r requirements.txt
pip install -r requirements-dev.txt
```

### Environment:
The `FPC_DB_URL` environment variable is required. This is the connection URL for the fingerprint capture database.

#### AWS Config:

AWS credentials can be configured in one of two ways:

1. $HOME/.aws/credentials file. [See AWS docs for format](http://docs.aws.amazon.com/aws-sdk-php/v2/guide/credentials.html#credential-profiles)
2. Environment variables
   * AWS_ACCESS_KEY_ID
   * AWS_SECRET_ACCESS_KEY

### Test:
```
py.test --cov fpcapture tests/
```

### Running The Queue Consumer Script
```
python process_queue.py -q QUEUE_NAME [-d DURATION_SECONDS]
```
