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.1.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.1-py3-none-any.whl (36.0 kB view details)

Uploaded Python 3

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

Hashes for moodsmith-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7ce6b67c979ec3ebb0f3e1932a252c10b1dcab10fe3f2e7f24fe08336c6e635e
MD5 cd57ee9283e5d3ea70591abe6d94e9bd
BLAKE2b-256 1dd207adc6ca08b9a8caf2868438f516d78e873668d7dfdae572b3d1724d01bc

See more details on using hashes here.

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

Hashes for moodsmith-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3edd360883a0a6a7660399de12a0df8ed28468ee8774ebb3be4c0fff7d67c497
MD5 3b15f8db4bfd4824855290d271a88e43
BLAKE2b-256 f518a41351f5aa2fc267aff7eba7349bf2a665bfa83c76ce9d406df15af69301

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