Skip to main content

A wrapper around the linux `ip` command

Project description

py-ip-command

Wrapping the Linux ip command in Python.

Note

This is still work in progess, but you can already use it. Help is very welcome!

Usage

At the moment only two commands of ip are implemented.

Just use

from ip_command.ip import IP

and then you can issue commands like

ip addr show

with

IP.addr.show()

or

ip neigh show

with

IP.neigh.show()

The return of both is

  • An object oriented representation of the data reurned by both commands
  • a dict (addr) or a list of dicts (neigh) consisting of all the information the commands return but split into single elements, if you pass as_dict=True to show() or simply call show(True)

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

py-ip-command-0.0.3.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

py_ip_command-0.0.3-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file py-ip-command-0.0.3.tar.gz.

File metadata

  • Download URL: py-ip-command-0.0.3.tar.gz
  • Upload date:
  • Size: 3.6 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.2 CPython/3.7.3

File hashes

Hashes for py-ip-command-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c46312d566e9f25159a69e8b3c4b4b1a3d42e8f90fe67e01d9760cf12f7bd7da
MD5 1a58c55d3afe72203f5d73d1913ddeba
BLAKE2b-256 7cb654d0aca6038e5251344f7f7597ba456d12f29e5df6b9ad1df321fde0f7ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_ip_command-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.3 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.2 CPython/3.7.3

File hashes

Hashes for py_ip_command-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ffada2ebd0fa6cda50c222be965ae9b3b558d7c8b14c9467ce79629518d33e9f
MD5 f0ecf48206b9bf83217249232e11ae25
BLAKE2b-256 946ec4788f9e4a8aa0ee8dcfc5c0be1350b0d631d69f16a3150207dd0a4dc376

See more details on using hashes here.

Supported by

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