Maemo Community e.V. - Call for Donations - Coding Competition
Hello Unregistered,
A long-awaited Coding Competition is just around the corner. We are planning this Competition to happen November 2016 till February 2017.
In order to make the Developer Regatta more interesting it should have a prize pool.
There is no fixed amount so all donations are very welcome!
Please find info on the fundraiser HERE
Best regards
Ruediger 'Chemist' Schiller
Maemo Community e.V.
And it turns to be really, really easy - I've got a client-server example running in ~5 minutes. So I've decided to write this short tutorial to get other started as well.
From Zero to Python DBUS client/server in a few easy steps
Requirements:
0) install the gobject-python3 package (required to use Pydbus):
1) clone the pydbus repo:
2) in one shell run the server:
3) in the second shell run the client:
4) the client should get output like this (reply from the server & a string passed from the client and returned by the server):
You can ignore the traceback at the end, it's caused by the example code being very simple, which includes simplified server shutdown.
5) you can also notice the server shutting down in the first shell as the client told it to quit over DBUS
How is this useful for my application ?
You can use the D-Bus Inspector & Visual D-Bus applications (both available from Jolla Store) to explore available DBUS APIs and/or to test your own DBUS API.
How do I integrate this with my Python application ?
You need to include the python3-gobject package (available from official repositories) as a dependency of your application.
Then just include pydbus (which is a pure-Python library) with your application code in the same manner as any other third party Python library.
(Jolla developers said they preffer developers bindling pydbus with their applications rather than providing it from the official repositories as well.)
Current issues
Feedback, correction & tutorial enhancements welcome!
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)