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 +1 -1
- bittensor_cli/cli.py +1 -1
- bittensor_cli/src/commands/subnets.py +15 -7
- {bittensor_cli-8.2.0rc12.dist-info → bittensor_cli-8.2.0rc13.dist-info}/METADATA +1 -1
- {bittensor_cli-8.2.0rc12.dist-info → bittensor_cli-8.2.0rc13.dist-info}/RECORD +8 -8
- {bittensor_cli-8.2.0rc12.dist-info → bittensor_cli-8.2.0rc13.dist-info}/WHEEL +0 -0
- {bittensor_cli-8.2.0rc12.dist-info → bittensor_cli-8.2.0rc13.dist-info}/entry_points.txt +0 -0
- {bittensor_cli-8.2.0rc12.dist-info → bittensor_cli-8.2.0rc13.dist-info}/top_level.txt +0 -0
bittensor_cli/__init__.py
CHANGED
bittensor_cli/cli.py
CHANGED
@@ -2084,12 +2084,22 @@ async def price(
|
|
2084
2084
|
]
|
2085
2085
|
subnet_infos = await asyncio.gather(*subnet_info_cors)
|
2086
2086
|
|
2087
|
-
|
2088
|
-
|
2089
|
-
|
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
|
2092
|
-
err_console.print(
|
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,5 +1,5 @@
|
|
1
|
-
bittensor_cli/__init__.py,sha256=
|
2
|
-
bittensor_cli/cli.py,sha256=
|
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=
|
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.
|
27
|
-
bittensor_cli-8.2.
|
28
|
-
bittensor_cli-8.2.
|
29
|
-
bittensor_cli-8.2.
|
30
|
-
bittensor_cli-8.2.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|