dect
/
libnl
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
libnl/python
Antoni S. Puimedon 72c2cb9e29 Enabled the use of Links as context managers.
With this change you can still set do modifications of
Links and then to change to pass the changes to the
kernel. But it additionally enables you to interact
with this part of libnl-python in a more pythonic
way. Instead of:

    eth0 = links['eth0']
    eth0.mtu = 5000
    eth0.change()

you can do:

    with links['eth0'] as eth0:
        eth0.mtu = 5000
2012-10-04 16:36:55 -04:00
..
doc python interface to netlink protocols 2011-05-10 12:17:33 +02:00
netlink Enabled the use of Links as context managers. 2012-10-04 16:36:55 -04:00
.gitignore python: Include python/ in distribution and provide a README on how to build & install 2011-08-12 10:45:47 +02:00
Makefile.am python: Include python/ in distribution and provide a README on how to build & install 2011-08-12 10:45:47 +02:00
README python: Include python/ in distribution and provide a README on how to build & install 2011-08-12 10:45:47 +02:00
setup.py.in python: Link against nl-3 and nl-route-3 2011-10-26 10:54:10 +02:00

README

***************************************************************************

NOTE: The python wrapper is experimental and may or may not work.

***************************************************************************

For the brave:

  (requires an installed libnl)
  - $ python ./setup.py build
  - $ sudo python ./setup.py install