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.
Files changed (95) hide show
  1. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/PKG-INFO +1 -1
  2. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/__init__.py +1 -1
  3. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/service.py +4 -0
  4. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/signature.py +9 -0
  5. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus.egg-info/PKG-INFO +1 -1
  6. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/.flake8 +0 -0
  7. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/.gitignore +0 -0
  8. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/.style.yapf +0 -0
  9. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/.travis.yml +0 -0
  10. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/CHANGELOG.md +0 -0
  11. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/Dockerfile +0 -0
  12. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/LICENSE +0 -0
  13. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/MANIFEST.in +0 -0
  14. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/Makefile +0 -0
  15. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/README.md +0 -0
  16. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/_private/__init__.py +0 -0
  17. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/_private/address.py +0 -0
  18. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/_private/constants.py +0 -0
  19. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/_private/marshaller.py +0 -0
  20. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/_private/unmarshaller.py +0 -0
  21. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/_private/util.py +0 -0
  22. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/auth.py +0 -0
  23. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/constants.py +0 -0
  24. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/errors.py +0 -0
  25. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/introspection.py +0 -0
  26. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/message.py +0 -0
  27. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/message_bus.py +0 -0
  28. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/proxy_object.py +0 -0
  29. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/py.typed +0 -0
  30. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus/validators.py +0 -0
  31. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus.egg-info/SOURCES.txt +0 -0
  32. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus.egg-info/dependency_links.txt +0 -0
  33. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus.egg-info/requires.txt +0 -0
  34. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/asyncdbus.egg-info/top_level.txt +0 -0
  35. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/bench/unmarshall.py +0 -0
  36. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/dbus_next/glib/message_bus.py +0 -0
  37. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/Makefile +0 -0
  38. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/_static/.gitignore +0 -0
  39. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/_templates/.gitignore +0 -0
  40. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/authentication.rst +0 -0
  41. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/conf.py +0 -0
  42. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/constants.rst +0 -0
  43. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/errors.rst +0 -0
  44. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/high-level-client/index.rst +0 -0
  45. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/high-level-client/proxy-interface.rst +0 -0
  46. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/high-level-client/proxy-object.rst +0 -0
  47. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/high-level-service/index.rst +0 -0
  48. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/high-level-service/service-interface.rst +0 -0
  49. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/index.rst +0 -0
  50. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/introspection.rst +0 -0
  51. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/low-level-interface/index.rst +0 -0
  52. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/low-level-interface/message.rst +0 -0
  53. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/message-bus/index.rst +0 -0
  54. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/message-bus/message-bus.rst +0 -0
  55. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/type-system/index.rst +0 -0
  56. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/type-system/signature-tree.rst +0 -0
  57. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/type-system/signature-type.rst +0 -0
  58. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/type-system/variant.rst +0 -0
  59. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/docs/validators.rst +0 -0
  60. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/examples/aio-list-names.py +0 -0
  61. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/examples/aio-tcp-notification.py +0 -0
  62. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/examples/dbus-name.py +0 -0
  63. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/examples/dbus-next-send.py +0 -0
  64. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/examples/example-service.py +0 -0
  65. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/examples/mpris.py +0 -0
  66. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/pytest.ini +0 -0
  67. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/requirements-dev.txt +0 -0
  68. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/requirements.txt +0 -0
  69. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/setup.cfg +0 -0
  70. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/setup.py +0 -0
  71. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/__init__.py +0 -0
  72. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/client/test_methods.py +0 -0
  73. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/client/test_properties.py +0 -0
  74. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/client/test_signals.py +0 -0
  75. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/conftest.py +0 -0
  76. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/data/introspection.xml +0 -0
  77. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/data/messages.json +0 -0
  78. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/service/__init__.py +0 -0
  79. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/service/test_decorators.py +0 -0
  80. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/service/test_export.py +0 -0
  81. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/service/test_methods.py +0 -0
  82. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/service/test_properties.py +0 -0
  83. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/service/test_signals.py +0 -0
  84. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/service/test_standard_interfaces.py +0 -0
  85. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_address_parser.py +0 -0
  86. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_aio_low_level.py +0 -0
  87. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_big_message.py +0 -0
  88. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_disconnect.py +0 -0
  89. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_fd_passing.py +0 -0
  90. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_introspection.py +0 -0
  91. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_marshaller.py +0 -0
  92. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_request_name.py +0 -0
  93. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_signature.py +0 -0
  94. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_tcp_address.py +0 -0
  95. {asyncdbus-0.7.1 → asyncdbus-0.7.3}/test/test_validators.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: asyncdbus
3
- Version: 0.7.1
3
+ Version: 0.7.3
4
4
  Summary: A zero-dependency async DBus library
5
5
  Home-page: https://github.com/M-o-a-T/asyncdbus
6
6
  Author: Matthias Urlichs
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: asyncdbus
3
- Version: 0.7.1
3
+ Version: 0.7.3
4
4
  Summary: A zero-dependency async DBus library
5
5
  Home-page: https://github.com/M-o-a-T/asyncdbus
6
6
  Author: Matthias Urlichs
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