Library for working with wireguard configs.
Project description
neowg
ВАЖНО, БИБЛИОТЕКА РАБОТАЕТ ТОЛЬКО СО СВОИМ ФОРМАТОМ КОНФИГОВ
Установка
pip install neowg
Примеры использования:
Создание нового конфига
from neowg import WgServerConfig
config = WgServerConfig.new(
server_ip="<YOUR_WG_SERVER_IP>",
net_adapter="<YOUR_WG_SERVER_NET_ADAPTER>",
clients_count=100,
) # Создание объекта конфига
config.dump("wg.conf") # Запись конфига в файл
Чтение конфига из файла.
from neowg import WgServerConfig
config = WgServerConfig.from_file("wg.conf") # Создание объекта конфига
Изменения пары ключей
from neowg import WgServerConfig
config = WgServerConfig.from_file("wg.conf") # Создание объекта конфига
config.update_keys("10.0.0.2")
config.dump("wg.conf")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
neowg-1.0.1.tar.gz
(4.1 kB
view details)
Built Distribution
neowg-1.0.1-py3-none-any.whl
(5.8 kB
view details)
File details
Details for the file neowg-1.0.1.tar.gz
.
File metadata
- Download URL: neowg-1.0.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b201d1631b033cf63c0a45783dc03a571dadb8d647d342dc34f1e257fb0b20a1 |
|
MD5 | 12711910de18771a16493985e3b361ad |
|
BLAKE2b-256 | aecc7967d699eb29dc5481d4e84025fc2d7346617c36c7e2fb8047f16404bbb4 |
File details
Details for the file neowg-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: neowg-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd48635468473f5a6662854dedd5fe74331a68b35560b7c4297843731d15eaff |
|
MD5 | 4106f9384a3fec5b04f1ebdcfb3c1bfd |
|
BLAKE2b-256 | 40ea6d8d44fea636597b77de6beca1d175b662a8af4936ba96354221e9717dc4 |