Skip to main content

No project description provided

Project description

A very fast downloader module that is based on pyCurl and multithreading.

You can pause, resume, stop and retry your downloads. If you run into issues with pyCurl installation, try:

env PYCURL_SSL_LIBRARY=openssl LDFLAGS="-L/path/to/openssl-parent-libdir" CFLAGS="-I/path/to/openssl-parent-include-dir" pip3 install --no-cache-dir --compile --ignore-installed pycurl

Example code:

from pyFunloader import Funload, humanize

import asyncio

async def test():
    action = Funload(
        url="https://proof.ovh.net/files/1Gb.dat",
        destination="downloads/", # optional, / at the end is necessary for directory detection
        progress_bar=True, # optional
        in_memory=False, # optional, if true, file can be acquired by action.memory_file afterwards
        block=False, # optional
        timeout=10, # optional
        useragent="Some user agent", # optional
        buffer=20000 # optional
    )

    await action.start()

    while True:
        print(
f"""
File: {action.destination}
Size: {humanize(action.file_size)}
Downloaded: {humanize(action.downloaded)}
Speed: {action.speed}
Estimate: {action.estimate}
Elapsed Time: {action.elapsed_time}
Status: {action.status}
Percentage: {action.percentage}
"""
        )

        if action.is_finished:
            break

        await asyncio.sleep(1)

asyncio.run(test())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyFunloader-1.0.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file pyFunloader-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyFunloader-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pyFunloader-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6bbe3936ed05c7f810839ed6a289ffe2c6ad50e14726f66a2c31e79e6f041e4d
MD5 dce7311cbad11f64b3bff8e22d50da8e
BLAKE2b-256 b022951d90cef85b3bea2c1c53c958915f4d852352287a3009067c60c51d41f3

See more details on using hashes here.

Supported by

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