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

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.4
File Size Uploaded Provenance Actions
tenda_4g09_client-0.3.4.tar.gz 14.8 kB Without provenance Details for tenda_4g09_client-0.3.4.tar.gz

Built distribution (wheel)

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

Total release size: 35.0 kB

Release files / tenda_4g09_client-0.3.4.tar.gz

Download URL tenda_4g09_client-0.3.4.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8c7b9b8d9d144cd1960c6237d7cfb8b4481d2a16e62e04038173859a33183f26
BLAKE2b-256 checksum
How to use checksums
a00c1a312212c66eb8810e94af5598d6f4e00d1aa0f87bf73cdfc49ae6f4163b
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.4-py3-none-any.whl

Download URL tenda_4g09_client-0.3.4-py3-none-any.whl
Size 20.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca9b796ece029b59f3381ada0bfdcbdcd198b3f8584463994a61b56185954b94
BLAKE2b-256 checksum
How to use checksums
0a699894a18dfa6f646dde6112b56e4f6e9d93bd8b0dd28264a0e73bd585070b
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.4

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