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
toshow()
or simply callshow(True)
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c46312d566e9f25159a69e8b3c4b4b1a3d42e8f90fe67e01d9760cf12f7bd7da |
|
MD5 | 1a58c55d3afe72203f5d73d1913ddeba |
|
BLAKE2b-256 | 7cb654d0aca6038e5251344f7f7597ba456d12f29e5df6b9ad1df321fde0f7ac |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffada2ebd0fa6cda50c222be965ae9b3b558d7c8b14c9467ce79629518d33e9f |
|
MD5 | f0ecf48206b9bf83217249232e11ae25 |
|
BLAKE2b-256 | 946ec4788f9e4a8aa0ee8dcfc5c0be1350b0d631d69f16a3150207dd0a4dc376 |