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.5.0.tar.gz
(5.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
neowg-1.5.0-py3-none-any.whl
(7.5 kB
view details)
File details
Details for the file neowg-1.5.0.tar.gz.
File metadata
- Download URL: neowg-1.5.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
028b2aeb14120e82a9e14d1f1e98fac66a5c9dc33e11c5be9f420f7377f13ee7
|
|
| MD5 |
5859bc656f64d9af64fe0fd18d5622b7
|
|
| BLAKE2b-256 |
a3ceb405769c320a55026d0cbaa5fd1039cdd3bfc9269cd2bd89588b05b8430a
|
File details
Details for the file neowg-1.5.0-py3-none-any.whl.
File metadata
- Download URL: neowg-1.5.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06ef6c4d9a3a9590f0c24827e368ec235d0a63cbfe43ea05f316234050b7cdd2
|
|
| MD5 |
14162c84352c2f582b58d1f8f46f60f5
|
|
| BLAKE2b-256 |
8d58d4bb61f6a13275b230d83562ada513a671d313c4944fd4fa102c92cc08bd
|