[systemd-devel] pystemd a cython wrapper around libsystemd
aleivag
aleivag at gmail.com
Fri Jan 12 17:46:24 UTC 2018
Hi all,
shameless plug, hope its ok, i've seen people do this,, but that does not
means is ok...
so created a nice python wrapper arround sd-bus.h (and other parts of
libsystemd) the idea is to make accesible to python developer what is
already accesible to c developers.
so you can do stuff like
```
with pystemd.systemd1.Unit(b'postfix') as postfix:
postfix.Unit.Start(b'Replace')
print(f"your main pid is {postfix.Service.MainPID}")
```
but since it bind to sd-bus, it can do more stuff that just start stop
units. the github repo is https://github.com/facebookincubator/pystemd
all feedback is much appreciated
Have as nice day
Alvaro Leiva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180112/04a5b1e1/attachment.html>
More information about the systemd-devel
mailing list