Skip to main content

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)

Source distribution for aioeagle 1.1.1
File Size Uploaded
aioeagle-1.1.1.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aioeagle 1.1.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page