change output style
Project description
Changing the console output style library
1.Introduction
Hello user, I am the author of this library. Are you still troubled by boring programming, are you used to the colorless black and white console output, are you still at a loss for which part of the code has a bug, using this library can perfectly solve these problems . This library relies on the colorama library and datetime library. When printing the information to be output, it will automatically add the name of the running file and the number of lines of code in front, and change the output color at the same time.
2.Use method
# pip install michaelPanPrintLib
"""
from michaelPanPrintLib.change_print import print_with_style
# normal
print_with_style('what you want to output', color=color='red') # color also have black,white,magenta,green,etc
# circulation
for i in range(6):
if i != 5:
print_with_style(f"hello world | {i}", color='cyan', flush=True)
else:
print_with_style(f"hello world | {i}", color='cyan', flush=True, switch_line=True)
print_with_style(f"hello world | {6}", color='cyan')
"""
3.Contact information
# ***************************************************************
# Maintainers:
# chuntong pan <panzhang1314@gmail.com>
# Date:
# 2023.7
# ***************************************************************
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for michaelPanPrintLib-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79344f6d41e6a2032bb4a0190d69d1ab4d7533b5af5117a619400c43072e625a |
|
MD5 | 531c6125a5e0948996a168f90f95f9ca |
|
BLAKE2b-256 | 576e1e5560770e607bbf3cf848fce09ef3dace7c564f934c21dd5ae6429e3c3a |