- commit
- 10bef3c9d7a55769299413d4ddb6ab51b3a04c63
- parent
- fdb1861c6b484addabb09b48d5de29649687e565
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2026-02-16 08:51
add proxy
Diffstat
| M | xibus/__init__.py | 1 | + |
| M | xibus/client.py | 9 | +++++++++ |
2 files changed, 10 insertions, 0 deletions
diff --git a/xibus/__init__.py b/xibus/__init__.py
@@ -1,6 +1,7 @@ 1 1 import contextlib 2 2 3 3 from .client import Client -1 4 from .client import Proxy # noqa 4 5 from .connection import DBusError # noqa 5 6 from .connection import get_connection 6 7
diff --git a/xibus/client.py b/xibus/client.py
@@ -1,6 +1,15 @@ 1 1 from .schema import Schema 2 2 3 3 -1 4 class Proxy: -1 5 def __init__(self, client, name, path=None, iface=None): -1 6 self.client = client -1 7 self.defaults = (name, path, iface) -1 8 -1 9 async def call(self, method, params=(), sig=None): -1 10 return await self.client.call(*self.defaults, method, params, sig) -1 11 -1 12 4 13 class Client: 5 14 def __init__(self, con): 6 15 self.con = con