Skip to main content

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
"""
	########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
# ***************************************************************

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

michaelPanPrintLib-0.0.6.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

michaelPanPrintLib-0.0.6-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file michaelPanPrintLib-0.0.6.tar.gz.

File metadata

  • Download URL: michaelPanPrintLib-0.0.6.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for michaelPanPrintLib-0.0.6.tar.gz
Algorithm Hash digest
SHA256 b6ee288bb5fab023656a6b44904041239536f24c2e0ee165914427831f00947f
MD5 bda552851236048a7e4398dcf710efb1
BLAKE2b-256 6ea29c058e914ad7cca724c350f92c4cda155800943866c6a36f0b45f85ff7a9

See more details on using hashes here.

File details

Details for the file michaelPanPrintLib-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for michaelPanPrintLib-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e9c5a487d6cfa741850256e0e7974cc380418be63b945b4dbb9a98af2da336a3
MD5 5a9da982674d10b61c1e47dd7c591e10
BLAKE2b-256 d85aefd9b68a98657d335194334d120280ab355795039100e55fe6a512bd6336

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page