Skip to main content

A Python package for mood analysis and suggestion

Project description

Python Mood Enhancer (pyMood)

Build Status

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

Link to pyMood on the PyPI website.

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

pyMood-0.2.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

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

pyMood-0.2-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file pyMood-0.2.tar.gz.

File metadata

  • Download URL: pyMood-0.2.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for pyMood-0.2.tar.gz
Algorithm Hash digest
SHA256 b268498b4e46a5f9ea8e7501d1476d3eee7748500d445b9ed65a3dfbe912ce13
MD5 020b0a987c0d8cb941dcdf9d6893ed6c
BLAKE2b-256 f315aeb3a01b69ffc65dd6734580aac023b073c21420adf931af6929d82c49ec

See more details on using hashes here.

File details

Details for the file pyMood-0.2-py3-none-any.whl.

File metadata

  • Download URL: pyMood-0.2-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for pyMood-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 41835d8679f8955180c300b85ed1d9b9d0e060bd51d49707ab221e4d4fb815b9
MD5 d28b22d2976ba548a76149e303b7f23b
BLAKE2b-256 6bf5070f5dcf7a1cad930173b61b311f66048a3c2f1275c720fcea2ada7fd9cb

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