{"id":20940409,"url":"https://github.com/fedora-python/python-ethtool","last_synced_at":"2025-10-27T22:12:38.136Z","repository":{"id":46282720,"uuid":"85705756","full_name":"fedora-python/python-ethtool","owner":"fedora-python","description":"Deprecated Python bindings for the ethtool kernel interface","archived":false,"fork":false,"pushed_at":"2024-09-03T11:04:34.000Z","size":288,"stargazers_count":16,"open_issues_count":4,"forks_count":13,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-31T10:11:09.732Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fedora-python.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"COPYING","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":"2017-03-21T13:34:00.000Z","updated_at":"2025-03-29T22:58:36.000Z","dependencies_parsed_at":"2024-11-18T23:10:23.847Z","dependency_job_id":"7a63c64d-5c3c-4685-a514-0ee94abd904f","html_url":"https://github.com/fedora-python/python-ethtool","commit_stats":{"total_commits":244,"total_committers":19,"mean_commits":"12.842105263157896","dds":0.6762295081967213,"last_synced_commit":"2c87615b1cada7efceb4982ab72d3bd79195905c"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedora-python%2Fpython-ethtool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedora-python%2Fpython-ethtool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedora-python%2Fpython-ethtool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedora-python%2Fpython-ethtool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fedora-python","download_url":"https://codeload.github.com/fedora-python/python-ethtool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648977,"owners_count":20972945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-18T23:10:15.717Z","updated_at":"2025-10-27T22:12:37.960Z","avatar_url":"https://github.com/fedora-python.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Python ethtool module\n=====================\n\n*Python bindings for the ethtool kernel interface*\n\nThe Python ``ethtool`` module allows querying and partially controlling network\ninterfaces, driver, and hardware settings.\n\n.. warning::\n    This is the new upstream for python-ethtool maintained by Fedora's\n    Python SIG. We ported it to Python 3 and only maintain it for the current\n    tools to keep working. **No new development is happening. This is a\n    deprecated package.** If you are considering to start using this, please\n    don't. We recommend `netifaces \u003chttps://pypi.org/project/netifaces/\u003e`_ instead. Another alternative is `ethtool parsers \u003chttps://insights-core.readthedocs.io/en/latest/shared_parsers_catalog/ethtool.html\u003e`_ from `insights-core \u003chttps://pypi.org/project/insights-core/\u003e`_.\n\nInstallation\n------------\n\nThe easiest way to install ``ethtool`` is to use your distribution packages\nrepositories. For example:\n\n**Fedora**: ``sudo dnf install python3-ethtool`` or ``sudo dnf install python2-ethtool``\n\n**Ubuntu**: ``sudo apt install python-ethtool``\n\nIn order to install ``ethtool`` from source or PyPI install its dependencies first:\n\n**Fedora**: ``sudo dnf install libnl3-devel gcc redhat-rpm-config python3-devel``\n\n**Ubuntu**: ``sudo apt install python3 python3-setuptools libpython3.6-dev libnl-route-3-dev``\n\nAnd then install ``ethtool``:\n\n**from PyPI**: ``pip3 install ethtool``\n\n**from source**: ``python3 setup.py install``\n\n\nUsage\n-----\n\n``ethtool`` may be used as a Python library::\n\n    \u003e\u003e\u003e import ethtool\n    \u003e\u003e\u003e ethtool.get_active_devices()\n    ['lo', 'enp0s31f6', 'wlp4s0', 'virbr0', 'docker0', 'virbr1', 'eth0', 'tun0']\n    \u003e\u003e\u003e ethtool.get_ipaddr('lo')\n    '127.0.0.1'\n\nThe ``ethtool`` package also provides the ``pethtool`` and ``pifconfig`` utilities.  More example usage may be gathered from their sources,\n`pethtool.py \u003chttps://github.com/fedora-python/python-ethtool/blob/master/scripts/pethtool\u003e`_\nand\n`pifconfig.py \u003chttps://github.com/fedora-python/python-ethtool/blob/master/scripts/pethtool\u003e`_.\n\n\n``pethtool`` mimics behavior of the ``ethtool`` utility, but does not\nsupport all options.\n\ne.g., to get driver information on the ``eth0`` interface::\n\n    $ pethtool -i eth0\n    driver: cdc_ether\n    bus-info: usb-0000:00:14.0-4.1.3\n\nAnalogically, ``pifconfig`` mimics ``ifconfig`` in usage.  It may be\nused to view information on an interface::\n\n    $ pifconfig lo\n    lo        \n          inet addr:127.0.0.1   Mask:255.0.0.0\n\t      inet6 addr: ::1/128 Scope: host\n\t      UP LOOPBACK RUNNING\n\n\nFurther usage information may be found in the respective manpages for\n`pethtool \u003chttps://github.com/fedora-python/python-ethtool/blob/master/man/pethtool.8.asciidoc\u003e`_\nand\n`pifconfig \u003chttps://github.com/fedora-python/python-ethtool/blob/master/man/pifconfig.8.asciidoc\u003e`_.\n\nTests\n-----\n\nTests may be run by ``tox``.\n\nAuthors\n-------\n\n* Andy Grover\n* Antoni S. Puimedon\n* Arnaldo Carvalho de Melo\n* Bohuslav Kabrda\n* Braňo Náter\n* Dave Malcolm\n* David S. Miller\n* David Sommerseth\n* Harald Hoyer\n* Charalampos Stratakis\n* Jeff Garzik\n* Lumir Balhar\n* Miro Hrončok\n* Miroslav Suchý\n* Ruben Kerkhof\n* Sanqui\n* Yaakov Selkowitz\n\nCurrent maintainers\n-------------------\n\n* Lumír Balhar \u003clbalhar@redhat.com\u003e\n* Miro Hrončok \u003cmhroncok@redhat.com\u003e\n* Charalampos Stratakis \u003ccstratak@redhat.com\u003e\n\nContributing\n------------\n\nFeel free to help us with improving test coverage, porting to Python 3\nor anything else.\nIssues and PRs `on GitHub \u003chttps://github.com/fedora-python/python-ethtool\u003e`_\nare welcome.\n\nLicense\n-------\n\nThe Python ``ethtool`` project is free software distributed under the terms of\nthe GNU General Public License v2.0, see\n`COPYING \u003chttps://github.com/fedora-python/python-ethtool/blob/master/COPYING\u003e`_.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedora-python%2Fpython-ethtool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedora-python%2Fpython-ethtool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedora-python%2Fpython-ethtool/lists"}