Aioeagle
Asynchronous library to control Rainforest EAGLE-200
Requires Python 3.8+ and uses asyncio and aiohttp.
import asyncio
from pprint import pprint
import aiohttp
from aioeagle import EagleHub
CLOUD_ID = "123456"
INSTALL_CODE = "abcdefghijklmn"
async def main():
async with aiohttp.ClientSession() as session:
await run(session)
async def run(websession):
hub = EagleHub(websession, CLOUD_ID, INSTALL_CODE)
devices = await hub.get_device_list()
if len(devices) == 0:
print("No devices found")
return
device = devices[0]
pprint(device.details)
print()
pprint(await device.get_device_query(device.ENERGY_AND_POWER_VARIABLES))
asyncio.run(main())
Testing locally
python3 example.py <cloud_id> <install_code>
Timeouts
Aioeagle does not specify any timeouts for any requests. You will need to specify them in your own code. We recommend the async_timeout package:
import async_timeout
with async_timeout.timeout(10):
devices = await hub.get_device_list()
Contribution guidelines
Object hierarchy and property/method names should match the EAGLE-200 API.
Release files for aioeagle 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aioeagle-1.1.1.tar.gz | 8.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aioeagle-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.7 kB
Release files / aioeagle-1.1.1.tar.gz
| Download URL | aioeagle-1.1.1.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c610a5e3d1705b14a101d54a5a81adeb88b00d20533cfe9f368acb04298e9bff
|
|
BLAKE2b-256 checksum How to use checksums |
f8d035e4e671f722db54211d3d34064b3f7b12318a5d811c8a1aef4eb77116a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / aioeagle-1.1.1-py3-none-any.whl
| Download URL | aioeagle-1.1.1-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c47a8a3b6c9e42af3e2b5f6ca32cd362dffec671a9ad5583be3d158c321cafad
|
|
BLAKE2b-256 checksum How to use checksums |
974ca2cf86fde021c93fbe216e637d15a33d0fc8190de04cf7f198df6129c319
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|