semvec/pypi-packages huggingface dataset:
unbound-remotecontrol 0.1.0
Python remote control for unbound
Keywords: unbound control remote client

# Python remote control for unbound server

![Build](https://github.com/dmachard/unbound-remotecontrol/workflows/Build/badge.svg) ![Testing](https://github.com/dmachard/unbound-remotecontrol/workflows/Testing/badge.svg) ![Unbound](https://byob.yarr.is/dmachard/unbound-remotecontrol/unbound) ![Python](https://byob.yarr.is/dmachard/unbound-remotecontrol/python)

![License](https://badgen.net/badge/License/MIT/yellow?icon=github) ![Pypi](https://github.com/dmachard/unbound_remotecontrol/workflows/PyPI/badge.svg)

## Table of contents
* [Installation](#installation)
* [Remote Control on Unbound](#remote-control-on-unbound)
* [Execute command](#execute-command)

## Installation

This module can be installed from [pypi](https://pypi.org/project/unbound_remotecontrol/) website

```python
pip install unbound_remotecontrol
```

## Remote Control on Unbound

Before to use this utility. You must activate the remote control on your unbound server.
See [config file](https://github.com/dmachard/unbound-remotecontrol/blob/master/tests/unbound_remotecontrol_tls.conf) example. 

### Execute command

You can execute commands with the function `send_command`. See [nlnetlabs documentations](https://www.nlnetlabs.nl/documentation/unbound/unbound-control/) for the full list of available commands.

- Import the module in your code

```python
from unbound_remotecontrol import RemoteControl
```

- Configure the remote control client

```python
rc = RemoteControl(host="127.0.0.1", port=8953,
                   server_cert = "/etc/unbound/unbound_server.pem", 
                   client_cert= "/etc/unbound/unbound_control.pem",
                   client_key= "/etc/unbound/unbound_control.key")
```

- Execute a command and get output

```python
o = rc.send_command(cmd="status")
print(o)
```
random-text-generator 1.1.0
Generate short, simple text codes
Requires Python: >=3.0
Keywords: python,generator,code,encode,decode,random

# <div align=center><span>About this repository<img align="right" width=100 height=100 src=https://logos-download.com/wp-content/uploads/2016/10/Python_logo_icon.png></span></div>

## Simple Code Generator

---

### Description

> **Generate string codes for django or flask or any web development python framework or any python project generally**

---

> **Use this script as an extension of your project whenever you want to generate random codes.**

### Usage

---

**Follow the following: !**
**They are very important**

```txt
1. call the function generate()

2. pass in the arguments, they are: [
        'length_minimal', 'length_maximal', 'int_min_length',
        'int_max_length'
    ], they are optional and the default values will be given to them. So the
        output will be like

   generate_code_simple(length_minimal=int, length_maximal=int,
                        int_min_length=int, int_max_length=int).

3. then leave the rest to the packge to generate the type of code for you

4. then make a variable like the example
   `code = generate_code_simple()` | don't add the the symbol `|` just write the
   what is inside the variables backticks.

5. then at runtime the generated code will be run

```

**This written in python code**

**Obviously use the statement `from text_generator import generate` for the 1st line**

---

<br>

**Code without parameters**

```python
code = generate()
print(f"Generated code is -> {code}")
```

```text
>>> Generated code is -> 552405550765069469025

The result is not fixed it changes at the next runtime
```

---

**Code with parameters**

```python
code = generate(length_minimal=10, length_maximal=50,
                             int_min_length=1, int_max_length=99999)
print(f"Generated code is -> {code}")
```

```text
>>> Generated code is -> 6051772282112626082611874181

? Don't rely on this code is not yet fully tested and results may differ.
Working on it
```

---

## Configuration

---

**To configure the project all you need to do is pass in `params` to the `generate()` function**

## Changelog

[CHANGELOG](CHANGELOG.md)

## Authors

[AUTHORS](AUTHORS.md)

## Contributing

[CONTRIBUTING](CONTRIBUTING.md)

## Folder Structure Structure

---

<pre>
<code>
DIR  +----------------------|> dist
DIR  +----------------------|> tests
DIR  +----------------------|> text_generator
FILE  +----------------------|> __init.py__
FILE  +----------------------|> .gitignore
FILE  +----------------------|> LICENSE
FILE  +----------------------|> README.md
FILE  +----------------------|> setup.py
</code>
</pre>