CoopGT
A library for the study of cooperative game theory. It works with characteristic function games and provides the Shapley value, checks of standard properties (validity, monotonicity, superadditivity, convexity), and core membership.
Documentation
Full documentation, including a theory section, is available here: https://drvinceknight.github.io/coopgt/
Installation
$ python -m pip install coopgt
Development
This project uses uv for environment management,
ruff for linting and formatting,
ty for type checking, and
zensical for the documentation.
Clone the repository and install the development dependencies:
$ git clone https://github.com/drvinceknight/coopgt.git
$ cd coopgt
$ uv sync --group dev
Run the checks and the test suite:
$ uv run ruff check src/ tests/
$ uv run ruff format --check src/ tests/
$ uv run ty check src/
$ uv run pytest
Build and preview the documentation:
$ uv run zensical build
$ uv run zensical serve
Code of conduct
In the interest of fostering an open and welcoming environment, all contributors, maintainers and users are expected to abide by the Python code of conduct: https://www.python.org/psf/codeofconduct/
Metadata
Release files for coopgt 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| coopgt-0.0.3.tar.gz | 63.0 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| coopgt-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 69.1 kB
Release files / coopgt-0.0.3.tar.gz
| Download URL | coopgt-0.0.3.tar.gz |
|---|---|
| Size | 63.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74e679fa92fa1022e05957298a010143c3154182eaa45b763c61e9034d2676b6
|
|
BLAKE2b-256 checksum How to use checksums |
53a4c6cecee5e3ef43cc329a863c1a12692889b43bedac374b330d8a55f69e4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.
Transparency logRelease files / coopgt-0.0.3-py3-none-any.whl
| Download URL | coopgt-0.0.3-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
747ad32d9355d8c8586b3dea09a9d097c29a39bfed3411188202f5ef986e30a8
|
|
BLAKE2b-256 checksum How to use checksums |
450aba8748efb0e40b8220f5fe4e6c1e30feed740b1a78607e7ccc16b4e74f54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.
Transparency logSecurity for coopgt 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for coopgt-0.0.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.