Metadata-Version: 1.1
Name: ifparser
Version: 0.2.0
Summary: Parse ifconfig output and retrieve values
Home-page: http://github.com/tripples/ifconfig-parser
Author: Sanket Sudake
Author-email: sanketsudake@gmail.com
License: BSD
Download-URL: http://github.com/tripples/ifconfig-parser
Description: Parse ifconfig output collected from local or remote server and retrive required
        interface information.
        
        Usage
        =====
        Install ifconfig-parser:
        
        .. code-block:: bash
        
            pip install ifparser
        
        You can access inferface information as below :
        
        .. code-block:: python
        
            >>> import commands
            >>> from ifparser import Ifcfg
            >>> ifdata = Ifcfg(commands.getoutput('ifconfig -a'))
            >>> ifdata.interfaces
            ['lo', 'docker0', 'eth0']
            >>> eth0 = ifdata.get_interface('eth0')
            >>> eth0.BROADCAST
            True
            >> eth0.hwaddr, eth0.mtu, eth0.ip, eth0.UP
            ('08:00:27:1f:d8:b0', '1500', '10.0.2.15', True)
            >> eth0.get_values()
            {'BROADCAST': True,
             'LOOPBACK': False,
             'MULTICAST': True,
             'RUNNING': True,
             'UP': True,
             'bcast': '10.10.2.255',
             'hwaddr': 'FF:FF:27:1f:d8:b0',
             'interface': 'eth0',
             'ip': '10.10.2.15',
             'itype': 'Ethernet',
             'mask': '255.255.255.0',
             'mtu': '1500',
             'rxbytes': '547873',
             'rxpkts': '628',
             'txbytes': '50826',
             'txpkts': '424'}
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Classifier: Operating System :: POSIX :: Linux
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Intended Audience :: Developers
