Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.
/ subtensor-api Public archive

A nodejs CLI and python package for connecting with a bittensor subtensor node and accessing chain storage.

License

Notifications You must be signed in to change notification settings

opentensor/subtensor-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

subtensor-api

Running the CLI

Install from pypi

pip install subtensorapi==1.1.0

Usage

python3 -m subtensorapi --help
python3 -m subtensorapi sync_and_save --help
python3 -m subtensorapi sync_and_save_historical --help
python3 -m subtensorapi sync_and_save_historical_difficulty --help
python3 -m subtensorapi blockAtReg_and_save --help

Release subtensor-api python package

In order to release the subtensor-api python package we should:

  1. Update version (update_version.sh)
  2. Release package (release.sh)
    1. Tag github repo
    2. Generate github release
    3. Update python wheel to pypi

You can do this with the following commands:

cd subtensor-api/ && \
./scripts/release/update_version.sh minor && \
./scripts/release/release.sh

Note that this command will release a minor version. For major or patch version change the usage of the update_version.sh script (major, minor and patch are allowed).