Name | neowg JSON |
Version |
1.5.0
JSON |
| download |
home_page | None |
Summary | Library for working with wireguard configs. |
upload_time | 2024-11-26 12:02:32 |
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/a3/ce/b405769c320a55026d0cbaa5fd1039cdd3bfc9269cd2bd89588b05b8430a/neowg-1.5.0.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.5.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8d58d4bb61f6a13275b230d83562ada513a671d313c4944fd4fa102c92cc08bd",
"md5": "14162c84352c2f582b58d1f8f46f60f5",
"sha256": "06ef6c4d9a3a9590f0c24827e368ec235d0a63cbfe43ea05f316234050b7cdd2"
},
"downloads": -1,
"filename": "neowg-1.5.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "14162c84352c2f582b58d1f8f46f60f5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 7460,
"upload_time": "2024-11-26T12:02:31",
"upload_time_iso_8601": "2024-11-26T12:02:31.015720Z",
"url": "https://files.pythonhosted.org/packages/8d/58/d4bb61f6a13275b230d83562ada513a671d313c4944fd4fa102c92cc08bd/neowg-1.5.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a3ceb405769c320a55026d0cbaa5fd1039cdd3bfc9269cd2bd89588b05b8430a",
"md5": "5859bc656f64d9af64fe0fd18d5622b7",
"sha256": "028b2aeb14120e82a9e14d1f1e98fac66a5c9dc33e11c5be9f420f7377f13ee7"
},
"downloads": -1,
"filename": "neowg-1.5.0.tar.gz",
"has_sig": false,
"md5_digest": "5859bc656f64d9af64fe0fd18d5622b7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 5745,
"upload_time": "2024-11-26T12:02:32",
"upload_time_iso_8601": "2024-11-26T12:02:32.341673Z",
"url": "https://files.pythonhosted.org/packages/a3/ce/b405769c320a55026d0cbaa5fd1039cdd3bfc9269cd2bd89588b05b8430a/neowg-1.5.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-26 12:02:32",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "neowg"
}