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

Uploaded Source

Built Distribution

neowg-1.2.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: neowg-1.2.1.tar.gz
  • Upload date:
  • Size: 5.2 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.2.1.tar.gz
Algorithm Hash digest
SHA256 2b9c4d65e302af5936288d8663bbf55fe5262bfa369b86203ed637b29ea72fb5
MD5 7228737f0fde5eabf0c2ef6b395a3835
BLAKE2b-256 6e4a0374822198755444d1530855a03b15b2fd7a92e8da98f2c2337a66317501

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neowg-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 52283f2aeee1a8fc06d93dc8df3095b0744012fb8d7efbdbf1d4beff4d6633d5
MD5 7c8b0b7a8b64c7f6ed53fca4c2fc9239
BLAKE2b-256 71ffab1793e75ef8a74234d97357cd40c114cbce59744fe31f86cdeb644d5e70

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