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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

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

Hashes for noip_api-CodeGuy3-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e122c3c50e2721bd09a712675b8c5b799a91b5e1917634b5709a66b840938195
MD5 1b779fa3d61f915261c491888f698a59
BLAKE2b-256 7b0cc63d3d2d560325fbd332a8fc2bcd84fcc60b9f9973fe724e5a3633780c4b

See more details on using hashes here.

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

Hashes for noip_api_CodeGuy3-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4332e087726c71e5e7541a00353946a55fa9aadc9fed7d308780e75b91b6638
MD5 adcbc3b145a0512b3c97c619a9a858da
BLAKE2b-256 2a0ed90bc85501a8fd619a21ada376f3f42ea41fd285e40701b03f547aa25eda

See more details on using hashes here.

Supported by

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