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.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

neowg-1.1.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file neowg-1.1.1.tar.gz.

File metadata

  • Download URL: neowg-1.1.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/24.0.0

File hashes

Hashes for neowg-1.1.1.tar.gz
Algorithm Hash digest
SHA256 8da46eaf2e2d3e9a1fc77a346e916711b973a5cb9a1c5abdc1a25f4b46c8b26a
MD5 727053c64ddfbac4a884d8067373409b
BLAKE2b-256 ed577e9ce5042ec1ee6182b0c0b8cc4be82b0b1c3f4259d976b3f65da337ba66

See more details on using hashes here.

File details

Details for the file neowg-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: neowg-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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

Hashes for neowg-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2dfcd6d182d0a57dab5db3ceae9086e3cb5b103d083b04b6e749ef336b52931
MD5 e10bff1289247dfbb0daa480a75b7a24
BLAKE2b-256 346c96248c77e3c56dad6ff3ab75f0703b9469c0dde91d42575988cdb5562ca4

See more details on using hashes here.

Supported by

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