summaryrefslogtreecommitdiff
path: root/Software/DBusBindings.mdwn
blob: 25dc1ff7ece36b6c976a5c2f020f89468549ba2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
This page lists implementations and language bindings for the D-Bus protocol, their status and, if appropriate, links to download them. 

## Cross-language (with bindings to multiple languages)

### GDBus

GDBus is part of GNOME's GLib library, since version 2.26+. Language bindings are available via GObject-Introspection. It is an implementation of the D-Bus protocol (not a binding).

* [[High-level API|http://library.gnome.org/devel/gio/stable/gdbus-convenience.html]]
* [[Low-level API|http://library.gnome.org/devel/gio/stable/gdbus-lowlevel.html]]
* [Git repository and issue tracking](https://gitlab.gnome.org/GNOME/glib)

### QtDBus

QtDBus is part of Qt, and is a higher-level binding for libdbus. Various language bindings for QtDBus are available.

* [[API documentation|http://doc.qt.io/qt-5/qtdbus-index.html]]
* [[Git repo|http://code.qt.io/cgit/qt/qtbase.git/tree/src/dbus]]

### Eldbus

Eldbus is part of Enlightenment's EFL. It is a binding for libdbus.

* [[API documentation|https://docs.enlightenment.org/efl/current/eldbus_main.html]]
* [[Git repo|https://git.enlightenment.org/core/efl.git/tree/src/lib/eldbus]]

### libdbus (part of dbus)

> If you use this low-level API directly, you're signing up for some pain. —official API documentation

libdbus is part of dbus, and is the reference implementation of the D-Bus protocol. This does not make it the *best* implementation of D-Bus, and for most purposes it isn't the best available. Its maintainers recommend using GDBus, sd-bus or QtDBus instead.

* [[API documentation|https://dbus.freedesktop.org/doc/api/html/]]
* [Git repository and issue tracking](https://gitlab.freedesktop.org/dbus/dbus)

### sd-bus

sd-bus is part of libsystemd, and is an implementation of the D-Bus protocol (not a binding).

* [[API documentation|https://www.freedesktop.org/software/systemd/man/sd-bus.html]]
* [[Git repository and issue tracking|https://github.com/systemd/systemd/]]

## C++

If you implement a new C++ library for D-Bus, please call it something more distinctive than /dbus-c(p|x|plus|+)\1/, otherwise everyone will mix it up with the existing libraries.

### dbus-cxx

dbus-cxx is a sigc++ binding for libdbus.

* [[Website|http://dbus-cxx.sourceforge.net/]]

### dbus-cpp

dbus-cpp is a header-only C++11 binding for libdbus.

* [[Website|https://launchpad.net/dbus-cpp]]

### dbus-c++

Also known as dbus-cplusplus, this is a C++ binding for libdbus. It appears to be inactive (latest release 2011) and is not recommended. Various forks exist; please list any actively-maintained forks here if you know of them.

* [[Website|http://dbus-cplusplus.sourceforge.net/]]

### sdbus-c++

A C++17 binding for systemd's sd-bus.

* [[Howto|https://github.com/Kistler-Group/sdbus-cpp/blob/master/doc/using-sdbus-c%2B%2B.md]]
* [[Git repository|https://github.com/Kistler-Group/sdbus-cpp]]

## Python

### pydbus

[[pydbus|https://pypi.python.org/pypi/pydbus]] is a modern, pythonic D-Bus library built on top of PyGI and GDBus.

* Github: [[https://github.com/LEW21/pydbus]]

### GDBus

GDBus, the D-Bus implementation in GLib, can be used from Python 2 or 3 via [[PyGI|https://wiki.gnome.org/Projects/PyGObject]].

### QtDBus

QtDBus, the D-Bus implementation in Qt, can be used from Python 2 or 3 via recent versions of [[PyQt|PyQt]].

### txdbus

[[txdbus|http://pypi.python.org/pypi/txdbus]] is a native Python implementation of the D-Bus protocol for the Twisted networking framework. 

* Github: [[https://github.com/cocagne/txdbus]]

### Jeepney

[[Jeepney|https://jeepney.readthedocs.io/en/latest/]] is a pure Python D-Bus module.
It consists of an IO-free core implementing the protocol, and integrations
for both blocking I/O and for different asynchronous frameworks.

## Ruby

### ruby-dbus

[[ruby-dbus|https://rubygems.org/gems/ruby-dbus]] is the most popular Ruby D-Bus library. It is an implementation of the D-Bus protocol (not a binding).

* Github: [[https://github.com/mvidner/ruby-dbus]]

## Go

### godbus/dbus

* Github: [[https://github.com/godbus/dbus]]
* [[API documentation|https://godoc.org/github.com/godbus/dbus]]

## Rust

### zbus

Rust implementation, based on Serde.

* Gitlab: [[https://gitlab.freedesktop.org/zeenix/zbus]]

### dbus-rs

libdbus-based binding.

* Github: [[https://github.com/diwic/dbus-rs]]

## Erlang

### erlang-dbus

* Github: [[https://github.com/lizenn/erlang-dbus]]

## Elixir

### dbux

* Github: [[https://github.com/mspanc/dbux]]

## OCaml

### obus

* Github: [[https://github.com/diml/obus]]

## .NET

### dbus-sharp

dbus-sharp is an implementation of the D-Bus protocol (not a binding).

* Github: [[https://github.com/mono/dbus-sharp]]

## Ada

### D_Bus/Ada

* Website: [[https://www.codelabs.ch/dbus-ada/]]
* [[Git repository|http://git.codelabs.ch/?p=dbus-ada.git]] 
* Packages are available in Debian (>= Wheezy) and Ubuntu (>= Quantal Quetzal) 

## Haskell

### dbus

[[dbus|https://hackage.haskell.org/package/dbus]]

* Github: [[https://github.com/jmillikin/haskell-dbus]]

### d-bus

[[d-bus|https://hackage.haskell.org/package/d-bus]]

* Github: [[https://github.com/Philonous/d-bus]]

### udbus

[[udbus|https://hackage.haskell.org/package/udbus]]

* Github: [[https://github.com/vincenthz/hs-udbus]]

## Perl

### Net::DBus

* CPAN: [[http://search.cpan.org/~danberr/Net-DBus-1.1.0/lib/Net/DBus.pm]]

## Objective-C

### DBusKit

* Github: [[https://github.com/gnustep/dbuskit]]

## Tcl

### dbus-tcl

* Sourceforge: [[https://sourceforge.net/projects/dbus-tcl/]]
* [[API documentation|http://dbus-tcl.sourceforge.net/dbus-tcl.html]] 

## Pascal

### FreePascal dbus package

FreePascal has dbus package included.

* Documentation: [[http://wiki.freepascal.org/FPC_and_DBus]]

## Gambas

### gb.dbus

Gambas has gb.dbus package included.

* Documentation: [[http://gambaswiki.org/wiki/doc/dbus]]

## Java

### dbus-java

Since version 2.0 it has been a complete native implementation of the protocol and not a wrapper around the reference implementation. 1.x versions are feature-complete bindings around the reference implementation.

Java D-Bus is hosted in freedesktop.org's [[git repository|http://cgit.freedesktop.org/dbus/dbus-java/]].

**The current release is [[dbus-java-2.7.tar.gz|http://dbus.freedesktop.org/releases/dbus-java/dbus-java-2.7.tar.gz]]. (2009-12-06)** 

The last release binding the reference implementation is [[libdbus-java-1.13.tar.gz|http://dbus.freedesktop.org/releases/dbus-java/libdbus-java-1.13.tar.gz]]. (2006-12-26)

Documentation and API reference for the Java implementation of D-Bus is [[here|http://dbus.freedesktop.org/doc/dbus-java/]].

The Maintainer is Matthew Johnson < [[dbus@matthew.ath.cx|mailto:dbus@matthew.ath.cx]] > 

## Obsolete libraries

### DBus-GLib (obsolete, unmaintained)

dbus-glib is an old GLib binding for libdbus. **New GLib applications should use GDBus. See above.**

**DBus-GLib pretends to be thread-safe but is not. The object model is rubbish and is implemented much better in GDBus (above). The code is not maintained. Do not use it.**

* [[API documentation|http://dbus.freedesktop.org/doc/dbus-glib/index.html]]
* [Git repository and issue tracking](https://gitlab.freedesktop.org/dbus/dbus-glib)
* [[Releases|http://dbus.freedesktop.org/releases/dbus-glib/]]
* [[Training material for Glib wrappers from maemo|http://maemo.org/maemo_training_material/maemo4.x/html/maemo_Platform_Development_Chinook/Chapter_03_Using_the_GLib_wrappers_for_DBus.html]] 

### dbus-python (based on DBus-GLib)

**New applications should use pydbus, txdbus or GDBus/QtDBus bindings. See above.**

dbus-python is a binding for libdbus, the reference implementation of D-Bus. For compatibility reasons, its API involves a lot of type-guessing (despite "explicit is better than implicit" and "resist the temptation to guess"). 

* [[Recent release history|http://dbus.freedesktop.org/doc/dbus-python/NEWS.html]]
* [[API documentation|http://dbus.freedesktop.org/doc/dbus-python/]]
* [Git repository and issue tracking](https://gitlab.freedesktop.org/dbus/dbus-python)
* [[Releases|http://dbus.freedesktop.org/releases/dbus-python/]]