PyBrainyquote
Get quotes from brainyquote. Make you life positive. 😄
Requirements
- requests
- bs4
- furl
Download
pip install pybrainyquote
Why
The original one brainyquote is too simple.
Grammar
import
from pybrainyquote import *
# or
# import pybrainyquote as bq
get quotes
Quote.today(topic=what you like) # get today topic
get_popular_topics() # have a look at the lists popular topics, if you do not have any idea
get_topics()
get_authors()
# just try the following, methods mimicking `bs4`
Quote.find_all(topic)
Quote.find(topic)
Quote.find(topic)
Quote.choice_yaml(yamlfile) # choose a quote in yaml files randomly
Quote.read_yaml(yamlfile)
Future
Define a search engine for quotes, and a method to get one quote randomly. (Completed partly)
Support f-string from now on!
Metadata
Release files for pybrainyquote 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pybrainyquote-1.2.tar.gz | 4.1 kB | Without provenance | Details for pybrainyquote-1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pybrainyquote-1.2-py3-none-any.whl | Python 3 | none | any | Details for pybrainyquote-1.2-py3-none-any.whl |
Total release size: 8.3 kB
Release files / pybrainyquote-1.2.tar.gz
| Download URL | pybrainyquote-1.2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16561f62eb34c8f9fdb409a488e50975cc9f372b146708781fae7db15f8b291e
|
|
BLAKE2b-256 checksum How to use checksums |
48e46a52a690d921d96292bbb5480cd202217e4f8006d618c9fcf6d07b88b792
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.4 Darwin/19.6.0
|
Release files / pybrainyquote-1.2-py3-none-any.whl
| Download URL | pybrainyquote-1.2-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b0294315874f8eab48d43466d1006debb5c5cd09d12c52d941d2fbff0407888
|
|
BLAKE2b-256 checksum How to use checksums |
0786a9fbb1c401e3021c5fc95781463b8e66d1c343e4a072fd3cf8c08dd2467d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.4 Darwin/19.6.0
|
Security for pybrainyquote 1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.