Light tool for creating interactive colored consoles.
Project description
Quick Introduction: Version 1.0.4
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.consolekit import *
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.4.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for consoledev-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ae7a36f52ae63eca0f43f61cc1909003cba73a09f17b05e726823e4812e9304 |
|
MD5 | dd3767c49542cab1c70d0a5be95525e8 |
|
BLAKE2b-256 | 3ed78212b7483252de3830256ce196fdab819887b9687f0c9d87eaf6ce909396 |