See https://docs.trustar.co/ for the official documentation to the TruSTAR Python SDK.
Make sure you have the latest version of Requests package
$ sudo pip install requests --upgrade
$ pip install trustar --upgrade
-
Get the latest SDK by downloading as a ZIP and extract locally. You can also clone the repository directly from GitHub
-
Install requirements
- Python 2.7+:
$ sudo pip install future python-dateutil pytz requests configparser
- Python 3:
$ sudo pip3 install future python-dateutil pytz requests configparser
- Install SDK
$ cd trustar-python
$ python setup.py install --force
$ pip uninstall trustar
- Retrieve or generate API credentials from the TruSTAR Station: https://station.trustar.co/settings/api
- Inside the
examples
directory, create your owntrustar.conf
file fromtrustar.conf.example
and Copy in your credentials and enclave IDs
$ cd examples
$ python basic_usage.py
$ python3 basic_usage.py
To setup this project for development:
- Create a virtualenv using python 3:
virtualenv --no-site-packages -p python3 venv3
- Activate the virtualenv:
source ./venv3/bin/activate
- Install this package in editable mode:
pip install -e .
- Although step 3 will install the core requirements for the package, some additional packages are used during
development (specifically,
nose
). To install these, run
pip install -r requirements.txt