opentensor / subtensor-api

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

Home Page:https://pypi.org/project/subtensorapi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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).

About

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

https://pypi.org/project/subtensorapi/

License:MIT License


Languages

Language:Python 60.8%Language:JavaScript 30.4%Language:Shell 7.2%Language:Makefile 1.7%