Skip to main content

Completely override your python print function with complete garbage that sometimes looks approximately correct

Project description

printfuk

Completely override your python print function with complete garbage that sometimes looks approximately correct

How to install

Simply install the package either by downloading this git repository and moving the python source code where it needs to or install it using pip.

Manual (Not preferred)

Copy the printfuk.py file into the one of the paths listed from the following code:

import sys
sys.path

Pip

Make sure pip is installed with pip --version. If you get a version print out, then pip is installed. Otherwise, install pip. Once pip is installed type into a console pip install printfuk. And that's it.

Importing

All you have to do is write from printfuk import print at the top of your python script file, and you will never have to worry about clean, nice looking print messages ever again!

How to use

The print statement behaves more or less like the default print statement in terms of how you most people use it. It does not handle the following keywords arguments currently:

  • file
  • flush

This version only prints to sys.stdout and is not bufferred. However, the other keyword arguments, sep and end are handled as per usual. This package also handles the standard multiple printing in the form of print(a,b,c,...) and concatenates them with the separator "sep=separator" before printing just like before. It also handles the end keyword more or less the same. However, in order to ensure that a user can't print standard text in the normal behaviour, if the end keyword argument is a string of length greater than 1, the this string will also be messed up in the same manner.

The package also adds more keyword arguments:

  • delay - default: 0.1 / float [0,inf) - Specifies the time delay at which characters are printed in order in seconds.
  • color - default: 88 / int or integer string - Specifies the ansi-color number to use.
  • startAfter - default: 0 / int - Number of characters to start messing things up after, allowing for part of the string to come out clear. If this number is greater than the length of the string, the number is reset to zero.
  • maxCharMod - default: 0.5 / float [0.05,1] - The maximum number characters we are allowed to modified. This number will always be at least 1 character.
  • useAnsi - default: False on windows, True otherwise / boolean - On windows systems, many terminals don't handle ansi well. So by default windows systems will turn off the color and flashing. Use this to force ansi styling on or off.

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

printfuk-0.0.2.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

printfuk-0.0.2-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

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