sdbus
Modern Python D-Bus library. Based on sd-bus from libsystemd.
Decision gist · record as of 2026-08-14
Yes, if you need D-Bus communication on Linux and are targeting x86_64, aarch64, or armv7l with glibc 2.28+. The library is actively maintained, has no known vulnerabilities, offers good type hint support, and eliminates system dependency friction via static linking. The copyleft license (LGPL-2.1-or-later) is permissive for most use cases but requires attention if you plan to modify or redistribute the library itself. Not suitable for non-Linux platforms or unsupported architectures.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9+, glibc 2.28+, and x86_64/aarch64/armv7l architecture.
- Source builds need libsystemd headers, GCC, and pkg-config.
- Medium install friction due to binary wheel availability limited to x86_64, aarch64, and armv7l architectures with glibc 2.28+.
License · maintenance · safety
LGPL-2.1-or-later (copyleft) — Licensed under LGPL-2.1-or-later, a copyleft license. Derivative works and modifications must be distributed under compatible terms; static linking of libsystemd is included in the binary package.
last release 2025-12-21 (236 days) · last repo commit 2026-08-08 · 112 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 616,900 downloads/mo, #5,738 on PyPI
Alternatives
Verify before relying
pip install --only-binary ':all:' sdbus
from sdbus import DbusInterfaceCommonAsync, dbus_method_async
class MyInterface(DbusInterfaceCommonAsync, interface_name='org.example.test'):
@dbus_method_async(input_signature='s', result_signature='s')
async def echo(self, text: str) -> str:
return text- Stability of the API beyond documented interfaces—description notes API is not stable and features may be deprecated.
- Performance characteristics compared to other D-Bus bindings for Python.
- Completeness of type hints coverage across all public APIs.
What it is and what it does
sdbus is a modern Python wrapper around systemd's sd-bus library, providing both synchronous and asynchronous D-Bus communication for Linux systems. It exposes D-Bus methods, properties, and signals through a unified interface that works for both client and server roles, with full type hints and asyncio support. The library statically links libsystemd in its binary wheels, eliminating the need to install system dependencies on supported platforms.
The package is designed for developers building inter-process communication (IPC) on Linux, whether calling existing D-Bus services or implementing new ones. It supports keyword and default arguments in D-Bus methods, integrates with the asyncio event loop, and includes implementations for common D-Bus interfaces like Freedesktop Notifications, Network Manager, and Secrets. The API is still evolving—documented features are considered stable but may be deprecated with warnings—and the project actively maintains compatibility with modern Python versions.
Use it for
- Build a D-Bus service that exposes methods and properties to other system processes without writing boilerplate interface definitions twice.
- Call systemd or other system D-Bus services asynchronously from Python applications with type-safe method signatures.
- Implement desktop notifications, network configuration, or secret storage integration using Freedesktop D-Bus standards.
- Create inter-process communication between Python services on Linux with minimal system dependency overhead.
- Monitor and react to D-Bus signals (e.g., system events) in an asyncio-based application.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need D-Bus communication on Linux and are targeting x86_64, aarch64, or armv7l with glibc 2.28+.
The library is actively maintained, has no known vulnerabilities, offers good type hint support, and eliminates system dependency friction via static linking. The copyleft license (LGPL-2.1-or-later) is permissive for most use cases but requires attention if you plan to modify or redistribute the library itself. Not suitable for non-Linux platforms or unsupported architectures.
Install
sdbus on PyPI
Before you install
Medium install friction due to binary wheel availability limited to x86_64, aarch64, and armv7l architectures with glibc 2.28+. Active maintenance with recent commits and no known vulnerabilities. Requires Python 3.9 or higher.
Requires Python 3.9+, glibc 2.28+, and x86_64/aarch64/armv7l architecture. Source builds need libsystemd headers, GCC, and pkg-config.
License in practice
Licensed under LGPL-2.1-or-later, a copyleft license. Derivative works and modifications must be distributed under compatible terms; static linking of libsystemd is included in the binary package.
Quickstart
pip install --only-binary ':all:' sdbus
from sdbus import DbusInterfaceCommonAsync, dbus_method_async
class MyInterface(DbusInterfaceCommonAsync, interface_name='org.example.test'):
@dbus_method_async(input_signature='s', result_signature='s')
async def echo(self, text: str) -> str:
return text
Verify before relying
- Stability of the API beyond documented interfaces—description notes API is not stable and features may be deprecated.
- Performance characteristics compared to other D-Bus bindings for Python.
- Completeness of type hints coverage across all public APIs.
Package facts
| License | LGPL-2.1-or-later copyleft |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 236 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 616,900 / month, #5,738 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)Operating System :: POSIX :: LinuxProgramming Language :: Python :: 3 :: OnlyTopic :: Software Development :: Libraries :: Python Modules |
Evidence: sdbus-0.14.2-cp39-abi3-manylinux_2_28_aarch64.whl; sdbus-0.14.2-cp39-abi3-manylinux_2_28_armv7l.whl; sdbus-0.14.2-cp39-abi3-manylinux_2_28_x86_64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “asyncio dbus client server”
- sdbusPython library for D-Bus communication with asyncio and blocking call…
- dbus-nextA pure-Python DBus library for Linux desktop and mobile environments…
- dbus-fastdbus-fast is a Python library for D-Bus communication that provides…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also dbus-fast · systemd-python · dbus-python · jeepney · dbus-next · cysystemd · sdnotify · pyserial-asyncio · ft4222 · notify2