Control Telekom Speedport routers with Python
Project description
This python package is unofficial and is not related in any way to Telekom. It was developed by reversed engineered http requests and can stop working at anytime!
Speedport-API
Control Telekom Speedport routers with Python!
Installation
pip install speedport-api
Supported Devices
- Speedport Smart 4
Commandline tool
With this shipped commandline tool can a speedport in your network be controlled.
Turn wifi off
$ speedport wifi off
Turn off wifi...
Turn guest wifi on
$ speedport guest-wifi on
Turn on guest wifi...
Reconnect for new ip address
$ speedport reconnect
123.45.67.89 / 5403:f3:35aa:12f:7287:41cf:fb1c:3c83
Reconnect with internet provider...
123.45.67.12 / 5403:f3:35fe:12f:7287:41cf:fb1c:3c83
Enable wps connect
$ speedport wps
Enable wps connect...
wps connect enabled for 113s...
Reboot device
$ speedport reboot
Reboot speedport...
Print devices
$ speedport devices
+-------------+---------------------+-------+-----------+
| ipv4 | name | type | connected |
+-------------+---------------------+-------+-----------+
| 10.5.12.32 | Google-Home-Mini-1 | wlan | 1 |
| 10.5.12.157 | PC10-5-12-157 | lan | 0 |
| 10.5.12.227 | andre-xps | wlan5 | 1 |
Library
Reconnect example
import asyncio
from speedport import Speedport
async def reconnect():
speedport = Speedport("192.168.1.1")
await speedport.login("password123")
await speedport.reconnect()
asyncio.run(reconnect())
Devices example
import asyncio
from speedport import Speedport
devices = asyncio.run(Speedport().devices)
for device in devices:
print(device.ipv4, device.connected)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
speedport-api-0.4.7.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for speedport_api-0.4.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 830a8f9b4fa47cea96ca5a8bca8bf6e746a52976570e6e212d0b4bf3ee1a3cc5 |
|
MD5 | 432bde0dec63461bb015f38dca09571d |
|
BLAKE2b-256 | 039134c5b8da8f57f1d244d3bc4ca9cf91940ef716d5900b99acc36d03a4a686 |