skip to navigation
skip to content

Not Logged In

PyBullet 0.1.0

Python PushBullet's Interface.

PyBullet provide a Python interface to PushBullet’s API but also a script to interact with it bullet.

Python Module

Add PushBullet easilly to your Python script. Just instantiate a new PyBullet Object with your API_KEY as first and only arugment:

#!/usr/bin/env python
from PyBullet import PyBullet

# Create PyBullet Objext
bullet = PyBullet(API_KEY)
# Get Devie List
bullet.getDevices()
# Oush to one of them
bullet.push(DEVICE, "note", "PyBullet Rocks", "https://github.com/0rax/PyBullet")

CLI Interface

Use PyBullet in your terminal, just use bullet:

#!/bin/sh

# At first launch bullet will ask you for your API_KEY and will store it in a Python Shelve
$ bullet -h
No API Key stored, please enter your API Key to use this script.
You can get it @ https://www.pushbullet.com/account
API Key:
usage: bullet [-h] <command> ...

PushBullet CLI Interface.

optional arguments:
  -h, --help  show this help message and exit

subcommands:
  <command>   bullet subcommands
    devices   get devices list
    types     get push types
    push      push to a device
    api       manage your api key
# Get your device list by doing
$ bullet devices
# Push to one of it
$ bullet push DEVICE note "PyBullet Rocks" "https://github.com/0rax/PyBullet"

GitHub: https://github.com/0rax/PyBullet

 
File Type Py Version Uploaded on Size
PyBullet-0.1.0.tar.gz (md5) Source 2014-05-11 4KB
  • Downloads (All Versions):
  • 5 downloads in the last day
  • 27 downloads in the last week
  • 75 downloads in the last month