Installation

The Soccermetrics API Python client library depends on the Requests and easydict libraries. You can install the client library within a virtual environment on your computer, or install it system-wide.

Python 2.6+ is required.

It’s not required, but autoenv is very nice to have.

Virtual Environment Install

We recommend installing soccermetrics-client-py within a virtual environment using virtualenv. That way you can run different versions of Python installations and libraries without dealing with conflicting dependencies.

We also recommend installing virtualenvwrapper. As it says on the label, it is a wrapper around virtualenv that manages the virtual environments on your machine and allows you to customize pre- and post-activation (and deactivation) behavior, such as setting environment variables or opening your text editor.

Here is a link to a nice tutorial on Virtualenv. And a tutorial on virtualenvwrapper as well.

To install virtualenv on MacOS or Linux, create a folder and run one of these two commands as sudo:

$ sudo easy_install virtualenv

or

$ sudo pip install virtualenv

If you are on Windows, this link will show you how to install pip and distribute, which you will use to install virtualenv.

Download the current zipped version of the source code from GitHub, unzip the folder and run:

$ make install

System-Wide Install

If you want to install soccermetrics-client-py system-wide – not recommended because of possible library conflicts – download the current zipped version of the source code from GitHub, unzip the folder and run:

$ make install