📱 HeyTelecom Python Library
"I just want my usage data" Edition 🚀
Quick Install | Getting Started | Features | Contributing
Automate your Hey! Telecom account. Get usage, invoices, and more without lifting a finger.
📦 Quick Install
For the Pythonistas 🐍:
pip install heytelecom
🏠 Home Assistant Integration
This whole project was basically an excuse to get my data into Home Assistant.
How it works now:
- The Library: Pure Python — no browser, no heavy dependencies. Just
requests+ OAuth2. - The Integration: A lightweight HA component that talks to the library and creates sensors.
🛠️ Getting Started
It's super simple. Just tell it who you are, and it does the rest.
from heytelecom import HeyTelecomClient
# Let the robot do the work 🤖
with HeyTelecomClient(email="your@email.com", password="your_password") as client:
client.login() # Knock knock 🚪
# Gimme the data!
account_data = client.get_account_data()
print(f"You have {len(account_data.products)} products.")
print(f"Latest invoice: €{account_data.billing.latest_invoice.amount_eur} (Ouch? 💸)")
🤖 How it Works
- The Setup: We use requests (plain HTTP) — no browser needed. Just OAuth2 with PKCE, exactly like the web app does.
- The Login: Authenticates via the same OIDC flow the browser uses — email/password → BFF auth endpoint → authorization code → access token.
- The Grab: Calls the same BFF JSON APIs the web app uses to get products, usage, and invoices.
- The Result: You get nice, clean Python objects to play with. No more parsing HTML yourself!
✨ Features
- Auto Login: Handles the OAuth2/PKCE auth flow automatically.
- Token Refresh: Re-authenticates transparently when the access token expires.
- Product Info: Mobile, Internet, whatever you got.
- Usage Stats: Data, Calls, SMS. Know when to stop scrolling TikTok.
- Invoices: Track your latest invoice status.
📖 The Story (or "Why?")
So, here's the tea. I wanted to integrate my mobile usage into my dashboard. I checked for an API. Crickets.
The official API is not public, but I reverse-engineered the web app's traffic using a HAR capture (see the research folder). The e-care portal uses standard OAuth2/PKCE + a set of BFF JSON endpoints, so I rebuilt the whole flow with plain HTTP requests — no browser required.
Now I can graph my data usage and feel guilty about it in real-time.
🤝 Contributing
Found a bug? Want to add a feature? PRs are welcome! Let's make this thing better together. 🎉
Made with ❤️ and a lot of debugging.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file heytelecom-0.2.0.tar.gz.
File metadata
- Download URL: heytelecom-0.2.0.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
778169cd6704de147769a516824f1d9c3dbd3d6d8fab547e738834cd1afa6eeb
|
|
| MD5 |
772eb8c8004a2274cc0a09530fd787fd
|
|
| BLAKE2b-256 |
da5eb519bd90c61148290c6d38099f0f4152214c50e4ec658436707e4851eee8
|
Provenance
The following attestation bundles were made for heytelecom-0.2.0.tar.gz:
Publisher:
publish.yml on MauroDruwel/HeyTelecom
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
heytelecom-0.2.0.tar.gz -
Subject digest:
778169cd6704de147769a516824f1d9c3dbd3d6d8fab547e738834cd1afa6eeb - Sigstore transparency entry: 2187436630
- Sigstore integration time:
-
Permalink:
MauroDruwel/HeyTelecom@5229a8c58060d3bfe537c13c61e91f31f59c6b8a -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/MauroDruwel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5229a8c58060d3bfe537c13c61e91f31f59c6b8a -
Trigger Event:
push
-
Statement type:
File details
Details for the file heytelecom-0.2.0-py3-none-any.whl.
File metadata
- Download URL: heytelecom-0.2.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3ef7935da35c763d7df582060dfd3583f8c8a6ed8a70334e014330c8ac90fd3
|
|
| MD5 |
0d219dfebf980f0e69a8cb33dbc8abb4
|
|
| BLAKE2b-256 |
770e2ad7b8f96ecebfb78b4386bcaca6976980bcb46212a12adfa2db560a87e0
|
Provenance
The following attestation bundles were made for heytelecom-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on MauroDruwel/HeyTelecom
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
heytelecom-0.2.0-py3-none-any.whl -
Subject digest:
d3ef7935da35c763d7df582060dfd3583f8c8a6ed8a70334e014330c8ac90fd3 - Sigstore transparency entry: 2187436670
- Sigstore integration time:
-
Permalink:
MauroDruwel/HeyTelecom@5229a8c58060d3bfe537c13c61e91f31f59c6b8a -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/MauroDruwel
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5229a8c58060d3bfe537c13c61e91f31f59c6b8a -
Trigger Event:
push
-
Statement type: