控制pushbullet的命令行工具
pushbullet-cli的Python项目详细描述
安装
$ pip install pushbullet-cli
用法
从命令行使用Pushbullet。
首先,通过运行:
$ pb set-key
然后在提示下粘贴api密钥。
将stdin推送到所有设备:
$ echo "hello" | pb push
将文本推送到所有设备:
$ pb push "I love burritos"
选择要推送到的设备:
$ pb list-devices # Find the index of your desired device $ pb push -d 0 "iPhones cannot eat burritos"
推动链接:
$ pb push --link https://www.pushbullet.com/
推送文件:
$ pb push --file /path/to/burrito_photo.jpg
推送到频道的所有订户:
$ pb push -c "CHANNEL" "Why burritos are better than tacos"
发送短信:
$ pb sms -d 0 -n +123456789 "I sense a soul in search of answers"
列出您的推送:
$ pb list -c 20
从python中设置api密钥:
import keyring, keyrings.alt if isinstance(keyring.get_keyring(), keyrings.alt.file.EncryptedKeyring): keyring.set_keyring(keyrings.alt.file.PlaintextKeyring()) keyring.set_password("pushbullet", "cli", PUSHBULLET_KEY)
更改日志
- 1.0
- 删除Python2.7支持(Countdown)
- 支持单击7.0
- 添加测试用例
- 添加CI生成
- 添加覆盖率报告
- 0.7.6
- 列出以前的推送(35)
- 避免在消息通过管道传输时提示用户(34)
- 删除默认标题(Note)(36)