Skip to main content

Concurrent HTTP download orchestration with async I/O

Project description

Rheo

PyPI Python License CI codecov

Concurrent HTTP download orchestration with async I/O

What It Is

A Python library for managing multiple asynchronous HTTP downloads. Built on asyncio and aiohttp, it handles concurrency, tracks state, emits events, and lets you monitor progress.

Installation

pip install rheopy

Quick Start

import asyncio
from pathlib import Path
from rheo import DownloadManager
from rheo.domain import FileConfig

async def main():
    files = [
        FileConfig(url="https://example.com/file1.zip", priority=1),
        FileConfig(url="https://example.com/file2.pdf", priority=2),
    ]

    async with DownloadManager(download_dir=Path("./downloads"), max_concurrent=3) as manager:
        await manager.add(files)
        await manager.wait_until_complete()

    print("All downloads complete!")

asyncio.run(main())

Key Features

  • Concurrent downloads with worker pool
  • Priority queue
  • Hash validation (MD5, SHA256, SHA512)
  • Retry logic with exponential backoff
  • Real-time speed & ETA tracking
  • Event-driven architecture
  • CLI tool (rheo download)
  • Full type hints

CLI Usage

# Basic download
rheo download https://example.com/file.zip

# With hash verification
rheo download https://example.com/file.zip --hash sha256:abc123...

# Custom output directory
rheo download https://example.com/file.zip -o /path/to/dir

See CLI Reference for complete command documentation.

Documentation

Examples

Check examples/ for working code:

  • 01_basic_download.py - Simple single file download
  • 02_multiple_with_priority.py - Multiple files with priorities
  • 03_hash_validation.py - File integrity verification
  • 04_progress_tracking.py - Real-time progress monitoring
  • 05_event_monitoring.py - Event-driven statistics

Project Status

Alpha - Core functionality works, but API may change before 1.0.

  • Python: 3.12+
  • License: MIT
  • Version: 0.3.0

Questions?

Open an issue on GitHub or check the full documentation.

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

rheopy-0.3.0.tar.gz (45.2 kB view details)

Uploaded Source

Built Distribution

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

rheopy-0.3.0-py3-none-any.whl (64.9 kB view details)

Uploaded Python 3

File details

Details for the file rheopy-0.3.0.tar.gz.

File metadata

  • Download URL: rheopy-0.3.0.tar.gz
  • Upload date:
  • Size: 45.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.0 Linux/6.11.0-1018-azure

File hashes

Hashes for rheopy-0.3.0.tar.gz
Algorithm Hash digest
SHA256 dee8f8abdf63766b69c511161700122e6fa0bf461a0a43ac1b4e17001b8e5f10
MD5 c6ef55c4a927a84215ead91ac78540ac
BLAKE2b-256 ef80db0567d097626f4b4588b06030a6784aeee7be2e2f783c7b806bcdfebf42

See more details on using hashes here.

File details

Details for the file rheopy-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: rheopy-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 64.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.0 Linux/6.11.0-1018-azure

File hashes

Hashes for rheopy-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65f83e3504ee88a0db673d384a5a280746e106cb5534983de8b72b06f54d75dd
MD5 8ae5a3102f0a21d027d0c08b067b6a4c
BLAKE2b-256 d509a2c1ed80e46ee8dc2b4e799ad58cddb57bf5392924ffdb297135a12cc6b0

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