Python library for cooperative game theory.
Project description
Shapleypy
A python library for cooperative game theory
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
CPPFLAGSare not meant for C++, butCXXFLAGSare 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
brewas shown you probably also will need to set paths of libraries installed bybrewfor 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shapleypy-0.1.2.tar.gz.
File metadata
- Download URL: shapleypy-0.1.2.tar.gz
- Upload date:
- Size: 33.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7692bdbf5f0d7ddb9d358e67b217b5a6597dd34a220a9ac9a1b549d4056e3b0
|
|
| MD5 |
cfaf01db648267f3b590430b2543e1b9
|
|
| BLAKE2b-256 |
99395c67b983c413336223d1e5a9616fa76636fe772e67d34173efd07dccd8b4
|
File details
Details for the file shapleypy-0.1.2-py3-none-any.whl.
File metadata
- Download URL: shapleypy-0.1.2-py3-none-any.whl
- Upload date:
- Size: 30.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e60fa476cee5c27b5942675fde4eccdd4235f333ae1096cc3e1fc0c3b21be8a2
|
|
| MD5 |
32857a6282c715de544f3f1dd368e257
|
|
| BLAKE2b-256 |
e662362e43da706b2813d4dddfefdca5eedde897faeaca1ea909ca48d0f96f79
|