Skip to main content

Library for working with wireguard configs.

Project description

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

Uploaded Source

Built Distribution

neowg-1.0.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: neowg-1.0.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.11.3-arch1-1

File hashes

Hashes for neowg-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1f81b7b569f536cc1614f72def2dd449ee825d1e09840633c2daf458f59a8d11
MD5 7d8032e58a0e8f275d0bab755601ae14
BLAKE2b-256 be05ee2dbe820d2303afbbf8d0b814fdb9de7dbf90f5a98c8f74e6a29c2a0647

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neowg-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.11.3-arch1-1

File hashes

Hashes for neowg-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15154063c6fd52d8460d12dd4756aed5bb970bdf964bdc76c60da8dd0be90763
MD5 3d0dc3104036f967a72bcde58c94bfea
BLAKE2b-256 a4bce5f5d54b5b45db1183c3b32d72c8c17275031f021d7ae77ea5d9404f626c

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