Installation¶
Glitter sdk is in the Python Package Index. This tutorial walks you through how to set up glitter-sdk-py for local development.
The glitter Python Driver depends on:
Python 3.5+
A recent Python 3 version of pip
A recent Python 3 version of setuptools
Installing with pip¶
We recommend using pip to install glitter_sdk on all platforms:
$ python3 -m pip install glitter_sdk
To get a specific version of glitter:
$ python3 -m pip install glitter_sdk=0.1.2
To upgrade using pip:
$ python3 -m pip install --upgrade glitter_sdk
Dependencies¶
You can install all dependencies automatically with the following command:
$ python3 -m pip install glitter_sdk[requests]
Installing from source¶
If you’d rather install directly from the source (i.e. to stay on the bleeding edge), install the C extension dependencies then check out the latest source from GitHub and install the driver from the resulting tree:
$ git clone https://github.com/glitternetwork/glitter-sdk-py glitter-sdk-py
$ cd glitter-sdk-py/
$ python3 setup.py install