Skip to content

protocol/pystarboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

PyStarboard

Python interface for querying starboard for Filecoin statistics, via Spacescope.

Prerequisites

Check the setup.py script for dependencies.

Installing

This package can be installed from source by cloning this repository and installing it manually with the command:

python setup.py install

Setup for Data Access

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.

Steps:

  1. Follow the instructions here to get your own unique bearer token for data access.
  2. Store your token in a json configuration file with the key auth_key. An example is:
{
    "auth_key": "Bearer ghp_xJtTSVcNRJINLWMmfDangcIFCjqPUNZenoVe"
}

Usage

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)

See also

About

Python interface for Starboard data downloads

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages