Skip to content

Ethan-Zhang/PyLocalIP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

PyLocalIP

Overview

Get Linux system local IP with system call ioctl using python! Safty, fast and flexible

Installation

pip install PyLocalIP

Usage

import PyLocalIP
local_ip = PyLocalIP.get_local_ip("eth0")
#or default with eth0
local_ip = PyLocalIP.get_local_ip()

About

Get local ip addr using python!

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages