Python package for configuring a deeperNetwork device
pip install pydpn
from pydpn import DeeperNetwork
dpn = DeeperNetwork()
activeMode = dpn.mode.dpnMode
if activeMode != "smart":
dpn.mode.set_dpnMode("smart")
C:\Users> dpn set-mode smart
C:\Users> dpn set-mode full EUW
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
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!
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!