Skip to main content

spb - Simple Progress Bar

This module allows you to display, in the console, a progress indicator and other indicators of any process you need.

Indicators that can be displayed:

  • progress indicator
  • percent indicator
  • timer indicator
  • data rate indicator
  • transmitted data indicator

Any indicator, if desired, can be either turned on or off or displayed with default settings, or you yourself can configure multiple parameters for any indicator you need.

How to install:

From PyPI:

pip3 install spb --user

Requirements:

See in file requirements.txt

spb works with version or higher.

How to import in your project:

from spb import SimpleProgressBar as spb

What are the required modules inside spb:

  • import sys
  • import time
  • import shutil
  • from typing import Union
  • from collections import deque

Examples:

Base examples:

Basic use cases. We display the progress bar itself and the percentage indicator with different settings. All possible options for setting parameters, see the documentation.

Here is not show the display of file transfer rate indicators and the number of transmitted data.

Other configuration options (variant_brackets, variant_arrow and variant_space) can be found here.

Examples of using:

How uses a load file indicator and progress bar indicator (the type of indicator will depend on the settings that you set)

Documentation:

All english documentation can be found in - wiki

All possible settings (parameters) can be found in the this page - parameters.

Русская документация - wiki

Все возможные настройки (параметры) можно найти на этой странице - parameters.

Tests:

Unit-tests - test_spb.py

Run tests:

python3 -m unittest discover

Notes:

  1. Unicode-symbols values that can be used for parameters, can be taken from the Unicode table. You can copy Unicode characters, for example, from this site: https://unicode-table.com/en/

  2. By default, the width of the console window is different on different systems, but on average 80 columns. If you do not expand the console window to full screen, then this will not be enough to display all the possible indicators and inscriptions in the progress bar line. But thanks to the settings, you can display those indicators, icons and exchanges of indicators that you need and hide what you do not need.

Licence:

GNU GPL v 3 0

Authors:

Alexey Patsukov 🇷🇺 - GitHub profile

Contributing:

Submit issues

If you spotted something weird in application behavior or want to propose a feature you are welcome.

Write code

If you are eager to participate in application development and to work on an existing issue (whether it should be a bugfix or a feature implementation), fork, write code, and make a pull request right from the forked project page.

Spread the word

If you have some tips and tricks or any other words that you think might be of interest for the others — publish it wherever you find convenient.

Help in the development of the project

If you want to help in the development of the project or just to thank the author, this can be done through PayPal: https://www.paypal.me/patsuckow

Metadata

Release files for spb 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spb 0.1.1
File Size Uploaded Provenance
spb-0.1.1.tar.gz 28.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for spb 0.1.1
File Interpreter ABI Platform
spb-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 56.2 kB

Release files / spb-0.1.1.tar.gz

Download URL spb-0.1.1.tar.gz
Size 28.8 kB
Tags Source
SHA-256 checksum
How to use checksums
269d4480d8865619b68b388868728c68a8aaf9411a96ea4ab140dcaa5b6f8f40
BLAKE2b-256 checksum
How to use checksums
c57bd50f83edaa9b434005f2b9b469c2304b14fbd65741ef27731aa5df730f8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.10

Release files / spb-0.1.1-py3-none-any.whl

Download URL spb-0.1.1-py3-none-any.whl
Size 27.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8fee38c77f13a8da3755379d47dbfcc5f729494f63e7b913c5280a279c6b66d
BLAKE2b-256 checksum
How to use checksums
d6548da8fdfe2525906da1f3e7e1818c80f9b0b33d6bc267c2d18e70cacdfd63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.10

Security for spb 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page