systemd_ctypes
Project description
systemd_ctypes
A small pure-ctypes
wrapper around libsystemd
.
This projet aims to build a small wrapper around libsystemd
based on ctypes
, using semi-automated binding techniques. The highlevel goals are:
- easy to embed in other projects (eg: in
zipapp
packages) - small code size with little binding-related boilerplate: in many cases, one line per bound function
- reasonable performance, but not at the cost of readability
- seemless integration of systmed's event loop with
asyncio
, includingasync
/await
.
The initial focus is on the sd_event
and sd_bus
APIs.
This project originated as a weekend hack to support the efforts to write a portable Python version of cockpit-bridge
.
Run tests with test/run
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
systemd_ctypes-0.tar.gz
(21.4 kB
view hashes)
Built Distribution
Close
Hashes for systemd_ctypes-0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acc06460fc826e415f6ab6e52f039ba3e1570ce39e6ce4eaedc58c1172f97bcf |
|
MD5 | b49c551de1afb0e93f0236b71ad31a6c |
|
BLAKE2b-256 | aafa2bf34883c0f5624fc1a9eadfcb9361376f02d7d9206e9836951471942d26 |