This package provides an asynchronous netlink implementation based on trio.

Features

This package provides full support for the generic netlink controller (nlctrl) and limited support for nl80211 and rtnetlink. Support for other netlink families can be added relatively easily.

Ideally, this Python package would be based on anyio such that it supports asyncio applications as well. This isn't possible at the moment because anyio does not support raw sockets or AF_NETLINK yet, but maybe we will move to anyio in the future.

If you are looking for a synchronous library instead, check out pyroute2.

Contributing

Feel free to open a pull request or issue on github. Please try to follow the current code style as much as possible.

API Reference