Skip to main content

CLI Random Quote Retriever

By mhaxanali

https://pypi.org/project/random-quote-retriever/

What it does?

  • Uses zenquotes.io/api to retrieve a random quote. Can optionally save the quote in ./quotes.json if you like it
  • API handling using requests and argument parsing using argparse

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.

Metadata

Release files for random-quote-retriever 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for random-quote-retriever 0.2.0
File Size Uploaded
random_quote_retriever-0.2.0.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for random-quote-retriever 0.2.0
File Interpreter ABI Platform
random_quote_retriever-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.4 kB

Release files / random_quote_retriever-0.2.0.tar.gz

Download URL random_quote_retriever-0.2.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
45149495a7d6ac59e41c2b40cdd3066f2d66cc80e826e502726901d793c016f2
BLAKE2b-256 checksum
How to use checksums
7a90ca5bc179b5f3c97b68b698e4af931575214a1a1eaa072679656fbf1d3a0a
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.0-py3-none-any.whl

Download URL random_quote_retriever-0.2.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83c685c3a3dec6affcebe8472a4e6fd2299098f027424010a230f9354f12b175
BLAKE2b-256 checksum
How to use checksums
6b6e882d6c7277e34c8640ef4358f9ea20b05a50b6857ca1d0be5f114de8382f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release history Release notifications | RSS feed

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page