PyEasyDownloader
Track the file download process.
Usage:
from PyEasyDownloader import *
from time import sleep
file = Downloader(link)
print(file.size_str())
file.download("download.zip")
while file.finished != True:
print("Downloaded: " + file.downloaded_str() + " | " + str(file.percents) + "% | Speed: " + file.speed_str())
sleep(1)
print("Download time: " + str(file.time_str()) + " | Average speed: " + file.speed_str())
Console result:
34.3 MB
Downloaded: 5.81 MB | 16% | Speed: 6.3 MB/sec
...
Download time: 6.03sec | Average speed: 5.7 MB/sec
Let's see the details
Change the language
This allows the units of measurement to be displayed in your language.
Supported languages:
English - EN
Russian - RU
set_lang("RU")
Indicate a link to the file
file = Downloader("https://example.zip")
Get file size
print(file.size_str()) # auto size (Recommended)
print(file.size) # in bytes
print(file.size_KB) # in kilobytes
print(file.size_MB) # in megabytes
print(file.size_GB) # in gigabytes
Start download
Two download modes:
- Super mode (While the file is downloading, you can receive actual progress)
- Standard mode (Until the file is downloaded, the program will not continue)
Super mode example:
file.download("download.zip")
while file.finished != True:
#do something
Standard mode example:
file.download("download.zip", thread=False)
What can be used in Super Mode?
file.speed_str() # auto (Recommended)
file.speed # bytes per second
file.downloaded_str() # auto (Recommended)
file.downloaded # bytes
file.percents
file.progress_bar()
Progress bar
Takes values:
step — default 5 (optional to indicate)
file.progress_bar(step=int_value)
Example:
[========== ]
Pause and Resume download
# pause
file.pause = True
# resume
file.pause = False
Cancel downloading
Takes values:
delete — default True (optional to indicate)
# The broken file will be deleted
file.cancel()
# Broken file will not be deleted
file.cancel(delete=False)
Display statistics after download is complete
file.time_str() # auto (Recommended)
file.time() # in seconds
file.speed_str() # average speed
Metadata
Release files for PyEasyDownloader 1.1.5
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 |
|---|---|---|---|---|
| PyEasyDownloader-1.1.5.tar.gz | 3.8 kB | Without provenance | Details for PyEasyDownloader-1.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyEasyDownloader-1.1.5-py3-none-any.whl | Python 3 | none | any | Details for PyEasyDownloader-1.1.5-py3-none-any.whl |
Total release size: 7.5 kB
Release files / PyEasyDownloader-1.1.5.tar.gz
| Download URL | PyEasyDownloader-1.1.5.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2dbfe8c05aba87f38f1ee30a6469e396a78c0e346962a56f441cf9a73127c838
|
|
BLAKE2b-256 checksum How to use checksums |
f8a820f514ae968d1acd63d942f7c0590f8469ba70f6b21b08c96a3b91d9de07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
|
Release files / PyEasyDownloader-1.1.5-py3-none-any.whl
| Download URL | PyEasyDownloader-1.1.5-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
374aac3422e121ebf71d885fb1269437ffdd8d91a2bc47ba76f1578b6cc86656
|
|
BLAKE2b-256 checksum How to use checksums |
6b071af727d59aba4df25215e30d3c516fe48c432c20060a79fa49db2e968701
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
|
Security for PyEasyDownloader 1.1.5
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.