consoledev-1.0.4
توضیحات
Light tool for creating interactive colored consoles.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | consoledev-1.0.4 |
| نام | consoledev |
| نسخه کتابخانه | 1.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jonathan |
| ایمیل نویسنده | jojona1357@gmail.com |
| آدرس صفحه اصلی | https://github.com/jonaprojects/consoledev |
| آدرس اینترنتی | https://pypi.org/project/consoledev/ |
| مجوز | MIT |
<h1>Quick Introduction: Version 1.0.4</h1>
<h3>Installation</h3>
You can install the module from pypi's website, or
directly via the pip manager: <br/>
<code>pip install consoledev</code>
<br/>
<h3>Should I install?</h3>
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. <br/>
<h3>Examples of usages:</h3>
First, you need to import consolekit:
<code> from consoledev.consolekit import *</code>
<h5>Example 1 - Basic Python Console:</h5>
<pre lang="python">
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()
</pre>
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.
<pre lang="python">
def echo(word: str):
return word
<br/>
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()
<br/>
if __name__ == '__main__':
main()
</pre>
نحوه نصب
نصب پکیج whl consoledev-1.0.4:
pip install consoledev-1.0.4.whl
نصب پکیج tar.gz consoledev-1.0.4:
pip install consoledev-1.0.4.tar.gz