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.2.tar.gz (33.9 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.2-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tao_cli-0.6.2.tar.gz
  • Upload date:
  • Size: 33.9 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.2.tar.gz
Algorithm Hash digest
SHA256 e379732e313d14f96ef6814e3cac5da52c65f09d98b016bd84d4a17346831ed1
MD5 c4de798fb33a2818b7a15f5becebf15d
BLAKE2b-256 61502aedd0aa72ecce86aa921fe47291c816ccb8867b6469e509b2703f356ecb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tao_cli-0.6.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 78d175ee693e74cb5494cc74986f50d5af26929733ac12bdcb462d18fafca210
MD5 e17b4ca28431821247c554ad30b6b887
BLAKE2b-256 f9b2e1dbe69f41658b4de4f3df794025c1adc78d075e496f03ac89a18a1c1f3a

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