An implementation of various election methods, most notably the Schulze Method and Schulze STV.
Project description
python-vote-core implements various electoral methods, providing the results calculated off a provided set of ballots and options.
Project page: http://github.com/bradbeattie/python-vote-core
Issue tracker: http://github.com/bradbeattie/python-vote-core/issues
Example usage: http://vote.cognitivesandbox.com, http://modernballots.com
Methods implemented
Single Winner Methods
Plurality (aka first-past-the-post or fptp)
Instant-Runoff Voting (aka IRV)
Schulze Method (aka Beatpath)
Multiple Winner Methods
Plurality at large (aka block voting)
Single Transferable Vote (aka STV)
Schulze STV
Ordering Methods
Schulze Proportional Representation
Schulze Nonproportional Representation
Basic Usage
Schulze method example:
print SchulzeMethod([ { "count":3, "ballot":[["A"], ["C"], ["D"], ["B"]] }, { "count":9, "ballot":[["B"], ["A"], ["C"], ["D"]] }, { "count":8, "ballot":[["C"], ["D"], ["A"], ["B"]] }, { "count":5, "ballot":[["D"], ["A"], ["B"], ["C"]] }, { "count":5, "ballot":[["D"], ["B"], ["C"], ["A"]] } ], ballot_notation = "grouping").as_dict()
20110509.1 —
Fixing PyPi release
20110509.0 —
Initial PyPi release
License
Copyright (C) 2009, Brad Beattie
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses.
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 python-vote-core-20120423.0.tar.gz
.
File metadata
- Download URL: python-vote-core-20120423.0.tar.gz
- Upload date:
- Size: 29.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b69ebe52c851e3e789a9ee656ee60840284a2b00b10f9b4dee7b396a867eb35d |
|
MD5 | 0d1448eda378e2dbbba70ad9f9f0a787 |
|
BLAKE2b-256 | 173459054b45c1b995a38361f1bd692af8f047762a2fb485c6bccb02593242f0 |
File details
Details for the file python_vote_core-20120423.0-py2.7.egg
.
File metadata
- Download URL: python_vote_core-20120423.0-py2.7.egg
- Upload date:
- Size: 74.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f6d9614615e52a51d8af4fb445c0961644425596fb0b89d7de739fbc6910e3a |
|
MD5 | 16b966a03389c0cd9d2485e37f9c7029 |
|
BLAKE2b-256 | 6eeb7dad243e347e7499eebba32df45f0aca949f58882f8a72010eb545b44620 |