A Python Library and a simple command line app for Pushbullet.
Project description
A Python library (and super simple command line app) for Pushbullet.
Library Usage
>>> from pushbullet.pushbullet import Pushbullet
>>> pb = Pushbullet(api_key='replace-with-your-api-key')
>>>
List devices:
>>> pb.list_devices()
{u'shared_devices': [], u'devices': []}
>>>
Send a note:
>>> pb.bullet_note(device_idn, title="Hello, World!", body="This is an example note.")
{}
>>>
Command Line Usage
$ pushbullet --help
pushbullet -h
usage: pushbullet [-h] -a API_KEY [-d DEVICE]
[-t {note,link,address,list,file}] [-n TITLE] [-b BODY]
[-i ITEMS] [-f FILE] [-l]
optional arguments:
-h, --help show this help message and exit
-a API_KEY, --apikey API_KEY
What is your Pushbullet API key?
-d DEVICE, --device DEVICE
What device do you want to send the bullet to?
-t {note,link,address,list,file}, --type {note,link,address,list,file}
What type of bullet do you want to send?
-n TITLE, --name TITLE, --title TITLE
The title/name of the note, link, address, or list.
-b BODY, --body BODY, --address BODY
The body/address of the note or address.
-i ITEMS, --items ITEMS
The items in a list.
-f FILE, --file FILE The file to push.
-l, --list-devices Get a list of devices.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file PushbulletPythonLibrary-0.3.tar.gz
.
File metadata
- Download URL: PushbulletPythonLibrary-0.3.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 033cebd01a0dc9267e68965a2bbdaf16c4c4477e19f1c9f4aff765728e62aa09 |
|
MD5 | 80c453b9ebf2cf00b57a0a872fddd7f3 |
|
BLAKE2b-256 | 43cd9c774535f0b233597c399fdce4fff2e7550a31823ea166c7a173b2631f71 |