Library for preference (or ranked) voting
Project description
votingsys
Overview
A Python library that provides implementations of various voting systems. This library is designed to simulate the outcomes of elections using multiple voting methods. It enables users to compare how different voting systems may influence election results based on the same set of voter preferences or inputs.
Motivation
Documentation
- latest (stable): documentation from the latest stable release.
- main (unstable): documentation associated to the main branch of the repo. This documentation may contain a lot of work-in-progress/outdated/missing parts.
Installation
We highly recommend installing
a virtual environment.
votingsys can be installed from pip using the following command:
pip install votingsys
To make the package as slim as possible, only the minimal packages required to use votingsys are
installed.
To include all the dependencies, you can use the following command:
pip install votingsys[all]
Please check the get started page to see how
to install only some specific dependencies or other alternatives to install the library.
The following is the corresponding votingsys versions and tested dependencies.
votingsys |
numpy |
polars |
python |
|---|---|---|---|
main |
>=2.0,<3.0 |
>=1.0,<2.0 |
>=3.10,<3.15 |
* indicates an optional dependency
older versions
Contributing
Please check the instructions in CONTRIBUTING.md.
Suggestions and Communication
Everyone is welcome to contribute to the community. If you have any questions or suggestions, you can submit Github Issues. We will reply to you as soon as possible. Thank you very much.
API stability
:warning: While votingsys is in development stage, no API is guaranteed to be stable from one
release to the next.
In fact, it is very likely that the API will change multiple times before a stable 1.0.0 release.
In practice, this means that upgrading votingsys to a new version will possibly break any code
that was using the old version of votingsys.
License
votingsys is licensed under BSD 3-Clause "New" or "Revised" license available
in LICENSE file.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file votingsys-0.0.1a1.tar.gz.
File metadata
- Download URL: votingsys-0.0.1a1.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87dc73872b0f3fd3c872fd1cebb8936389fb8677114f97760e8bb0328fa16b4c
|
|
| MD5 |
cec09419ed23910d6cfb10c1bce47d73
|
|
| BLAKE2b-256 |
0d8675384d2a5fccb373b3eb0bffd5ef78bff68928c7ed8e26f68bc4971241a2
|
File details
Details for the file votingsys-0.0.1a1-py3-none-any.whl.
File metadata
- Download URL: votingsys-0.0.1a1-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16444193bf922637078b0a4fa4e5a3e103020c6b90912fbdaa9fc7674004e79c
|
|
| MD5 |
7a6d16e1c20a88021d84148ded817ad4
|
|
| BLAKE2b-256 |
eed51cd2cab7e72cd5df4788417fc28aea25cfd2f0d9751f89cd4941b5b56377
|