Skip to main content

A package designed to motivate you while you work, directly in your terminal.

Project description

Pylint CI / CD

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

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

moodsmith-1.0.2.tar.gz (50.3 kB view details)

Uploaded Source

Built Distribution

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

moodsmith-1.0.2-py3-none-any.whl (36.0 kB view details)

Uploaded Python 3

File details

Details for the file moodsmith-1.0.2.tar.gz.

File metadata

  • Download URL: moodsmith-1.0.2.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

Hashes for moodsmith-1.0.2.tar.gz
Algorithm Hash digest
SHA256 25dac66122c5371361339f2bda8de67c318fc91ee8017a49c2f058fa8aec6cf0
MD5 7c8ab71511219a19411a1768c2098a21
BLAKE2b-256 d93bc97b7e3f233dff2d06504dc46eef569a03f68be2e7ea2e2347fd64912b3c

See more details on using hashes here.

File details

Details for the file moodsmith-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: moodsmith-1.0.2-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

Hashes for moodsmith-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6cc32136b5bcf123c54c2253051a8ca9bb2d945153a286989c35c42f1f078ab0
MD5 a08702b3f721df9bb9355272e4d5da26
BLAKE2b-256 7aed414e9234cc76a1cf367d56eb1b90e6c4e2eb5b03b44f5f998c7fd3b23411

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