Skip to main content

Library for preference (or ranked) voting

Project description

votingsys

CI Nightly Tests Nightly Package Tests Codecov
Documentation Documentation
Code style: black Doc style: google Ruff Doc style: google
PYPI version Python BSD-3-Clause
Downloads Monthly downloads

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.9,<3.14

* 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

votingsys-0.0.1a0.tar.gz (91.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

votingsys-0.0.1a0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file votingsys-0.0.1a0.tar.gz.

File metadata

  • Download URL: votingsys-0.0.1a0.tar.gz
  • Upload date:
  • Size: 91.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.16

File hashes

Hashes for votingsys-0.0.1a0.tar.gz
Algorithm Hash digest
SHA256 961efce58073418cf66b853aed9b38582a85f6d9c11611027a725931a0e6b10b
MD5 14b805920c21f47868eaa57615b7c7ac
BLAKE2b-256 6e4512ce39c495987ee26e225a30b9e0d527577b7a93f4acb9c57827289f68a5

See more details on using hashes here.

File details

Details for the file votingsys-0.0.1a0-py3-none-any.whl.

File metadata

File hashes

Hashes for votingsys-0.0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 3092ed299dac727043fbdd36d9dda2f3d5454bd51a4517ea86f455ececf8bf0c
MD5 ae68f9744e5237455af90325f4d129b7
BLAKE2b-256 01684902130ef90eaad4f311d7039cc1004ce7b336bcac1e38472f02cf69133c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page