
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
A Python library for displaying progress indicators and progress bars in the console with customizable messages and colors.
A Python library providing two classes for displaying progress indicators in the console: ProgressIndicator
and ProgressBar
. These classes help visualize ongoing tasks by displaying an animated spinner or a progress bar, respectively.
To install the library, you can use pip:
pip install progress_basic
The ProgressIndicator class displays an animated spinner with a customizable message and color.
Example
from progress_basic.format.color_text import AnsiColors
from progress_basic.progress_basic import ProgressIndicator
with ProgressIndicator("Processing", color=AnsiColors.OKBLUE) as pi:
# Simulate a long-running task
time.sleep(5)
The ProgressBar class displays a progress bar that updates as tasks progress, with customizable total steps, message, interval, bar length, and color.
Example
from progress_basic.format.color_text import AnsiColors
from progress_basic.progress_bar import ProgressBar
total_steps = 100
with ProgressBar(total_steps, message="Loading", color=AnsiColors.OKBLUE) as pb:
for i in range(total_steps):
pb.update(i + 1)
time.sleep(0.1) # Simulate work
ProgressIndicator
A class for displaying an animated spinner with a customizable message and color.
ProgressBar
A class for displaying a progress bar that updates as tasks progress, with customizable total steps, message, interval, bar length, and color.
FAQs
A Python library for displaying progress indicators and progress bars in the console with customizable messages and colors.
We found that progress-basic demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.