Skip to main content

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, including async/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.

Release files for systemd_ctypes 0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for systemd_ctypes 0
File Size Uploaded
systemd_ctypes-0.tar.gz 21.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for systemd_ctypes 0
File Interpreter ABI Platform
systemd_ctypes-0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 44.0 kB

Release files / systemd_ctypes-0.tar.gz

Download URL systemd_ctypes-0.tar.gz
Size 21.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f45d344a329fc35d4d9096244ea723864eb58bd2d7b02310772a84e4eefe8285
BLAKE2b-256 checksum
How to use checksums
af83799e1cf4e9fcd030c2002f442e6520259f0f4f7334f6c076c23898e05c05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.27.1

Release files / systemd_ctypes-0-py2.py3-none-any.whl

Download URL systemd_ctypes-0-py2.py3-none-any.whl
Size 22.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
acc06460fc826e415f6ab6e52f039ba3e1570ce39e6ce4eaedc58c1172f97bcf
BLAKE2b-256 checksum
How to use checksums
aafa2bf34883c0f5624fc1a9eadfcb9361376f02d7d9206e9836951471942d26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.27.1

Release history Release notifications | RSS feed

This release

0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page