Skip to main content

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 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())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

noip_api-CodeGuy3-0.0.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

noip_api_CodeGuy3-0.0.1-py3-none-any.whl (15.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page