PyLeaves
🌿 telegram bot's python pypi package & tools for pyrogram
Current featur ⚡️
progress_for_pyrogram():
This is async function of ( Download | Upload ) progress bar with simple way to use
Example
# import time.time and other
from pyleaves import Leaves # must import
PROGRESS_BAR = """
percentage: {percentage} | {current}
total completed: {total}%
current speed: {speed}/s
estimate time: {est_time} """
Button = InlineKeyboardMarkup([[InlineKeyboardButton('text', callback_data="data")]])
start_time = time()
editable_text = await app.send_message(chat_id, "download started")
# download media
await app.download_media(
message,
progress=Leaves.progress_for_pyrogram,
progress_args=(
"try to download......", # 1. must be a string
editable_text, # 2. editable message
start_time # 3. time.time() import time.time & time()
PROGRESS_BAR, # 4. progress template check more description
'▣', # 5. string character for identifie the finished percentage
'▢', # 6. string character for identifie the unfinished percentage
Button, # 7. pyrogram replay_markup
)
)
# ⚠️ don't use parameters keyword & must keep this Oder
formats of template
- {current} = process completed file size
- {total} = total file size
- {percentage} = total completed percentage
- {speed} = current speed in byte/second
- {est_time} = estimated time
Metadata
Release files for PyLeaves 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyLeaves-1.0.2.tar.gz | 15.9 kB | Without provenance | Details for PyLeaves-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyLeaves-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for PyLeaves-1.0.2-py3-none-any.whl |
Total release size: 33.2 kB
Release files / PyLeaves-1.0.2.tar.gz
| Download URL | PyLeaves-1.0.2.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9c99230970fd953aa1e8a0868c5f5006dcf976e15af4a3e656aba120ef63524
|
|
BLAKE2b-256 checksum How to use checksums |
59ef81f6ce9208c30be5a0add3dd13f128a6311f36fd4f14fef1926b0e64e36b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / PyLeaves-1.0.2-py3-none-any.whl
| Download URL | PyLeaves-1.0.2-py3-none-any.whl |
|---|---|
| Size | 17.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2d1bba3117851ccd05ac505580f5b96df22bc42d45f8b41b4fa52aa76eafb29
|
|
BLAKE2b-256 checksum How to use checksums |
e2024ff2374241c175d88a28ef4bf8191b6a7766d5917a6baa55dba8f52abebd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for PyLeaves 1.0.2
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.