Python API for adjudicating single transferable vote elections. Also contains basic web server to adjudicate results in CSV format.
Project description
Python project for adjudicating ranked choice voting elections using the single transferable vote (STV) method. For more information on ranked choice voting, visit the FairVote website on RCV.
The project also contains a small flask server for adjudicating and visualizing election results from a CSV file. It is automatically deployed at at pyrcv.org
Free software: GNU General Public License v3
Documentation: https://pystv.readthedocs.io.
Features
General standards and APIs for voting data and vote tabulation.
Tabulation of ranked-choice elections using the single-transferable-vote (STV) method.
Support for both single-winner and multi-winner contests.
Generation of Sankey diagram showing the flow of vote counts through the rounds of a multi-round election.
Parser for converting Google Form based election output to voting data standard format.
Web server which processes CSV data output from a Google Form based election, and displays winners and a Sankey diagram.
Credits
Inspired by FairVote and CalRCV. FairVote’s examples were extremely helpful for development and correctness-testing.
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
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 pystv-2.0.2.tar.gz
.
File metadata
- Download URL: pystv-2.0.2.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dc3ec4bd5afec12baabe4e1572bdb4a4457e682f4b71798b9043ad61b470981 |
|
MD5 | a1cf79473b89ced15aba29a7fb2fded5 |
|
BLAKE2b-256 | d0be44770ab1323d1b854bd091931bb2b8bb75aea4812672187133b8264a8704 |
File details
Details for the file pystv-2.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: pystv-2.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3375ecdca218cd42a91500dca15f39ce7996340d5e3230ec8034bb4ba948fdea |
|
MD5 | 2b23e7596ad4a205b36c13462ad37770 |
|
BLAKE2b-256 | 004ef24d0513eba5c9a4180df9f26563df15dd71f7eaaf7be2a977d8c8dc8c64 |