A lighthearted quote package.
Project description
fennec-fox-quotes
Fennec-fox-quotes is a python package that selects random quotes from a database by category, author or emotion.
Installation
Install fennec-fox-quotes with pip:
pip install fennec-fox-quotes
Usage
You can import the package to a program using:
import quote_pkg
Documentation
QuoteByCategory(category) chooses a random quote of a certain category. The possible categories are: motivational, historical, funny, reflective and kindness.
import quote_pkg as quote
print(quote.QuoteByCategory('motivational'))
# An example output would be:
# The best way to get started is to quit talking and begin doing.
QuoteByAuthor(author) chooses a random quote of a certain author. The search is partially-matched and case insensitive.
import quote_pkg as quote
print(quote.QuoteByAuthor('roosevelt'))
# An example output would be:
# Believe you can and you're halfway there.
QuoteRandom() gives a completely random quote from the database.
import quote_pkg as quote
print(quote.QuoteRandom())
# Outputs a random quote
QuoteByEmotion(emotion) returns a random quote that matches the given emotion state. A built-in emotion, in the chart provided below, will be resolved into multiple sub-emotions in the search. If the input value is not a built-in emotion, the function will attempt to search for the emotion directly in the database.
| Input | Sub-emotions |
|---|---|
| sad | healing, thoughtful, contemplative, serious |
| happy | playful, light, witty, positive, warm, calm, kind, compassionate |
| madness | sarcastic, witty, playful, determined, focused |
| fear | confident, resilient, hopeful, determined |
import quote_pkg as quote
print(quote.QuoteByEmotion('sad'))
# Output a random quote of one of the following categories: healing, thoughtful, contemplative, serious
print(quote.QuoteByEmotion('positive'))
# Output a random quote of the "positive" emotion category
Environment, Building and Testing
Prerequisites
- Python 3.13 or 3.14
- pipenv
- Clone the repository:
git clone https://github.com/swe-students-spring2026/3-package-fennec_fox.git
cd 3-package-fennec_fox
- Install dependencies and activate virtual environment:
pipenv install --dev
pipenv shell
- Building and Testing: To test the code, use:
pytest
To build package artifacts, use:
python -m build
Enviornment variables and data
This package does not require and environment variables to run. To modify the database, modifiy data.py.
Teammates
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 fennec_fox_quotes-0.1.1.tar.gz.
File metadata
- Download URL: fennec_fox_quotes-0.1.1.tar.gz
- Upload date:
- Size: 42.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30e9d86e9f0397fb84ef65510a38dbccd91668f24ccd0f0b3b33b929455c91d9
|
|
| MD5 |
87a3d457c6f69e493022c843785fd072
|
|
| BLAKE2b-256 |
3ef98bb39df2243117227a670fadcab5c6d5570ff514d41347cf0fb9e36a7eef
|
File details
Details for the file fennec_fox_quotes-0.1.1-py3-none-any.whl.
File metadata
- Download URL: fennec_fox_quotes-0.1.1-py3-none-any.whl
- Upload date:
- Size: 29.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57431f8aa4fad5c06cce372345b65294c2c315a40de206da3f1e704d345ada72
|
|
| MD5 |
519137607e9085b01a3eac32b490bc18
|
|
| BLAKE2b-256 |
f9e1291bbabb1be1c697c871e62ec3fb764240193c39cde93869123ade4a5f53
|