A package designed to motivate you while you work, directly in your terminal.
Project description
Moodsmith
Pypi link: https://pypi.org/project/moodsmith
Setting Up a Virtual Environment and Installing Moodsmith
1. Install pipenv
If you don’t already have pipenv installed, run:
pip install pipenv
2. Activate the virtual environment
pipenv shell
3. Install Moodsmith
pipenv install moodsmith
To verify the installation, run
moodsmith --version
Moodsmith in the command line
For a list of all commands and available flags, type
moodsmith --help
Example Usage
Funny message
- For a funny message:
moodsmith -c funny
Available flags:
- --name (-n) : Name
- --enthusiasm (-e) : Enthusiasm (number of exclamation points after the message)
- --language (-l) : Language (en/fr/es)
Negative motivational message
- For a sarcastic message:
moodsmith -c negative
Available flags:
- --name (-n) : Name
- --enthusiasm (-e) : Enthusiasm (number of exclamation points after the message)
- --intensity (-i) : Intensity (soft/medum/hard) (How sarcastic should the message be)
- --language (-l) : Language (en/fr/es)
Motivational message
- For a motivational message:
moodsmith -c motivational
Available flags:
- --name (-n) : Name
- --intensity (-i) : Intensity (soft, medium, hard) (How motivational should the message be)
- --language (-l) : Language (en/fr/es)
Positive message:
- For a positive message:
moodsmith -c positive
Available flags:
- --name (-n) : Name
- --enthusiasm (-e) : Enthusiasm (number of exclamation points after the message)
- --language (-l) : Language (en/fr/es)
Within a python program
- Import moodsmith using:
import moodsmith
- Alternatively, import specifically the needed functions from moodsmith. The below code imports all available functions.
from moodsmith import positive, negative, motivational, funny
Usage of moodsmith functions:
- Funny:
funny(name="name", enthusiasm=2, language="en", seed=22)
- Negative motivational:
negative(name="name", enthusiasm=0, intensity="hard", language="fr", seed=22)
- Motivational:
motivational(name="name", intensity="soft", language="es", seed=22)
- Positive:
positive(name="name", enthusiasm=5, language="en", seed=22)
Note that all arguments have defaults and none are required.
For an example python project using moodsmith, click here: example moodsmith program
Contributors
- Samuel Yang (https://github.com/SamuelYang24)
- Conor Tiernan (https://github.com/ct-04)
- Ganling Zhou (https://github.com/GanlingZ)
- Eason Huang (https://github.com/GILGAMESH605)
- Harrison Coon (https://github.com/hoc2006-code)
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 moodsmith-1.0.1.tar.gz.
File metadata
- Download URL: moodsmith-1.0.1.tar.gz
- Upload date:
- Size: 50.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ce6b67c979ec3ebb0f3e1932a252c10b1dcab10fe3f2e7f24fe08336c6e635e
|
|
| MD5 |
cd57ee9283e5d3ea70591abe6d94e9bd
|
|
| BLAKE2b-256 |
1dd207adc6ca08b9a8caf2868438f516d78e873668d7dfdae572b3d1724d01bc
|
File details
Details for the file moodsmith-1.0.1-py3-none-any.whl.
File metadata
- Download URL: moodsmith-1.0.1-py3-none-any.whl
- Upload date:
- Size: 36.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3edd360883a0a6a7660399de12a0df8ed28468ee8774ebb3be4c0fff7d67c497
|
|
| MD5 |
3b15f8db4bfd4824855290d271a88e43
|
|
| BLAKE2b-256 |
f518a41351f5aa2fc267aff7eba7349bf2a665bfa83c76ce9d406df15af69301
|