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

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.3.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

printfuk-0.0.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file printfuk-0.0.3.tar.gz.

File metadata

  • Download URL: printfuk-0.0.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for printfuk-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a53a8193e177fd1c068666295113373f8f2d4c9959c47080e893e4a807bf6204
MD5 c584d4bb223c264ec0fb632771b6b46b
BLAKE2b-256 8a90b7317a30c92a7d8377db24d1f3a5c6d6188866e3ae86c15e7eb88267e6fd

See more details on using hashes here.

File details

Details for the file printfuk-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: printfuk-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for printfuk-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aec975c601353cea1682b40077af69c46969e58d3826777652e8e960be7a2e8e
MD5 f9fd26814c5c011c18008ba13b9620b4
BLAKE2b-256 1f8a435b340e3dc431f6d19607ba3ce56fe922b0d57364c066a39e706fac429a

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