Misc Python Network Utils
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
csirtg_network
test
.coveragerc
.gitattributes
.gitignore
.travis.yml
LICENSE
MANIFEST.in
README.md
dev_requirements.txt
requirements.txt
setup.cfg
setup.py
versioneer.py

README.md

csirtg-network-py

Misc Python Network Utils

Helpful Utils to get your local default interface and address.

>>> from csirtg_network.interfaces import default_address, default_interface, interface_to_address

>>> default_address()
'192.168.1.91'

>>> default_interface()
'en0'

>>> interface_to_address(default_interface())
'192.168.1.91'