Skip to main content

Get Network Interface details

Project description

get-nic

Get Network Interface details such as list of interfaces, ipaddress, mac addrress, status of nic, etc. Currently working for Linux.

Get Started

Pip install get_nic:

pip3 install get_nic

import

import module:

   from get_nic import getnic

To get list of intefaces

Get list of network interfaces::

  getnic.interfaces()

Output ["eth0", "wlo1"]

To get all interface details

From the interface list get details of all the interfaces::

interfaces = getnic.interfaces()
getnic.ipaddr(interfaces)

To get selected interface details, example lo, eth0

Pass interface names in a list::

interface_list = ['lo','etho']
getnic.ipaddr(interface_list)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

get_nic-0.0.3.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

get_nic-0.0.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file get_nic-0.0.3.tar.gz.

File metadata

  • Download URL: get_nic-0.0.3.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6

File hashes

Hashes for get_nic-0.0.3.tar.gz
Algorithm Hash digest
SHA256 eac7309b1832bfb467eef008f5342b8aec5729270796e6c1dd635a7e7b9fdf5f
MD5 526f1175d909cc60ce51cd6a0a337ea3
BLAKE2b-256 f8adb4c7f203b490870e52f0fdce34b52a75b9bac656f68e77964a4130e5e5aa

See more details on using hashes here.

File details

Details for the file get_nic-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: get_nic-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6

File hashes

Hashes for get_nic-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 01f5ffab22ce90e0574694193c490f9dae125689a2f07c4ecd84255a31fda47b
MD5 28aa1661a75a77b919da4b40daf6dc04
BLAKE2b-256 bd080568059e0ded7287403cd9f601af37d229b88b8965b8aedb6364de9419bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page