Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrjohannchang/a-simple-python-dbussy-server-client-example
https://github.com/mrjohannchang/a-simple-python-dbussy-server-client-example
dbus demo example ipc python
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mrjohannchang/a-simple-python-dbussy-server-client-example
- Owner: mrjohannchang
- License: mpl-2.0
- Created: 2019-12-11T18:27:56.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-07-25T01:37:39.000Z (over 2 years ago)
- Last Synced: 2024-04-18T14:13:36.824Z (10 months ago)
- Topics: dbus, demo, example, ipc, python
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# An example of implementing D-Bus server and client using DBussy
Please refer to the files `src/dbussyexample/server.py` and `src/dbussyexample/client.py` for the implementation details.
## Demo
### Server
```
$ pipenv run dbussy-example-server
INFO:root:starts serving...
INFO:root:add(52, 6)
INFO:root:subtract(52, 6)
```### Client
```
$ pipenv run dbussy-example-client
[client] a = 52, b = 6
[server] a + b = 58
[server] a - b = 46
```## Installation
```
git clone https://github.com/changyuheng/a-simple-python-dbussy-server-client-example.git
cd a-simple-python-dbussy-server-client-example
pipenv sync
```## Usage
### With pip
To start the server:
```
pipenv run dbussy-example-server
```To run the client:
```
pipenv run dbussy-example-client
```