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 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 local config
Swap c.swap Schedule and check coldkey swaps
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.1.tar.gz (33.1 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.1-py3-none-any.whl (33.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tao_cli-0.6.1.tar.gz
  • Upload date:
  • Size: 33.1 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.1.tar.gz
Algorithm Hash digest
SHA256 084005bad899ebcf1af08533d87d8433930015dd12c16bacf696f48d399aca0c
MD5 4acc50fcb788ff645632ea9fced0696e
BLAKE2b-256 fe2e9fff4eb7ac8039f10afd18e9821eb0a43933e7355d0ac54f24036c9266aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tao_cli-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 33.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2536ce2f10b8cc4c2c79dbd9353452f1ee7e9c9b9f33b7cd0aad27d9b274828f
MD5 2e40919e1ddd5f29eafe833dcdbe6b7a
BLAKE2b-256 450635a55acb63b077b268b4c4f2fcc56651f91ed134f368e5f8828051b6d080

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