pync


Namepync JSON
Version 2.0.3 PyPI version JSON
download
home_pagehttps://github.com/setem/pync
SummaryPython Wrapper for Mac OS 10.10 Notification Center
upload_time2018-05-04 19:28:40
maintainer
docs_urlNone
authorVladislav Syabruk
requires_python
licenseMIT
keywords mac notification center wrapper
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            
pync
====


.. image:: https://img.shields.io/pypi/l/pync.svg
   :target: https://github.com/SeTeM/pync/blob/master/LICENSE
   :alt: PyPI - License


.. image:: https://img.shields.io/pypi/v/pync.svg
   :target: https://pypi.org/project/pync/
   :alt: PyPI


.. image:: https://img.shields.io/github/issues-raw/SeTeM/pync.svg
   :target: https://img.shields.io/github/issues-raw/SeTeM/pync.svg
   :alt: GitHub issues


.. image:: https://img.shields.io/github/issues-pr/SeTeM/pync.svg
   :target: https://img.shields.io/github/issues-pr/SeTeM/pync.svg
   :alt: GitHub pull requests


.. image:: https://img.shields.io/github/forks/SeTeM/pync.svg?style=social&label=Fork
   :target: https://github.com/SeTeM/pync
   :alt: GitHub forks


.. image:: https://img.shields.io/github/stars/SeTeM/pync.svg?style=social&label=Stars
   :target: https://github.com/SeTeM/pync
   :alt: GitHub stars


A simple Python wrapper around the `terminal-notifier <https://github.com/alloy/terminal-notifier>`_ command-line tool (version 2.0.0), which allows you to send User Notifications to the Notification Center on Mac OS X 10.10, or higher.


.. image:: http://f.cl.ly/items/1k051n3k0u0i101m1i0U/Screen%20Shot%202012-08-24%20at%2012.20.40%20PM.png
   :target: http://f.cl.ly/items/1k051n3k0u0i101m1i0U/Screen%20Shot%202012-08-24%20at%2012.20.40%20PM.png
   :alt: Screenshot


Installation
^^^^^^^^^^^^

.. code-block:: bash

   pip install pync

or

.. code-block:: bash

   pip install git+https://github.com/SeTeM/pync.git

or

.. code-block:: bash

   git clone git://github.com/SeTeM/pync.git
   cd pync
   python setup.py install

Usage
^^^^^

For full information on all the options, see the tool’s `README <https://github.com/alloy/terminal-notifier/blob/master/README.markdown>`_.

Examples:
~~~~~~~~~

Using the notify function

.. code-block:: python

   import pync

   pync.notify('Hello World')
   pync.notify('Hello World', title='Python')
   pync.notify('Hello World', group=os.getpid())
   pync.notify('Hello World', activate='com.apple.Safari')
   pync.notify('Hello World', open='http://github.com/')
   pync.notify('Hello World', execute='say "OMG"')

   pync.remove_notifications(os.getpid())

   pync.list_notifications(os.getpid())

Using the notifier object

.. code-block:: python

   from pync import Notifier

   Notifier.notify('Hello World')
   Notifier.notify('Hello World', title='Python')
   Notifier.notify('Hello World', group=os.getpid())
   Notifier.notify('Hello World', activate='com.apple.Safari')
   Notifier.notify('Hello World', open='http://github.com/')
   Notifier.notify('Hello World', execute='say "OMG"')

   Notifier.remove(os.getpid())

   Notifier.list(os.getpid())

License
^^^^^^^

All the works are available under the MIT license. **Except** for ‘Terminal.icns’, which is a copy of Apple’s Terminal.app icon and as such is copyright of Apple.

See `LICENSE <https://github.com/setem/pync/blob/master/LICENSE>`_ for details.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/setem/pync",
    "name": "pync",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "mac notification center wrapper",
    "author": "Vladislav Syabruk",
    "author_email": "sjabrik@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/71/ce/06fca51df0cceb13dbcd8168e2657ffd942184005b3bb958dd17c14e0148/pync-2.0.3.tar.gz",
    "platform": "MacOS X",
    "description": "\npync\n====\n\n\n.. image:: https://img.shields.io/pypi/l/pync.svg\n   :target: https://github.com/SeTeM/pync/blob/master/LICENSE\n   :alt: PyPI - License\n\n\n.. image:: https://img.shields.io/pypi/v/pync.svg\n   :target: https://pypi.org/project/pync/\n   :alt: PyPI\n\n\n.. image:: https://img.shields.io/github/issues-raw/SeTeM/pync.svg\n   :target: https://img.shields.io/github/issues-raw/SeTeM/pync.svg\n   :alt: GitHub issues\n\n\n.. image:: https://img.shields.io/github/issues-pr/SeTeM/pync.svg\n   :target: https://img.shields.io/github/issues-pr/SeTeM/pync.svg\n   :alt: GitHub pull requests\n\n\n.. image:: https://img.shields.io/github/forks/SeTeM/pync.svg?style=social&label=Fork\n   :target: https://github.com/SeTeM/pync\n   :alt: GitHub forks\n\n\n.. image:: https://img.shields.io/github/stars/SeTeM/pync.svg?style=social&label=Stars\n   :target: https://github.com/SeTeM/pync\n   :alt: GitHub stars\n\n\nA simple Python wrapper around the `terminal-notifier <https://github.com/alloy/terminal-notifier>`_ command-line tool (version 2.0.0), which allows you to send User Notifications to the Notification Center on Mac OS X 10.10, or higher.\n\n\n.. image:: http://f.cl.ly/items/1k051n3k0u0i101m1i0U/Screen%20Shot%202012-08-24%20at%2012.20.40%20PM.png\n   :target: http://f.cl.ly/items/1k051n3k0u0i101m1i0U/Screen%20Shot%202012-08-24%20at%2012.20.40%20PM.png\n   :alt: Screenshot\n\n\nInstallation\n^^^^^^^^^^^^\n\n.. code-block:: bash\n\n   pip install pync\n\nor\n\n.. code-block:: bash\n\n   pip install git+https://github.com/SeTeM/pync.git\n\nor\n\n.. code-block:: bash\n\n   git clone git://github.com/SeTeM/pync.git\n   cd pync\n   python setup.py install\n\nUsage\n^^^^^\n\nFor full information on all the options, see the tool\u2019s `README <https://github.com/alloy/terminal-notifier/blob/master/README.markdown>`_.\n\nExamples:\n~~~~~~~~~\n\nUsing the notify function\n\n.. code-block:: python\n\n   import pync\n\n   pync.notify('Hello World')\n   pync.notify('Hello World', title='Python')\n   pync.notify('Hello World', group=os.getpid())\n   pync.notify('Hello World', activate='com.apple.Safari')\n   pync.notify('Hello World', open='http://github.com/')\n   pync.notify('Hello World', execute='say \"OMG\"')\n\n   pync.remove_notifications(os.getpid())\n\n   pync.list_notifications(os.getpid())\n\nUsing the notifier object\n\n.. code-block:: python\n\n   from pync import Notifier\n\n   Notifier.notify('Hello World')\n   Notifier.notify('Hello World', title='Python')\n   Notifier.notify('Hello World', group=os.getpid())\n   Notifier.notify('Hello World', activate='com.apple.Safari')\n   Notifier.notify('Hello World', open='http://github.com/')\n   Notifier.notify('Hello World', execute='say \"OMG\"')\n\n   Notifier.remove(os.getpid())\n\n   Notifier.list(os.getpid())\n\nLicense\n^^^^^^^\n\nAll the works are available under the MIT license. **Except** for \u2018Terminal.icns\u2019, which is a copy of Apple\u2019s Terminal.app icon and as such is copyright of Apple.\n\nSee `LICENSE <https://github.com/setem/pync/blob/master/LICENSE>`_ for details.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python Wrapper for Mac OS 10.10 Notification Center",
    "version": "2.0.3",
    "project_urls": {
        "Homepage": "https://github.com/setem/pync"
    },
    "split_keywords": [
        "mac",
        "notification",
        "center",
        "wrapper"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "71ce06fca51df0cceb13dbcd8168e2657ffd942184005b3bb958dd17c14e0148",
                "md5": "5edd82d5c8c6c87065b90cc7d50584a1",
                "sha256": "38b9e61735a3161f9211a5773c5f5ea698f36af4ff7f77fa03e8d1ff0caa117f"
            },
            "downloads": -1,
            "filename": "pync-2.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "5edd82d5c8c6c87065b90cc7d50584a1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 374289,
            "upload_time": "2018-05-04T19:28:40",
            "upload_time_iso_8601": "2018-05-04T19:28:40.383590Z",
            "url": "https://files.pythonhosted.org/packages/71/ce/06fca51df0cceb13dbcd8168e2657ffd942184005b3bb958dd17c14e0148/pync-2.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2018-05-04 19:28:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "setem",
    "github_project": "pync",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pync"
}
        
Elapsed time: 1.38501s