在bash.org上轻松浏览报价。
bash_quote的Python项目详细描述
在bash.org上轻松浏览报价。
- 免费软件:BSD许可证
- 文档:http://bash_quote.rtfd.org。
安装
如果您安装了pip,您所要做的就是:
pip install bash_quote
用法
如果您的环境中安装了bash_quote,则可以查看quotes 通过运行命令:
bashquote [-h] [-n [NUM_QUOTES]] [-t [{random,r,top,t,latest,l}]]
在项目中使用bash quote viewer:
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)
功能
- 在bash.org上查看最新、最新或随机引用 外壳
- 如果您真的需要,请返回一个报价或最多返回100个报价 拖延
历史记录
1.0.1(2014年1月27日)
- 修正排序错误
- pypi上的第一个版本。