Initial framework created

This commit is contained in:
Josiah Baldwin
2024-11-01 12:00:16 -07:00
parent e323e40759
commit 8dab88bfea
7 changed files with 1035 additions and 0 deletions

18
tests/test_sanity.py Normal file
View File

@@ -0,0 +1,18 @@
import sys
import os
import asyncio
thisdir = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.realpath(f"{thisdir}/../src"))
import meshctrl
async def main(argv=None):
if argv is None:
argv = sys.argv[1:]
url = argv[0]
user = argv[1]
password = argv[2]
async with meshctrl.session.Session(url, user=user, password=password) as s:
print(await s.list_device_groups(10))
if __name__ == "__main__":
asyncio.run(main())