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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonstdout-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 5b80fa5fa4ea123395798176df27ea3d2f040b4ce5457799159d63ad95fb9ac4
MD5 de23a0a4938f373b1275c13a512cdadb
BLAKE2b-256 adc7a99c60e5007400009787c64899f3326d6aa684a2e3439af8359f754793a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nonstdout-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c3e2b5775c4bc4033ff82b6777f3e1051cbcc562b91af2522a33e490f3ef229c
MD5 1db9d4ed1ff5a247450fde136d4fd758
BLAKE2b-256 e78e160e7caf6b6ffb1ef78afd755b3e2f5ca0f9475d6fd82c92855a78cd7bc0

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