A simple CLI tool to fetch random quotes from ZenQuotes API
Project description
CLI Random Quote Retriever
By mhasanali2010
What it does?
- Uses
zenquotes.io/apito retrieve a random quote. Can optionally save the quote in./quotes.jsonif 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 ./quotes.json
Viewing Saved Quotes
Run the script with --view-saved:
quote --view-saved
All of the quotes that have been saved in ./quotes.json will be displayed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file random_quote_retriever-0.1.1.tar.gz.
File metadata
- Download URL: random_quote_retriever-0.1.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee57567e723e4d49f2c73608f954426b1fdf6d6d8b54d336ede20d7deb8149e0
|
|
| MD5 |
d9e87f0e2fe824d445a3753323bcbeff
|
|
| BLAKE2b-256 |
9ca02ec006fe669cf796563e21c0dbc154b5bd52bbf2b34f56170c0b2a97aad8
|
File details
Details for the file random_quote_retriever-0.1.1-py3-none-any.whl.
File metadata
- Download URL: random_quote_retriever-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
680b0abb013ad2ff853cad025c1d0d19ff8ac7b9e61f36cef9a7ade9a6eb39a4
|
|
| MD5 |
e951fe1b5831b7e029b950e85ba37dd9
|
|
| BLAKE2b-256 |
ce704b3b25d24da61aecd80d270cfad0e21723a5b8015a24dc70eb90850940f2
|