Skip to main content

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, 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.

Project details


Release history Release notifications | RSS feed

This version

0

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)

Uploaded Source

Built Distribution

systemd_ctypes-0-py2.py3-none-any.whl (22.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page