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.
Metadata
Release files for python-vote-core 20120423.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-vote-core-20120423.0.tar.gz | 29.8 kB | Without provenance | Details for python-vote-core-20120423.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_vote_core-20120423.0-py2.7.egg | Legacy Egg format | - | - | Details for python_vote_core-20120423.0-py2.7.egg |
Total release size: 104.3 kB
Release files / python-vote-core-20120423.0.tar.gz
| Download URL | python-vote-core-20120423.0.tar.gz |
|---|---|
| Size | 29.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b69ebe52c851e3e789a9ee656ee60840284a2b00b10f9b4dee7b396a867eb35d
|
|
BLAKE2b-256 checksum How to use checksums |
173459054b45c1b995a38361f1bd692af8f047762a2fb485c6bccb02593242f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / python_vote_core-20120423.0-py2.7.egg
| Download URL | python_vote_core-20120423.0-py2.7.egg |
|---|---|
| Size | 74.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
7f6d9614615e52a51d8af4fb445c0961644425596fb0b89d7de739fbc6910e3a
|
|
BLAKE2b-256 checksum How to use checksums |
6eeb7dad243e347e7499eebba32df45f0aca949f58882f8a72010eb545b44620
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-vote-core 20120423.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.