Discussion:
pystemd a cython wrapper around libsystemd
(too old to reply)
aleivag
2018-01-12 17:46:24 UTC
Permalink
Raw Message
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

Loading...