Python fast downloader
Project description
INSTALLATION
pip install aioxdl
USAGE
import asyncio
from aioxdl.modules import Aioxdl
async def progress(stime, tsize, dsize):
# stime = start_time
# tsize = total_size
# dsize = download_size
percentage = round((dsize / tsize) * 100, 2)
print("\rCOMPLETED : {}%".format(percentage), end="", flush=True)
async def main():
core = Aioxdl(timeout=2000)
link = "https://example.link/file.txt"
loca = await core.filename(link)
file = await core.start(link, loca.result, progress=progress)
fine = file.result if file.errors == None else file.errors
print(fine)
asyncio.run(main())
GET FILENAME
from aioxdl.modules import Aioxdl
async def main():
core = Aioxdl()
link = "https://example.link/file.txt"
name = await core.filename(link)
print(name.result)
asyncio.run(main())
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
aioxdl-0.0.30b1.tar.gz
(8.6 kB
view hashes)
Built Distribution
Close
Hashes for aioxdl-0.0.30b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1072612a9e62d24fd2650bab0e9c07a755785cbbbe97ff34e21390724f413a83 |
|
MD5 | 985c2b27fa5e78cc9f6d4f06cc20529d |
|
BLAKE2b-256 | c300eeb53ec3b9154e9d4490ed14c9baaba84d60cabaa43c1313ad665ab26ad0 |