Skip to main content

Python CLI + SDK wrapper for agcli — Bittensor staking, transfers, wallets, weights, subnets, and more

Project description

taocli

Python CLI + SDK wrapper for agcli — Bittensor staking, transfers, wallets, weights, subnets, and more.

CI codecov PyPI

Install

uv pip install taocli

Requires the agcli binary on your PATH. See agcli releases.

CLI

taocli mirrors agcli 1:1 — same commands, same flags, same output:

taocli wallet list
taocli balance --address 5G...
taocli stake add --amount 10 --netuid 1
taocli subnet list
taocli view portfolio
taocli transfer --dest 5G... --amount 1.0

SDK

from taocli import Client

c = Client(network="finney")

# Balance
c.balance(address="5G...")

# Wallet
c.wallet.list()
c.wallet.create()

# Staking
c.stake.add(10.0, netuid=1)
c.stake.list()

# Transfer
c.transfer.transfer("5G...", 1.0)

# Subnet
c.subnet.list()
c.subnet.show(1)

# View
c.view.portfolio()
c.view.network()

SDK Modules

All modules are accessible as attributes on the Client instance.

Module Attribute Description
Balance c.balance() Query account balances
Wallet c.wallet Create, list, import, sign, verify wallets
Stake c.stake Add, remove, move, swap stake; limit orders; auto-compound
Transfer c.transfer Send TAO between accounts
Subnet c.subnet List, register, metagraph, health, cache, dissolve
Weights c.weights Set, commit, reveal, commit-reveal weights
View c.view Portfolio, network, dynamic, neuron, validators, analytics
Delegate c.delegate Show, list delegates; adjust take
Root c.root Root network registration and weights
Identity c.identity Set, get, remove on-chain + subnet identity
Proxy c.proxy Add, remove, pure, announced proxy accounts
Serve c.serve Serve axon/prometheus endpoints
Commitment c.commitment Set, get, list miner commitments
Config c.config Get, set, list, reset config; cache management
Swap c.swap Hotkey swap, coldkey swap, EVM key association
Admin c.admin Sudo operations — set hyperparameters
Audit c.audit Security audit of account exposure
Explain c.explain Built-in Bittensor concept reference
Block c.block Query block info, latest, ranges
Diff c.diff Compare state between blocks
Multisig c.multisig Submit, approve, execute threshold calls
Crowdloan c.crowdloan Create, contribute, manage crowdloans
Liquidity c.liquidity Add, remove, modify AMM positions
Subscribe c.subscribe Subscribe to blocks and events
Scheduler c.scheduler Schedule on-chain calls
Preimage c.preimage Store governance preimages
Contracts c.contracts Upload, instantiate, call WASM contracts
EVM c.evm Call EVM contracts, withdraw to Substrate
SafeMode c.safe_mode Enter/exit safe mode
Drand c.drand Write drand randomness pulses
Localnet c.localnet Start, stop, reset local dev chain
Batch c.batch Run batch extrinsics from JSON
Utils c.utils Convert denominations, measure latency

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tao_cli-0.6.3.tar.gz (35.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tao_cli-0.6.3-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

Details for the file tao_cli-0.6.3.tar.gz.

File metadata

  • Download URL: tao_cli-0.6.3.tar.gz
  • Upload date:
  • Size: 35.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for tao_cli-0.6.3.tar.gz
Algorithm Hash digest
SHA256 6f77218e0805bf0ec5741b9a9054402e6a6501e0cbbae9b21d2b1d615cd53d56
MD5 0580c658e630799f33c03b1fbc308472
BLAKE2b-256 9a0e065c73d37ca3149691cefe81d704a63962ea08203f08d45a88ed95a4c0e9

See more details on using hashes here.

File details

Details for the file tao_cli-0.6.3-py3-none-any.whl.

File metadata

  • Download URL: tao_cli-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 33.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for tao_cli-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 70dbaa626ae19a20b3a338c56aebf62f27ed57edf067762ae4699ff4b02432b3
MD5 7c9f9584b6c0572dcfc333c0568a4b6e
BLAKE2b-256 b7eb0cd77c96f04bb029acdbd0571021170ad2f64eb8de2cc531260c660e7f88

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page