Metadata-Version: 2.1
Name: extend-noip
Version: 0.1.0
Summary: Extend noip dns records for one more month
Home-page: https://github.com/ffreemt/extend-noip
License: MIT
Author: freemt
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: absl-py (>=0.11.0,<0.12.0)
Requires-Dist: chardet (>=4.0.0,<5.0.0)
Requires-Dist: logzero (>=1.6.3,<2.0.0)
Requires-Dist: pydantic[dotenv] (>=1.7.3,<2.0.0)
Requires-Dist: pyppeteer2 (>=0.2.2,<0.3.0)
Requires-Dist: pyquery (>=1.4.3,<2.0.0)
Project-URL: Repository, https://github.com/ffreemt/extend-noip
Description-Content-Type: text/markdown

# extend-noip
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Extend noip hostname dns expiry date on noip.com

## Installtion

```bash
pip install extend-noip
```
or clone [https://github.com/ffreemt/extend-noip](https://github.com/ffreemt/extend-noip) and install from the repo.

## Usage
### Supply noip `username` and `password` from the command line:
```bash
python -m extend-noip -u your_noip_username -p password
```
or use directly the ``extend-noip`` script:
```bash
extend-noip -u your_noip_username -p password
```

### Use environment variables `NOIP_USERNAME` and `NOIP_PASSWORD`
*   Set username/password from the command line:
	```bash
	set NOIP_USERNAME=your_noip_username  # export in Linux or iOS
	set NOIP_PASSWORD=password
	```
*   Or set username/password  in .env, e.g.,
	```bash
	# .env
	NOIP_USERNAME=your_noip_username
	NOIP_USERNAME=password

Run `extend-noip` or `python -m  extend_noip`:

```bash
extend-noip
```

or

```bash
python -m extend_noip
```

### Check information only

```bash
extend-noip -i
```

or

```bash
python -m extend_noip -i
```

###  Print debug info

```bash
extend-noip -d
```

or

```bash
python -m extend_noip -d
```

### Brief Help

```bash
extend-noip --helpshort
```

or

```bash
python -m extend_noip --helpshort
```

### Turn off Headless Mode (Show the browser in action)

You can configure `NOIP_HEADFUL`, `NOIP_DEBUG` and `NOIP_PROXY` in the `.env` file in the working directory or any of its parent directoreis. For example,

```bash
# .env
NOIP_HEADFUL=1
NOIP_DEBUG=true
# NOIP_PROXY
```

### Automation via Github Actions

It's straightforward to setup `extend-ip` to run via Github Actions.
*   Fork this repo
*   Setup `Actions secrets` via `Settings/Add repository secrets`:

|Name | Value |
|--    | --    |
|NOIP_USERNAME:| your_noip_username|
|NOIP_PASSWORD:| your_noip_password |

