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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonstdout-1.0.3.tar.gz
  • Upload date:
  • Size: 15.5 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.3.tar.gz
Algorithm Hash digest
SHA256 5f1011548f507e39b113c36c2c6b11c53da2dfb6df7aa874ee38a06a7d780f79
MD5 6228e196ed256fcb036806a49d577574
BLAKE2b-256 b5b5bf5b667d70d8f8a7b81e2d7de6071eee8895de8c4f1e26b3b29876159d40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nonstdout-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0b076968085548c7421450b83be4e45bf4b1cdffce68f84d3029269747b133af
MD5 1818bd1856d50d990742f723014b31f2
BLAKE2b-256 e5a1cfdd7bb05a662c995e1ea33b94a796358a6b667a875ce2a43d4196ceddc8

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