Metadata-Version: 2.1
Name: tew652brp
Version: 0.0.4
Summary: Interface for working with the TEW-652BRP router API 
Home-page: UNKNOWN
Author: fl0pp5
License: UNKNOWN
Project-URL: Documentation, https://tew-652brp.readthedocs.io/
Project-URL: Source, https://github.com/fl0pp5/TEW-652BRP
Platform: UNKNOWN
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Description-Content-Type: text/markdown
License-File: LICENCE

# TEW-652BRP

#### Python interface for working with the TEW-652BRP router API 

## Installation
```bash
pip install tew652brp
```

## Usage
```python
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)
```

