Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Python downloader with progress

Project Description

## Homura

[![Build Status][travis-image]][travis-link]
[![PyPI Version][pypi-image]][pypi-link]

Homura (ほむら) is a Python downloader with progress, which can be used to download large files.

It is named after [Homura Akemi](>).

### Features

* PycURL based
* Resume downloads (if server supports [byte ranges]( on the resource)
* Support for `requests.Session`

### Installation

Homura depends on [PycURL]( Install dependencies before installing the python package:

#### Ubuntu

sudo apt-get install build-essential libcurl4-openssl-dev python-dev

#### Fedora


sudo yum groupinstall "Development Tools"
sudo yum install libcurl libcurl-devel python-devel


sudo dnf groupinstall "Development Tools"
sudo dnf install libcurl libcurl-devel python-devel

#### Install Homura

pip install homura

### Usage

The simplest usage is to import the utility function `download`:

from homura import download
3% 6.2 MiB 739.5 KiB/s 0:04:28 ETA

To specify path for downloaded file:


You can specify extra headers as a dictionary:

download(url='', headers={'API-Key': '123456'})

You can work with `Session` objects of the [requests]( library:

import requests
s = requests.Session()
# Do some work with `s` and send requests
download(url='', session=s)

Pass options to `setopt` of the `pycurl.Curl` object via the `pass_through_opts` argument:

import pycurl
download(url=url, pass_through_opts={pycurl.FOLLOWLOCATION: True})


Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(6.5 kB) Copy SHA256 Hash SHA256
Source None Jan 22, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers