Skip to main content

A Python library for making printing cooler with colours and loading bars.

Project description

NonStdOut

(nonstandard output)

by Sushii64

library for making printing cooler

haha get it

Installation

Install using pip like so:

pip install nonstdout

Optionally, clone this repository in the folder of the project and import it locally:

git clone https://github.com/Sushii64/nonstdout

Usage

Import everything from the library:

from nonstdout import *

Each command in the library has docstrings, refer to those to learn how to use the library.

Example Program

from nonstdout import *

clear()

print("-- Text Styling --\n")

print("print()")
print("    normal text")
print("printd()")
printd("    debug text!")
print("printe()")
printe("    error text!")
print("printw()")
printw("    warning text!")
print("prints()")
prints("    success text!")

print()
pause()

clear()

print("-- Loading Bars --\n")

load(15, beg="loading - ")

pause()

load(12, "#", ".", "Loading... [", "]")

pause()

load(5, "O", "o", "im a ghost ", " >:3", 0.3)

pause()

clear()

print("-- Loading Spinners --\n")

spinner(5, before_text="loading ")

pause()

print()

spinner(3, before_text="downloading 'real' drivers ")
spinner(2, before_text="installing 'real' drivers ")
spinner(1, before_text="setting up images ")
spinner(4, before_text="crying in the corner ")
spinner(2, before_text="verifying 'real' drivers ")
spinner(2, before_text="finalising ")

pause()

clear()

print("All done!")

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

nonstdout-1.0.2.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

nonstdout-1.0.2-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file nonstdout-1.0.2.tar.gz.

File metadata

  • Download URL: nonstdout-1.0.2.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for nonstdout-1.0.2.tar.gz
Algorithm Hash digest
SHA256 49eeeb175cea9f4a4df1c885dcde0b89f628775d3d60ae610c865ebba923ce6f
MD5 ee05c1694ef6376718f2995e95633854
BLAKE2b-256 d0e60ec083ff45a170aaf72d964e19f2170aea630f9e8a72b7547d8265433aa4

See more details on using hashes here.

File details

Details for the file nonstdout-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: nonstdout-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for nonstdout-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fbad94fd7c8a028894295fcb86bce6d298eff2b35b00a6eadce3105c57917b46
MD5 c39018f4993bdc1a44b5058c1e5766f0
BLAKE2b-256 81c94abd0415cca144fbbfeda92dd182e1d46388dfa37bbc61a20164002e302f

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