Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atam84/ifaceinfo
Find all network informations, ip mask, address, network, statistics, type, lower and upper devices connexion, tcp/tcp6 connexion, udp and udp6 connexion, routing
https://github.com/atam84/ifaceinfo
analyzer development interface interfaces linux monitoring network-analysis networking performance python python3 routing system-programming tcp udp
Last synced: 5 days ago
JSON representation
Find all network informations, ip mask, address, network, statistics, type, lower and upper devices connexion, tcp/tcp6 connexion, udp and udp6 connexion, routing
- Host: GitHub
- URL: https://github.com/atam84/ifaceinfo
- Owner: atam84
- Created: 2018-04-25T13:11:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-26T00:52:01.000Z (almost 6 years ago)
- Last Synced: 2024-11-20T13:30:00.725Z (about 1 month ago)
- Topics: analyzer, development, interface, interfaces, linux, monitoring, network-analysis, networking, performance, python, python3, routing, system-programming, tcp, udp
- Language: Python
- Homepage:
- Size: 84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ifaceinfo
python package that provide networks informations in json/dict format[![Documentation Status](https://readthedocs.io/projects/ifaceinfo/badge/?version=latest)](http://ifaceinfo.readthedocs.io/?badge=latest)
##### Informations are collected:
- network device name
- mac addr, ip addr, mask, network addr
- status
- statistics
- ifindex, iflink
- routing table
- tcp and tcpv6 connexions
- udp and udpv6 connexions
- ...
#### Take a look to the samples informations collected
- [interfaces](https://github.com/atam84/ifaceinfo/blob/master/ifaceinfo/outputs_examples/test_ifacesinfos.md)
- [routing table](https://github.com/atam84/ifaceinfo/blob/master/ifaceinfo/outputs_examples/test_routes.md)
- [tcp connexion](https://github.com/atam84/ifaceinfo/blob/master/ifaceinfo/outputs_examples/test_tcp.md)
- [udp connexion](https://github.com/atam84/ifaceinfo/blob/master/ifaceinfo/outputs_examples/test_udp.md)## Version: 0.1.7, python compatibility: Python 2 and Python 3
## compatibility
This script is compatible with Linux OS## how this script work
The script read the '/sys/class/net/' recursively (partialy) and store the collected information in Dict and return the result that can be exploited like json file.## how to install
```
pip install ifaceinfo
```
or clone the github repository and work directly with## how to use the class
```python
from ifaceinfo import InterfacesInfos
from ifaceroutes import InterfacesRoutes
from ifaceroutes import TCPConn
from ifaceroutes import UDPConnifaces = InterfacesInfos()
ifacesroutes = InterfacesRoutes()
tcpconn = TCPConn()
udpconn = UDPConn()
```### class documentations
- [InterfacesInfos](https://github.com/atam84/ifaceinfo/blob/master/ifaceinfo/doc/ifaceinfo.md#class-interfacesinfos)
- [InterfacesRoutes](https://github.com/atam84/ifaceinfo/blob/master/ifaceinfo/doc/ifaceroutes.md#class-interfacesroutes)
- [TCPConn](https://github.com/atam84/ifaceinfo/blob/master/ifaceinfo/doc/udpconn.md#class-tcpconn)
- [UDPConn](https://github.com/atam84/ifaceinfo/blob/master/ifaceinfo/doc/udpconn.md#class-udpconn)## for more informations about the keyword signification read this:
https://www.kernel.org/doc/Documentation/ABI/testing/
- [sysfs-class-net](https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net)
- [sysfs-class-net-batman-adv](https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net-batman-adv)
- [sysfs-class-net-cdc_ncm](https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net-cdc_ncm)
- [sysfs-class-net-grcan](https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net-grcan)
- [sysfs-class-net-janz-ican3](https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net-janz-ican3)
- [sysfs-class-net-mesh](https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net-mesh)
- [sysfs-class-net-phydev](https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net-phydev)
- [sysfs-class-net-qmi](https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net-qmi)
- [sysfs-class-net-queues](https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net-queues)
- [sysfs-class-net-statistics](https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net-statistics)