Skip to content

TimNicholsonShaw/affirmation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Affirmations

A module that gives you a little bump of encouragement.

Requirements

  • A positive attitude
  • A can-do spirit

Installation

pip install Affirmations

Usage

Decorate any function to get a random affirmation printed to stdout every time that function is run

from Affirmations import affirm

@affirm() # prints an affirmation to stdout 100% of the time this function is run
def hello_world():
    print("hello")

@affirm(0.2) # prints an affirmation to stdout 20% of the time this function is run
def hello_world2():
    print("hello")

hello_world()
hello
You are awesome!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages