bittensor-cli 9.4.4__py3-none-any.whl → 9.5.1__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/cli.py +3 -10
- bittensor_cli/src/bittensor/templates/main-filters.j2 +24 -0
- bittensor_cli/src/bittensor/templates/main-header.j2 +36 -0
- bittensor_cli/src/bittensor/templates/neuron-details.j2 +111 -0
- bittensor_cli/src/bittensor/templates/price-multi.j2 +113 -0
- bittensor_cli/src/bittensor/templates/price-single.j2 +99 -0
- bittensor_cli/src/bittensor/templates/subnet-details-header.j2 +49 -0
- bittensor_cli/src/bittensor/templates/subnet-details.j2 +32 -0
- bittensor_cli/src/bittensor/templates/subnet-metrics.j2 +57 -0
- bittensor_cli/src/bittensor/templates/subnets-table.j2 +28 -0
- bittensor_cli/src/bittensor/templates/table.j2 +267 -0
- bittensor_cli/src/bittensor/templates/view.css +1058 -0
- bittensor_cli/src/bittensor/templates/view.j2 +43 -0
- bittensor_cli/src/bittensor/templates/view.js +1053 -0
- bittensor_cli/src/bittensor/utils.py +8 -38
- bittensor_cli/src/commands/stake/add.py +1 -1
- bittensor_cli/src/commands/stake/remove.py +1 -1
- bittensor_cli/src/commands/subnets/price.py +48 -289
- bittensor_cli/src/commands/sudo.py +10 -6
- bittensor_cli/src/commands/view.py +24 -2615
- bittensor_cli/src/commands/wallets.py +1 -7
- {bittensor_cli-9.4.4.dist-info → bittensor_cli-9.5.1.dist-info}/METADATA +5 -5
- bittensor_cli-9.5.1.dist-info/RECORD +48 -0
- bittensor_cli-9.4.4.dist-info/RECORD +0 -35
- {bittensor_cli-9.4.4.dist-info → bittensor_cli-9.5.1.dist-info}/WHEEL +0 -0
- {bittensor_cli-9.4.4.dist-info → bittensor_cli-9.5.1.dist-info}/entry_points.txt +0 -0
- {bittensor_cli-9.4.4.dist-info → bittensor_cli-9.5.1.dist-info}/top_level.txt +0 -0
@@ -9,7 +9,6 @@ import aiohttp
|
|
9
9
|
from bittensor_wallet import Wallet, Keypair
|
10
10
|
from bittensor_wallet.errors import KeyFileError
|
11
11
|
from bittensor_wallet.keyfile import Keyfile
|
12
|
-
from fuzzywuzzy import fuzz
|
13
12
|
from rich import box
|
14
13
|
from rich.align import Align
|
15
14
|
from rich.table import Column, Table
|
@@ -1227,16 +1226,11 @@ async def overview(
|
|
1227
1226
|
|
1228
1227
|
if sort_by:
|
1229
1228
|
column_to_sort_by: int = 0
|
1230
|
-
highest_matching_ratio: int = 0
|
1231
1229
|
sort_descending: bool = False # Default sort_order to ascending
|
1232
1230
|
|
1233
1231
|
for index, column in zip(range(len(table.columns)), table.columns):
|
1234
|
-
# Fuzzy match the column name. Default to the first column.
|
1235
1232
|
column_name = column.header.lower().replace("[white]", "")
|
1236
|
-
|
1237
|
-
# Finds the best matching column
|
1238
|
-
if match_ratio > highest_matching_ratio:
|
1239
|
-
highest_matching_ratio = match_ratio
|
1233
|
+
if column_name == sort_by.lower().strip():
|
1240
1234
|
column_to_sort_by = index
|
1241
1235
|
|
1242
1236
|
if sort_order.lower() in {"desc", "descending", "reverse"}:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: bittensor-cli
|
3
|
-
Version: 9.
|
3
|
+
Version: 9.5.1
|
4
4
|
Summary: Bittensor CLI
|
5
5
|
Author: bittensor.com
|
6
6
|
Project-URL: homepage, https://github.com/opentensor/btcli
|
@@ -13,23 +13,23 @@ Requires-Dist: aiohttp~=3.10.2
|
|
13
13
|
Requires-Dist: backoff~=2.2.1
|
14
14
|
Requires-Dist: click<8.2.0
|
15
15
|
Requires-Dist: GitPython>=3.0.0
|
16
|
-
Requires-Dist: fuzzywuzzy~=0.18.0
|
17
16
|
Requires-Dist: netaddr~=1.3.0
|
18
17
|
Requires-Dist: numpy<3.0.0,>=2.0.1
|
19
18
|
Requires-Dist: Jinja2
|
20
19
|
Requires-Dist: pycryptodome<4.0.0,>=3.0.0
|
21
20
|
Requires-Dist: PyYAML~=6.0.1
|
22
|
-
Requires-Dist: pytest
|
23
|
-
Requires-Dist: python-Levenshtein
|
24
21
|
Requires-Dist: rich<15.0,>=13.7
|
25
22
|
Requires-Dist: scalecodec==1.2.11
|
26
23
|
Requires-Dist: typer<0.16,>=0.12
|
27
24
|
Requires-Dist: bittensor-wallet>=3.0.7
|
28
25
|
Requires-Dist: plotille>=5.0.0
|
29
|
-
Requires-Dist: pywry>=0.6.2
|
30
26
|
Requires-Dist: plotly>=6.0.0
|
31
27
|
Provides-Extra: cuda
|
32
28
|
Requires-Dist: torch<3.0,>=1.13.1; extra == "cuda"
|
29
|
+
Provides-Extra: dev
|
30
|
+
Requires-Dist: pytest; extra == "dev"
|
31
|
+
Requires-Dist: pytest-asyncio; extra == "dev"
|
32
|
+
Requires-Dist: ruff==0.11.5; extra == "dev"
|
33
33
|
|
34
34
|
<div align="center">
|
35
35
|
|
@@ -0,0 +1,48 @@
|
|
1
|
+
bittensor_cli/__init__.py,sha256=Lpv4NkbAQgwrfqFOnTMuR_S-fqGdaWCSLhxnFnGTHM0,1232
|
2
|
+
bittensor_cli/cli.py,sha256=GevazPYTMJSxzFcaXJREePe7Ah0O-86YOg7KtoZLwXI,217251
|
3
|
+
bittensor_cli/doc_generation_helper.py,sha256=GexqjEIKulWg84hpNBEchJ840oOgOi7DWpt447nsdNI,91
|
4
|
+
bittensor_cli/version.py,sha256=dU1xsa3mG5FPdhzvqlzDByNcCHmzcFQH3q1pQr4u76g,720
|
5
|
+
bittensor_cli/src/__init__.py,sha256=dRBcdUWIqHTyusuvuhP4PrRc9MWmnmj76WDWLHxhjmA,33795
|
6
|
+
bittensor_cli/src/bittensor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
|
+
bittensor_cli/src/bittensor/balances.py,sha256=q5KkxF8wmUguWAFddEKstfDKTxPe5ISHpT6br8x32rc,11148
|
8
|
+
bittensor_cli/src/bittensor/chain_data.py,sha256=yOQyPZ472BlfhAfaemdi22qunEGHlVvugRdUeYpZxwQ,41663
|
9
|
+
bittensor_cli/src/bittensor/minigraph.py,sha256=BIzmSVLfBYiRAeGD_i1LAC8Cw7zxp38a91SIFEPMqYc,10479
|
10
|
+
bittensor_cli/src/bittensor/networking.py,sha256=pZLMs8YXpZzDMLXWMBb_Bj6TVkm_q9khyY-lnbwVMuE,462
|
11
|
+
bittensor_cli/src/bittensor/subtensor_interface.py,sha256=StNlKxk348cq-nEU-5qye0yMTG5snLU_whw1dALRX2I,58976
|
12
|
+
bittensor_cli/src/bittensor/utils.py,sha256=e-oNpVM0fBhSBXbu78lBiCJFZvDYZ8MhOAQrM1gJfrU,46467
|
13
|
+
bittensor_cli/src/bittensor/extrinsics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
14
|
+
bittensor_cli/src/bittensor/extrinsics/registration.py,sha256=CQ6yQldaLWPdhTS4Ub3muSEhbmzj-PQa5JYR3ywrafs,64485
|
15
|
+
bittensor_cli/src/bittensor/extrinsics/root.py,sha256=C9WPssL2HpNK8u_IFPPr8TrdFgbLPTfkbAYzalfmbRM,19188
|
16
|
+
bittensor_cli/src/bittensor/extrinsics/transfer.py,sha256=tKXC7DTvaR15Lh20FWtoRMkEWQdNFQcXstZCEw9sWHM,8567
|
17
|
+
bittensor_cli/src/bittensor/templates/main-filters.j2,sha256=ZM0l2exr6FKqw86GRyHHtw-h8Y5Ckgx-SPc-48gZoxI,914
|
18
|
+
bittensor_cli/src/bittensor/templates/main-header.j2,sha256=aZwB9NeEjNr0pM5mPYTYeky_031zAu6yErIMiwTPcwE,1684
|
19
|
+
bittensor_cli/src/bittensor/templates/neuron-details.j2,sha256=O_Mhg2E04BzW_cSGIldObhVTSRX29gDNqnimW4ty9rY,4848
|
20
|
+
bittensor_cli/src/bittensor/templates/price-multi.j2,sha256=dRuD3pioBlCH8piJKwoyDjwuv_LycpRyr0hErCjx10o,3557
|
21
|
+
bittensor_cli/src/bittensor/templates/price-single.j2,sha256=AnVbO3Bt1fOUk7Cpj4zLDuVuGdwLW6sBdnwzp9ADdUc,3333
|
22
|
+
bittensor_cli/src/bittensor/templates/subnet-details-header.j2,sha256=7lW1Y7eUWTGjv1ogqtoS8XZlUEcx1TppRmqg6O3Vj-U,1972
|
23
|
+
bittensor_cli/src/bittensor/templates/subnet-details.j2,sha256=h0IaS0Qk2K3AtM4e2lcaeWZKW6zfWyFzr1_A4UNeprc,1159
|
24
|
+
bittensor_cli/src/bittensor/templates/subnet-metrics.j2,sha256=WMcWt1XBYA6i3rNEJBZMzm6EzNizJPS07poXpblPTmU,2135
|
25
|
+
bittensor_cli/src/bittensor/templates/subnets-table.j2,sha256=UCGVONAuTHHtofgVnaN1bH93O_lX3cdCweBiWEowoho,2031
|
26
|
+
bittensor_cli/src/bittensor/templates/table.j2,sha256=P2EFiksnO1cQsB8zjK6hVJwUryHTsLslzRE0YtobAV8,10601
|
27
|
+
bittensor_cli/src/bittensor/templates/view.css,sha256=OS0V_ixzdTU15FbNzpZW1m7-c64Km0oaluaoXsUZY3s,20812
|
28
|
+
bittensor_cli/src/bittensor/templates/view.j2,sha256=4ux3uyqz34v9VVAX17GezuPESk4z9n5kkd9HbnTsF_Y,1101
|
29
|
+
bittensor_cli/src/bittensor/templates/view.js,sha256=QIPnPp9SuYS9wcl7cwL8nFzd8idiDjNzrDjwwxpiVvY,45076
|
30
|
+
bittensor_cli/src/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
31
|
+
bittensor_cli/src/commands/sudo.py,sha256=SdFei83euCLr645BgX370aIlxYPUE4rQ3dmQfT1dofs,32984
|
32
|
+
bittensor_cli/src/commands/view.py,sha256=9lx6vfOkel8KIefUhDNaBS_j5lNR2djcRFRbK4mbnDE,12535
|
33
|
+
bittensor_cli/src/commands/wallets.py,sha256=6WC7l72dM-AJaI_ymCrn0aLme5WJhQ14VqSWcHcPZgM,72654
|
34
|
+
bittensor_cli/src/commands/weights.py,sha256=BCJm_mlw0pVK4YEZuEMqQBpvvOoB7B1rzdvMeN3uTfM,16503
|
35
|
+
bittensor_cli/src/commands/stake/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
36
|
+
bittensor_cli/src/commands/stake/add.py,sha256=p-qwDjigHTgYAqrvETvDNHzd5ntzk3zaaQPlj4-hNgE,26937
|
37
|
+
bittensor_cli/src/commands/stake/children_hotkeys.py,sha256=lMiV-Z3SGZUEapdy0LRthFLx0RlFK0KVxytE47ybdEc,31746
|
38
|
+
bittensor_cli/src/commands/stake/list.py,sha256=xLHqEflRLg3vmMop92JgAn88oAy4YdhaIGBcHOYgCak,30038
|
39
|
+
bittensor_cli/src/commands/stake/move.py,sha256=AVeo0l4bvGAtjbdzx2Fn7_-jiI28B7LMlJGVZWT6mKg,35881
|
40
|
+
bittensor_cli/src/commands/stake/remove.py,sha256=AhqYKaQ5pEKTZxZ5R-ojZe-ZBMvaZsSXHlYuvzRGStk,49904
|
41
|
+
bittensor_cli/src/commands/subnets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
42
|
+
bittensor_cli/src/commands/subnets/price.py,sha256=akXkbilWjQYqTYvtOhXngX_cVkU0Mv-Gl3kjce6dtl0,21490
|
43
|
+
bittensor_cli/src/commands/subnets/subnets.py,sha256=z2E4CkrqUNctBzBvjPWV34TWIPriEFDa2oUw9HWKJSc,93747
|
44
|
+
bittensor_cli-9.5.1.dist-info/METADATA,sha256=Tbzp1vWwR_wGjRPqVNr7NnYGry4Ds1t7Ck2rNC7WAWY,6447
|
45
|
+
bittensor_cli-9.5.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
46
|
+
bittensor_cli-9.5.1.dist-info/entry_points.txt,sha256=hBTLGLbVxmAKy69XSKaUZvjTCmyEzDGZKq4S8UOto8I,49
|
47
|
+
bittensor_cli-9.5.1.dist-info/top_level.txt,sha256=DvgvXpmTtI_Q1BbDZMlK90LFcGFCreN1daViEPV2iFw,14
|
48
|
+
bittensor_cli-9.5.1.dist-info/RECORD,,
|
@@ -1,35 +0,0 @@
|
|
1
|
-
bittensor_cli/__init__.py,sha256=Lpv4NkbAQgwrfqFOnTMuR_S-fqGdaWCSLhxnFnGTHM0,1232
|
2
|
-
bittensor_cli/cli.py,sha256=U557QrHJQulSMdmNY_Wu-wc8ah3KtcqD0TxrHHFoN9w,217461
|
3
|
-
bittensor_cli/doc_generation_helper.py,sha256=GexqjEIKulWg84hpNBEchJ840oOgOi7DWpt447nsdNI,91
|
4
|
-
bittensor_cli/version.py,sha256=dU1xsa3mG5FPdhzvqlzDByNcCHmzcFQH3q1pQr4u76g,720
|
5
|
-
bittensor_cli/src/__init__.py,sha256=dRBcdUWIqHTyusuvuhP4PrRc9MWmnmj76WDWLHxhjmA,33795
|
6
|
-
bittensor_cli/src/bittensor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
|
-
bittensor_cli/src/bittensor/balances.py,sha256=q5KkxF8wmUguWAFddEKstfDKTxPe5ISHpT6br8x32rc,11148
|
8
|
-
bittensor_cli/src/bittensor/chain_data.py,sha256=yOQyPZ472BlfhAfaemdi22qunEGHlVvugRdUeYpZxwQ,41663
|
9
|
-
bittensor_cli/src/bittensor/minigraph.py,sha256=BIzmSVLfBYiRAeGD_i1LAC8Cw7zxp38a91SIFEPMqYc,10479
|
10
|
-
bittensor_cli/src/bittensor/networking.py,sha256=pZLMs8YXpZzDMLXWMBb_Bj6TVkm_q9khyY-lnbwVMuE,462
|
11
|
-
bittensor_cli/src/bittensor/subtensor_interface.py,sha256=StNlKxk348cq-nEU-5qye0yMTG5snLU_whw1dALRX2I,58976
|
12
|
-
bittensor_cli/src/bittensor/utils.py,sha256=vetZCwy-LSJjYj58f_5wIuTi2A2sHyCMjrHR1DqT6bY,47729
|
13
|
-
bittensor_cli/src/bittensor/extrinsics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
14
|
-
bittensor_cli/src/bittensor/extrinsics/registration.py,sha256=CQ6yQldaLWPdhTS4Ub3muSEhbmzj-PQa5JYR3ywrafs,64485
|
15
|
-
bittensor_cli/src/bittensor/extrinsics/root.py,sha256=C9WPssL2HpNK8u_IFPPr8TrdFgbLPTfkbAYzalfmbRM,19188
|
16
|
-
bittensor_cli/src/bittensor/extrinsics/transfer.py,sha256=tKXC7DTvaR15Lh20FWtoRMkEWQdNFQcXstZCEw9sWHM,8567
|
17
|
-
bittensor_cli/src/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
18
|
-
bittensor_cli/src/commands/sudo.py,sha256=or_wkOMf4RAE64pp2SiX2ybeN0V89hlsEf86cyLPsV4,33062
|
19
|
-
bittensor_cli/src/commands/view.py,sha256=aogD_jLAmKgZ-pL93eTSVw0kubUJT2L2_43TXzAh8X8,109505
|
20
|
-
bittensor_cli/src/commands/wallets.py,sha256=YknqfibuH-5dsSYITlEtgv9zsqlmhsoS2NhenZPcq0E,72977
|
21
|
-
bittensor_cli/src/commands/weights.py,sha256=BCJm_mlw0pVK4YEZuEMqQBpvvOoB7B1rzdvMeN3uTfM,16503
|
22
|
-
bittensor_cli/src/commands/stake/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
23
|
-
bittensor_cli/src/commands/stake/add.py,sha256=Pe4N_I8DKlfN_Ks-X9yu2pMP5jBs__fa2TPLcb6oBKc,26935
|
24
|
-
bittensor_cli/src/commands/stake/children_hotkeys.py,sha256=lMiV-Z3SGZUEapdy0LRthFLx0RlFK0KVxytE47ybdEc,31746
|
25
|
-
bittensor_cli/src/commands/stake/list.py,sha256=xLHqEflRLg3vmMop92JgAn88oAy4YdhaIGBcHOYgCak,30038
|
26
|
-
bittensor_cli/src/commands/stake/move.py,sha256=AVeo0l4bvGAtjbdzx2Fn7_-jiI28B7LMlJGVZWT6mKg,35881
|
27
|
-
bittensor_cli/src/commands/stake/remove.py,sha256=l7TtLK2Z6-TJ5-DEwUzm6HT2GQC-MhKZS9SONS9DKtA,49902
|
28
|
-
bittensor_cli/src/commands/subnets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
29
|
-
bittensor_cli/src/commands/subnets/price.py,sha256=O8oK12hCtm1asQGx2MR1xtYA9ygkklhFtXvBON4DcGM,30069
|
30
|
-
bittensor_cli/src/commands/subnets/subnets.py,sha256=z2E4CkrqUNctBzBvjPWV34TWIPriEFDa2oUw9HWKJSc,93747
|
31
|
-
bittensor_cli-9.4.4.dist-info/METADATA,sha256=5idN5hmjRfecIe9PhWSih-YzWsxHtnHKLRSUMRtdq2Y,6417
|
32
|
-
bittensor_cli-9.4.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
33
|
-
bittensor_cli-9.4.4.dist-info/entry_points.txt,sha256=hBTLGLbVxmAKy69XSKaUZvjTCmyEzDGZKq4S8UOto8I,49
|
34
|
-
bittensor_cli-9.4.4.dist-info/top_level.txt,sha256=DvgvXpmTtI_Q1BbDZMlK90LFcGFCreN1daViEPV2iFw,14
|
35
|
-
bittensor_cli-9.4.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|