Name | neowg JSON |
Version |
1.4.1
JSON |
| download |
home_page | None |
Summary | Library for working with wireguard configs. |
upload_time | 2024-11-23 14:12:14 |
maintainer | None |
docs_url | None |
author | NeoTheBestDeveloper |
requires_python | >=3.11 |
license | GPLv3 |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# neowg
# ВАЖНО, БИБЛИОТЕКА РАБОТАЕТ ТОЛЬКО СО СВОИМ ФОРМАТОМ КОНФИГОВ
## Установка
```shell
pip install neowg
```
## Примеры использования:
### Создание нового конфига
```python
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") # Запись конфига в файл
```
### Чтение конфига из файла.
```python
from neowg import WgServerConfig
config = WgServerConfig.from_file("wg.conf") # Создание объекта конфига
```
### Изменения пары ключей
```python
from neowg import WgServerConfig
config = WgServerConfig.from_file("wg.conf") # Создание объекта конфига
config.update_keys("10.0.0.2")
config.dump("wg.conf")
```
Raw data
{
"_id": null,
"home_page": null,
"name": "neowg",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": null,
"author": "NeoTheBestDeveloper",
"author_email": "neothebestmain@protonmail.com",
"download_url": "https://files.pythonhosted.org/packages/5d/35/70b427181fed589f97fef07720ea14ffe907785d84236dc9a34d42a72a20/neowg-1.4.1.tar.gz",
"platform": null,
"description": "# neowg\n\n# \u0412\u0410\u0416\u041d\u041e, \u0411\u0418\u0411\u041b\u0418\u041e\u0422\u0415\u041a\u0410 \u0420\u0410\u0411\u041e\u0422\u0410\u0415\u0422 \u0422\u041e\u041b\u042c\u041a\u041e \u0421\u041e \u0421\u0412\u041e\u0418\u041c \u0424\u041e\u0420\u041c\u0410\u0422\u041e\u041c \u041a\u041e\u041d\u0424\u0418\u0413\u041e\u0412\n\n## \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430\n\n```shell\npip install neowg\n```\n\n## \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f:\n\n### \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0430\n\n```python\nfrom neowg import WgServerConfig\n\nconfig = WgServerConfig.new(\n server_ip=\"<YOUR_WG_SERVER_IP>\",\n net_adapter=\"<YOUR_WG_SERVER_NET_ADAPTER>\",\n clients_count=100,\n) # \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0430\nconfig.dump(\"wg.conf\") # \u0417\u0430\u043f\u0438\u0441\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0432 \u0444\u0430\u0439\u043b\n```\n\n### \u0427\u0442\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430.\n\n```python\nfrom neowg import WgServerConfig\n\nconfig = WgServerConfig.from_file(\"wg.conf\") # \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0430\n```\n\n### \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u044b \u043a\u043b\u044e\u0447\u0435\u0439\n\n```python\nfrom neowg import WgServerConfig\n\nconfig = WgServerConfig.from_file(\"wg.conf\") # \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0430\nconfig.update_keys(\"10.0.0.2\")\nconfig.dump(\"wg.conf\")\n```\n",
"bugtrack_url": null,
"license": "GPLv3",
"summary": "Library for working with wireguard configs.",
"version": "1.4.1",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "de9f54657f6a080f1dea85063abc17252ff5b2635188b2129ec96c80113ecf5c",
"md5": "ba8017406e3ef5aa7ac0e8ca60dec1a1",
"sha256": "9bbb6965cc0b1af7f3fc0c0b4beb2a398fe5f6a6e22aa763da906ed0d49e0a57"
},
"downloads": -1,
"filename": "neowg-1.4.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ba8017406e3ef5aa7ac0e8ca60dec1a1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 7377,
"upload_time": "2024-11-23T14:12:13",
"upload_time_iso_8601": "2024-11-23T14:12:13.439071Z",
"url": "https://files.pythonhosted.org/packages/de/9f/54657f6a080f1dea85063abc17252ff5b2635188b2129ec96c80113ecf5c/neowg-1.4.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5d3570b427181fed589f97fef07720ea14ffe907785d84236dc9a34d42a72a20",
"md5": "9a2829e686f69d414df6b7523ff94a8d",
"sha256": "f2b44c9469bded1f8d9ab6cf2a59fb9f2c456359b307fdfa8dda66063e8e4f86"
},
"downloads": -1,
"filename": "neowg-1.4.1.tar.gz",
"has_sig": false,
"md5_digest": "9a2829e686f69d414df6b7523ff94a8d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 5383,
"upload_time": "2024-11-23T14:12:14",
"upload_time_iso_8601": "2024-11-23T14:12:14.558168Z",
"url": "https://files.pythonhosted.org/packages/5d/35/70b427181fed589f97fef07720ea14ffe907785d84236dc9a34d42a72a20/neowg-1.4.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-23 14:12:14",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "neowg"
}