{ "info": { "author": "Anne Mulhern", "author_email": "amulhern@redhat.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "A Python Library for Generating dbus-python Client Code\n=======================================================\n\nFunction\n--------\nThis library contains a function, make_class, that consumes\nan XML specification of a D-Bus interface. ::\n\n>>> Klass = make_class(\"Klass\", spec)\n\nThis call yields a Python class, called Klass, with two static class\nmembers, \"Methods\" and \"Properties\". The \"Methods\" class has a static\nmethod corresponding to each method defined in the interface. Each method\ntakes a proxy object as its first argument followed by any number of\nkeyword arguments, corresponding to the arguments of the method. The\n\"Properties\" class has a static class corresponding to every property\ndefined in the interface. Each property class may have a static Get() or\nSet() method, depending on its attributes.\n\nFor example, assuming the interface defines a read only Version property,\nthe following call should return a value. ::\n\n>>> Klass.Properties.Version.Get()\n\nHowever, since Version is a read only property, the following call should\nfail with an AttributeError. ::\n\n>>> Klass.Properties.Version.Set(\"42\")\n\nSimilarly, if the interface defines a method, Create, with one argument,\nname, a STRING, the following call should succeed. ::\n\n>>> Klass.Methods.Create(proxy, name=\"name\")\n\nThe Create method invokes the method on the proxy object, passing force,\ntransformed into a dbus-python String type.\n\nOn the other hand, the invocation will raise a DPClientError exception if\nthe method is called with an argument with an incorrect type as, ::\n\n>>> Klass.Methods.Create(proxy, name=false)\n\nor with an incorrect keyword as, ::\n\n>>> Klass.Methods.Create(proxy, force=false)\n\nor without all the necessary keywords as, ::\n\n>>> Klass.Methods.Create(proxy)\n\nErrors\n------\nThis library exports the exception type, DPClientError and all its subtypes.\nIt constitutes a bug if an error of any other type is propagated during class\ngeneration or when the methods of the class are executed.\n\nThe following shows the error hierarchy. Entries after the dash indicate\nadditional fields, beyond the message, which the exception contains. Only\nleaves of the error class heirarchy are constructed directly.\n\n\nDPClientError\n\n * DPClientGenerationError\n This exception is raised if an error occurs while generating the method.\n Such an exception would result from introspection data which lacked the\n necessary attributes or entries.\n\n * DPClientRuntimeError - interface name\n This exception is raised if there is an error while the generated method is\n executing.\n\n - DPClientInvalidArgError\n This exception is raised if the arguments to be passed to the D-Bus\n method are incorrect.\n\n * DPClientKeywordError - method name, expected and actual keywords\n This exception is raised if there are missing or unexpected arguments.\n\n * DPClientMarshallingError - original arguments\n This exception is raised if the arguments can not be transformed to\n their required dbus-python types.\n\n - DPClientInvocationError - invocation context\n This exception is raised if a dbus-python method is invoked and some error\n occurs. This exception's invocation context is used to distinguish between\n a method call, a get property call, and a set property call. The context\n is an object of type DPClientInvocationContext.\n\nThe DPClientInvocationContext hierarchy is shown below. Entries after the\ndash indicate the fields in the context.\n\nDPClientInvocationContext\n\n * DPClientMethodCallContext - method name, arguments\n\n * DPClientGetPropertyContext - property name\n\n * DPClientSetPropertyContext - property name, value\n\n\nDependencies\n------------\n* dbus-python\n* into-dbus-python\n\nRequirements\n------------\nThis library is not compatible with Python 2.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mulkieran/dbus-python-client-gen", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "dbus-python-client-gen", "package_url": "https://pypi.org/project/dbus-python-client-gen/", "platform": "Linux", "project_url": "https://pypi.org/project/dbus-python-client-gen/", "project_urls": { "Homepage": "https://github.com/mulkieran/dbus-python-client-gen" }, "release_url": "https://pypi.org/project/dbus-python-client-gen/0.7/", "requires_dist": null, "requires_python": "", "summary": "transforms values into properly wrapped dbus-python objects", "version": "0.7" }, "last_serial": 3824754, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "3177ea82e500ef03ac06e150f37726b4", "sha256": "f60d002670fe062cad70a817f350bfa64d772c6677e404257a2e84325cee58eb" }, "downloads": -1, "filename": "dbus-python-client-gen-0.1.tar.gz", "has_sig": false, "md5_digest": "3177ea82e500ef03ac06e150f37726b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5262, "upload_time": "2017-09-01T20:02:42", "url": "https://files.pythonhosted.org/packages/d6/ac/47be18ca8e7a49def606ddbb213ed070edc33c9cf4b002bd991a63f05bff/dbus-python-client-gen-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "9c73c35b98cb1db8d9af49f036252aae", "sha256": "df86f36b6db1fbeb1f1ade920ca2e11b685b58cfd475426d8545c267294b1fa4" }, "downloads": -1, "filename": "dbus-python-client-gen-0.2.tar.gz", "has_sig": false, "md5_digest": "9c73c35b98cb1db8d9af49f036252aae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5270, "upload_time": "2017-09-05T20:21:55", "url": "https://files.pythonhosted.org/packages/f5/43/420ea0b1b0d279e392697d5195fd13d01a5db8ff0da64499b15938b9bf99/dbus-python-client-gen-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "5460e94f43f562a8d5de8394863f2613", "sha256": "628b5cd7c88a1170a3327d6e91717d3e54e068d5e30f772e05b666faa28321bb" }, "downloads": -1, "filename": "dbus-python-client-gen-0.3.tar.gz", "has_sig": false, "md5_digest": "5460e94f43f562a8d5de8394863f2613", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5295, "upload_time": "2017-09-22T17:35:21", "url": "https://files.pythonhosted.org/packages/10/58/012abf16668f72f7a79edde39234549cb4d48af6532a53975ed30bfd1956/dbus-python-client-gen-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "7b3d030584f961d7b0789aec6772a1b8", "sha256": "32d0ca4674173dbd1b25a61e4859023c49d50c5134caa5890e1051d135b3caec" }, "downloads": -1, "filename": "dbus-python-client-gen-0.4.tar.gz", "has_sig": false, "md5_digest": "7b3d030584f961d7b0789aec6772a1b8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5320, "upload_time": "2017-09-28T14:04:01", "url": "https://files.pythonhosted.org/packages/5b/56/0a4f564a35670ff6a96ac37a9fba33a3a80ea14ce9824b71ac082d3ddb2e/dbus-python-client-gen-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "88ea73b671388d45b2d263a569b33cff", "sha256": "6153cdcb191c0fc8eabed41f6a64569640ac9c7d961aebc60c16392793eb622e" }, "downloads": -1, "filename": "dbus-python-client-gen-0.5.tar.gz", "has_sig": false, "md5_digest": "88ea73b671388d45b2d263a569b33cff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5396, "upload_time": "2017-11-06T21:23:51", "url": "https://files.pythonhosted.org/packages/86/ac/308bc0ea5200b4d6ae2e5e99244703b6d476a4e9d49ba10e686ac1222254/dbus-python-client-gen-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "4ae68b5320c27627587186ef05a3928d", "sha256": "00ede0d61a37aca2ed3e5ece9174d226d960887f55fdcbf91989b3383d8fe67a" }, "downloads": -1, "filename": "dbus-python-client-gen-0.6.tar.gz", "has_sig": false, "md5_digest": "4ae68b5320c27627587186ef05a3928d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5503, "upload_time": "2018-01-30T15:41:58", "url": "https://files.pythonhosted.org/packages/65/28/2a2e6e6ff1d71047665dc72be50a2cff8d59f2748e4dd70533c3c5448cb0/dbus-python-client-gen-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "a986ba4cf356b09605f9aa5580e42937", "sha256": "779335ef6d08734b8da665c014acdc5c4af354f9113c404c286e4e1a4be2a82c" }, "downloads": -1, "filename": "dbus-python-client-gen-0.7.tar.gz", "has_sig": false, "md5_digest": "a986ba4cf356b09605f9aa5580e42937", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9173, "upload_time": "2018-05-01T19:08:13", "url": "https://files.pythonhosted.org/packages/c2/49/2d1a9203b647704d6582696925f724fa0fb5d2c3c4dc6c309ed2299e57d8/dbus-python-client-gen-0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a986ba4cf356b09605f9aa5580e42937", "sha256": "779335ef6d08734b8da665c014acdc5c4af354f9113c404c286e4e1a4be2a82c" }, "downloads": -1, "filename": "dbus-python-client-gen-0.7.tar.gz", "has_sig": false, "md5_digest": "a986ba4cf356b09605f9aa5580e42937", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9173, "upload_time": "2018-05-01T19:08:13", "url": "https://files.pythonhosted.org/packages/c2/49/2d1a9203b647704d6582696925f724fa0fb5d2c3c4dc6c309ed2299e57d8/dbus-python-client-gen-0.7.tar.gz" } ] }