Skip to main content

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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tenda-4g09-client 0.3.2
File Size Uploaded Provenance Actions
tenda_4g09_client-0.3.2.tar.gz 13.1 kB Without provenance Details for tenda_4g09_client-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tenda-4g09-client 0.3.2
File Interpreter ABI Platform Actions
tenda_4g09_client-0.3.2-py3-none-any.whl Python 3 none any Details for tenda_4g09_client-0.3.2-py3-none-any.whl

Total release size: 30.5 kB

Release files / tenda_4g09_client-0.3.2.tar.gz

Download URL tenda_4g09_client-0.3.2.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b085be56f63482caa238b61b1d56e84afb22bd6e18409e19d6ff1b7e976db488
BLAKE2b-256 checksum
How to use checksums
848710a2537963fb9e5b5411365f530cd129ea633e7dfb410bbe7a1bf1b8180b
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.2-py3-none-any.whl

Download URL tenda_4g09_client-0.3.2-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ff9204af2e67d8b3c261e97fefffea6ff8962f8738e43f0eeca468d36dd9e24
BLAKE2b-256 checksum
How to use checksums
2514d9f4d28d2cc1a602c0a5b10badf5b4972cdcdb1f6c9cd1c295c6ad7f2a6b
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.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page