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
File details
Details for the file pushbullet-python-1.7.0.tar.gz
.
File metadata
- Download URL: pushbullet-python-1.7.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a88c9fe30be5c36274f61be98cd4f9b55c436561af99a861e1a595679517ba7b |
|
MD5 | 50b12a0d71d441e2f3876abb42fe1eae |
|
BLAKE2b-256 | b2bc90485caa8b084d76889d48905f7e9c78c37a584d464784ca0b60ed809daf |
File details
Details for the file pushbullet_python-1.7.0-py3-none-any.whl
.
File metadata
- Download URL: pushbullet_python-1.7.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c18b782a0771d40cb052fc2d9f0dc5f18949e95d3fb31e61ef25f80f70dfb5d |
|
MD5 | 04328ad5105df727dac838612eee047d |
|
BLAKE2b-256 | af35cbf1ad3b3a94df02729cc22d8a27a7095f8c755bb9bce2c229887b8c8977 |