{ "info": { "author": "Shichao An", "author_email": "shichao.an@nyu.edu", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "## Homura\n\n[![Build Status][travis-image]][travis-link]\n[![PyPI Version][pypi-image]][pypi-link]\n\nHomura (\u307b\u3080\u3089) is a Python downloader with progress, which can be used to download large files.\n\nIt is named after [Homura Akemi](http://ja.wikipedia.org/wiki/%E6%9A%81%E7%BE%8E%E3%81%BB%E3%82%80%E3%82%89>).\n\n### Features\n\n* PycURL based\n* Resume downloads (if server supports [byte ranges](http://en.wikipedia.org/wiki/Byte_serving) on the resource)\n* Support for `requests.Session`\n\n### Installation\n\nHomura depends on [PycURL](http://pycurl.sourceforge.net/). Install dependencies before installing the python package:\n\n#### Ubuntu\n\n```bash\nsudo apt-get install build-essential libcurl4-openssl-dev python-dev\n```\n\n#### Fedora\n\nYum:\n\n```bash\nsudo yum groupinstall \"Development Tools\"\nsudo yum install libcurl libcurl-devel python-devel\n```\n\nDNF:\n\n```bash\nsudo dnf groupinstall \"Development Tools\"\nsudo dnf install libcurl libcurl-devel python-devel\n```\n\n#### Install Homura\n\n```bash\npip install homura\n```\n\n### Usage\n\nThe simplest usage is to import the utility function `download`:\n\n```python\nfrom homura import download\ndownload('http://download.thinkbroadband.com/200MB.zip')\n 3% 6.2 MiB 739.5 KiB/s 0:04:28 ETA\n```\n\nTo specify path for downloaded file:\n\n```python\ndownload(url='http://download.thinkbroadband.com/200MB.zip',\n path='/path/to/big.zip')\n```\n\nYou can specify extra headers as a dictionary:\n\n```python\ndownload(url='http://example.com', headers={'API-Key': '123456'})\n```\n\nYou can work with `Session` objects of the [requests](http://docs.python-requests.org/en/latest/) library:\n\n```python\nimport requests\ns = requests.Session()\n# Do some work with `s` and send requests\ndownload(url='http://example.com', session=s)\n```\n\nPass options to `setopt` of the `pycurl.Curl` object via the `pass_through_opts` argument:\n\n```python\nimport pycurl\ndownload(url=url, pass_through_opts={pycurl.FOLLOWLOCATION: True})\n```\n\n[travis-image]: https://api.travis-ci.org/shichao-an/homura.png?branch=master\n[travis-link]: https://travis-ci.org/shichao-an/homura\n[pypi-image]: https://img.shields.io/pypi/v/homura.png\n[pypi-link]: https://pypi.python.org/pypi/homura/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/shichao-an/homura", "keywords": "download progress", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "homura", "package_url": "https://pypi.org/project/homura/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/homura/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/shichao-an/homura" }, "release_url": "https://pypi.org/project/homura/0.1.5/", "requires_dist": null, "requires_python": null, "summary": "Python downloader with progress", "version": "0.1.5" }, "last_serial": 2590462, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8c3c42590de020b1af0b108992b7e10f", "sha256": "e683d99c2651dee26269a55e677a2dc403f1da317c9b6bf6653d15bfc288c59c" }, "downloads": -1, "filename": "homura-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8c3c42590de020b1af0b108992b7e10f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5210, "upload_time": "2015-01-16T19:47:06", "url": "https://files.pythonhosted.org/packages/44/42/9995f6b1d272e795da797e03a55abfbceb0b9b9f655b0a5e0f6e407dc9f5/homura-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e3f7020ee18ac9dc7691c3117e2c5f5f", "sha256": "5bb5757092d96103124aaf0d1ad2b8ce96956e98881483bd734e26f112519e9f" }, "downloads": -1, "filename": "homura-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e3f7020ee18ac9dc7691c3117e2c5f5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5379, "upload_time": "2015-04-15T02:48:41", "url": "https://files.pythonhosted.org/packages/5a/48/a55a57e838d2dc1e11b41f1fa270d5af7c1d5f7b657caeaf39fd492f0b85/homura-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "f9dee964710b456e50dd3fb3fb2b2881", "sha256": "e5bbee07543a1b9786b6e0490c930eba9379d35cf2ed3d7f377924d79d945601" }, "downloads": -1, "filename": "homura-0.1.2.tar.gz", "has_sig": false, "md5_digest": "f9dee964710b456e50dd3fb3fb2b2881", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5779, "upload_time": "2015-09-17T00:04:49", "url": "https://files.pythonhosted.org/packages/88/0f/f3fd8ab621802e0a97c79a859b05db1e618f33349bd29b5a27ba11cb8c3e/homura-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "9c298b33fc70836f59493a97e6856625", "sha256": "1c10d21382a42342783c4162cc4782a030ac276a5521a6f63ef74e40881b0b1d" }, "downloads": -1, "filename": "homura-0.1.3.tar.gz", "has_sig": false, "md5_digest": "9c298b33fc70836f59493a97e6856625", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5851, "upload_time": "2015-09-27T03:01:16", "url": "https://files.pythonhosted.org/packages/ff/b1/443fb225a11364f4f3f1e4f01ba106506af5e1cdcf37b25e98b3fc1657a3/homura-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "11727688d1e62c69e75ade4706992099", "sha256": "b573dabd754d3383c737eda867576350bc7643a9f130ce02dc165a02146def03" }, "downloads": -1, "filename": "homura-0.1.4.tar.gz", "has_sig": false, "md5_digest": "11727688d1e62c69e75ade4706992099", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6361, "upload_time": "2017-01-21T07:40:09", "url": "https://files.pythonhosted.org/packages/d0/21/e7df1f35358eb6f509acdc21a4d0b6c58633d45e15bdd27bdf0dc3cb4d96/homura-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "c54957da25a5a0c61a16cfa87a016c38", "sha256": "bf1878e4fcf46d9ae33714e403712057b43bd9cbc76748225acbbcb4061d165b" }, "downloads": -1, "filename": "homura-0.1.5.tar.gz", "has_sig": false, "md5_digest": "c54957da25a5a0c61a16cfa87a016c38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6477, "upload_time": "2017-01-22T08:20:49", "url": "https://files.pythonhosted.org/packages/cd/e9/00b0f83afdc44c0e53a0d583419b94c55fc210eb85a77db2ca431929fe25/homura-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c54957da25a5a0c61a16cfa87a016c38", "sha256": "bf1878e4fcf46d9ae33714e403712057b43bd9cbc76748225acbbcb4061d165b" }, "downloads": -1, "filename": "homura-0.1.5.tar.gz", "has_sig": false, "md5_digest": "c54957da25a5a0c61a16cfa87a016c38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6477, "upload_time": "2017-01-22T08:20:49", "url": "https://files.pythonhosted.org/packages/cd/e9/00b0f83afdc44c0e53a0d583419b94c55fc210eb85a77db2ca431929fe25/homura-0.1.5.tar.gz" } ] }