bashquote-2.0
توضیحات
Library to access and retrieve quotes from bash.org
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bashquote-2.0 |
| نام | bashquote |
| نسخه کتابخانه | 2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ben Rosser |
| ایمیل نویسنده | rosser.bjr@gmail.com |
| آدرس صفحه اصلی | http://venus.arosser.com/projects/bashquote.html |
| آدرس اینترنتی | https://pypi.org/project/bashquote/ |
| مجوز | MIT |
This is a Python library for accessing and printing quotes from bash.org, a
quote database on the Internet from various chat sources. It is NOT made by
bash.org, or endorsed by them in any way. Note that it merely uses HTML
parsing to filter through the site's content
The BashQuote object can be created directly (BashQuote(8)) or it can be
created using various functions. getQuoteSafe and getQuote take a quote
number and return a quote object- getQuoteSafe checks to verify the quote
exists. Then, getLatestQuote and getRandomQuote will both do HTML parsing to
find the quote numbers.
These BashQuote objects then have various helper functions which can return
various data about a quote. So, for instance, to get the text of a random
quote, BashQuote.getText() will print out all the text. Or to check if a
quote is pending, isPending() will return true if the quote has yet to be
processed for approval, and so on.
نحوه نصب
نصب پکیج whl bashquote-2.0:
pip install bashquote-2.0.whl
نصب پکیج tar.gz bashquote-2.0:
pip install bashquote-2.0.tar.gz