pyTibber
A python3 library to communicate with Tibber
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 pytibberuv
uv add pytibberpoetry
poetry add pytibberInstalling 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
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
millheaterPython library to control Mill heater devices…
permissive · top 15,000 on PyPI
p1monitorAsynchronous Python client library for reading…
permissive · top 15,000 on PyPI
energyzeroAsynchronous Python client for retrieving…
permissive · top 15,000 on PyPI
ovoenergyA Python client library for querying energy…
permissive · top 15,000 on PyPI
pyemvuePyEmVue reads energy usage data from Emporia…
permissive · top 15,000 on PyPI
sense-energyProvides Python access to the Sense Energy…
permissive · top 15,000 on PyPI
amberelectricProvides a Python interface to the Amber…
permissive · top 15,000 on PyPI
openbb-us-eiaIntegrates U.S. Energy Information…
agpl · top 15,000 on PyPI
opowerFetches historical and forecasted energy usage…
permissive · top 15,000 on PyPI
gridstatusgridstatus provides a unified Python API to…
unclear · top 15,000 on PyPI