Weheat backend client
This is a client for the Weheat backend. It is automatically generated from the OpenAPI specification.
Requirements.
Python 3.7+
Installation & Usage
You can install directly using:
pip install weheat
Then import the package:
import weheat
Getting Started
After installation, you can now use the client to interact with the Weheat backend. Note that all methods are async as of version 2025.1.15.
import asyncio
from keycloak import KeycloakOpenID # install with pip install python-keycloak
from weheat.abstractions.heat_pump import HeatPump
# connection information
auth_url = 'https://auth.weheat.nl/auth/'
api_url = 'https://api.weheat.nl/third_party'
realm_name = 'Weheat'
# client ID and secret provided by Weheat
client_id = ''
client_secret = ''
# username and password used for the online portal
username = ''
password = ''
# your heat pump UUID
my_heat_pump_id = ''
async def demo():
# login into keycloak and get an access token
keycloak_open_id = KeycloakOpenID(server_url=auth_url,
client_id=client_id,
realm_name=realm_name,
client_secret_key=client_secret)
token_response = keycloak_open_id.token(username, password)
# The access token is valid for its lifetime even after logging out
keycloak_open_id.logout(token_response['refresh_token'])
# construct the heat pump object and fetch its data
hp = HeatPump(api_url=api_url, uuid=my_heat_pump_id)
await hp.async_get_status(token_response['access_token'])
# Print some of the information, look in the files for all available properties
print(f'Heat pump status: {hp.heat_pump_state}')
print(f'Heat pump RPM: {hp.compressor_percentage}%')
print(f'Total produced central heating energy: {hp.energy_out_heating} kWh')
asyncio.run(demo())
Ports to other lanuages
- Golang by @joshp123
Metadata
Release files for weheat 2026.9.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| weheat-2026.9.3.tar.gz | 64.2 kB | Without provenance | Details for weheat-2026.9.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| weheat-2026.9.3-py3-none-any.whl | Python 3 | none | any | Details for weheat-2026.9.3-py3-none-any.whl |
Total release size: 143.4 kB
Release files / weheat-2026.9.3.tar.gz
| Download URL | weheat-2026.9.3.tar.gz |
|---|---|
| Size | 64.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
766668f51f04513c16aa509d33adf5182d4b08b96df12ac8c11b0e9fedd953c3
|
|
BLAKE2b-256 checksum How to use checksums |
1a4fbe1629ed6c87accb73e224c8afdc321d83a1cd971abca1278072c47e552b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / weheat-2026.9.3-py3-none-any.whl
| Download URL | weheat-2026.9.3-py3-none-any.whl |
|---|---|
| Size | 79.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c9308b4d02557504dd5a95604d057d6f1ff57dad586847efabf363fcc7ed0ba
|
|
BLAKE2b-256 checksum How to use checksums |
6cef52b479c026cfb5fa1498af11244d6588a938b3273f09dfb85171e7992b63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Security for weheat 2026.9.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.