A Python package that delivers quotes, compliments, and fortunes
Project description
pyquote
Overview
pyquote is a Python package that provides quotes, compliments, and fortunes for developers.
Installation
From PyPI
pip install pyquote
Usage
Import
from your_package 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.
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
Contributors
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 pyquote-0.1.2.tar.gz.
File metadata
- Download URL: pyquote-0.1.2.tar.gz
- Upload date:
- Size: 43.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a907508a505e44662315126516f9fe7f94651b118ad99c68f8f1efb06227f393
|
|
| MD5 |
6b5ebc896254d80170d55409173a4af5
|
|
| BLAKE2b-256 |
0252b4572557abb1205fbadfdcd4126cdeac264d6a1f544a7450aa062858f80e
|
File details
Details for the file pyquote-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pyquote-0.1.2-py3-none-any.whl
- Upload date:
- Size: 30.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ed3966589c7fd4d554f6386ba7f09e156cc0fc7578381e6705c58456bfdbf89
|
|
| MD5 |
cc53c2132b7ceb04332ba498c31753dd
|
|
| BLAKE2b-256 |
471bc4915d6b0fb4ffd2b448b33e98953a8fd4ff79c5d44ad449e9390c91a5f6
|