Skip to main content

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/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.1.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.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for random_quote_retriever-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ee57567e723e4d49f2c73608f954426b1fdf6d6d8b54d336ede20d7deb8149e0
MD5 d9e87f0e2fe824d445a3753323bcbeff
BLAKE2b-256 9ca02ec006fe669cf796563e21c0dbc154b5bd52bbf2b34f56170c0b2a97aad8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for random_quote_retriever-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 680b0abb013ad2ff853cad025c1d0d19ff8ac7b9e61f36cef9a7ade9a6eb39a4
MD5 e951fe1b5831b7e029b950e85ba37dd9
BLAKE2b-256 ce704b3b25d24da61aecd80d270cfad0e21723a5b8015a24dc70eb90850940f2

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