Skip to main content

A Python package that delivers quotes, compliments, and fortunes

Project description

pyquote

CI / CD

Overview

pyquote is a Python package that provides quotes, compliments, and fortunes for developers.


Installation

From PyPI

https://pypi.org/project/pyquote/

pip install pyquote

Usage

Import

from pyquote import (
    get_quote_by_type,
    get_random_quote,
    get_compliment,
    get_fortune,
    get_quotes_by_author_name
)

Examples

print(get_random_quote(1))
print(get_quote_by_type("motivation", 2))
print(get_compliment(personality=True))
print(get_fortune("tech"))
print(get_quotes_by_author_name("Mahatma Gandhi"))

API

get_quote_by_type(quote_type, num_of_quotes=1)

Return one or more quotes filtered by type.

get_random_quote(num_of_quotes)

Return a list of random quotes.

get_compliment(appearance=False, personality=False, corny=False)

Return a compliment filtered by tags.

get_fortune(topic)

Return a fortune for a topic: general, tech, career, love.

get_quotes_by_author_name(author_name)

Return quotes by a specific author.


Configuration

This package does not require any:

  • Environment variables
  • Database setup
  • External services

Development

Setup

git clone https://github.com/swe-students-spring2026/3-package-snow_leopard
cd 3-package-snow_leopard

pip install pipenv
pipenv install --dev
pipenv shell

Test

pytest

Contribute

git checkout -b feature/your-feature
git commit -m "Add feature"
git push origin feature/your-feature

Example Program

python3 example.py

Full Example Program

A complete example using all functions is available here: https://github.com/swe-students-spring2026/3-package-snow_leopard/blob/main/example.py


Contributors

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

pyquote-0.1.3.tar.gz (44.2 kB view details)

Uploaded Source

Built Distribution

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

pyquote-0.1.3-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

Details for the file pyquote-0.1.3.tar.gz.

File metadata

  • Download URL: pyquote-0.1.3.tar.gz
  • Upload date:
  • Size: 44.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for pyquote-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b30e805d2729f248b9e1e2849dd596bee838133aa28d1a294e778dafd2e9843c
MD5 19872e96aa8e1a9b9ca03e4d730d0794
BLAKE2b-256 2811e2a8b0610ae2264c66345dfb20894db549b22293eca7871795fb50559bef

See more details on using hashes here.

File details

Details for the file pyquote-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pyquote-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 30.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for pyquote-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4179d024dee5066ef67b794ef8f08672b241915093cfa225dcde329d84846531
MD5 2cb248d310504b819f350744cd48048b
BLAKE2b-256 01c7716f4c4870b3f38795b9de490865cc73bc82b27be2f8f6fe1ea181e1af26

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