Skip to main content

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.
  • onlyAfter - defult: False / boolean -- Setting this to true makes it so that only the text after the startAfter index will be modified.

Release files for printfuk 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for printfuk 0.0.3
File Size Uploaded
printfuk-0.0.3.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for printfuk 0.0.3
File Interpreter ABI Platform
printfuk-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / printfuk-0.0.3.tar.gz

Download URL printfuk-0.0.3.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a53a8193e177fd1c068666295113373f8f2d4c9959c47080e893e4a807bf6204
BLAKE2b-256 checksum
How to use checksums
8a90b7317a30c92a7d8377db24d1f3a5c6d6188866e3ae86c15e7eb88267e6fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.13

Release files / printfuk-0.0.3-py3-none-any.whl

Download URL printfuk-0.0.3-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aec975c601353cea1682b40077af69c46969e58d3826777652e8e960be7a2e8e
BLAKE2b-256 checksum
How to use checksums
1f8a435b340e3dc431f6d19607ba3ce56fe922b0d57364c066a39e706fac429a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.13

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page