asyncdbus 0.7.1__tar.gz → 0.7.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/PKG-INFO +1 -1
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/__init__.py +1 -1
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/service.py +4 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/signature.py +9 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus.egg-info/PKG-INFO +1 -1
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/.flake8 +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/.gitignore +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/.style.yapf +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/.travis.yml +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/CHANGELOG.md +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/Dockerfile +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/LICENSE +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/MANIFEST.in +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/Makefile +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/README.md +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/_private/__init__.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/_private/address.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/_private/constants.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/_private/marshaller.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/_private/unmarshaller.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/_private/util.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/auth.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/constants.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/errors.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/introspection.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/message.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/message_bus.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/proxy_object.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/py.typed +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/validators.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus.egg-info/SOURCES.txt +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus.egg-info/dependency_links.txt +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus.egg-info/requires.txt +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus.egg-info/top_level.txt +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/bench/unmarshall.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/dbus_next/glib/message_bus.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/Makefile +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/_static/.gitignore +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/_templates/.gitignore +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/authentication.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/conf.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/constants.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/errors.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/high-level-client/index.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/high-level-client/proxy-interface.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/high-level-client/proxy-object.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/high-level-service/index.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/high-level-service/service-interface.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/index.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/introspection.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/low-level-interface/index.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/low-level-interface/message.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/message-bus/index.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/message-bus/message-bus.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/type-system/index.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/type-system/signature-tree.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/type-system/signature-type.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/type-system/variant.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/validators.rst +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/examples/aio-list-names.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/examples/aio-tcp-notification.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/examples/dbus-name.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/examples/dbus-next-send.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/examples/example-service.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/examples/mpris.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/pytest.ini +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/requirements-dev.txt +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/requirements.txt +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/setup.cfg +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/setup.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/__init__.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/client/test_methods.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/client/test_properties.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/client/test_signals.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/conftest.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/data/introspection.xml +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/data/messages.json +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/service/__init__.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/service/test_decorators.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/service/test_export.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/service/test_methods.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/service/test_properties.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/service/test_signals.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/service/test_standard_interfaces.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_address_parser.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_aio_low_level.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_big_message.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_disconnect.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_fd_passing.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_introspection.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_marshaller.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_request_name.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_signature.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_tcp_address.py +0 -0
- {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_validators.py +0 -0
|
@@ -10,7 +10,7 @@ from .message import Message
|
|
|
10
10
|
from .message_bus import MessageBus
|
|
11
11
|
from .proxy_object import ProxyObject, ProxyInterface
|
|
12
12
|
from . import service
|
|
13
|
-
from .signature import SignatureType, SignatureTree, Variant
|
|
13
|
+
from .signature import SignatureType, SignatureTree, Variant, DbusType
|
|
14
14
|
from .validators import (is_bus_name_valid, is_object_path_valid, is_interface_name_valid,
|
|
15
15
|
is_member_name_valid, assert_bus_name_valid, assert_object_path_valid,
|
|
16
16
|
assert_interface_name_valid, assert_member_name_valid)
|
|
@@ -30,6 +30,10 @@ class _Method:
|
|
|
30
30
|
sig = param.annotation
|
|
31
31
|
if hasattr(sig, 'tree'):
|
|
32
32
|
sig = sig.tree.signature
|
|
33
|
+
if sig.startswith("DbusType[") and sig[-1]=="]":
|
|
34
|
+
sig= sig[9:-1]
|
|
35
|
+
if sig and sig[0] in "'\"":
|
|
36
|
+
sig = sig[1:-1]
|
|
33
37
|
in_signature += sig
|
|
34
38
|
|
|
35
39
|
out_args = []
|
|
@@ -5,6 +5,13 @@ from typing import Any, List as _List, Union, Tuple as _Tuple, Dict as _Dict, Ge
|
|
|
5
5
|
from functools import lru_cache
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
class DbusType:
|
|
9
|
+
"""
|
|
10
|
+
A wrapper so our signatures work with the rest of Python's typing
|
|
11
|
+
infrastructure.
|
|
12
|
+
"""
|
|
13
|
+
pass
|
|
14
|
+
|
|
8
15
|
class SignatureType:
|
|
9
16
|
"""A class that represents a single complete type within a signature.
|
|
10
17
|
|
|
@@ -59,6 +66,8 @@ class SignatureType:
|
|
|
59
66
|
def _parse_next(signature):
|
|
60
67
|
if not signature or signature in ('""',"''"):
|
|
61
68
|
return (None, '')
|
|
69
|
+
if signature.startswith("DbusType[") and signature[-1]=="]":
|
|
70
|
+
signature = signature[9:-1]
|
|
62
71
|
if signature[0] in "'\"":
|
|
63
72
|
signature = signature[1:-1]
|
|
64
73
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|