skillfed

pyTibber

A python3 library to communicate with Tibber

pytibber v0.38.0 78.8K downloads/30d#14,404 on PyPI114
Copyleft license GPL-3.0-or-later Active released

What it is and what it does

pyTibber is a Python async client for the Tibber energy platform, primarily used to fetch current electricity prices and consumption data for homes with Tibber accounts. It wraps Tibber's API and provides both one-time query methods (for prices and historical consumption) and real-time streaming via WebSocket for devices like Pulse and Watty smart meters.

The library is designed for async/await patterns and integrates with aiohttp, gql, and websockets for communication. You'll need a Tibber API token and Python 3.11 or later; the library handles query construction and WebSocket subscription management internally.

Use it for:

  • Fetch current electricity prices in your region to automate energy consumption decisions or trigger alerts.
  • Stream real-time power consumption data from a Tibber Pulse or Watty device for live monitoring dashboards.
  • Query historical consumption data to analyze energy usage patterns and costs over time.
  • Integrate Tibber data into home automation platforms for price-aware automation.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Python library for querying Tibber's electricity pricing and real-time consumption data, with support for live measurement streaming from Pulse and Watty devices.

Yes, if you have a Tibber account and need programmatic access to pricing or consumption data. The library is actively maintained, has low install friction, and integrates well with async Python projects. The GPL-3.0-or-later license is a consideration only if you're building proprietary software; it's fine for personal use and open-source projects.

Install

pytibber on PyPI

pip

pip install pytibber

uv

uv add pytibber

poetry

poetry add pytibber

Installing pyTibber

Before you install

Low install friction with a pure-Python wheel. Actively maintained as of 2026-08-14 with recent release activity. Depends on established async libraries (aiohttp, gql, websockets) and tenacity for retry logic.

License in practice

GPL-3.0-or-later copyleft license means any derivative work must be open-sourced under compatible terms; acceptable for personal projects and open-source integrations but requires legal review for proprietary products.

Quickstart

pip install pyTibber

import asyncio

async def example():
    from pyTibber import Tibber
    conn = Tibber("your_api_token", user_agent="myapp")
    await conn.update_info()
    home = conn.get_homes()[0]
    await home.update_price_info()
    print(home.current_price_info)

asyncio.run(example())

Requires Python 3.11 or later. Tibber API token from developer.tibber.com/ is required to authenticate.

Verify before relying

  • Whether the library handles authentication token refresh automatically or requires manual re-authentication.
  • Performance characteristics when polling multiple homes or handling high-frequency real-time updates.
  • Completeness of error handling and recovery for network interruptions during WebSocket subscriptions.

Package facts

License GPL-3.0-or-later (copyleft)
Python support supports the current Python release (>=3.11)
Install friction low — pure-Python wheel
Runtime dependencies 4 — aiohttp, gql, tenacity, websockets
Maintenance actively maintained — 4 days since the last release
Last repo commit
First released
Downloads 78,821/month — #14,404 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pytibber-0.38.0-py3-none-any.whl

Intended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Home AutomationTopic :: Software Development :: Libraries :: Python Modules

Tags

tibber api clientelectricity price apireal-time power consumptionsmart meter datahome energy monitoringwebsocket streamingasync energy data
energy-monitoringasync-graphqlsmart-home

More Python Modules packages