Interface for working with the TEW-652BRP router API
Project description
TEW-652BRP
Python interface for working with the TEW-652BRP router API
Installation
pip install tew652brp
Usage
import getpass
from tew652brp.client import Client
# Session creation
client = Client('http://192.168.10.1')
# Enter your data
username = input('Username: ')
password = getpass.getpass()
# Try to login
if client.login.login(username, password):
# Get all virtual servers
virtual_servers = client.virtual.get_servers()
# Turns on all virtual servers
for server in virtual_servers:
server.enabled = 1
client.virtual.update_server(server)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tew652brp-0.0.4.tar.gz
(17.3 kB
view details)
Built Distribution
tew652brp-0.0.4-py3-none-any.whl
(19.2 kB
view details)
File details
Details for the file tew652brp-0.0.4.tar.gz
.
File metadata
- Download URL: tew652brp-0.0.4.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5dd65d9d255e29a09745ff78ec6ca30b6d0db58a09dedf8c9ea2fefb38b3b4a |
|
MD5 | ce55b7cfaf06fb8e48593a5536600aac |
|
BLAKE2b-256 | 22a2abd4fac395d52961cb5594c5d53b4f315b603800c7a24234d36b36d8e1df |
File details
Details for the file tew652brp-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: tew652brp-0.0.4-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7899e0fd9c538463cba816fad06055a34c44cea6a1bfe7840c89d29c577f1820 |
|
MD5 | 6938eca53c5be7976f14c3dda2c5a513 |
|
BLAKE2b-256 | 42e1e1016e1e955d9581786e304b0ea1b522bb3e4049aaf25e3d2c4829eed750 |