A CLI for pulling in election results from Clarity
Project description
A CLI tool for pulling in election results from sites using Clarity.
Usage
Examples:
Pulling raw data:
elexclarity 105369 GA --outputType=summary --style=raw
elexclarity 105369 GA --outputType=settings --style=raw
elexclarity 105369 GA --level=precinct --style=raw
Getting formatted settings:
elexclarity 105369 GA --outputType=settings --officeID=P
Pulling formatted results:
Note: these require that you pass in county mapping as a JSON object. Sample formats can be found in the tests/fixtures folder here.
elexclarity 105369 GA --level=precinct --countyMapping='{"Worth": "13321"}'
elexclarity 105369 GA --level=precinct
elexclarity 105369 GA --level=county
elexclarity 106210 WV --level=county --countyMapping='<mapping json>'
elexclarity 105369 WV --level=state
Using a local file:
elexclarity 105369 GA --level=precinct --filename="tests/fixtures/results/ga_atkinson_precincts_11-3.xml" --countyMapping='<mapping json>'
elexclarity 105369 GA --level=county --filename="tests/fixtures/ga_counties_11-3.xml" --countyMapping='<mapping json>'
Installation
Ideally, set up a virtualenv and activate it (http://virtualenvwrapper.readthedocs.io/en/latest/)
pip install -e . [dev]
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 Distributions
Hashes for elex_clarity-0.0.1b0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f17f9a95c9b2e97d516550a956ec7dbdd912da868366c8a8026100ff856ecc8c |
|
MD5 | 36200a747f4dbfeef530d4ca5682d0e6 |
|
BLAKE2b-256 | 629d8bab2308db0af5302d120ea135d0b75bf2eca37f5d8f9aed74a2975ea4d4 |