{"id":15009017,"url":"https://github.com/sanketsudake/ifconfig-parser","last_synced_at":"2026-04-01T16:48:46.365Z","repository":{"id":46243954,"uuid":"54703923","full_name":"sanketsudake/ifconfig-parser","owner":"sanketsudake","description":"Parse ifconfig output collected from local/remote server and retrieve values with goodies","archived":false,"fork":false,"pushed_at":"2023-12-15T08:45:50.000Z","size":30,"stargazers_count":40,"open_issues_count":3,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-03-04T22:57:22.965Z","etag":null,"topics":["ifconfig","ifconfig-parser","ifparser","ipconfig","network","python","python-2"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/ifparser/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sanketsudake.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-25T07:56:57.000Z","updated_at":"2025-12-09T13:16:24.000Z","dependencies_parsed_at":"2024-10-29T16:36:11.529Z","dependency_job_id":null,"html_url":"https://github.com/sanketsudake/ifconfig-parser","commit_stats":{"total_commits":29,"total_committers":7,"mean_commits":4.142857142857143,"dds":"0.48275862068965514","last_synced_commit":"801aefb2ff758a2d5efd669cc592cb9de7f33269"},"previous_names":["ssudake21/ifconfig-parser"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/sanketsudake/ifconfig-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanketsudake%2Fifconfig-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanketsudake%2Fifconfig-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanketsudake%2Fifconfig-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanketsudake%2Fifconfig-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanketsudake","download_url":"https://codeload.github.com/sanketsudake/ifconfig-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanketsudake%2Fifconfig-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31290538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ifconfig","ifconfig-parser","ifparser","ipconfig","network","python","python-2"],"created_at":"2024-09-24T19:22:26.017Z","updated_at":"2026-04-01T16:48:46.349Z","avatar_url":"https://github.com/sanketsudake.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"ifconfig-parser\n################\n\n.. image:: https://travis-ci.org/ssudake21/ifconfig-parser.svg?branch=master\n    :target: https://travis-ci.org/ssudake21/ifconfig-parser\n\nParse ifconfig output collected from local or remote server and retrieve required\ninterface information.\n\nUsage\n=====\nInstall ifconfig-parser:\n\n.. code-block:: bash\n\n    pip install -U ifparser\n\nYou can access inferface information as below :\n\n.. code-block:: python\n\n    \u003e\u003e\u003e import commands\n    \u003e\u003e\u003e from ifparser import Ifcfg\n    \u003e\u003e\u003e ifdata = Ifcfg(commands.getoutput('ifconfig -a'))\n    \u003e\u003e\u003e ifdata.interfaces\n    ['lo', 'docker0', 'eth0']\n    \u003e\u003e\u003e eth0 = ifdata.get_interface('eth0')\n    \u003e\u003e\u003e eth0.BROADCAST\n    True\n    \u003e\u003e\u003e eth0.hwaddr, eth0.mtu, eth0.ip, eth0.UP\n    ('08:00:27:1f:d8:b0', '1500', '10.0.2.15', True)\n\n\nYou can query for intefaces on particular parameter :\n\n.. code-block:: python\n\n    \u003e\u003e\u003e ifdata.get(itype='Ethernet')\n    [obj-docker0, obj-eth0]\n    \u003e\u003e\u003e ifdata.get(UP=True)\n   [obj-lo, obj-docker0, obj-eth0]\n\nGet all interface parameters with ``get_values``. Following dictionary contains all possible values:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e eth0 = ifdata.get_interface('eth0')\n    \u003e\u003e\u003e eth0.get_values()\n    {'BROADCAST': True,\n     'LOOPBACK': False,\n     'MULTICAST': True,\n     'RUNNING': True,\n     'UP': True,\n     'bcast': '10.10.2.255',\n     'hwaddr': 'FF:FF:27:1f:d8:b0',\n     'interface': 'eth0',\n     'ip': '10.10.2.15',\n     'itype': 'Ethernet',\n     'mask': '255.255.255.0',\n     'mtu': '1500',\n     'rxbytes': '547873',\n     'rxpkts': '628',\n     'txbytes': '50826',\n     'txpkts': '424'}\n\nList of parameters for interface:\n\n- BROADCAST, LOOPBACK, MULTICAST, RUNNING, UP, DYNAMIC, NOARP, PROMISC, POINTOPOINT, SIMPLEX, SMART, MASTER, SLAVE\n- interface - Interface name, itype - Interface Type\n- ip - IP, bcast - Broadcast, mask - Mask\n- hwaddr - MAC address, mtu - MTU\n- rxbytes - Received Bytes, rxpkts - Received Packets\n- txbytes - Sent Bytes, txpkts - Sent Packets\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanketsudake%2Fifconfig-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanketsudake%2Fifconfig-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanketsudake%2Fifconfig-parser/lists"}