{ "info": { "author": "Thibaut Horel", "author_email": "thibaut.horel+pushover@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "``python-pushover`` aims at providing comprehensive Python bindings for the API\nof the `Pushover Notification Service`_ as documented here__.\n\n.. _Pushover Notification Service: https://pushover.net/ \n.. __: https://pushover.net/api\n\nInstallation\n------------\n\nYou can install python-pushover from Pypi_ with:\n\n.. code-block:: bash\n\n $ pip install python-pushover\n\nOr you can install it directly from GitHub_:\n\n.. code-block:: bash\n\n git clone https://github.com/Thibauth/python-pushover.git\n cd python-pushover\n pip install .\n\n.. _Pypi: https://pypi.python.org/pypi/python-pushover/\n.. _GitHub: https://github.com/Thibauth/python-pushover\n\nOverview\n--------\n\nAfter being imported, the module must be initialized by calling the ``init``\nfunction with a valid application token. Thus, a typical use of the\n``pushover`` module looks like this:\n\n.. code-block:: python\n\n from pushover import init, Client\n\n init(\"\")\n Client(\"\").send_message(\"Hello!\", title=\"Hello\")\n\nYou can also pass the ``api_token`` optional argument to ``Client`` to\ninitialize the module at the same time:\n\n.. code-block:: python\n\n from pushover import Client\n\n client = Client(\"\", api_token=\"\")\n client.send_message(\"Hello!\", title=\"Hello\")\n\nAttachments can be sent with the ``attachment`` parameter which takes as\nargument as file object:\n\n.. code-block:: python\n\n with open('/path/to/my/image.png', 'rb') as image:\n client.send_message('Message with image', attachment=image)\n\nCommand line\n~~~~~~~~~~~~\n\n``python-pushover`` also comes with a command line utility ``pushover`` that\nyou can use as follows:\n\n.. code-block:: bash\n\n pushover --api-token --user-key \"Hello!\"\n\nUse ``pushover --help`` to see the list of available options.\n\nConfiguration\n~~~~~~~~~~~~~\n\nBoth the ``pushover`` module and the ``pushover`` command line utility support\nreading arguments from a configuration file.\n\nThe most basic configuration file looks like this:\n\n.. code-block:: ini\n\n [Default]\n api_token=aaaaaa\n user_key=xxxxxx\n\nYou can have additional sections and specify a device as well:\n\n.. code-block:: ini\n\n [Sam-iPhone]\n api_token=bbbbbb\n user_key=yyyyyy\n device=iPhone\n\n``python-pushover`` will attempt to read the configuration from\n``~/.pushoverrc`` by default. The section to read can be specified by using the\n``profile`` argument. With the configuration file above, you can send a message\nby simply doing:\n\n.. code-block:: python\n\n from pushover import Client\n\n Client().send_message(\"Hello!\", title=\"Hello\")\n\nor ``pushover --title \"Hello\" \"Hello!\"`` from the command line.\n\nAPI\n---\n\nYou can access the full API documentation here__.\n\n.. __: http://pythonhosted.org/python-pushover/#module-pushover\n\nContributors\n------------\n\n* Sam Birch \n* Crupuk\n* chevell\n* drachenminister\n* Thibaut Horel \n* Filip Lundborg \n* Philip Lundrigan \n* Steve Miller \n\nChanges\n-------\n\n0.4 (2018-05-13)\n~~~~~~~~~~~~~~~~\n\n* Add support for ``expire`` and ``retry`` parameters to the command line for\n ``priority=2`` messages\n* Add support for attachments\n\n0.3 (2016-12-29)\n~~~~~~~~~~~~~~~~\n\n* Add support for the Glances API\n* Add a ``cancel`` function to ``MessageRequest`` objects to cancel high\n priority messages\n* Add support for html message styling\n* Fix bug in MessageRequest.poll for ``priority=2`` requests\n\n0.2 (2014-08-16)\n~~~~~~~~~~~~~~~~\n\n* Fix bug when using current timestamp\n* Add a ``pushover`` command line utility\n* Add Python 3 support\n* Add configuration file feature\n* Easier and more compact Client class creation\n* Switch to ``setuptools`` for easier installation and dependencies handling\n\n0.1 (2013-04-16)\n~~~~~~~~~~~~~~~~\n\nInitial Release", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Thibauth/python-pushover", "keywords": "", "license": "GNU GPLv3", "maintainer": "", "maintainer_email": "", "name": "python-pushover", "package_url": "https://pypi.org/project/python-pushover/", "platform": "", "project_url": "https://pypi.org/project/python-pushover/", "project_urls": { "Homepage": "https://github.com/Thibauth/python-pushover" }, "release_url": "https://pypi.org/project/python-pushover/0.4/", "requires_dist": null, "requires_python": "", "summary": "Comprehensive bindings and command line utility for the Pushover notification service", "version": "0.4" }, "last_serial": 4419733, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "1248d501c81b94d24f2bd4bac925609c", "sha256": "72ccf889fde10848dfea05050359f238da4cc9ff0b8b4a61257bdd22bc2dfec0" }, "downloads": -1, "filename": "python-pushover-0.1.tar.gz", "has_sig": false, "md5_digest": "1248d501c81b94d24f2bd4bac925609c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16142, "upload_time": "2013-04-16T22:09:01", "url": "https://files.pythonhosted.org/packages/04/5e/4fd43eb8647360235ced61f160f8cfa66d445865f3fed6ac86a87b8838cb/python-pushover-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "fc72dda82b1830340e52eda47aaeac4b", "sha256": "39eefdcfa2335a4ad98bd321a25b56936abed4ea5922ba3fc372d091273e0775" }, "downloads": -1, "filename": "python-pushover-0.2.tar.gz", "has_sig": false, "md5_digest": "fc72dda82b1830340e52eda47aaeac4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19243, "upload_time": "2014-08-17T00:39:46", "url": "https://files.pythonhosted.org/packages/bd/fc/10dd8dde361f970b35177ae6c9a0cf5922cb8635ce80b0b42c589635febc/python-pushover-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "c0c5bad1df852b18b7d732737037cc7e", "sha256": "53a7005550fdcbfd0af27e079e61d4faea3e600f1b31d8e4b14fe7d470848f76" }, "downloads": -1, "filename": "python-pushover-0.3.tar.gz", "has_sig": false, "md5_digest": "c0c5bad1df852b18b7d732737037cc7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19512, "upload_time": "2016-12-29T23:46:21", "url": "https://files.pythonhosted.org/packages/8f/c0/cc563191ab786dea6bdb787184e2546755b01ce3216b66d8301f0341d7d9/python-pushover-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "e88925a1c06ec138baf7b801e99c002f", "sha256": "dee1b1344fb8a5874365fc9f886d9cbc7775536629999be54dfa60177cf80810" }, "downloads": -1, "filename": "python-pushover-0.4.tar.gz", "has_sig": false, "md5_digest": "e88925a1c06ec138baf7b801e99c002f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19946, "upload_time": "2018-05-13T15:55:35", "url": "https://files.pythonhosted.org/packages/6f/3d/144a0137c749bd152c3ab7f4d3ce8fe1455168dab36c2fcd900d3fab16ad/python-pushover-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e88925a1c06ec138baf7b801e99c002f", "sha256": "dee1b1344fb8a5874365fc9f886d9cbc7775536629999be54dfa60177cf80810" }, "downloads": -1, "filename": "python-pushover-0.4.tar.gz", "has_sig": false, "md5_digest": "e88925a1c06ec138baf7b801e99c002f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19946, "upload_time": "2018-05-13T15:55:35", "url": "https://files.pythonhosted.org/packages/6f/3d/144a0137c749bd152c3ab7f4d3ce8fe1455168dab36c2fcd900d3fab16ad/python-pushover-0.4.tar.gz" } ] }