Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elex-clarity-0.0.1b0.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distributions

elex_clarity-0.0.1b0-py3.7.egg (21.9 kB view hashes)

Uploaded Source

elex_clarity-0.0.1b0-py2.py3-none-any.whl (11.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page