Tools for online voter registration in the United States of America
Project description
voter-tools
Tools for online voter registration in the United States of America.
Contains a command-line tool (vote
) and a python library (voter_tools
) to:
- Check voter registration status in key states, currently including:
- Georgia
- Michigan
- Pennsylvania
- Wisconsin
- Perform online voter registration (OVR) directly with key states, via their APIs. We currently support the Pennsylvania OVR API with plans to support Michigan and Washington states in the future.
Installation
Install this library using pip
:
pip install voter-tools
Command-line usage
Check registration of a single voter
To check whether a voter is registered:
vote check <first-name> <last-name> <zip> <dob YYYY-MM-DD> [--details]
This will tell you whether the user is registered to vote. You can request extra details (registration date, current status, etc.) with the --details
flag. Not all states support all details.
Check registration of multiple voters in bulk
There is also a tool to check every record in a CSV file:
vote check-csv <input-file.csv> [--details]
A new CSV is written to stdout
with the same fields as the input CSV plus extras related to the registration check.
Interact with the Pennsylvania API
The vote
command contains a number of sub-commands for interacting directly with the Pennsylvania state API.
For instance, to invoke the API's "get available languages" call:
> vote pa get-languages
languages=(Language(code='LANGENG', name='English'), Language(code='LANGSPN', name='Spanish'), Language(code='LANGTCN', name='Chinese'))
Use vote pa --help
for details on available subcommands.
Development
To contribute to this library, first checkout the code. Then create a new virtual environment:
cd voter-tools
python -m venv .venv
source .venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[dev]'
To run tests:
make test
To run a full lint/typecheck/test pass:
make check
State-specific documents
We've collected state-specific documents in the docs
directory and will try to keep them up-to-date as state APIs change.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file voter_tools-0.0.17.tar.gz
.
File metadata
- Download URL: voter_tools-0.0.17.tar.gz
- Upload date:
- Size: 660.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1d53abacbd196b8f117e6c31b78af5adb93ea627aa4275b25e9eef2bbf03a22 |
|
MD5 | d093c21f55848d0987d4d3070670087d |
|
BLAKE2b-256 | 37c8fe9ea00e51954ceee11753fc7404779c9cadb09951ab9e371a86d37a010e |
File details
Details for the file voter_tools-0.0.17-py3-none-any.whl
.
File metadata
- Download URL: voter_tools-0.0.17-py3-none-any.whl
- Upload date:
- Size: 669.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a132ab0d3678bcab23d0c5d5f8185b19af4c29dfe7f422e813c9967da1ec0de9 |
|
MD5 | 495239579e495bae8bb0774661a049d3 |
|
BLAKE2b-256 | 1af6f243d8533e90eeadf1fbc24a9881ae33c38c4e9da77147e53bc3e9d5cf47 |