haxtibal / netsnmptable

A Python C Extension package to query SNMP tables and table subsets, complementing the original Net-SNMP Python Bindings.
Other
7 stars 0 forks source link

Asynchronous API for event loop integration #7

Open haxtibal opened 6 years ago

haxtibal commented 6 years ago

Currently netsnmptable is not well suited for single threaded applications with multiple IO channels. They have to wait blocking on netsnmptable.Table.get_entries() and thus delay other tasks. It would be nice if there was an asynchronous API so that one could integrate netsnmptable into an applications event loop.

The Net-SNMP C API features such an asynchronous API, but neither netsnmptable nor the original bindings expose it. There was some work to expose the asynchronous C API with the original Python bindings, but it's still on a separate branch and the merge request looks stalled. Maybe we can pick that up.