New DBus server library for Python

Filipe Laíns <lains-fd97jBR+K/[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Organization Archlinux
Message-ID <[email protected]>
Hi all,

I have been working on a DBus server library on top of the Python type
system.

As some of you may know Python has a type system that allows you to
annotate the types of variables. These annotations can then be consumed
by tools, the most common use-case is to run static checks, essentially
turning Python into a typed language. See [1].

My DBus server library leverages this and allows you to build DBus
objects using Python type hints with native Python types, abstracting
out the DBus signatures.

It can take Python methods, generate the signatures and all of the
required introspection XML.

The library essentially implements a frontend and could use any
backend. None of the frontend API design is tied to how the backend
works. I have added an integration with blocking Jeepney, which is the
only backend supported right now, but I am planning to add more in the
future.

I would like to get some feedback on it, if possible. Mainly on the API
design. It is still a bit early but the core is there and probably
won't change much. I just need to add some missing features, fix some
rough edges and make some slight improvements to the typing API.

Here is the link :)
https://github.com/FFY00/dbus-objects

Please let me know what you think, any suggestions...

[1] http://mypy-lang.org/

Cheers,
Filipe Laíns

_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEE0jW0leqs33gyftiw+JPGdIFqqV0FAl9vmM0ACgkQ+JPGdIFq
qV1XuBAAkNKMWjb9U6flrtYBdZRXUXu237x1n8wEezTs9rmHfQhKAcZ+5iDIVwhT
hl2G/V1OSc0vzkdUbdnc+AeKGTdJrVeUeE10C8tJSuNRH8fHItgQ3fjjsrO6R2DK
+ZtPIMhTxsQz3ICpW7Fzen0P5IrbcE3jJvPjLKI8gQgkgyw5Fy+dK5VjWRQKScU/
w39PvB3pWYo2MN1JqxVq34ulYcvG7c00DpnxgJsbwf4zwjED8/QG62YUQoohZSH0
jaH65akGWOuTZmGsC2Eapq7zYYl2a7yao+Bf6/nIk3ld1W5R6oEJj72bX90NwWzh
O1vExf0NZWsXP/qx7t5y5LPMlb1SGwX52z32y2i2rxwr7uVPAKNPk03DxmMzyooS
m2+jbBV92OUATWs4MufR7ypkGH30936DaBFB9pEDQrx0NVR8/9rDNgpBwiLyyPnM
/nYnAZH4RxwR11DVo2CKyodH7jN277m4ZDkSgtclK3c+vxhb9scZ0z/0h3SW0oDp
AcBY1kavWrkXeRoYvE6/buC0CFtOqXcl4MpjBRi+DfQTs2N7hYF5gRGiB7nQRbN/
t042fi1Qjk6xvUGmOYuFHny61Lmfit1XTFZ+WSD6B06OBxKxw6nM6fJ+IkUoVXMx
0heHzGo21oRBRQTWVWUPvgkrLmX/eWYcgm53o8LBBz/whoSCcHk=
=VbiB
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.