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

Uploaded Source

Built Distribution

neowg-1.3.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: neowg-1.3.1.tar.gz
  • Upload date:
  • Size: 5.4 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.3.1.tar.gz
Algorithm Hash digest
SHA256 836e9d37422e74660d9ffde91e0ea28fc91377739f63f2f2920280cd96c901ab
MD5 08e002ca0ed291413752b53a8dea7796
BLAKE2b-256 4dc26168b1794fdebbef0cd20238d04ef6eb6d6b7808d3d989aad62f60b48667

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neowg-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 09eb2cdebfb6c44e7c61411ecfe9142636fc79fc0939e9d3b907ce8074bf8274
MD5 eeb8dc002fa80184cc405ad61f262baf
BLAKE2b-256 549b2b336f9d6d1962a4445049e3a92c064bf12e87cfb651391d0b4a684ea1f9

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