🐍 The Python SDK — app6.2
Developer CourseModule 6: The Python SDKapp6.2
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 energyatit
import os
from energyatit import EnergyAtItClient

client = EnergyAtItClient(api_key=os.environ["EAT_KEY"])

Resource Classes

ClassMethodsWhat It Does
client.siteslist, getManage energy sites
client.assetslist, getManage devices
client.dispatchsend, historySend commands, check results
client.carboncreate_record, verify_chain, get_recordsCarbon attestation
client.gridget_meter_readings, get_prices, get_capacityGrid data
client.drcreate_event, dispatch_event, settle_eventDemand 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.