在您的shell中舒适地浏览bash.org上的名言。
项目描述
在您的shell中舒适地浏览bash.org上的名言。
免费软件:BSD许可证
安装
如果您已安装pip,则只需
pip install bash_quote
用法
如果您在环境中安装了bash_quote,您可以通过运行以下命令来查看名言:
bashquote [-h] [-n [NUM_QUOTES]] [-t [{random,r,top,t,latest,l}]]
在项目中使用bash quote查看器
import bash_quote # get a list of 10 random quotes with rating > 0 bash_quote.get_quotes(option='r', num_quotes=10) # get the latest quote bash_quote.get_quotes(option='l', num_quotes=1) # get the top 100 quotes bash_quote.get_quotes(option='t', num_quotes=100)
功能
从您的shell中查看bash.org上的最新、顶级或随机名言
返回一个名言,或者如果您真的需要拖延,则返回多达100个名言
历史
1.0.1 (27-01-2014)
修复排序错误
在PyPI上的首次发布。