haste服务器的cli客户端(hastebin.com)用python编写。
haste-client的Python项目详细描述
用python编写的Haste server的简单客户端。
安装
使用PIP或简易安装:
pip install haste-client
Gentoo用户可以使用 haste-client 从CVUT Overlay重新生成。
haste客户端需要python 2.6+或3.x(它在2.7、3.3和 3.4)和以下模块:
用法
文本可以通过stdin或文件传递到haste。TTY也是 支持。
haste FILE cat FILE | haste
然后将创建的条目的url打印到stdout。
配置
haste client从~/.hastec和 /etc/hastec.conf(按此顺序,第一个获胜)。如果没有这样的文件或 存在特定的变量,然后使用默认值:
server_url = http://hastebin.com timeout = 3
许可证
这个项目是根据MIT license授权的。