Skip to main content

A simple CLI tool to fetch random quotes from ZenQuotes API

Project description

CLI Random Quote Retriever

By mhasanali2010

PyPI Project Link

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

random_quote_retriever-0.1.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

random_quote_retriever-0.1.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file random_quote_retriever-0.1.2.tar.gz.

File metadata

  • Download URL: random_quote_retriever-0.1.2.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

Hashes for random_quote_retriever-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8aedc6ca3ac5ff34cc43a02596e61fe8b3c0454bce4a06c2b13efaa7d4017f1e
MD5 ddb98085a63e3bd379291555cba3d5a3
BLAKE2b-256 b0ff78f89cddd3edcd2bf8a4d6c250c9a0f3d89bf925ec9d6ea5202b465a8067

See more details on using hashes here.

File details

Details for the file random_quote_retriever-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for random_quote_retriever-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5fce6ae83d5234be972614d12be61b229afb9aa3b392fb6278466c7df74835fb
MD5 26bf3f090f6635a56daac1818d83cba7
BLAKE2b-256 f18fc109e736ba7f237c32304aece115d47cdee27f79e83d4c8b0556eab550de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page