semvec/pypi-packages huggingface dataset:
wepwawet 0.1.0
policy routing for VPNs
Requires Python: >=3

# Wepwawet

Route the traffic of a process over a interface.

> Note: currently only IPv4 is working.

# Install

Install using pip:

```bash
$ pip install wepwawet
```

# Examples

Route over `wg0` interface and drop a bash shell:

```bash
$ sudo wepwawet --interface wg0 exec /bin/bash
```

> Note: when running a shell or something similar, make sure to **correctly** exit. Otherwise cleanup will not work and you will end up with zombie tables, iptable rules, etc.

Don't route subnet `192.168.0.0/24` and `192.168.1.0/24` over the vpn (e.g. for a home network) and use the DNS `1.1.1.1`:

```bash
$ sudo wepwawet --exclude 192.168.0.0/24 --exclude 192.168.1.0/24 --dns 1.1.1.1 exec "ping 192.168.0.1"
```

Only route a specific subnet over the interface, but the other traffic flows through your default interface:

```bash
$ sudo wepwawet --net 192.168.0.0/24 exec /bin/bash
```

> Note: This creates an iptable masquerade rule for most interfaces on the system. Depending on the number of interfaces, this might get a little bit messy...

# Disable automatic rule creation in your VPN

## Wireguard

Add to your wireguard interface configuration file:

```toml
[Interface]
...
Table = off
...
```
TermCmds 0.0.3
Make custom terminal commands in python.
Keywords: terminal,TermCmds,commands,cmds,term,python

# TermCmds module

Make custom terminal commands in python.

## how to make a basic command

`example.py`:

```py
import TermCmds

cmd = TermCmds.Command()

@cmd.main_command
def main(args, kwargs, options):
    print(args)
    print(kwargs)
    print(options)

@cmd.command("subcommand")
def subcommand(args, kwargs, options):
    print("subcommand")
    print(args)
    print(kwargs)
    print(options)

if __name__ == "__main__":
    cmd.run()
```

`python example.py a b -k v --o` outputs:

```python
["a", "b"]
{"k": "v"}
["o"]
```

`python example.py subcommand c d -key value --option` outputs:

```python
subcommand
["c", "d"]
{"key": "value"}
["option"]
```

## documentation

`TermCmds.Command()` is the class for the command  
`@cmd.main_command` is the main command for `.. args kwars options`  
`@cmd.command(name)` is the function link for `.. name args kwargs options`  
`args` is a list of values that are not kwargs or options  
`kwargs` is a dictionary of keys and values `-key value`  
`options` is a list of options `--option`
brazilian-register 0.0.4
Tools to test brazilian register numbers (CPF or CNPJ)
Requires Python: >=3.7

# brazilian_register

Description.
The package brazilian_register is used to:

* Check brazilian Natural Persons Register number (Cadastro de Pessoa Física - CPF).
* Check brazilian National Registry of Legal Entities (Cadastro Nacional da Pessoa Jurídica - CNPJ).

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install brazilian_register

```bash
pip install brazilian_register
```


## Usage

```python
import brazilian_register as br
```


### To Check a **cpf** document number.

```python
cpf = br.cpf('cpf number')
print(cpf.cpf_status())
```
True if the verification code is correct or False if not.


#### To get document input.

```python
# as was informed
print(cpf.cpf_input)

# only numbers
print(cpf.cpf)
```


#### To get verification code input.

```python
print(cpf.cpf_cod_in)
```


#### To get number output.

```python
print(cpf.cpf_output)
```


#### To get verification code output.

```python
print(cpf.cpf_cod_out)
```

### To Check a **cnpj** document number.

```python
cnpj = br.cnpj('cnpj number')
print(cnpj.cnpj_status())
```
True if the verification code is correct or False if not.


#### To get document input.

```python
# as was informed
print(cnpj.cnpj_input)

# only numbers
print(cnpj.cnpj)
```


#### To get verification code input.

```python
print(cnpj.cnpj_cod_in)
```


#### To get number output.

```python
print(cnpj.cnpj_output)
```


#### To get verification code output.

```python
print(cnpj.cnpj_cod_out)
```


## Author

Phelipe Mathias


## License

[MIT](https://choosealicense.com/licenses/mit/)