semvec/pypi-packages huggingface dataset:
tew652brp 0.0.4
Interface for working with the TEW-652BRP router API

# 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)
```
mpl-sizes 0.0.2
Default figure sizes for matplotlib.
Requires Python: >=3.8

# mpl_sizes
![](https://img.shields.io/pypi/v/mpl_sizes?color=green)

A lightweight tool for setting `figsize` and font sizes in `matplotlib`, with support for:

- ICLR
- ICML
- NeurIPS
- Informatics thesis 

## Installation

Install via `pip`:

```bash
pip install mpl-sizes
```

Install from source:
```bash
git clone git@github.com:BayesWatch/mpl_sizes.git
cd mpl_sizes 
python setup.py install
```

## Usage

In your plotting script: 

```python
import matplotlib.pyplot as plt
from mpl_sizes import get_format

formatter = get_format("InfThesis") # options: ICLR, ICML, NeurIPS, InfThesis

fig, ax = plt.subplots(figsize=formatter.text_width_plot())
```

Formatters have two methods: 
- `text_width_plot` - for full pagewidth plots (e.g. in double column, this would be a full width plot)
- `line_width_plot` - for plots the width of the lines of text

and font size will automatically be set correctly. 

A full example is given in `example.py`. 

You can also set aspect ratio to be: "narrow", "normal", "wide", or "equal". 

## Aspect ratios

You can also set aspect ratio to be: "narrow", "normal", "wide", or "equal".   


e.g. 

A single column width plot for ICML:
![](figures/ICML_normal.png)


A double column width plot in wide aspect ratio:
![](figures/ICML_wide.png)