py-ip-command
Wrapping the Linux ip command in Python.
Find me on pypi: https://pypi.org/project/py-ip-command/
on GitHub: https://github.com/Corvan/py-ip-command
or install me:
pip install py-ip-command
pipenv install py-ip-command
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=Truetoshow()or simply callshow(True)
Metadata
Release files for py-ip-command 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py-ip-command-0.0.4.tar.gz | 3.7 kB | Without provenance | Details for py-ip-command-0.0.4.tar.gz |
Release files / py-ip-command-0.0.4.tar.gz
| Download URL | py-ip-command-0.0.4.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd0a3f2582b5faf3095d02a85e28a37cc64ef9a3787822a8aea5dbab78db5a26
|
|
BLAKE2b-256 checksum How to use checksums |
9082b5e5143896f7c89e72eb36811bf8c28ad581f961c69bb02d901f96ee9973
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for py-ip-command 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.