Skip to main content

Python client for the Kardashev Labs energy data API

Project description

kardashev

Python client for the Kardashev Labs energy data API — a free, open energy data platform covering LMP prices, grid load, fuel mix, carbon intensity, curtailment, interconnection queues, and more across all major US ISOs.

Install

pip install kardashev

Quick start

from kardashev import Client

kl = Client()

# Live fuel mix for CAISO
fuel = kl.fuel_mix(iso="CAISO")

# Real-time LMP hub prices for MISO
prices = kl.lmp(iso="MISO", market="RT", limit=50)

# Carbon intensity (lbs CO₂/MWh) for ERCOT
carbon = kl.carbon(iso="ERCOT")

# All nodes with latest LMP for the map view
nodes = kl.lmp_map(iso="PJM", market="RT")

Endpoints

Method Description
fuel_mix(iso) Generation by fuel type
carbon(iso) Carbon intensity (lbs CO₂/MWh)
carbon_latest() Latest carbon intensity for all ISOs
lmp(iso, market, node_id, limit) LMP price history
lmp_map(iso, market) All nodes with latest price + coordinates
lmp_hubs(iso) Hub/zone node list
load(iso) Actual grid load
load_forecast(iso) Load forecast
generation(iso) Generation by unit type
curtailment(iso) Renewable curtailment
interchange(iso) Tie-line power flows
nat_gas(hub) Natural gas spot prices
nat_gas_storage() EIA weekly storage report
weather(city) Weather observations
outages(iso) Generator outage reports
ancillary(iso, market) Ancillary service prices
nuclear_status() Nuclear plant capacity factors
emissions(iso) SO₂/NOₓ emission rates
hydro(iso) Hydro generation
solar(iso) Solar generation
queue(iso) Interconnection queue
commodities() Power/gas commodity prices
carbon_markets() RGGI/WCI carbon market prices

ISOs supported

CAISO · ERCOT · ISONE · MISO · NYISO · PJM · SPP

Custom base URL

kl = Client(base_url="https://data.kardashevlabs.org")

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kardashev-0.1.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kardashev-0.1.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file kardashev-0.1.1.tar.gz.

File metadata

  • Download URL: kardashev-0.1.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for kardashev-0.1.1.tar.gz
Algorithm Hash digest
SHA256 71feb8223ad6aa58e63f6a427c0bee795e8e0412bf9f9359e6141077ef3dd664
MD5 6328872555616d5153478e5dcef4ca3c
BLAKE2b-256 c0ebbd7b708c61e6658bc31170f0a2c37bf248783d6084f3b5491e41f5f5b662

See more details on using hashes here.

File details

Details for the file kardashev-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kardashev-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for kardashev-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 77b3f4a81d832edf0f2363817df4883a3ff80c4cf935f28868d57d7f0e1ff216
MD5 e2a494aebbc34651c43f8193d4b6ecf8
BLAKE2b-256 c87561b34568e11d116d584da6b38c1faad1f1bf6920d926a2fb94003b90454a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page