feature: add grpc BOS class and add grpc requests to requirements.

This commit is contained in:
UpstreamData
2023-09-22 09:44:25 -06:00
parent 5c904aced0
commit 14f33a40c3
2 changed files with 7 additions and 0 deletions

View File

@@ -217,3 +217,9 @@ class BOSMinerLuCIAPI:
async def get_api_status(self):
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

View File

@@ -14,6 +14,7 @@ httpx = "^0.24.0"
passlib = "^1.7.4"
pyaml = "^23.5.9"
toml = "^0.10.2"
grpc-requests = "^0.1.10"
[tool.poetry.group.dev]
optional = true