Basic progress bar and discord progress bar
Project description
Basic Progress Bar
Progress bar with no dependencies.
installation:
from basicprogressbar import BasicProgressBar
Arguments:
current:float = 0 # current progress
total:float = -1 # total progress '-1' for unlimited
posttext:str="" # text behind the bar
pretext:str="Progress:" # text before the bar
length:int=60 # length of the bar
endtext:str="" # text after the bar when done
endline:str='\r' # endline character to rewite same line
Basic Examples:
prog = BasicProgressBar(1,10,pretext="Before bar:")
for i in range(11):
time.sleep(0.1)
prog.current = i
prog.endtext = (f"I ended on {i}")
prog.bar(True)
for i in range(11):
time.sleep(0.1)
BasicProgressBar(i,10).bar(True)
prog = BasicProgressBar(1,10)
for i in range(11):
time.sleep(0.1)
prog.current = i
prog.posttext = f"processing {i}"
print(prog.bar(),end=prog.endline)
prog = BasicProgressBar()
for i in range(10):
time.sleep(0.1)
print(prog.next(),end="\r")
print()
Discord Progress Bar:
Progress bar for discord
Dependencies: requests, time
installation:
from basicprogressbar import DiscordProgressBar
Arguments:
# All the arguments of from BasicProgressBar first
idtoken:str="" # discord id token
disuser:str="Progress Bar" # name of discord user
throttle:float=0.5 # time between messages
# shouldnt have to edit the ones below
messtime:float=0.0 # time used for waiting between messages
messid:str="" # message id to edit line
timeout:float=10.0 # discord timeout
Examples:
# all examples from BasicProgressBar apply
token = "23135245523/f43faDSAF-FEAfe24f3qfq-2yfbB-agdagADGA-g334t34gqarGS"
prog = DiscordProgressBar(1,100,idtoken=token)
for i in range(1,101):
time.sleep(0.1)
prog.current = i
prog.send()
prog = DiscordProgressBar(idtoken=token)
for i in range(1,101):
time.sleep(0.1)
prog.current = i
prog.send()
prog = DiscordProgressBar(total=100, idtoken=token)
for i in range(1,101):
time.sleep(0.1)
prog.next()
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 basicprogressbar-1.0.1.tar.gz.
File metadata
- Download URL: basicprogressbar-1.0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b700ae2ede0a3dd4819c034f114d75ded36a04ec51de3dcb3555ae7dde9e5ee8
|
|
| MD5 |
3ab8bbe39739ca70dff2742a043e0c8a
|
|
| BLAKE2b-256 |
084461649aef15477991f930688d34d5446c5e918bbceb3d8d76257417c9018e
|
Provenance
The following attestation bundles were made for basicprogressbar-1.0.1.tar.gz:
Publisher:
python-publish.yml on Sumiza/basicprogressbar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
basicprogressbar-1.0.1.tar.gz -
Subject digest:
b700ae2ede0a3dd4819c034f114d75ded36a04ec51de3dcb3555ae7dde9e5ee8 - Sigstore transparency entry: 867313833
- Sigstore integration time:
-
Permalink:
Sumiza/basicprogressbar@070e447ffaf9e674100179acf5fb2cecbaeaaa73 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Sumiza
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@070e447ffaf9e674100179acf5fb2cecbaeaaa73 -
Trigger Event:
release
-
Statement type:
File details
Details for the file basicprogressbar-1.0.1-py3-none-any.whl.
File metadata
- Download URL: basicprogressbar-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4b1cfbf3c14340510e977ffcd7ec2159a767151440f4540fdf0138096e5b9c9
|
|
| MD5 |
33155fed1ab4ed3531bc1959624a851a
|
|
| BLAKE2b-256 |
3fd16cb4f56ee282ccac794b0b2a8f40c55ad66796502820122873ce327d9d54
|
Provenance
The following attestation bundles were made for basicprogressbar-1.0.1-py3-none-any.whl:
Publisher:
python-publish.yml on Sumiza/basicprogressbar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
basicprogressbar-1.0.1-py3-none-any.whl -
Subject digest:
a4b1cfbf3c14340510e977ffcd7ec2159a767151440f4540fdf0138096e5b9c9 - Sigstore transparency entry: 867313865
- Sigstore integration time:
-
Permalink:
Sumiza/basicprogressbar@070e447ffaf9e674100179acf5fb2cecbaeaaa73 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Sumiza
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@070e447ffaf9e674100179acf5fb2cecbaeaaa73 -
Trigger Event:
release
-
Statement type: