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
"""
########change print########
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')
#########check and install lib#########
from michaelPanPrintLib.install_lib import check_and_install_lib
check_and_install_lib(['torch', 'numpy']) # check torch and numpy lib, it will auto install if not exist
"""
3.Contact information
# ***************************************************************
# Maintainers:
# chuntong pan <panzhang1314@gmail.com>
# Date:
# 2023.11
# ***************************************************************
Release files for michaelPanPrintLib 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| michaelPanPrintLib-0.0.6.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| michaelPanPrintLib-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / michaelPanPrintLib-0.0.6.tar.gz
| Download URL | michaelPanPrintLib-0.0.6.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6ee288bb5fab023656a6b44904041239536f24c2e0ee165914427831f00947f
|
|
BLAKE2b-256 checksum How to use checksums |
6ea29c058e914ad7cca724c350f92c4cda155800943866c6a36f0b45f85ff7a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / michaelPanPrintLib-0.0.6-py3-none-any.whl
| Download URL | michaelPanPrintLib-0.0.6-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9c5a487d6cfa741850256e0e7974cc380418be63b945b4dbb9a98af2da336a3
|
|
BLAKE2b-256 checksum How to use checksums |
d85aefd9b68a98657d335194334d120280ab355795039100e55fe6a512bd6336
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|