Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neowg-1.5.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

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

Hashes for neowg-1.5.0.tar.gz
Algorithm Hash digest
SHA256 028b2aeb14120e82a9e14d1f1e98fac66a5c9dc33e11c5be9f420f7377f13ee7
MD5 5859bc656f64d9af64fe0fd18d5622b7
BLAKE2b-256 a3ceb405769c320a55026d0cbaa5fd1039cdd3bfc9269cd2bd89588b05b8430a

See more details on using hashes here.

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

Hashes for neowg-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06ef6c4d9a3a9590f0c24827e368ec235d0a63cbfe43ea05f316234050b7cdd2
MD5 14162c84352c2f582b58d1f8f46f60f5
BLAKE2b-256 8d58d4bb61f6a13275b230d83562ada513a671d313c4944fd4fa102c92cc08bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page