Skip to main content

Python library for cooperative game theory.

Project description

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.

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

shapleypy-0.1.2.tar.gz (33.4 kB view hashes)

Uploaded Source

Built Distribution

shapleypy-0.1.2-py3-none-any.whl (30.7 kB view hashes)

Uploaded Python 3

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