Skip to content

KarloSmircic/noip_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

noip_api

A little noip ddns api for python.

Requirements

  • socket
  • requests
  • cryptography
  • BeautifulSoup4

Description

  • login function logs you in with your username and password
  • saveLoginInfo function save your username and password encrypted in noip.config file
  • loadLoginInfo function loads your username and password from noip.config file
  • getCurrent function returns current ip saved in your hostname
  • setDNS function sets given ip to your hostname
  • getMyIP function returns your current public ip address
  • testOpenPort 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())

About

A little noip ddns api for python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages