Catalog PyPI
PACKAGE EXPLORERView in registry

Affirmations

PyPI

Randomly adds affirming print statements to functions.

self-careself-compassion
Versions collected1
Direct dependencies0From release 0.0.10
Last observed20 Oct, 21:05 UTC

README

Version 0.0.10 documentation

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!

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.1018 Oct 20210

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
timnicholsonshaw/affirmation

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:05 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:297cb18b2ecc35cc7b23b793b8c66adcf46df6ebc128ee536879786e9e02aadc