A Python wrapper around the Pushbullet API.
Project description
pushbullet-python
A Python wrapper around the Pushbullet API to send different types of push notifications to your phone or/and computer.
Installation
pip3 install pushbullet-python
Required Package:
Usage Example
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")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pushbullet_python-1.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3837a0cbd14a1d07253a3225623608800a70cbf2c7a0963898b9d522785bb092 |
|
MD5 | a93d3f3712cc30b17ac33901c1ce06a7 |
|
BLAKE2b-256 | 5bab9abab2596f20f1c83150198bf01e5f0cc394b21fcc72ff57c27ae836cf71 |