simplepush


Namesimplepush JSON
Version 2.2.4 PyPI version JSON
download
home_pageNone
SummarySimplepush Python Library
upload_time2025-10-07 16:52:11
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Python module to send push notifications via [Simplepush](https://simplepush.io/).

# Installation
```bash
pip3 install simplepush
```

# Examples
All examples can be made asynchronous by using `async_send` instead of `send`.

* Send a push notification to the Simplepush key `YourKey`:
```python
import simplepush
simplepush.send(key='YourKey', title='Notification title', message='Notification message')
```

* Send a push notification with actions and a callback function that will print the selected action:
```python
import simplepush

def callback(action_selected, action_selected_at, action_delivered_at, feedback_id):
  print(action_selected)

simplepush.send(key='YourKey', title='Title', message='Actionable notification', actions=['yes', 'no', 'maybe'], feedback_callback=callback)
```

* Send an end-to-end encrypted push notification with actions and a callback function that will print the selected action and times out after 120 seconds:
```python
import simplepush

def callback(action_selected, action_selected_at, action_delivered_at, feedback_id):
  print(action_selected)

simplepush.send(key='YourKey', password='password', salt='salt', message='Actionable notification', actions=['yes', 'no', 'maybe'], feedback_callback=callback, feedback_callback_timeout=120)
```

* Send an end-to-end encrypted push notification with an image and a video file:
```python
import simplepush
simplepush.send(key='YourKey', message='Attachments', password='password', salt='salt', attachments=['https://upload.wikimedia.org/wikipedia/commons/e/ee/Sample_abc.jpg', {'video': 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4', 'thumbnail': 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/images/ForBiggerEscapes.jpg'}])
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "simplepush",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Timm Schaeuble <contact@simplepush.io>",
    "download_url": "https://files.pythonhosted.org/packages/5b/ce/fc46dcad892d864a81dec62af8956fb4fa1385c8f52aa929eead8175dce4/simplepush-2.2.4.tar.gz",
    "platform": null,
    "description": "Python module to send push notifications via [Simplepush](https://simplepush.io/).\n\n# Installation\n```bash\npip3 install simplepush\n```\n\n# Examples\nAll examples can be made asynchronous by using `async_send` instead of `send`.\n\n* Send a push notification to the Simplepush key `YourKey`:\n```python\nimport simplepush\nsimplepush.send(key='YourKey', title='Notification title', message='Notification message')\n```\n\n* Send a push notification with actions and a callback function that will print the selected action:\n```python\nimport simplepush\n\ndef callback(action_selected, action_selected_at, action_delivered_at, feedback_id):\n  print(action_selected)\n\nsimplepush.send(key='YourKey', title='Title', message='Actionable notification', actions=['yes', 'no', 'maybe'], feedback_callback=callback)\n```\n\n* Send an end-to-end encrypted push notification with actions and a callback function that will print the selected action and times out after 120 seconds:\n```python\nimport simplepush\n\ndef callback(action_selected, action_selected_at, action_delivered_at, feedback_id):\n  print(action_selected)\n\nsimplepush.send(key='YourKey', password='password', salt='salt', message='Actionable notification', actions=['yes', 'no', 'maybe'], feedback_callback=callback, feedback_callback_timeout=120)\n```\n\n* Send an end-to-end encrypted push notification with an image and a video file:\n```python\nimport simplepush\nsimplepush.send(key='YourKey', message='Attachments', password='password', salt='salt', attachments=['https://upload.wikimedia.org/wikipedia/commons/e/ee/Sample_abc.jpg', {'video': 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4', 'thumbnail': 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/images/ForBiggerEscapes.jpg'}])\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Simplepush Python Library",
    "version": "2.2.4",
    "project_urls": {
        "Bug Tracker": "https://github.com/simplepush/simplepush-python/issues",
        "Homepage": "https://github.com/simplepush/simplepush-python"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "34792638950d8fa2d80bf68c4b3d24ea8abdcc41c0eccea1e0a28dc18debe21f",
                "md5": "778f7716261b803e03e45e8f63d0738b",
                "sha256": "99bb83cb95ad7221cdeaa7d7562ba4926740558c4659910608239eed0b355f4b"
            },
            "downloads": -1,
            "filename": "simplepush-2.2.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "778f7716261b803e03e45e8f63d0738b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5845,
            "upload_time": "2025-10-07T16:52:10",
            "upload_time_iso_8601": "2025-10-07T16:52:10.096363Z",
            "url": "https://files.pythonhosted.org/packages/34/79/2638950d8fa2d80bf68c4b3d24ea8abdcc41c0eccea1e0a28dc18debe21f/simplepush-2.2.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5bcefc46dcad892d864a81dec62af8956fb4fa1385c8f52aa929eead8175dce4",
                "md5": "ab0f3e46e1b6412404a9e7454ed4a1a6",
                "sha256": "4698d089bbdcaa9962ce1c54e6add726818101088a84ec431a7492717a79da03"
            },
            "downloads": -1,
            "filename": "simplepush-2.2.4.tar.gz",
            "has_sig": false,
            "md5_digest": "ab0f3e46e1b6412404a9e7454ed4a1a6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5636,
            "upload_time": "2025-10-07T16:52:11",
            "upload_time_iso_8601": "2025-10-07T16:52:11.393837Z",
            "url": "https://files.pythonhosted.org/packages/5b/ce/fc46dcad892d864a81dec62af8956fb4fa1385c8f52aa929eead8175dce4/simplepush-2.2.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-07 16:52:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "simplepush",
    "github_project": "simplepush-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "simplepush"
}
        
Elapsed time: 1.54717s