Tenda 4G09 Python Client
A lightweight Python library for interacting with the Tenda 4G09 LTE router through its web interface.
Features
- Router authentication and session management
- Retrieving router status and Wi-Fi information
- Reading SIM and WAN configuration
- Checking LTE connectivity
- Initiating an LTE connection
Requirements
- Python 3.10+
- Tenda 4G09 router accessible over the local network
Installation
Install:
pip install tenda-4g09-client
Quick start
from tenda_4g09 import Tenda4G09
URL = "192.168.0.1"
with Tenda4G09(URL, password="your-password") as router:
status = router.get_status()
print(f"Router IP: {status.lan_ip}")
print(f"Connected clients: {status.client_count}")
print("\nOnline clients:")
for client in router.get_online_clients():
print(
f" Name: {client.name}\n"
f" IP: {client.ip}\n"
f" Upload: {client.upload_speed}\n"
f" Download: {client.download_speed}\n"
)
Replace the IP address and password with your router's settings.
LTE connection
with Tenda4G09("192.168.0.1", password="your-password") as router:
if not router.is_mobile_data_connected():
router.mobile_data_connect()
Compatibility
Designed for the Tenda 4G09 router. Compatibility with other models and firmware versions has not been verified.
Security
Use the library only on trusted networks. Do not commit router credentials to your repository.
License
MIT — see the LICENSE file.
Metadata
Release files for tenda-4g09-client 0.3.1
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 |
|---|---|---|---|---|
| tenda_4g09_client-0.3.1.tar.gz | 13.0 kB | Without provenance | Details for tenda_4g09_client-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tenda_4g09_client-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for tenda_4g09_client-0.3.1-py3-none-any.whl |
Total release size: 30.3 kB
Release files / tenda_4g09_client-0.3.1.tar.gz
| Download URL | tenda_4g09_client-0.3.1.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb5af05ba27841dc52e72fdac10e8082b51ea3f10f8b940c737d5bf219b79c3f
|
|
BLAKE2b-256 checksum How to use checksums |
df696c6dcf22adb865e3ded57fdb3188f18fbec93fd81955a2d2fb3f3e763ead
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / tenda_4g09_client-0.3.1-py3-none-any.whl
| Download URL | tenda_4g09_client-0.3.1-py3-none-any.whl |
|---|---|
| Size | 17.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3bb63a7adc5d94e0d7c2c21df5419c788e82a03e601e650d4f425cad48f7c7b
|
|
BLAKE2b-256 checksum How to use checksums |
0e27384f46793607ce4ac37648f3c1899c8e956bf749a739560b2389f1b33171
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for tenda-4g09-client 0.3.1
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.