Reading10 min
EnergyAtItClient: Sites, Assets, Dispatch, Carbon
🐍 Module 6: The Python SDK
EnergyAtItClient: Sites, Assets, Dispatch, Carbon
The SDK is organised into resource classes. Each class maps to a set of API endpoints.
Installation and Setup
pip3 install energyatitimport os
from energyatit import EnergyAtItClient
client = EnergyAtItClient(api_key=os.environ["EAT_KEY"])Resource Classes
| Class | Methods | What It Does |
|---|---|---|
client.sites | list, get | Manage energy sites |
client.assets | list, get | Manage devices |
client.dispatch | send, history | Send commands, check results |
client.carbon | create_record, verify_chain, get_records | Carbon attestation |
client.grid | get_meter_readings, get_prices, get_capacity | Grid data |
client.dr | create_event, dispatch_event, settle_event | Demand response |
Examples
# Sites
sites = client.sites.list()
site = client.sites.get(site_id=1)
# Assets
assets = client.assets.list(site_id=1)
# Dispatch
result = client.dispatch.send(asset_id=1, command="charge", target_kw=50)
history = client.dispatch.history(asset_id=1)
# Carbon
record = client.carbon.create_record(
meter_id="m-001", facility_id="FAC_UUID",
timestamp="2026-02-27T10:00:00Z", kwh=250
)
chain = client.carbon.verify_chain(meter_id="m-001")
# Grid
readings = client.grid.get_meter_readings(grid_connection_id=1)
prices = client.grid.get_prices(region="UAE")Every method returns a dictionary matching the API response format.
Log in to track your progress and earn certifications.