在模板上显示文本的Python包
galaxie-viewer的Python项目详细描述
Galaxie观众
一种小型终端查看器,由Galaxie工具用于向终端显示某些内容。在
任务
提供一个基于文本的行查看器,它使用模板。 它有很多高级语言模板,但没有文本模板。在
我们的任务是为终端提供有用的显示模板。实际上每个Galaxie工具都在使用它;print()不再使用了。。。在
截图
0.2版
在
示例
importsysimporttimefromGLXViewerimportviewerdefmain():start_time=time.time()viewer.flush_infos(column_1=__file__,column_2='Yes that is possible')viewer.flush_infos(column_1=__file__,column_2='it have no difficulty to make it',column_3='what ?')viewer.flush_infos(column_1='Use you keyboard with Ctrl + c for stop the demo',status_text='INFO',status_text_color='YELLOW',status_symbol='!',)whileTrue:viewer.flush_infos(column_1=__file__,column_2=str(time.time()-start_time),status_text='REC',status_text_color='RED',status_symbol='<',prompt=True)if__name__=='__main__':try:main()exceptKeyboardInterrupt:viewer.flush_a_new_line()sys.exit()
文件
Readthedocs链接:https://glxviewer.readthedocs.io
安装
对于PyPI(最后一个稳定版本):
^{pr2}$对于TestPyPI(上一个)版本
pip install -i https://test.pypi.org/simple/ galaxie-viewer
- 项目
标签: