openelections/wigab

Name: wigab

Owner: The OpenElections Project

Description: Python library to parse election results from Wisconsin's Government Accountability Board

Created: 2015-11-12 01:54:14.0

Updated: 2016-03-06 23:45:09.0

Pushed: 2015-11-12 01:59:53.0

Homepage: null

Size: 0

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

WIGAB

Wigab is a Python library from parsing the Excel spreadsheets containing election results produced by Wisconsin's Government Accountability Board. It currently returns a list of lists, with each element containing data that corresponds to one candidate result within a single jurisdiction (county or ward).

Installation

Wigab should be installed by cloning this repository.

Usage

In a Python shell, import the process_all function and supply it with a URL to an Excel file from the GAB site, along with a local file name:

from parser import process_all
results = process_all("http://www.gab.wi.gov/sites/default/files/11.4.2014%20Election%20Results%20-%20all%20offices%20w%20x%20w%20report.xlsx", "2014_general_ward_results.xlsx")
License

Wigab is released under the MIT License.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.