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 -i https://test.pypi.org/PATH TO pyMood

Contributions

A virtual environment is required to build and test. To start the virtual environment, first you must install pipenv and then run:
pip install pipenv
pipenv install -e .
pipenv shell

Then install pyMood in your virtual environment: pipenv install pyMood

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

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.1.tar.gz (19.8 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.1-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyMood-0.1.tar.gz
Algorithm Hash digest
SHA256 9bd0ae398286c393de8dec7bdbc753edcc73621cb7886f7d95b985205d0ef199
MD5 7ac22fa4e7d48611e1dc029e8a349d2f
BLAKE2b-256 efce28d3a3cdba84dc68e8e456574581e6b8efecc8dd909bf1b395cf88b42bc2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyMood-0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9ca52d56b1a4239e06dae97a78fc7f414bbffa4e5ffa4021d76c573d16f2ea7
MD5 536144acb0727c8dff4d69fbf1678707
BLAKE2b-256 f3484b4a225c253535c45991be571917eb4d3ec2f69e068e4f7070094c99ce88

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