{"library":"multiurl","title":"multiurl","description":"multiurl is a Python package designed to simplify downloading multiple URLs, including support for multi-part URLs. It allows downloading several files into one or specific byte ranges from a single URL. Maintained by ECMWF, it has seen regular updates, with version 0.3.7 released in July 2025, indicating an active development cadence despite its listed 'Alpha' status on PyPI.","language":"python","status":"active","last_verified":"Sat May 16","install":{"commands":["pip install multiurl"],"cli":null},"imports":["from multiurl import download"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from multiurl import download\nimport os\n\n# NOTE: For this quickstart, actual network requests are simulated for illustrative\n# purposes to ensure it is runnable without external dependencies or network issues.\n# In a real application, 'download' performs actual HTTP/FTP requests.\n\ndef simulated_download(url, target=None, parts=None, **kwargs):\n    print(f\"\\n--- Simulating download operation ---\")\n    print(f\"  URLs(s): {url}\")\n    print(f\"  Target file: {target}\")\n    if parts:\n        print(f\"  Requested parts: {parts}\")\n    print(f\"  Additional parameters: {kwargs}\")\n    if target:\n        try:\n            with open(target, 'w') as f:\n                f.write(f\"Simulated content for {target} from {url}\\n\")\n            print(f\"  Created simulated file: {target}\")\n        except IOError as e:\n            print(f\"  Error creating simulated file {target}: {e}\")\n    print(\"--- Simulation complete ---\")\n\n# Monkey-patch the actual download function for simulation in quickstart\n# In a real application, you would just call `multiurl.download`\nmultiurl.download = simulated_download\n\n# Example 1: Download a single URL into a specified target file\nmultiurl.download(url=\"http://example.com/data.txt\", target=\"example_data.txt\")\n\n# Example 2: Download content from multiple URLs and combine into one file\nmultiurl.download(\n    url=[\"http://example.com/part1.json\", \"http://example.com/part2.json\"],\n    target=\"combined_parts.json\"\n)\n\n# Example 3: Download specific byte ranges (parts) from a single URL\n# This requires the server to support HTTP Range requests.\nmultiurl.download(\n    url=\"http://example.com/large_file.bin\",\n    parts=[(0, 1024), (2048, 512)],\n    target=\"file_segments.bin\"\n)\n\n# Clean up simulated files (optional, for actual cleanup uncomment below)\n# os.remove(\"example_data.txt\")\n# os.remove(\"combined_parts.json\")\n# os.remove(\"file_segments.bin\")\n\nprint(\"\\nQuickstart demonstration complete. Check your directory for simulated files.\")","lang":"python","description":"This quickstart demonstrates the `multiurl.download` function. It supports downloading single URLs, combining multiple URLs into one target file, and fetching specific byte-range 'parts' from a single URL. The provided code simulates network operations to ensure it is runnable without external network dependencies for demonstration purposes.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-16","installed_version":"0.3.7","pypi_latest":"0.3.7","is_stale":false,"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":2.5,"avg_import_s":0.65,"wheel_type":"wheel"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"multiurl","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.66,"mem_mb":10.8,"disk_size":"25.5M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"multiurl","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":2.5,"import_time_s":0.43,"mem_mb":10.8,"disk_size":"26M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"multiurl","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.78,"mem_mb":12,"disk_size":"27.9M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"multiurl","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":2.5,"import_time_s":0.66,"mem_mb":12,"disk_size":"28M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"multiurl","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.72,"mem_mb":12.4,"disk_size":"19.6M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"multiurl","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":2.3,"import_time_s":0.7,"mem_mb":12.4,"disk_size":"20M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"multiurl","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.71,"mem_mb":12.8,"disk_size":"19.3M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"multiurl","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":2.4,"import_time_s":0.7,"mem_mb":12.8,"disk_size":"20M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"multiurl","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.57,"mem_mb":10.5,"disk_size":"24.8M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"multiurl","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":2.9,"import_time_s":0.52,"mem_mb":10.5,"disk_size":"25M"}]}}