Skip to content

PoppyPop/aioiregul

Repository files navigation

aioiregul

Asynchronous library to get data from Iregul systems

This library is under development

Requires Python 3 and uses asyncio, aiohttp and BeautifulSoup4.

import aioiregul
import aiohttp
import asyncio

async def main():
    opt = aioiregul.ConnectionOptions(username='User', password='Pass')

    dev = aioiregul.Device(opt)

    res = await dev.collect()

    print(res)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())