Name | dynu-renew JSON |
Version |
1.0.3
JSON |
| download |
home_page | |
Summary | A Python module to renew public IP address associated with a Dynu domain. |
upload_time | 2023-11-11 12:52:46 |
maintainer | |
docs_url | None |
author | Simone Perini |
requires_python | >=3.10,<4.0 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
![GitHub release (latest by date)](https://img.shields.io/github/v/release/CoffeePerry/dynu-renew)
![PyPI](https://img.shields.io/pypi/v/dynu-renew?logo=PyPI&logoColor=white)
![PyPI - Status](https://img.shields.io/pypi/status/dynu-renew)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/dynu-renew?logo=Python&logoColor=white)
![PyPI - Implementation](https://img.shields.io/pypi/implementation/dynu-renew)
[![GitHub license](https://img.shields.io/github/license/CoffeePerry/dynu-renew)](https://github.com/CoffeePerry/dynu-renew/blob/master/LICENSE)
[![GitHub issues](https://img.shields.io/github/issues/CoffeePerry/dynu-renew)](https://github.com/CoffeePerry/dynu-renew/issues)
# dynu-renew
A Python module to renew public IP address associated with a *Dynu* domain.
This Python module, through the "_renew_domains_ip_" function, retrieves the current public IP address, stores it in a local _SQLite_ database, and communicates it to _Dynu_.
## Quick Start
First you need to download the "_dynu-renew_" package, for example via _pip_:
```
pip install dynu-renew
```
At this point you need to create the "_instance_" folder:
```
mkdir instance
```
And create the "_config.py_" file inside, taking inspiration from what you can find inside the "_configs_" folder of this repo.
In the "_DYNU_PASSWORD_" field I recommend you enter the _Dynu IP Update Password_ instead of the Dynu account access password, because the _Dynu IP Update Password_ has limited privileges.
Finally, to start it via _CLI_ simply send the command:
```
python -m dynu_renew
```
If the output is empty, then the IP renewal was successful, otherwise the error received from the _Dynu_ API is returned.
I recommend you add scheduled execution of _dynu-renew_ by adding it to the _crontab_, as follows:
```
crontab -e
```
Then inserting a new line like this:
```
*/5 * * * * python -m dynu_renew >> ~/dynu_renew.log 2>&1
```
Raw data
{
"_id": null,
"home_page": "",
"name": "dynu-renew",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Simone Perini",
"author_email": "39993316+CoffeePerry@users.noreply.github.com",
"download_url": "https://files.pythonhosted.org/packages/dd/48/26e212c983a80b527a766e5be1e6b6d38ffe2c94d8dfa4ad61f157536d5a/dynu_renew-1.0.3.tar.gz",
"platform": null,
"description": "![GitHub release (latest by date)](https://img.shields.io/github/v/release/CoffeePerry/dynu-renew)\n![PyPI](https://img.shields.io/pypi/v/dynu-renew?logo=PyPI&logoColor=white)\n![PyPI - Status](https://img.shields.io/pypi/status/dynu-renew)\n\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/dynu-renew?logo=Python&logoColor=white)\n![PyPI - Implementation](https://img.shields.io/pypi/implementation/dynu-renew)\n\n[![GitHub license](https://img.shields.io/github/license/CoffeePerry/dynu-renew)](https://github.com/CoffeePerry/dynu-renew/blob/master/LICENSE)\n\n[![GitHub issues](https://img.shields.io/github/issues/CoffeePerry/dynu-renew)](https://github.com/CoffeePerry/dynu-renew/issues)\n\n# dynu-renew\n\nA Python module to renew public IP address associated with a *Dynu* domain.\n\nThis Python module, through the \"_renew_domains_ip_\" function, retrieves the current public IP address, stores it in a local _SQLite_ database, and communicates it to _Dynu_.\n\n## Quick Start\n\nFirst you need to download the \"_dynu-renew_\" package, for example via _pip_:\n\n```\npip install dynu-renew\n```\n\nAt this point you need to create the \"_instance_\" folder:\n\n```\nmkdir instance\n```\n\nAnd create the \"_config.py_\" file inside, taking inspiration from what you can find inside the \"_configs_\" folder of this repo.\n\nIn the \"_DYNU_PASSWORD_\" field I recommend you enter the _Dynu IP Update Password_ instead of the Dynu account access password, because the _Dynu IP Update Password_ has limited privileges.\n\nFinally, to start it via _CLI_ simply send the command:\n\n```\npython -m dynu_renew\n```\n\nIf the output is empty, then the IP renewal was successful, otherwise the error received from the _Dynu_ API is returned.\n\nI recommend you add scheduled execution of _dynu-renew_ by adding it to the _crontab_, as follows:\n\n```\ncrontab -e\n```\n\nThen inserting a new line like this:\n\n```\n*/5 * * * * python -m dynu_renew >> ~/dynu_renew.log 2>&1\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "A Python module to renew public IP address associated with a Dynu domain.",
"version": "1.0.3",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "fbc485f703c8fec0bbbbede79886bd8fe7cd5a30eac5e839c567ef4d04a8e321",
"md5": "82db531aaa80d61159041609d4f1eaf9",
"sha256": "03848ffeda79946acc7141e2e1d0e6d69b3fc7c3951d39b68456ce270126b179"
},
"downloads": -1,
"filename": "dynu_renew-1.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "82db531aaa80d61159041609d4f1eaf9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10,<4.0",
"size": 7966,
"upload_time": "2023-11-11T12:52:44",
"upload_time_iso_8601": "2023-11-11T12:52:44.745172Z",
"url": "https://files.pythonhosted.org/packages/fb/c4/85f703c8fec0bbbbede79886bd8fe7cd5a30eac5e839c567ef4d04a8e321/dynu_renew-1.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dd4826e212c983a80b527a766e5be1e6b6d38ffe2c94d8dfa4ad61f157536d5a",
"md5": "e428b25fcf4dd5ab2ea635cd3ee2bc49",
"sha256": "dace33ac13481d435f1f83d1719b64823e9c2cd0b261795f220be574e73cffeb"
},
"downloads": -1,
"filename": "dynu_renew-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "e428b25fcf4dd5ab2ea635cd3ee2bc49",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10,<4.0",
"size": 7100,
"upload_time": "2023-11-11T12:52:46",
"upload_time_iso_8601": "2023-11-11T12:52:46.183760Z",
"url": "https://files.pythonhosted.org/packages/dd/48/26e212c983a80b527a766e5be1e6b6d38ffe2c94d8dfa4ad61f157536d5a/dynu_renew-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-11 12:52:46",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "dynu-renew"
}