Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

fl0pp5/TEW-652BRP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages