A small noip api
Project description
noip_api
A little noip ddns api for python.
Requirements
- socket
- requests
- cryptography
- BeautifulSoup4
Description
loginfunction logs you in with your username and passwordsaveLoginInfofunction save your username and password encrypted in noip.config fileloadLoginInfofunction loads your username and password from noip.config filegetCurrentfunction returns current ip saved in your hostnamesetDNSfunction sets given ip to your hostnamegetMyIPfunction returns your current public ip addresstestOpenPortfunction returns if your port is open, closed or filtered(when the routers firewall is blocking it)
Example 1
import noip_api
username = ""
password = ""
hostname = ""
DDNS = noip_api.noip(hostname)
DDNS.login(username=username, password=password)
print(DDNS.getMyIP())
print(DDNS.getCurrent())
DDNS.setDNS(ip=DDNS.getMyIP())
Example 2
import noip_api
username = ""
password = ""
hostname = ""
DDNS = noip_api.noip(hostname)
DDNS.saveLoginInfo(username=username, password=password)
Example 3
import noip_api
username = ""
password = ""
hostname = ""
DDNS = noip_api.noip(hostname)
DDNS.loadLoginInfo()
DDNS.setDNS(ip=DDNS.getMyIP())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file noip_api-CodeGuy3-0.0.1.tar.gz.
File metadata
- Download URL: noip_api-CodeGuy3-0.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e122c3c50e2721bd09a712675b8c5b799a91b5e1917634b5709a66b840938195
|
|
| MD5 |
1b779fa3d61f915261c491888f698a59
|
|
| BLAKE2b-256 |
7b0cc63d3d2d560325fbd332a8fc2bcd84fcc60b9f9973fe724e5a3633780c4b
|
File details
Details for the file noip_api_CodeGuy3-0.0.1-py3-none-any.whl.
File metadata
- Download URL: noip_api_CodeGuy3-0.0.1-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4332e087726c71e5e7541a00353946a55fa9aadc9fed7d308780e75b91b6638
|
|
| MD5 |
adcbc3b145a0512b3c97c619a9a858da
|
|
| BLAKE2b-256 |
2a0ed90bc85501a8fd619a21ada376f3f42ea41fd285e40701b03f547aa25eda
|