Skip to main content

Python library for biproportional and other apportionment methods.

Reason this release was yanked:

Dependencies contained an error that rendered them unresolvable.

Project description

Biprop - A Python Library for Calculating Biproportional Apportionments

[!CAUTION] DO NOT use this repository to calculate the official results of actual elections! The code in this repository was not formally verified and might not always deliver correct results or terminate.

[!WARNING] Please note that version 0.x.x of biprop.py is still experimental. I am currently working on a more mature and user-friendly version of biprop.py that will not be backwards compatible with version 0.x.x.

Welcome to the the biprop repository. This repository is meant for election enthusiats and statistics nerds like me who want to ask questions like

How would the parliament of country X look like if they used biproportional apportionment in their last election?

or

How would the apportionment change if party Y and Z ran together as one and if we introduced a quorum that parties have to fulfill?

The repository includes the biprop.py module which contains all the relevant functions to answer questions like the ones above. It also contains an example.py module that uses the 2019 and 2023 Swiss National Council Elections to demonstrate how to use biprop.py.

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

biprop-1.0.0.tar.gz (314.3 kB view details)

Uploaded Source

Built Distribution

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

biprop-1.0.0-py3-none-any.whl (34.6 kB view details)

Uploaded Python 3

File details

Details for the file biprop-1.0.0.tar.gz.

File metadata

  • Download URL: biprop-1.0.0.tar.gz
  • Upload date:
  • Size: 314.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for biprop-1.0.0.tar.gz
Algorithm Hash digest
SHA256 30f0bc522d12e04c9e8a6fc154e5249af86e2d5d1b431eab7e1553d79be66c88
MD5 29b2ae0858cd008125ca6ec5a447a1b2
BLAKE2b-256 b223a780462d55e7aa956c83e4f52e83cf5ddfbfc5e5b63caa363da8ceb735d3

See more details on using hashes here.

File details

Details for the file biprop-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: biprop-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 34.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for biprop-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e17b66d13825659413a1ac1f829d3a2fd25a41e761991dd3e241a5b42c807a42
MD5 37b4f1ca41e9db714d1a831e59d181f5
BLAKE2b-256 34154dab03835f4672c26e2eb300e9aad86bd0eac79a6092228322289475c309

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