Skip to main content

A tool that can make your console output beautiful.

Project description

NewRcc


Logo


图片

Welcome


Welcome to view this instruction document. This is a toolkit that can make the output of your console more beautiful. It not only supports controlling the text style of the output in your console, but also supports conveniently helping you quickly build console progress bars with multiple styles. Come and install it and try to beautify the console of your project.

Installation Guide

First, make sure that the pip package management tool of Python has been installed on your computer.

Then enter the following command in the console.

pip install newrcc

Quick Start


# Import several important members in the NewRcc package.
from newrcc.c_color import TextColor
import newrcc.c_console

"""
Use the colorfulText function in CConsole to convert 
ordinary text into colorful text.
"""
print(CConsole.ctext("Hello NewRcc!", TextColor.GREEN))

"""
Directly use the printColorfulText function in CConsole
 to print colorful text in the console.
"""
CConsole.printColorfulText("Hello NewRcc!", TextColor.BLUE)

"""
Use the ProcessBar class in CConsole to construct a progress 
bar object.
"""
process_bar = CConsole.ProcessBar("Start", "End", ...)

"""
Use the draw function of the ProcessBar class to draw the image
of a certain progress point, and use the erase function to clear 
the last drawing. 
Reasonably use these two functions in an operation process to 
achieve real-time progress display effect.
"""
process_bar.draw()
process_bar.erase()

Detailed Documentation


For more detailed explanation documents, please visit the link: Detail Doc .

Function Features


  • It can run normally on systems that support ANSI escape sequences.
  • When it encounters an exception during operation, it will uniformly throw the _CError exception class in CError, which is inherited from Exception.
  • It supports most common colors, including red, yellow, blue, green, cyan, purple, and gray. At the same time, it also supports RGB color codes to create objects of the Color class in CColor. For specific operations, please refer to the Detailed Documentation.
  • It supports other text styles besides text color, such as bold, italic, underline, middleline, etc.
  • For other features, please refer to the Detail Documentation.

Developer Contact Information


RestRegular

email3228097751@qq.com

GitHubRestRegular

Known Issues and Limitations


At present, the function of quickly building a table in the console has been initially completed, but it is still immature. The known problem is that cells cannot span rows.

Warning: Do not use the row-spanning function in the table.

Version NewRcc-0.1.4


Contents of This Version Update

  1. A README.md file has been added.
  2. A project logo has been added.
  3. Some potential problems have been found and marked in the README.md file.
  4. A display error of README.md file has been fixed.

Author


RestRegular

Special Thanks


Waiting for occupancy. ^_^

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

newrcc-0.5.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

newrcc-0.5.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file newrcc-0.5.1.tar.gz.

File metadata

  • Download URL: newrcc-0.5.1.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for newrcc-0.5.1.tar.gz
Algorithm Hash digest
SHA256 54a5e4b426adfea04cf4b30bf74d96e83a378212ea116abaf22f6288b9ebf1fa
MD5 f6dc265571deda80d398158b1a5211fc
BLAKE2b-256 36b9d3730a4ab0c307db00d6524e61ed02a3ee6e321d780d8d4eb90bae8f3369

See more details on using hashes here.

File details

Details for the file newrcc-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: newrcc-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for newrcc-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5fc09acec58e0c9f8fe234fc85ff851b29927b9c9c37c9fef791abdcc01a3a80
MD5 566f7a844511956c8c2d33d958483d14
BLAKE2b-256 066bdb1c5415c285e68c9f3ebe66c60630ca82a32c7e14086a63dea5b9720243

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