CLI Random Quote Retriever
By mhaxanali
PyPI Project Link
https://pypi.org/project/random-quote-retriever/
What it does?
- Uses
zenquotes.io/apito retrieve a random quote. Can optionally save the quote in a system-wide quotes.json file if you like it - API handling using
requestsand argument parsing usingargparse
Setting up
- Download the project:
python3 -m pip install random-quote-retriever
Usage
Retrieving Quotes
Run the script using (retrieve a random quote):
quote
Saving Quotes
Run the script with --save:
quote --save
The last quote that was retrieved will be saved in the quotes file
Viewing Saved Quotes
Run the script with --view-saved:
quote --view-saved
All of the quotes that have been saved will be displayed.
Metadata
Release files for random-quote-retriever 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| random_quote_retriever-0.2.1.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| random_quote_retriever-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / random_quote_retriever-0.2.1.tar.gz
| Download URL | random_quote_retriever-0.2.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fba181c9eb509b96fec05ac4087a1f69eaf620a5818c03c3674ff70258afc11
|
|
BLAKE2b-256 checksum How to use checksums |
872f0b9221e0486f7e7d14d2e28db1c7ac89076500148dbd0a52d15b17a91123
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / random_quote_retriever-0.2.1-py3-none-any.whl
| Download URL | random_quote_retriever-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35c0253d77a79a4d8a57584b5b1d6c3791c5bec6dd1e754f8cc4c05d67c65527
|
|
BLAKE2b-256 checksum How to use checksums |
b96af96a79b9a346975321623fdf706f0a9fc973ea14bb159ac4fffc2c7dffcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|