A small noip api
Project description
noip_api
A little noip ddns api for python.
Requirements
- socket
- requests
- cryptography
- BeautifulSoup4
Description
login
function logs you in with your username and passwordsaveLoginInfo
function save your username and password encrypted in noip.config fileloadLoginInfo
function loads your username and password from noip.config filegetCurrent
function returns current ip saved in your hostnamesetDNS
function sets given ip to your hostnamegetMyIP
function returns your current public ip addresstestOpenPort
function 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
Close
Hashes for noip_api_CodeGuy3-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4332e087726c71e5e7541a00353946a55fa9aadc9fed7d308780e75b91b6638 |
|
MD5 | adcbc3b145a0512b3c97c619a9a858da |
|
BLAKE2b-256 | 2a0ed90bc85501a8fd619a21ada376f3f42ea41fd285e40701b03f547aa25eda |