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.1b1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 622a1fb7233c7b3328af89d8898d94dccec81d08452c7be2d2bf291894fc87e2 |
|
MD5 | de6a64487ecd55ed5cb4bf90a88029f5 |
|
BLAKE2b-256 | da0167574f0c382e21354f6edf86d5e2451bb490c996070793eda9956adff683 |