speedport-api


Namespeedport-api JSON
Version 0.6.0 PyPI version JSON
download
home_page
SummaryControl Telekom Speedport routers with Python
upload_time2024-03-18 00:27:38
maintainer
docs_urlNone
authorAndre Basche
requires_python>=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements aiohttp pycryptodome
Travis-CI No Travis.
coveralls test coverage No coveralls.
            **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
[![PyPI - Status](https://img.shields.io/pypi/status/speedport-api)](https://pypi.org/project/speedport-api)
[![PyPI](https://img.shields.io/pypi/v/speedport-api?color=blue)](https://pypi.org/project/speedport-api)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/speedport-api)](https://www.python.org/)
[![PyPI - License](https://img.shields.io/pypi/l/speedport-api)](https://github.com/Andre0512/speedport-api/blob/main/LICENSE)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/speedport-api)](https://pypistats.org/packages/speedport-api)  
Control Telekom Speedport routers with Python!

### Installation
```commandline
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
```commandline
$ speedport wifi off
Turn off wifi...
```

#### Turn guest wifi on
```commandline
$ speedport guest-wifi on
Turn on guest wifi...
```

#### Reconnect for new ip address
```commandline
$ 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
```commandline
$ speedport wps
Enable wps connect...
wps connect enabled for 113s...
```

#### Reboot device
```commandline
$ speedport reboot
Reboot speedport...
```

#### Print devices
```commandline
$ 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         |
```


#### Print calls
```commandline
$ speedport calls
+-------------+--------+----------+---------------------+
| number      | type   | duration | date                |
+-------------+--------+----------+---------------------+
| 01578212345 | missed | 0        | 2024-04-04 09:34:35 |
| 026361245   | taken  | 1337     | 2024-04-06 05:12:53 |
| 7866        | dialed | 20       | 2024-04-06 18:39:00 |
```

### Library

#### Reconnect example
```python
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
```python
import asyncio
from speedport import Speedport

devices = asyncio.run(Speedport().devices)
for device in devices:
    print(device.ipv4, device.connected)
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "speedport-api",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "Andre Basche",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/53/da/1674477eb18d1834aa5bce898c56d6d7a9efa8a4aa9f952fbefb9a9f0df0/speedport-api-0.6.0.tar.gz",
    "platform": "any",
    "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!**\n  \n## Speedport-API\n[![PyPI - Status](https://img.shields.io/pypi/status/speedport-api)](https://pypi.org/project/speedport-api)\n[![PyPI](https://img.shields.io/pypi/v/speedport-api?color=blue)](https://pypi.org/project/speedport-api)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/speedport-api)](https://www.python.org/)\n[![PyPI - License](https://img.shields.io/pypi/l/speedport-api)](https://github.com/Andre0512/speedport-api/blob/main/LICENSE)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/speedport-api)](https://pypistats.org/packages/speedport-api)  \nControl Telekom Speedport routers with Python!\n\n### Installation\n```commandline\npip install speedport-api\n```\n\n### Supported Devices\n* Speedport Smart 4\n\n### Commandline tool\nWith this shipped commandline tool can a speedport in your network be controlled.\n\n#### Turn wifi off\n```commandline\n$ speedport wifi off\nTurn off wifi...\n```\n\n#### Turn guest wifi on\n```commandline\n$ speedport guest-wifi on\nTurn on guest wifi...\n```\n\n#### Reconnect for new ip address\n```commandline\n$ speedport reconnect\n123.45.67.89 / 5403:f3:35aa:12f:7287:41cf:fb1c:3c83\nReconnect with internet provider...\n123.45.67.12 / 5403:f3:35fe:12f:7287:41cf:fb1c:3c83\n```\n\n#### Enable wps connect\n```commandline\n$ speedport wps\nEnable wps connect...\nwps connect enabled for 113s...\n```\n\n#### Reboot device\n```commandline\n$ speedport reboot\nReboot speedport...\n```\n\n#### Print devices\n```commandline\n$ speedport devices\n+-------------+---------------------+-------+-----------+\n| ipv4        | name                | type  | connected |\n+-------------+---------------------+-------+-----------+\n| 10.5.12.32  | Google-Home-Mini-1  | wlan  | 1         |\n| 10.5.12.157 | PC10-5-12-157       | lan   | 0         |\n| 10.5.12.227 | andre-xps           | wlan5 | 1         |\n```\n\n\n#### Print calls\n```commandline\n$ speedport calls\n+-------------+--------+----------+---------------------+\n| number      | type   | duration | date                |\n+-------------+--------+----------+---------------------+\n| 01578212345 | missed | 0        | 2024-04-04 09:34:35 |\n| 026361245   | taken  | 1337     | 2024-04-06 05:12:53 |\n| 7866        | dialed | 20       | 2024-04-06 18:39:00 |\n```\n\n### Library\n\n#### Reconnect example\n```python\nimport asyncio\nfrom speedport import Speedport\n\nasync def reconnect():\n    speedport =  Speedport(\"192.168.1.1\")\n    await speedport.login(\"password123\")\n    await speedport.reconnect()\n\nasyncio.run(reconnect())\n```\n\n#### Devices example\n```python\nimport asyncio\nfrom speedport import Speedport\n\ndevices = asyncio.run(Speedport().devices)\nfor device in devices:\n    print(device.ipv4, device.connected)\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Control Telekom Speedport routers with Python",
    "version": "0.6.0",
    "project_urls": {
        "GitHub": "https://github.com/Andre0512/speedport-api",
        "PyPI": "https://pypi.org/project/speedport-api"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1ea1a92c4bff3e86d733a349ace79d60bbff8316a4f19b215c3177d1ef26d098",
                "md5": "8887b84d7a682c1cba801ae2c2716920",
                "sha256": "2e40ad5398af25981da74416818fe01831144ecb69c3cc3e78aed1fb173c8d15"
            },
            "downloads": -1,
            "filename": "speedport_api-0.6.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8887b84d7a682c1cba801ae2c2716920",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 12619,
            "upload_time": "2024-03-18T00:27:36",
            "upload_time_iso_8601": "2024-03-18T00:27:36.316163Z",
            "url": "https://files.pythonhosted.org/packages/1e/a1/a92c4bff3e86d733a349ace79d60bbff8316a4f19b215c3177d1ef26d098/speedport_api-0.6.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "53da1674477eb18d1834aa5bce898c56d6d7a9efa8a4aa9f952fbefb9a9f0df0",
                "md5": "ccaf9c32a91ed8c370c464801d839895",
                "sha256": "4157b070541e49f85234713efa311523d6564dec3985f97d527e3bfffa08c7a7"
            },
            "downloads": -1,
            "filename": "speedport-api-0.6.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ccaf9c32a91ed8c370c464801d839895",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 11336,
            "upload_time": "2024-03-18T00:27:38",
            "upload_time_iso_8601": "2024-03-18T00:27:38.207173Z",
            "url": "https://files.pythonhosted.org/packages/53/da/1674477eb18d1834aa5bce898c56d6d7a9efa8a4aa9f952fbefb9a9f0df0/speedport-api-0.6.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-18 00:27:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Andre0512",
    "github_project": "speedport-api",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "aiohttp",
            "specs": [
                [
                    ">=",
                    "3.0"
                ]
            ]
        },
        {
            "name": "pycryptodome",
            "specs": [
                [
                    ">=",
                    "3.18"
                ]
            ]
        }
    ],
    "lcname": "speedport-api"
}
        
Elapsed time: 4.47503s