Skip to main content

A Python package for apportionment.

Project description

A package that allows users to apportion seats to states based on population figures.

This apportionment package calculates results for the following methods:

  • Hamilton's method
  • Jefferson's method
  • Adam's method
  • Webster's method
  • Huntington Hill's method
  • Method of equal proportions

Hamilton's method calculations:

  • fair shares
  • initial fair shares
  • initial quotas
  • final quotas
  • initial divisor
  • modified divisor

Jefferson's method calculations:

  • fair shares
  • initial fair shares
  • initial quotas
  • final quotas
  • initial divisor
  • modified divisor
  • divisor history

Adam's method calculations:

  • fair shares
  • initial fair shares
  • initial quotas
  • final quotas
  • initial divisor
  • modified divisor
  • divisor history

Webster's method calculations:

  • fair shares
  • initial fair shares
  • initial quotas
  • final quotas
  • initial divisor
  • modified divisor
  • divisor history

Huntington Hill's method calculations:

  • fair shares
  • initial fair shares
  • initial quotas
  • final quotas
  • initial geometric means
  • final geometric means
  • initial divisor
  • modified divisor

Method of equal proportions calculations:

  • fair shares

Experimental features:

  • estimate the lowest possible divisor possible
  • estimate the highest possible divisor possible

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

apportionpy-0.3.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

apportionpy-0.3.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file apportionpy-0.3.1.tar.gz.

File metadata

  • Download URL: apportionpy-0.3.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

File hashes

Hashes for apportionpy-0.3.1.tar.gz
Algorithm Hash digest
SHA256 8dbc5bf4aced30bd2eec10236d59ed82b8d74ec17808a64fcb4f3e1a03e1fdcd
MD5 0fc47d76f71f76008758714807a8dbaf
BLAKE2b-256 f454a4eab670b89ce8668d18b6ce9360953ea06e2e5a60f6b902c9300445ad0d

See more details on using hashes here.

File details

Details for the file apportionpy-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: apportionpy-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

File hashes

Hashes for apportionpy-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 601acd136022cfe458c8bb2a72146e174b68eccf7f8d40c45dca422b1cadb37c
MD5 214f0c497a728b5ca49abd2b5c011f97
BLAKE2b-256 0f9ace2c486ae2d96e55af3eef848ea42a8759b7e48c37a6ca0df8f2916918a2

See more details on using hashes here.

Supported by

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