Skip to content

mes21/pydpn

Repository files navigation

pydpn

Python package for configuring a deeperNetwork device

Install

pip install pydpn

Usage

Python

from pydpn import DeeperNetwork

dpn = DeeperNetwork()
activeMode = dpn.mode.dpnMode
if activeMode != "smart":
    dpn.mode.set_dpnMode("smart")

Commandline

C:\Users> dpn set-mode smart

C:\Users> dpn set-mode full EUW

Config File

For convineanc a json file can be saved under

C:\Users\%USERPROFILE%\.dpn\config.json

The contents must follow this style:

  {
      "username":"example",
      "password": "example",
      "hostIp": "http://34.34.34.34",
      "proxy":"192.168.133.99:3128"
  }

If no arguments are passed to the DeeperNetwork class in python script the class will look for the config file at this default place

For commandline the config file is mandetroy

DeeperNetwork

More information on the DeeperNetwork product can be found here

If you like the project consider buying your DeeperNetwork hardware with my affiliat link

chears!

ToDo´s

There are a lot of them, i consider this package in its very beginners phase

My goal for this python package is to achive everything that could be configured from the browser interface provided by the dpn devices in python code and from commandline

Feedback and suggestions are greatly appreciated!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published