feature: add grpc BOS class and add grpc requests to requirements.
This commit is contained in:
@@ -217,3 +217,9 @@ class BOSMinerLuCIAPI:
|
|||||||
|
|
||||||
async def get_api_status(self):
|
async def get_api_status(self):
|
||||||
return await self.send_command("/cgi-bin/luci/admin/miner/api_status")
|
return await self.send_command("/cgi-bin/luci/admin/miner/api_status")
|
||||||
|
|
||||||
|
|
||||||
|
class BOSMinerGRPCAPI:
|
||||||
|
def __init__(self, ip: str, pwd: str):
|
||||||
|
self.ip = ip
|
||||||
|
self.pwd = pwd
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ httpx = "^0.24.0"
|
|||||||
passlib = "^1.7.4"
|
passlib = "^1.7.4"
|
||||||
pyaml = "^23.5.9"
|
pyaml = "^23.5.9"
|
||||||
toml = "^0.10.2"
|
toml = "^0.10.2"
|
||||||
|
grpc-requests = "^0.1.10"
|
||||||
|
|
||||||
[tool.poetry.group.dev]
|
[tool.poetry.group.dev]
|
||||||
optional = true
|
optional = true
|
||||||
|
|||||||
Reference in New Issue
Block a user