https://github.com/myles/pushbullet
A Python Library for Pushbullet.
https://github.com/myles/pushbullet
pushbullet python
Last synced: 10 months ago
JSON representation
A Python Library for Pushbullet.
- Host: GitHub
- URL: https://github.com/myles/pushbullet
- Owner: myles
- License: bsd-3-clause
- Created: 2014-03-21T18:55:37.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2022-06-26T07:45:05.000Z (almost 4 years ago)
- Last Synced: 2025-05-07T09:13:04.613Z (about 1 year ago)
- Topics: pushbullet, python
- Language: Python
- Homepage: https://pypi.python.org/pypi/PushbulletPythonLibrary
- Size: 34.2 KB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
Pushbullet Python Library
=========================
A Python library (and super simple command line app) for Pushbullet_.
.. image:: https://readthedocs.org/projects/pushbulletpythonlibrary/badge/?version=latest
:target: https://readthedocs.org/projects/pushbulletpythonlibrary/?badge=latest
:alt: Documentation Status
.. image:: https://travis-ci.org/myles/pushbullet.svg
:target: https://travis-ci.org/myles/pushbullet
:alt: Build Status
.. image:: https://coveralls.io/repos/myles/pushbullet/badge.png
:target: https://coveralls.io/r/myles/pushbullet
:alt: Coverage Status
.. _Pushbullet: https://pushbullet.com/
Library Usage
-------------
.. code-block:: python
>>> from pushbullet.pushbullet import Pushbullet
>>> pb = Pushbullet(api_key='replace-with-your-api-key')
>>>
List devices:
.. code-block:: python
>>> pb.list_devices()
{u'shared_devices': [], u'devices': []}
>>>
Send a note:
.. code-block:: python
>>> pb.bullet_note(device_idn, title="Hello, World!", body="This is an example note.")
{}
>>>
Command Line Usage
------------------
.. code-block:: shell-session
$ 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 additional data for a file.
-u URL, --url URL
The referenced url of the link.
-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.