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, progress=progress)
fine = file if core.errors == None else core.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)
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.27.tar.gz
(7.8 kB
view hashes)