File tree Expand file tree Collapse file tree 2 files changed +32
-12
lines changed
bittensor/utils/registration Expand file tree Collapse file tree 2 files changed +32
-12
lines changed Original file line number Diff line number Diff line change 17
17
18
18
import numpy
19
19
from Crypto .Hash import keccak
20
- from rich import console as rich_console , status as rich_status
21
- from rich .console import Console
22
20
23
21
from bittensor .utils .btlogging import logging
24
22
from bittensor .utils .formatting import get_human_readable , millify
@@ -516,14 +514,38 @@ class RegistrationStatistics:
516
514
block_hash : str
517
515
518
516
517
+ class Status :
518
+ def __init__ (self , status : str ):
519
+ self ._status = status
520
+
521
+ def start (self ):
522
+ pass
523
+
524
+ def stop (self ):
525
+ pass
526
+
527
+ def update (self , status : str ):
528
+ self ._status = status
529
+
530
+
531
+ class Console :
532
+ @staticmethod
533
+ def status (status : str ):
534
+ return Status (status )
535
+
536
+ @staticmethod
537
+ def log (text : str ):
538
+ print (text )
539
+
540
+
519
541
class RegistrationStatisticsLogger :
520
542
"""Logs statistics for a registration."""
521
543
522
- status : Optional [rich_status . Status ]
544
+ status : Optional [" Status" ]
523
545
524
546
def __init__ (
525
547
self ,
526
- console : Optional [rich_console . Console ] = None ,
548
+ console : Optional [" Console" ] = None ,
527
549
output_in_place : bool = True ,
528
550
) -> None :
529
551
if console is None :
Original file line number Diff line number Diff line change @@ -22,23 +22,21 @@ dependencies = [
22
22
" munch~=2.5.0" ,
23
23
" numpy~=2.0.1" ,
24
24
" msgpack-numpy-opentensor~=0.5.0" ,
25
- " nest_asyncio" ,
26
- " netaddr" ,
25
+ " nest_asyncio==1.6.0 " ,
26
+ " netaddr==1.3.0 " ,
27
27
" packaging" ,
28
28
" python-statemachine~=2.1" ,
29
29
" pycryptodome>=3.18.0,<4.0.0" ,
30
- " pyyaml" ,
31
- " retry" ,
32
- " requests" ,
33
- " rich" ,
30
+ " pyyaml>=6.0" ,
31
+ " retry==0.9.2" ,
32
+ " requests>=2.0.0,<3.0" ,
34
33
" pydantic>=2.3, <3" ,
35
34
" python-Levenshtein" ,
36
35
" scalecodec==1.2.11" ,
37
36
" uvicorn" ,
38
- " websockets>=14.1" ,
39
37
" bittensor-commit-reveal>=0.3.1" ,
40
38
" bittensor-wallet>=3.0.7" ,
41
- " async-substrate-interface>=1.0.8 "
39
+ " async-substrate-interface>=1.1.0 "
42
40
]
43
41
44
42
[project .optional-dependencies ]
You can’t perform that action at this time.
0 commit comments