跳转到主要内容

在您的shell中舒适地浏览bash.org上的名言。

项目描述

https://badge.fury.io/py/bash_quote.png https://travis-ci.org/ruairif/bash_quote.png?branch=master https://pypip.in/d/bash_quote/badge.png

在您的shell中舒适地浏览bash.org上的名言。

安装

如果您已安装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上的首次发布。

项目详情


下载文件

下载适用于您的平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分发

bash_quote-1.0.1.tar.gz (5.3 kB 查看散列)

上传时间:

支持者

AWSAWS云计算和安全赞助商DatadogDatadog监控FastlyFastlyCDNGoogleGoogle下载分析MicrosoftMicrosoftPSF赞助商PingdomPingdom监控SentrySentry错误日志StatusPageStatusPage状态页面