bittensor-cli 8.2.0rc12__py3-none-any.whl → 8.2.0rc13__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
bittensor_cli/__init__.py CHANGED
@@ -18,6 +18,6 @@
18
18
  from .cli import CLIManager
19
19
 
20
20
 
21
- __version__ = "8.2.0rc12"
21
+ __version__ = "8.2.0rc13"
22
22
 
23
23
  __all__ = ["CLIManager", "__version__"]
bittensor_cli/cli.py CHANGED
@@ -62,7 +62,7 @@ except ImportError:
62
62
  pass
63
63
 
64
64
 
65
- __version__ = "8.2.0rc12"
65
+ __version__ = "8.2.0rc13"
66
66
 
67
67
 
68
68
  _core_version = re.match(r"^\d+\.\d+\.\d+", __version__).group(0)
@@ -2084,12 +2084,22 @@ async def price(
2084
2084
  ]
2085
2085
  subnet_infos = await asyncio.gather(*subnet_info_cors)
2086
2086
 
2087
- prices = []
2088
- for subnet_info in subnet_infos:
2089
- prices.append(subnet_info.price.tao)
2087
+ valid_data = [
2088
+ (bn, info)
2089
+ for bn, info in zip(block_numbers, subnet_infos)
2090
+ if info is not None
2091
+ ]
2092
+ if not valid_data:
2093
+ err_console.print(f"[red]No price data found for subnet {netuid}[/red]")
2094
+ return
2095
+
2096
+ block_numbers, subnet_infos = zip(*valid_data)
2097
+ prices = [subnet_info.price.tao for subnet_info in subnet_infos]
2090
2098
 
2091
- if not prices:
2092
- err_console.print(f"[red]No price data found for subnet {netuid}[/red]")
2099
+ if len(prices) < 5:
2100
+ err_console.print(
2101
+ f"[red]Insufficient price data for subnet {netuid}. Need at least 5 data points but only found {len(prices)}.[/red]"
2102
+ )
2093
2103
  return
2094
2104
 
2095
2105
  fig = plotille.Figure()
@@ -2098,8 +2108,6 @@ async def price(
2098
2108
  fig.color_mode = "rgb"
2099
2109
  fig.background = None
2100
2110
 
2101
- block_numbers = list(range(current_block - total_blocks, current_block + 1, step))
2102
-
2103
2111
  def color_label(text):
2104
2112
  return plotille.color(text, fg=(186, 233, 143), mode="rgb") # Green
2105
2113
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bittensor-cli
3
- Version: 8.2.0rc12
3
+ Version: 8.2.0rc13
4
4
  Summary: Bittensor CLI
5
5
  Home-page: https://github.com/opentensor/btcli
6
6
  Author: bittensor.com
@@ -1,5 +1,5 @@
1
- bittensor_cli/__init__.py,sha256=J1bstX_bUtHS_XqjhnvjuVkHK7jpFEVEXuA7pUkuQTE,1221
2
- bittensor_cli/cli.py,sha256=knLDIvBJSDrgLbfb32ToKOJWZdFpsi-bv2WuN-jCFpA,156081
1
+ bittensor_cli/__init__.py,sha256=xAILUH3afQeZzSszUzL5phiL4q9L-DGjLa9Qb9EPnFI,1221
2
+ bittensor_cli/cli.py,sha256=tgukEorJrNCTXNmqNFjZL8QVgjZtw3pB_fTGADC0bqE,156081
3
3
  bittensor_cli/doc_generation_helper.py,sha256=GexqjEIKulWg84hpNBEchJ840oOgOi7DWpt447nsdNI,91
4
4
  bittensor_cli/src/__init__.py,sha256=6i5Faz1h2ZX3YzgBT4E3w0ayZnzWmBCzUqnPefXpOQA,32004
5
5
  bittensor_cli/src/bittensor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -16,15 +16,15 @@ bittensor_cli/src/bittensor/extrinsics/root.py,sha256=RZEQv6QVDAQDjuX_vgjOMsatYv
16
16
  bittensor_cli/src/bittensor/extrinsics/transfer.py,sha256=8-7LVM8Xt_K-f_pJfAVeybSF_mr3pJorjs963TQbRZ0,8407
17
17
  bittensor_cli/src/bittensor/templates/table.j2,sha256=P2EFiksnO1cQsB8zjK6hVJwUryHTsLslzRE0YtobAV8,10601
18
18
  bittensor_cli/src/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
- bittensor_cli/src/commands/subnets.py,sha256=dFr_e__Y21OBafVCTUtaLa0CgutcPofPVW2RqSH3_gQ,85088
19
+ bittensor_cli/src/commands/subnets.py,sha256=tB8HFKFJqy9eUPgf4kVZwb7kL1a6Ehj5_RnQQ0Hmu64,85389
20
20
  bittensor_cli/src/commands/sudo.py,sha256=kLxqEledQVAGxqPb4cJrb8oDomHSZ1PwioCxubnIjRs,26268
21
21
  bittensor_cli/src/commands/wallets.py,sha256=m4OYKq-6r2Fg8WkF_kCP81ittdZL1uWRgPukptihaE0,52204
22
22
  bittensor_cli/src/commands/weights.py,sha256=3BCqVB1-W6BG0U_iOtuUZmFOQ9QngsnXAkBLwCHjK0g,16440
23
23
  bittensor_cli/src/commands/stake/__init__.py,sha256=kcQE86CfemAw2LoNBHA_FIwixf4VyJ26FT10f0peJEU,6569
24
24
  bittensor_cli/src/commands/stake/children_hotkeys.py,sha256=WTFR0oprtOzMc5x0MXtWm595Bd4yK9iZCymwc3whr0U,28215
25
25
  bittensor_cli/src/commands/stake/stake.py,sha256=MdBRj4sAuZGNJ5edPHLeaaNO4OQD70ThAUUYMKOLlvA,123929
26
- bittensor_cli-8.2.0rc12.dist-info/METADATA,sha256=wS2N_2Ypkd6i0SZ36R_zK3kL1b1rR8tA5LCwIEBsveY,6842
27
- bittensor_cli-8.2.0rc12.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
28
- bittensor_cli-8.2.0rc12.dist-info/entry_points.txt,sha256=hBTLGLbVxmAKy69XSKaUZvjTCmyEzDGZKq4S8UOto8I,49
29
- bittensor_cli-8.2.0rc12.dist-info/top_level.txt,sha256=DvgvXpmTtI_Q1BbDZMlK90LFcGFCreN1daViEPV2iFw,14
30
- bittensor_cli-8.2.0rc12.dist-info/RECORD,,
26
+ bittensor_cli-8.2.0rc13.dist-info/METADATA,sha256=hSJvbEXbFBbojxEtOzM15LUWgY0KB1kjs0ZkBfCHnhY,6842
27
+ bittensor_cli-8.2.0rc13.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
28
+ bittensor_cli-8.2.0rc13.dist-info/entry_points.txt,sha256=hBTLGLbVxmAKy69XSKaUZvjTCmyEzDGZKq4S8UOto8I,49
29
+ bittensor_cli-8.2.0rc13.dist-info/top_level.txt,sha256=DvgvXpmTtI_Q1BbDZMlK90LFcGFCreN1daViEPV2iFw,14
30
+ bittensor_cli-8.2.0rc13.dist-info/RECORD,,