Skip to content

civiccc/voter-verifier-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5a3aa13 · May 5, 2019
May 5, 2019
May 5, 2019
Feb 20, 2018
May 5, 2019
May 5, 2019
May 5, 2019
Jun 24, 2015
May 5, 2019
May 5, 2019
Jun 29, 2018
Jun 29, 2018
Nov 16, 2012
Nov 25, 2016
May 5, 2019
May 5, 2019
May 5, 2019
Oct 22, 2015
May 5, 2019
May 5, 2019
Feb 20, 2018
May 5, 2019
May 5, 2019
Apr 2, 2018
May 5, 2019

Repository files navigation

Verifier

This is the Elasticsearch-based system which resolves buckets of fuzzy contact info to one or more voter registration records. The most interesting entrypoints is the match_many routines in matching.py.

By nature, the algorithm filters rather little and ranks rather much.

In indexing.INDEX_SETTINGS, the number_of_replicas is presently 2.

Development

TODO: The dock integration broke when forked and opensourced, and needs to be fixed.

To get started with development for the verifier, you need to install Docker and our dock utility:

You can then get started by running dock in the root of the repository:

$ dock

You'll see additional instructions after running dock.

Deployment

TODO

Testing

You can run tests in a container with:

$ make test

JSON Schema

To generate a new version of the schema.json file:

prmd combine --meta schema/meta.json schema/voters.json > schema.json

Ruby client

To create the ruby client :

heroics-generate VerifierAPI schema.json http://127.0.0.1:5000  > verifier_api.rb