systemd / pystemd

A thin Cython-based wrapper on top of libsystemd, focused on exposing the dbus API via sd-bus in an automated and easy to consume way.
GNU Lesser General Public License v2.1
411 stars 36 forks source link

I can haz asyncio API? #15

Open zsol opened 5 years ago

zsol commented 5 years ago

Some APIs like run use blocking IO which is unfortunate if pystemd is used in an asyncio-aware codebase. It would be great to be able to use pystemd without blocking the event loop or needing to work around this.

kiddten commented 5 years ago

Just run this in executor to work around this