notify2


Namenotify2 JSON
Version 0.3.1 PyPI version JSON
download
home_pagehttps://bitbucket.org/takluyver/pynotify2
SummaryPython interface to DBus notifications
upload_time2017-04-28 14:03:44
maintainer
docs_urlNone
authorThomas Kluyver
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            This is a pure-python replacement for notify-python, using python-dbus
to communicate with the notifications server directly. It's compatible with
Python 2 and 3, and its callbacks can work with Gtk 3 or Qt 4 applications.

To use it, first call ``notify2.init('app name')``, then create and show notifications::

    n = notify2.Notification("Summary",
                             "Some body text",
                             "notification-message-im"   # Icon name
                            )
    n.show()

API docs are `available on ReadTheDocs <https://notify2.readthedocs.org/en/latest/>`_,
or you can refer to docstrings.

Based on the notifications spec at:
http://developer.gnome.org/notification-spec/

Porting applications from pynotify
----------------------------------

There are a few differences from pynotify you should be aware of:

- If you need callbacks from notifications, notify2 must know about your event
  loop. The simplest way is to pass 'glib' or 'qt' as the ``mainloop`` parameter
  to ``init``.
- The methods ``attach_to_widget`` and ``attach_to_status_icon`` are not
  implemented. You can calculate the location you want the notification to
  appear and call ``Notification``.
- ``set_property`` and ``get_property`` are not implemented. The summary, body
  and icon are accessible as attributes of a ``Notification`` instance.
- Various methods that pynotify Notification instances got from gobject do not
  exist, or only implement part of the functionality.

Several pynotify functions, especially getters and setters, are only supported
for compatibility. You are encouraged to use more direct, Pythonic alternatives.



            

Raw data

            {
    "_id": null,
    "home_page": "https://bitbucket.org/takluyver/pynotify2",
    "name": "notify2",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Thomas Kluyver",
    "author_email": "takowl@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/aa/e8/d4b335aa739dc299a77766ecc5f1972d1de1993524aa94acef3219bba315/notify2-0.3.1.tar.gz",
    "platform": "",
    "description": "This is a pure-python replacement for notify-python, using python-dbus\nto communicate with the notifications server directly. It's compatible with\nPython 2 and 3, and its callbacks can work with Gtk 3 or Qt 4 applications.\n\nTo use it, first call ``notify2.init('app name')``, then create and show notifications::\n\n    n = notify2.Notification(\"Summary\",\n                             \"Some body text\",\n                             \"notification-message-im\"   # Icon name\n                            )\n    n.show()\n\nAPI docs are `available on ReadTheDocs <https://notify2.readthedocs.org/en/latest/>`_,\nor you can refer to docstrings.\n\nBased on the notifications spec at:\nhttp://developer.gnome.org/notification-spec/\n\nPorting applications from pynotify\n----------------------------------\n\nThere are a few differences from pynotify you should be aware of:\n\n- If you need callbacks from notifications, notify2 must know about your event\n  loop. The simplest way is to pass 'glib' or 'qt' as the ``mainloop`` parameter\n  to ``init``.\n- The methods ``attach_to_widget`` and ``attach_to_status_icon`` are not\n  implemented. You can calculate the location you want the notification to\n  appear and call ``Notification``.\n- ``set_property`` and ``get_property`` are not implemented. The summary, body\n  and icon are accessible as attributes of a ``Notification`` instance.\n- Various methods that pynotify Notification instances got from gobject do not\n  exist, or only implement part of the functionality.\n\nSeveral pynotify functions, especially getters and setters, are only supported\nfor compatibility. You are encouraged to use more direct, Pythonic alternatives.\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Python interface to DBus notifications",
    "version": "0.3.1",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "3569aad34e89fe78ad3aa5fec5f14c39",
                "sha256": "d7e27e63c2120c074225e526754101e22f029e38e5f002b1ceaa965258bf1073"
            },
            "downloads": -1,
            "filename": "notify2-0.3.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3569aad34e89fe78ad3aa5fec5f14c39",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 8033,
            "upload_time": "2017-04-28T14:03:42",
            "upload_time_iso_8601": "2017-04-28T14:03:42.934603Z",
            "url": "https://files.pythonhosted.org/packages/f9/69/99d2bc2d98a802b6f58d1e0a774a933b3fea5ef11455379561b71c04370b/notify2-0.3.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "ffccaed9330787c7442b453f6520a474",
                "sha256": "33fa108d50c42f3cd3407cc437518ad3f6225d1bb237011f16393c9dd3ce197d"
            },
            "downloads": -1,
            "filename": "notify2-0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ffccaed9330787c7442b453f6520a474",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 17792,
            "upload_time": "2017-04-28T14:03:44",
            "upload_time_iso_8601": "2017-04-28T14:03:44.487146Z",
            "url": "https://files.pythonhosted.org/packages/aa/e8/d4b335aa739dc299a77766ecc5f1972d1de1993524aa94acef3219bba315/notify2-0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2017-04-28 14:03:44",
    "github": false,
    "gitlab": false,
    "bitbucket": true,
    "bitbucket_user": "takluyver",
    "bitbucket_project": "pynotify2",
    "lcname": "notify2"
}
        
Elapsed time: 0.01911s