Catalog PyPI
Back to packageRELEASE DETAILS

0.0.10

PyPI

Affirmations

Randomly adds affirming print statements to functions.

self-careself-compassion
Published18 Oct 2021
Direct dependencies0
Transitive dependenciesNot calculated

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.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

2 collected
Affirmations-0.0.10-py3-none-any.whl

bdist_wheel · 4.2 KB · Python py3

Source file
Affirmations-0.0.10.tar.gz

sdist · 3.86 KB · Python source

Source file

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_version:e963f53854a419b1e50bdf2ff1196fca3c6a85c8d8fa3ffb57855e98ba4e54d2

Other collected versions

View all collected versions →