Metadata-Version: 2.1
Name: py-ip-command
Version: 0.0.3
Summary: A wrapper around the linux `ip` command
Home-page: https://github.com/Corvan/py-ip-command
Author: Lars Liedtke
Author-email: LarsLiedtke@gmx.de
License: LGPL v. 3.0
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Operating System :: POSIX :: Linux
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown

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 
```python
from ip_command.ip import IP
 ```
and then you can issue commands like 
 ```bash
 ip addr show
 ``` 
 with
 ```python
IP.addr.show()
```
or 
```bash 
ip neigh show
```
with
```python
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)`


