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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file systemd_ctypes-0.tar.gz.

File metadata

  • Download URL: systemd_ctypes-0.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for systemd_ctypes-0.tar.gz
Algorithm Hash digest
SHA256 f45d344a329fc35d4d9096244ea723864eb58bd2d7b02310772a84e4eefe8285
MD5 399c37547aabe48dafd5bf285f2eac71
BLAKE2b-256 af83799e1cf4e9fcd030c2002f442e6520259f0f4f7334f6c076c23898e05c05

See more details on using hashes here.

File details

Details for the file systemd_ctypes-0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for systemd_ctypes-0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 acc06460fc826e415f6ab6e52f039ba3e1570ce39e6ce4eaedc58c1172f97bcf
MD5 b49c551de1afb0e93f0236b71ad31a6c
BLAKE2b-256 aafa2bf34883c0f5624fc1a9eadfcb9361376f02d7d9206e9836951471942d26

See more details on using hashes here.

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