一个python库和一个简单的pushbullet命令行应用程序。

PushbulletPythonLibrar的Python项目详细描述


用于Pushbullet的python库(和超级简单的命令行应用程序)。

Documentation StatusBuild StatusCoverage Status

库使用

>>>frompushbullet.pushbulletimportPushbullet>>>pb=Pushbullet(api_key='replace-with-your-api-key')>>>

列出设备:

>>>pb.list_devices(){u'shared_devices':[],u'devices':[]}>>>

发送便条:

>>>pb.bullet_note(device_idn,title="Hello, World!",body="This is an example note."){}>>>

命令行用法

$ 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.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
具有作为接口的属性的java Hibernate实体类   在Java中检查int l,r的条件l+1<r的最快方法   java如何更新TornadFX ComboBox Kotlin   java Tomcat未调用控制器api   java在Android Studio中的alertdialog中打开新活动   xml VScode Java/Maven环境问题不同的计算机   java我需要修改循环中的一个文本字符串,这样程序就可以复制粘贴相同的字符串,但数字会增加   java如何从Twilio响应消息中获取内容   从Java5+diamond运算符开始初始化泛型集合的java方法   在java中循环,直到用户按下enter键   java如何找到组件属于哪个面板?   java我想计算一个代码需要的总迭代次数   <data 安卓:type=“*/*”/>不允许使用java字符串类型   解析我有一个带有开始日期和目标日期的字符串,我想在Java中获取日期并保存在变量中   在mongodb中使用ReflectionDBObject类插入java对象?