Skip to main content

Shapleypy

A python library for cooperative game theory

PyPI - Version PyPI - Python Version Test License: GPL v3


Table of Contents

Installation

To install latest stable version use:

pip install shapleypy

To install latest development version use:

pip install -i https://test.pypi.org/simple/ shapleypy

Linux

To install this package for Linux you need to set $CPPFLAGS to contain -std=c++11. This can be achieve by

export CPPFLAGS="-std=c++11 $CPPFLAGS"

[!NOTE] We know that CPPFLAGS are not meant for C++, but CXXFLAGS are not suported by setuptools.

or by running the installation in form of

CPPFLAGS="-std=c++11" pip install shapleypy

not to make the standart pernament.

Also there are some non-python dependencies. Those could be installed via distribution package manager.

Ubuntu:

sudo apt-get install -y ppl-dev libgmp-dev libmpfr-dev libmpc-dev

MacOS

[!WARNING] Convex game generator is currently not available for MacOS

There are some non-python requirements. These could be installed via homebrew:

brew install ppl gmp mpfr libmpc

[!NOTE] If you installed those dependencies via brew as shown you probably also will need to set paths of libraries installed by brew for clang: export CFLAGS="-I/opt/homebrew/include/ -L/opt/homebrew/lib/ -I/opt/homebrew/include/ -L/opt/homebrew/lib $CFLAGS"

Windows

[!WARNING] Convex game generator and core solution concept are currently not available for Windows

License

Shapleypy is distributed under the terms of the GPL-3.0 license.

Metadata

Release files for shapleypy 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shapleypy 0.1.2
File Size Uploaded
shapleypy-0.1.2.tar.gz 33.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shapleypy 0.1.2
File Interpreter ABI Platform
shapleypy-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 64.1 kB

Release files / shapleypy-0.1.2.tar.gz

Download URL shapleypy-0.1.2.tar.gz
Size 33.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b7692bdbf5f0d7ddb9d358e67b217b5a6597dd34a220a9ac9a1b549d4056e3b0
BLAKE2b-256 checksum
How to use checksums
99395c67b983c413336223d1e5a9616fa76636fe772e67d34173efd07dccd8b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / shapleypy-0.1.2-py3-none-any.whl

Download URL shapleypy-0.1.2-py3-none-any.whl
Size 30.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e60fa476cee5c27b5942675fde4eccdd4235f333ae1096cc3e1fc0c3b21be8a2
BLAKE2b-256 checksum
How to use checksums
e662362e43da706b2813d4dddfefdca5eedde897faeaca1ea909ca48d0f96f79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page