Randomly adds affirming print statements to functions.
Project description
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!
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
Affirmations-0.0.10.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for Affirmations-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0062134c73e7042f592de67ab41e4af8f67c9268cc1dfa99b0730248c4efc222 |
|
MD5 | 6d6d566a935852a866e789a000f7ea57 |
|
BLAKE2b-256 | 0f38020b0bbcf5ab37409ceb1463f70b2ebe425cda7b390abe7c6fef7c55c9ff |