Light tool for creating interactive colored consoles.
Project description
Quick Introduction: Version 1.0.3
Installation
You can install the module from pypi's website, or directly via the pip manager:pip install consoledev
Should I install?
If you want to make a pretty and basic console project, without spending the extra time to do this the right way, and eventually end up with a messy project, then this module is for you.Examples of usages:
First, you need to import consolekit: from consoledev import consolekit
Example 1 - Basic Python Console:
header = Text("BASIC PYTHON CONSOLE V1.0 ", COLORS.WARNING)
python_console = JConsole(header=header, starting_message="hello and welcome !", ending_message=" goodbye !")
python_console.run()
You can also define your own analysis function for the console,
as long as it gets a string as a parameter and returns a string.
def echo(word: str):
return word
def main():
header = Text("ECHO CONSOLE", COLORS.OKCYAN)
echo_console = JConsole(header=header,starting_message=Text("welcome!",COLORS.CYELLOW),analysis_function=echo)
echo_console.run()
if __name__ == '__main__':
main()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
consoledev-1.0.3.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for consoledev-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f3dcdfe58e6067e8bacc084b6f6380d91d4d96b42daeb8039a320b458bf6c80 |
|
MD5 | fce1851f4bbe4ba000b8e155832a68e5 |
|
BLAKE2b-256 | bf44552e8a6d493ac78243ae0a41f90359cc4a82a906c3f12971eec6a0ca242e |