Skip to main content

Python fast downloader

Project description

📦 AIO DOWNLOADER

telegram badge telegram badge telegram badge

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


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.28.tar.gz (7.9 kB view hashes)

Uploaded Source

Built Distribution

aioxdl-0.0.28-py3-none-any.whl (9.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page