Python Mood Enhancer (pyMood)
Description
pyMood is a python package designed to give a quick mood boost to programmers. With simple commands, users can get positive affirmations, quick jokes, or even a virtual high five among other things. It's perfect for when you need a quick pick-me-up during a coding session.
Instructions
For any developers who want to import pyMood into their own code, follow the steps below:
To install the module from PyPI, run the command:
pip install pyMood==0.2
Then to use it, you can import using:
import pyMood.mood as mood
or
from pyMood import mood
Contributions
A virtual environment is required to build and test.
First, clone the repository on your machine.
To start the virtual environment, first you must install pipenv, activate edit mode and then activate the virtual environment:
pip install pipenv
pipenv install -e .
pipenv shell
Then install pyMood in your virtual environment from the remote version:
pipenv install -i https://pypi.org/project/pyMood/0.2/
To install the dependencies of pyMood:
pipenv install pytest build twine
To run the main file and our project:
python3 -m pyMood
To run the unit tests provided you can then simply run:
pytest
Then you can upload your changes to TestPyPI.
Usage
We have several functions to use from within pyMood.
relaxation_tip(category)
# Returns a random relaxation tip from a specified category to help the user relax.
# If no category is specified, return a random tip.
tell_me_a_joke()
# Returns a random joke to lighten up the user's mood
get_affirmation()
# Returns a random positive affirmation to boost the user's mood and confidence
coffee_suggestion()
# Returns a random cup of coffee as a suggestion, to help motivate the user.
cat_mood_generator()
# Returns a random cat emotion.
high_five()
# Returns a random high five ASCII.
Here we have included a link to the example program that uses these functions.
To run it from within the package, use:
python -m pyMood.__main__
Otherwise use:
python __main__.py
Team Members
- Francisco Cunningham - fctico11
- Ahmad Almesned - ahmadhcs
- Tanuj Sistla - tanuj123-cyber
- Abhi Vachani - avachani
Link to pyMood on the PyPI website.
Release files for pyMood 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyMood-0.2.tar.gz | 20.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyMood-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.1 kB
Release files / pyMood-0.2.tar.gz
| Download URL | pyMood-0.2.tar.gz |
|---|---|
| Size | 20.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b268498b4e46a5f9ea8e7501d1476d3eee7748500d445b9ed65a3dfbe912ce13
|
|
BLAKE2b-256 checksum How to use checksums |
f315aeb3a01b69ffc65dd6734580aac023b073c21420adf931af6929d82c49ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / pyMood-0.2-py3-none-any.whl
| Download URL | pyMood-0.2-py3-none-any.whl |
|---|---|
| Size | 19.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41835d8679f8955180c300b85ed1d9b9d0e060bd51d49707ab221e4d4fb815b9
|
|
BLAKE2b-256 checksum How to use checksums |
6bf5070f5dcf7a1cad930173b61b311f66048a3c2f1275c720fcea2ada7fd9cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|