Dhcp client/server library
Pydhcplib is a python library to read/write and encode/decode dhcp packet on network.
On Debian, simply run “./setup.py install”. Python modules will be installed in /usr/lib/python2.X/site-packages/pydhcplib/.
If you want to install it on a different location, use the –prefix on the setup.py command line like this : ./setup.py install –prefix=/rootpath/to/your/location/
How to use pydhcplib :
Look in the examples directory to learn how to use the modules. man pydhcp man pydhcplib
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.