Skip to main content

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


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 details)

Uploaded Source

Built Distribution

Affirmations-0.0.10-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file Affirmations-0.0.10.tar.gz.

File metadata

  • Download URL: Affirmations-0.0.10.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.8

File hashes

Hashes for Affirmations-0.0.10.tar.gz
Algorithm Hash digest
SHA256 a71e80c265ce3002bd3e3326e625f8433c9ad69e284cf4f9b386095d164a0b39
MD5 310d39ea411b31c046910e7baff836a3
BLAKE2b-256 cacab4e701f17671b63b24a4f90c36f54ae83d576b324f41620d4c3b20666b8b

See more details on using hashes here.

File details

Details for the file Affirmations-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: Affirmations-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.8

File hashes

Hashes for Affirmations-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 0062134c73e7042f592de67ab41e4af8f67c9268cc1dfa99b0730248c4efc222
MD5 6d6d566a935852a866e789a000f7ea57
BLAKE2b-256 0f38020b0bbcf5ab37409ceb1463f70b2ebe425cda7b390abe7c6fef7c55c9ff

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page