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.CColor import TextColor
import newrcc.CConsole
"""
Use the colorfultext function in CConsole to convert
ordinary text into colorful text.
"""
print(CConsole.colorfulText(“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
_CErrorexception class in CError, which is inherited fromException. - 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
Colorclass 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
email: 3228097751@qq.com
GitHub: RestRegular
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.2
Contents of This Version Update
- A README.md file has been added.
- A project logo has been added.
- Some potential problems have been found and marked in the README.md file.
Author
RestRegular
Special Thanks
Waiting for occupancy. ^_^
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file newrcc-0.1.2.tar.gz.
File metadata
- Download URL: newrcc-0.1.2.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e01f4622a57547db3024d8962efe241ac7285d6b75453801d6c25b1e74d5bdf
|
|
| MD5 |
90435580217ddc92b2f978e10276b7a9
|
|
| BLAKE2b-256 |
0cbd35ed4015ee87f36587149948439c2f427aed4491e6c976832b696062b3d5
|
File details
Details for the file newrcc-0.1.2-py3-none-any.whl.
File metadata
- Download URL: newrcc-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44b0331116cb6481bf7742028bb584de9fb52a4a1183bf73215b07f3f28722db
|
|
| MD5 |
99d2178b5f2805afa56e6a802e5eb56b
|
|
| BLAKE2b-256 |
2e1f99ac6fb78d9817052e82ebd7567eceeb075b643190b04da75aeb7d0f8e9e
|