https://github.com/michaelsproul/aus_senate
Implementation of the Australian senate voting algorithm
https://github.com/michaelsproul/aus_senate
australia democracy rust stv voting
Last synced: about 1 year ago
JSON representation
Implementation of the Australian senate voting algorithm
- Host: GitHub
- URL: https://github.com/michaelsproul/aus_senate
- Owner: michaelsproul
- Created: 2016-07-11T08:57:30.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-27T01:59:48.000Z (over 3 years ago)
- Last Synced: 2025-04-22T22:42:50.629Z (about 1 year ago)
- Topics: australia, democracy, rust, stv, voting
- Language: Rust
- Homepage: https://sproul.xyz/senate/
- Size: 1.05 MB
- Stars: 27
- Watchers: 4
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Australian Senate Voting Algorithms
====
[](https://travis-ci.org/michaelsproul/aus_senate)
This is an implementation of the Australian Senate Voting algorithm as described by the AEC.
The AEC won't show us their code, but we can still verify their results using an independent
implementation!
You can read more about this project on [Medium][medium-article].
All code in [Rust][].
# Running the Code
To download all the CSV files, verify their integrity and run the elections, just do this:
```
$ ./run.py
```
You'll need Python and a Rust compiler.
You can also run elections for a few states of your choice:
```
$ ./run.py NSW SA
```
# Other Implementations
[Grahame Bowland](https://github.com/grahame) maintains a Python implementation
of the same algorithm, and hosts a nice site with the results:
* Code: https://github.com/grahame/dividebatur
* Results: https://angrygoats.net/senate2016/#/index
# License
Copyright Michael Sproul 2016. Licensed under the terms of the [GNU General Public License version 3.0 or later][gpl].
[Rust]: https://www.rust-lang.org
[gpl]: https://www.gnu.org/licenses/gpl-3.0.en.html
[medium-article]: https://medium.com/@michaelsproul/how-to-calculate-a-nation-states-election-result-in-your-bedroom-30f0c5d905af