使用push7在终端上执行简单的通知命令
push7-cmd的Python项目详细描述
此命令提供一个push7命令。 使用此命令,可以使用push7.jp从终端向浏览器发送推送通知。
安装
pip install push7-cmd
设置
首先,您应该在push7命令中添加一个push7应用程序。
push7 applications add 'your_appno''your_apikey' push7 applications list push7 applications use 'your_appno'
用法
# Send a push from stdin push7 < a.txt # Send a push from stdin echo'notification'| push7 a-time-consuming-command | push7 # Send a push with given title echo'notification with given title'| push7 -t 'test push'# Send a push without stdin push7 --title 'poe' --body 'poe' a-command-will-cause-output-like-a-flood | push7 --body 'finish the command'# Add new application push7 applications add 'your_appno''your_apikey'# List registed applications push7 applications list # Delete the application push7 applications delete 'your_appno'# Change default applicatios # Default applications means : An application which this command will use when you sent a push. push7 applications use 'your_appno'# Help push7 --help
所有命令
push7 applications list push7 applications delete <appno> push7 applications add <appno> <apikey> push7 applications use <appno> push7 --title title --body body