{ "info": { "author": "Linus Lewandowski", "author_email": "linus@lew21.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "pydbus\n======\n.. image:: https://travis-ci.org/LEW21/pydbus.svg?branch=master\n :target: https://travis-ci.org/LEW21/pydbus\n.. image:: https://badge.fury.io/py/pydbus.svg\n :target: https://badge.fury.io/py/pydbus\n\nPythonic DBus library.\n\nChangelog: https://github.com/LEW21/pydbus/releases\n\nRequirements\n------------\n* Python 2.7+ - but works best on 3.4+ (help system is nicer there)\n* PyGI_ (not packaged on pypi, you need to install it from your distribution's repository - it's usually called python-gi, python-gobject or pygobject)\n* GLib_ 2.46+ and girepository_ 1.46+ (Ubuntu 16.04+) - for object publication support\n\n.. _PyGI: https://wiki.gnome.org/Projects/PyGObject\n.. _GLib: https://developer.gnome.org/glib/\n.. _girepository: https://wiki.gnome.org/Projects/GObjectIntrospection\n\nExamples\n--------\n\nSend a desktop notification\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\n.. code-block:: python\n\n\tfrom pydbus import SessionBus\n\n\tbus = SessionBus()\n\tnotifications = bus.get('.Notifications')\n\n\tnotifications.Notify('test', 0, 'dialog-information', \"Hello World!\", \"pydbus works :)\", [], {}, 5000)\n\nList systemd units\n~~~~~~~~~~~~~~~~~~\n.. code-block:: python\n\n\tfrom pydbus import SystemBus\n\n\tbus = SystemBus()\n\tsystemd = bus.get(\".systemd1\")\n\n\tfor unit in systemd.ListUnits():\n\t print(unit)\n\nStart or stop systemd unit\n~~~~~~~~~~~~~~~~~~\n.. code-block:: python\n\n\tfrom pydbus import SystemBus\n\n\tbus = SystemBus()\n\tsystemd = bus.get(\".systemd1\")\n\n\tjob1 = systemd.StopUnit(\"ssh.service\", \"fail\")\n\tjob2 = systemd.StartUnit(\"ssh.service\", \"fail\")\n\nWatch for new systemd jobs\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n.. code-block:: python\n\n\tfrom pydbus import SystemBus\n\tfrom gi.repository import GLib\n\n\tbus = SystemBus()\n\tsystemd = bus.get(\".systemd1\")\n\n\tsystemd.JobNew.connect(print)\n\tGLib.MainLoop().run()\n\n\t# or\n\n\tsystemd.onJobNew = print\n\tGLib.MainLoop().run()\n\nView object's API\n~~~~~~~~~~~~~~~~~\n.. code-block:: python\n\n\tfrom pydbus import SessionBus\n\n\tbus = SessionBus()\n\tnotifications = bus.get('.Notifications')\n\n\thelp(notifications)\n\nMore examples & documentation\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThe Tutorial_ contains more examples and docs.\n\n.. _Tutorial: https://github.com/LEW21/pydbus/blob/master/doc/tutorial.rst\n\nCopyright Information\n---------------------\n\nCopyright (C) 2014, 2015, 2016 Linus Lewandowski \n\nThis library is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 2.1 of the License, or (at your option) any later version.\n\nThis library is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this library; if not, write to the Free Software\nFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/LEW21/pydbus", "keywords": "dbus", "license": "LGPLv2+", "maintainer": "", "maintainer_email": "", "name": "pydbus", "package_url": "https://pypi.org/project/pydbus/", "platform": "", "project_url": "https://pypi.org/project/pydbus/", "project_urls": { "Homepage": "https://github.com/LEW21/pydbus" }, "release_url": "https://pypi.org/project/pydbus/0.6.0/", "requires_dist": null, "requires_python": "", "summary": "Pythonic DBus library", "version": "0.6.0" }, "last_serial": 2526718, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "cee620bcbba46009171d6db337e75045", "sha256": "09de1208170fe2b7ad98a2f16ce67557e9ef5873415885feced3a5831919750f" }, "downloads": -1, "filename": "pydbus-0.1.tar.gz", "has_sig": false, "md5_digest": "cee620bcbba46009171d6db337e75045", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4483, "upload_time": "2014-08-31T16:55:30", "url": "https://files.pythonhosted.org/packages/45/fa/74220ff540256b793acbb346096faef15baca81e11d9e6f23e9ce642c74d/pydbus-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "d0e8806c80017de9178bddf49cfca35b", "sha256": "5a02b07e03d97e3bf2a388c34659ceee6603c57038de4d024b46915ce13dc2a8" }, "downloads": -1, "filename": "pydbus-0.2.tar.gz", "has_sig": false, "md5_digest": "d0e8806c80017de9178bddf49cfca35b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4646, "upload_time": "2015-02-12T01:35:06", "url": "https://files.pythonhosted.org/packages/f7/86/affcd494202a75444c586bfb819e509f931067fd3805261e21603e633b1d/pydbus-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "ac0fc7cdba5a1a1cc27da10e093617be", "sha256": "dc597cbc9a59353f55961e5834073cb8ab39fa3f2c13c6c2bfc7d254a29f7bf9" }, "downloads": -1, "filename": "pydbus-0.3.tar.gz", "has_sig": false, "md5_digest": "ac0fc7cdba5a1a1cc27da10e093617be", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6965, "upload_time": "2016-02-23T10:50:55", "url": "https://files.pythonhosted.org/packages/4f/d6/e3d470d15779be0be6d8c304af16f3c878d223336590a0a3306638a624f6/pydbus-0.3.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "8a1b8a28d071878c5a4474a9759e8421", "sha256": "c5fc12a576b4cda31de6a0c66a4f1d3c1201f3585f7fe2fe78b74f3959c246dd" }, "downloads": -1, "filename": "pydbus-0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8a1b8a28d071878c5a4474a9759e8421", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 21619, "upload_time": "2016-04-08T23:23:08", "url": "https://files.pythonhosted.org/packages/68/86/6ad538fdf7ff9bf339c23e490cf588a6bbc58b5b7214724a4ecaa6841531/pydbus-0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e9c12b0c34acabec66b1087f1d642ac6", "sha256": "9fef673160b6d906dfff4c75ed4302eceede2873fc62f599037681d19d68f611" }, "downloads": -1, "filename": "pydbus-0.5.tar.gz", "has_sig": false, "md5_digest": "e9c12b0c34acabec66b1087f1d642ac6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12227, "upload_time": "2016-04-08T23:22:40", "url": "https://files.pythonhosted.org/packages/a2/00/d050e7fca03540d653dcad9affa2135c1cd4bc8798277399c3fb1fadb1f3/pydbus-0.5.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "64fe32352b5fb65b679772cf1e5fcb8c", "sha256": "55299ea41a7e61a9d20652e340494d540e4393c6ac15888dbb1381d91a3d7842" }, "downloads": -1, "filename": "pydbus-0.5.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "64fe32352b5fb65b679772cf1e5fcb8c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 23048, "upload_time": "2016-04-16T10:34:04", "url": "https://files.pythonhosted.org/packages/82/4c/4bedc1e906c9e8b3f447be44d8c5e77f02da25bb13af1ac67ae2442f0352/pydbus-0.5.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e054c81fd9eaa550c3b566fc4049b477", "sha256": "583f47e63d0edd0ec6eed8cdb3fa2eaf930ec68343f6f802bbf38a438615314c" }, "downloads": -1, "filename": "pydbus-0.5.1.tar.gz", "has_sig": false, "md5_digest": "e054c81fd9eaa550c3b566fc4049b477", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12654, "upload_time": "2016-04-16T10:35:00", "url": "https://files.pythonhosted.org/packages/8e/a9/6b1806a51b94a705386cfa535ded5cac97664bba89383ff956648add9e8c/pydbus-0.5.1.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "c7376988f3a6f92cd545ef4f3a8c0cf7", "sha256": "66b80106352a718d80d6c681dc2a82588048e30b75aab933e4020eb0660bf85e" }, "downloads": -1, "filename": "pydbus-0.6.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c7376988f3a6f92cd545ef4f3a8c0cf7", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 19580, "upload_time": "2016-12-18T16:44:19", "url": "https://files.pythonhosted.org/packages/92/56/27148014c2f85ce70332f18612f921f682395c7d4e91ec103783be4fce00/pydbus-0.6.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c6abd44862322679bd4e907bebc3e0d0", "sha256": "4207162eff54223822c185da06c1ba8a34137a9602f3da5a528eedf3f78d0f2c" }, "downloads": -1, "filename": "pydbus-0.6.0.tar.gz", "has_sig": false, "md5_digest": "c6abd44862322679bd4e907bebc3e0d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22079, "upload_time": "2016-12-18T16:44:31", "url": "https://files.pythonhosted.org/packages/58/56/3e84f2c1f2e39b9ea132460183f123af41e3b9c8befe222a35636baa6a5a/pydbus-0.6.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c7376988f3a6f92cd545ef4f3a8c0cf7", "sha256": "66b80106352a718d80d6c681dc2a82588048e30b75aab933e4020eb0660bf85e" }, "downloads": -1, "filename": "pydbus-0.6.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c7376988f3a6f92cd545ef4f3a8c0cf7", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 19580, "upload_time": "2016-12-18T16:44:19", "url": "https://files.pythonhosted.org/packages/92/56/27148014c2f85ce70332f18612f921f682395c7d4e91ec103783be4fce00/pydbus-0.6.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c6abd44862322679bd4e907bebc3e0d0", "sha256": "4207162eff54223822c185da06c1ba8a34137a9602f3da5a528eedf3f78d0f2c" }, "downloads": -1, "filename": "pydbus-0.6.0.tar.gz", "has_sig": false, "md5_digest": "c6abd44862322679bd4e907bebc3e0d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22079, "upload_time": "2016-12-18T16:44:31", "url": "https://files.pythonhosted.org/packages/58/56/3e84f2c1f2e39b9ea132460183f123af41e3b9c8befe222a35636baa6a5a/pydbus-0.6.0.tar.gz" } ] }