# pushbullet-python
#### A Python wrapper around the Pushbullet API to send different types of push notifications to your phone or/and computer.
## Installation
```commandline
pip3 install pushbullet-python
```
Required Package:
- [requests](https://requests.readthedocs.io/en/master/)
## Usage Example
```python
import os
from pushbullet import API
# set the API Class and link it to the api object
api = API()
# now set the token
access_token = os.environ['access_token']
api.set_token(access_token)
# now you can use the API Wrapper
# sending a note, arguments: title, message
api.send_note(
"Hello",
"How are you? This is a test from the Pushbullet Python API wrapper.")
# sending a link, arguments: title, message, url
api.send_link("A Link", "Here is my website.", "http://www.lingeswaran.com")
# sending a file, arguments: title, message, file name, file type, file url
api.send_file("An Example Image", "Check out the example image!",
"test_image.png", "image/png",
"https://dummyimage.com/600x400/000/fff")
```
Raw data
{
"_id": null,
"home_page": "https://github.com/EinGuterWaran/pushbullet-python",
"name": "pushbullet-python",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "python,push bullet,push,bullet,push notifications,push notification,API wrapper",
"author": "Janu Lingeswaran",
"author_email": "<janu@lingeswaran.com>",
"download_url": "https://files.pythonhosted.org/packages/b2/bc/90485caa8b084d76889d48905f7e9c78c37a584d464784ca0b60ed809daf/pushbullet-python-1.7.0.tar.gz",
"platform": "",
"description": "# pushbullet-python\n#### A Python wrapper around the Pushbullet API to send different types of push notifications to your phone or/and computer.\n\n## Installation\n```commandline\npip3 install pushbullet-python\n```\nRequired Package:\n- [requests](https://requests.readthedocs.io/en/master/)\n\n## Usage Example\n```python\nimport os\nfrom pushbullet import API\n\n# set the API Class and link it to the api object\napi = API()\n\n# now set the token\naccess_token = os.environ['access_token']\napi.set_token(access_token)\n\n# now you can use the API Wrapper\n\n# sending a note, arguments: title, message\napi.send_note(\n \"Hello\",\n \"How are you? This is a test from the Pushbullet Python API wrapper.\")\n\n# sending a link, arguments: title, message, url\napi.send_link(\"A Link\", \"Here is my website.\", \"http://www.lingeswaran.com\")\n\n# sending a file, arguments: title, message, file name, file type, file url\napi.send_file(\"An Example Image\", \"Check out the example image!\",\n \"test_image.png\", \"image/png\",\n \"https://dummyimage.com/600x400/000/fff\")\n```\n\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "A Python wrapper around the Pushbullet API.",
"version": "1.7.0",
"project_urls": {
"Homepage": "https://github.com/EinGuterWaran/pushbullet-python"
},
"split_keywords": [
"python",
"push bullet",
"push",
"bullet",
"push notifications",
"push notification",
"api wrapper"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "af35cbf1ad3b3a94df02729cc22d8a27a7095f8c755bb9bce2c229887b8c8977",
"md5": "04328ad5105df727dac838612eee047d",
"sha256": "0c18b782a0771d40cb052fc2d9f0dc5f18949e95d3fb31e61ef25f80f70dfb5d"
},
"downloads": -1,
"filename": "pushbullet_python-1.7.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "04328ad5105df727dac838612eee047d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3593,
"upload_time": "2022-01-16T01:36:50",
"upload_time_iso_8601": "2022-01-16T01:36:50.241350Z",
"url": "https://files.pythonhosted.org/packages/af/35/cbf1ad3b3a94df02729cc22d8a27a7095f8c755bb9bce2c229887b8c8977/pushbullet_python-1.7.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b2bc90485caa8b084d76889d48905f7e9c78c37a584d464784ca0b60ed809daf",
"md5": "50b12a0d71d441e2f3876abb42fe1eae",
"sha256": "a88c9fe30be5c36274f61be98cd4f9b55c436561af99a861e1a595679517ba7b"
},
"downloads": -1,
"filename": "pushbullet-python-1.7.0.tar.gz",
"has_sig": false,
"md5_digest": "50b12a0d71d441e2f3876abb42fe1eae",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3354,
"upload_time": "2022-01-16T01:36:51",
"upload_time_iso_8601": "2022-01-16T01:36:51.896624Z",
"url": "https://files.pythonhosted.org/packages/b2/bc/90485caa8b084d76889d48905f7e9c78c37a584d464784ca0b60ed809daf/pushbullet-python-1.7.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-01-16 01:36:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "EinGuterWaran",
"github_project": "pushbullet-python",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pushbullet-python"
}