Skip to content

ultraflame4/Better-Console-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Better Console

Features:

Filters for Debug, Info, Warning, Critical , Error and Normal messages

Text input bar to execute commands

forthebadge made-with-python Python 3.7.5 Maintenance GPLv3 license

Filters Filters

Provides a better console for python programs to use

Installation:

Prerequisites

python 3.7.5 or above (have no idea if the versions below that work) PySimpleGuiQt (should install itself when Better Console is installing)

install

pip install Better-Console==0.0.6

Usage:

# Example:
import Better_Console

# Create an instance of better console . Warning: Please only create one instance of the object
c=betterConsole.BetterConsole()

# I recommend you to execute this once after creating an instance of better console
c.loop()

# Printing to console
c.print("Test","test")

# Logging
c.debug("Test","test")
c.info("Test","test")
c.warn("test","test")
c.crit("Crit TEst","test")
c.error("tset","test")



# Add commands
def func():
  c.print("Example")
c.commandHandler.addCommands({"func":func})

while True:

    #Update Better Console
    c.loop()

About

Provides a better console for python programs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages