Python interface for querying starboard for Filecoin statistics, via Spacescope.
Check the setup.py
script for dependencies.
This package can be installed from source by cloning this repository and installing it manually with the command:
python setup.py install
pystarboard
is a convenient interface for pulling data from Spacescope. Spacescope requires users to register for a unique token in order to request the historical data. Thus, each user of pystarboard
needs to register for a unique token to enable data access - this is a prerequisite to use pystarboard
.
- Follow the instructions here to get your own unique bearer token for data access.
- Store your token in a json configuration file with the key
auth_key
. An example is:
{
"auth_key": "Bearer ghp_xJtTSVcNRJINLWMmfDangcIFCjqPUNZenoVe"
}
You will need to ensure that you setup your data access properly by running the following code
import pystarboard.data as data
path_to_auth_cfg="<UPDATE ME>"
data.setup_spacecope(path_to_auth_cfg)