semvec/pypi-packages huggingface dataset:
Affirmations 0.0.10
Randomly adds affirming print statements to functions.
Requires Python: >=3.6
Keywords: Self-care,Self-compassion

# Affirmations

A module that gives you a little bump of encouragement. 

## Requirements
- A positive attitude
- A can-do spirit

## Installation

```bash
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()
```
```bash
hello
You are awesome!
```