Skip to main content

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.3.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

tew652brp-0.0.3-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file tew652brp-0.0.3.tar.gz.

File metadata

  • Download URL: tew652brp-0.0.3.tar.gz
  • Upload date:
  • Size: 16.5 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

Hashes for tew652brp-0.0.3.tar.gz
Algorithm Hash digest
SHA256 bf5d0f707bd3403d7576ef1a5b0440c76032267464c1f5a133ae534b97f74f7d
MD5 ee54fcb416991ce008758ecbbf93312c
BLAKE2b-256 d274470ada74b2f885af8c366d99f9c45175dcbb837140ed5a13fddf5da0861e

See more details on using hashes here.

File details

Details for the file tew652brp-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: tew652brp-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 18.4 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

Hashes for tew652brp-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 910579ab37289874eb69a974c7220f41f5a32e8d3b55e2c2bbc0a9e9aa251d6a
MD5 fac74136c8a38dcb5b69949e7902e896
BLAKE2b-256 8d543a2fcef9823a516d87aa23a7adabcf6e99707829e239e17b2898962223c9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page