semvec/pypi-packages huggingface dataset:
wg-conf 1.0.0
Manage Wireguard configuration files
Requires Python: >=3.6

# wg_conf

![GitHub](https://img.shields.io/github/license/galenguyer/wg_conf?style=for-the-badge) 
![PyPI](https://img.shields.io/pypi/v/wg-conf?style=for-the-badge)

Python library to read, edit, and save [Wireguard](https://www.wireguard.com/) configuration files

### Installation

Install using pip:
```
python3 -m pip install wg-conf
```

### Methods

Load a configuration file:
```
import wg_conf

wc = wg_conf.WireguardConfig('/etc/wireguard/wg0.conf')
```

Write a configuration file to disk:
```
wc.write_file()
```

##### Edit the interface

Add an attribute to the interface
```
wc.add_interface_attr('AttributeKey', 'AttributeValue')
```
add_interface_attr **will not** overwrite an existing attribute. If you are sure you want to overwrite an existing attribute, use `set_interface_attr` with the same parameters. Otherwise, an Exception will be thrown if you try to overwrite an existing attribute


Remove an attribute from the interface
```
wc.del_interface_attr('AttributeKey')
```
If no matching attribute is found, no change will be made

##### Edit a peer

Add an attribute to a peer
```
wc.add_peer_attr('PeerPublicKey', 'AttributeKey', 'AttributeValue')
```
add_peer_attr **will not** overwrite an existing attribute. If you are sure you want to overwrite an existing attribute, use `set_peer_attr` with the same parameters. Otherwise, an Exception will be thrown if you try to overwrite an existing attribute


Remove an attribute from a peer
```
wc.del_interface_attr('PeerPublicKey', 'AttributeKey')
```
If no matching peer or attribute is found, no change will be made

##### Create or remove a peer

Create a peer given a public key:
```
wc.create_peer('PeerPublicKey')
```
You can now use `add_peer_attr` to configure the peer as you wish

Delete a peer given a public key:
```
wc.del_peer('PeerPublicKey')
```

### Build pypi package
Build a binary and source distribution for pypi
```
python3 setup.py sdist bdist_wheel
```
Push to pypi
```
python3 -m twine upload dist/*
```
BGPp 0.0.9
This is for symbolic regression.Some of code are non-originality, just copy for use. All the referenced code are marked,details can be shown in their sources
Requires Python: >=3.6
Keywords: symbolic regression

<div align="center">
  <img alt="BGP" src="https://github.com/MGEdata/BGP/blob/master/img.jpg?raw=true">
</div>

[![Python Versions](https://img.shields.io/pypi/pyversions/bgp.svg)](https://pypi.org/project/bgp/)
[![Version](https://img.shields.io/github/tag/MGEdata/BGP.svg)](https://github.com/MGEdata/BGP/releases/latest)
![pypi Versions](https://badge.fury.io/py/bgp.svg)


BGP
----------------------
Welcome to BGP.

BGP (Binding Genetic Programming) is a open python library that implements a comprehensive set of symbolic regression tools for materials informatics.

This tool contains a symbol regression tool with dimension calculation,
which is aimed at establish expressions with physical limitation.

BGP inspired by:

  [XenonPy](https://github.com/yoshida-lab/XenonPy),
  [matminer](https://hackingmaterials.github.io/matminer/ ),
  [deap](https://github.com/DEAP/deap),
  [sympy](https://www.sympy.org/en/index.html)

Quick Install
----------------------
```bash
pip install BGP
```

[Document](https://boliqq07.github.io/BGPdocument/)
----------------------
The **usage** of this package and **install** deatils are collected in BGP document.

Turn to [BGP document](https://boliqq07.github.io/BGPdocument/) for more details.

License
----------------------
GNU LGPL-3.0 License