# Parldl
Download files parallely from a list of URLs in a file.
## Installation
###### Recommended
```bash
pipx install parldl
```
(To install pipx click [here](https://github.com/pypa/pipx#install-pipx))
###### or
```bash
pip install parldl
```
#### Or upgrade by:
```bash
pipx upgrade parldl
```
###### or
```bash
pip install --upgrade parldl
```
## Usage
1. Create a file containing a list of URLs, one URL per line.
2. Run `parldl` with the path to the file as an argument.
3. `parldl` will download the images and save them in a directory provided or in "pardl-downloads" by default.
## Example
```bash
parldl image_urls.txt output_dir
```
```bash
parldl image_urls.txt
```
```
Usage: parldl [OPTIONS] [URL_FILE] [OUTPUT_DIR]
Download files parallely from a list of URLs in a file
Options:
-i, --input PATH File containing newline-separated URLs
-o, --output PATH Output directory path
-m, --max-attempts INTEGER Maximum number of download attempts
-p, --parallel INTEGER Maximum number of parallel downloads
--help Show this message and exit.
```
# Install from source
Poetry is required. For installation click [here](https://python-poetry.org/docs/#installation).
Download the source and install the dependencies by running:
```bash
git clone https://github.com/aqdasak/parldl.git
cd parldl
poetry install
```
### Run
In the source folder containing pyproject.toml
```bash
poetry shell
```
then cd into the folder containing url file and execute:
```bash
parldl <url_file> <output_dir>
```
## License
This project is licensed under the MIT License.
Raw data
{
"_id": null,
"home_page": "https://github.com/aqdasak/parldl",
"name": "parldl",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": null,
"keywords": "python, parallel, download, urls",
"author": "Aqdas Ahmad Khan",
"author_email": "aqdasak@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/70/4e/ba41ad67234cc57edaf8fb6082380ff2218c6492c67e0a299e35b10a3903/parldl-0.2.0.tar.gz",
"platform": null,
"description": "# Parldl\n\nDownload files parallely from a list of URLs in a file.\n\n## Installation\n\n###### Recommended\n\n```bash\npipx install parldl\n```\n(To install pipx click [here](https://github.com/pypa/pipx#install-pipx))\n\n###### or\n\n```bash\npip install parldl\n```\n\n#### Or upgrade by:\n\n```bash\npipx upgrade parldl\n```\n\n###### or\n\n```bash\npip install --upgrade parldl\n```\n\n## Usage\n\n1. Create a file containing a list of URLs, one URL per line.\n2. Run `parldl` with the path to the file as an argument.\n3. `parldl` will download the images and save them in a directory provided or in \"pardl-downloads\" by default.\n\n## Example\n\n```bash\nparldl image_urls.txt output_dir\n```\n\n```bash\nparldl image_urls.txt\n```\n\n```\nUsage: parldl [OPTIONS] [URL_FILE] [OUTPUT_DIR]\n\n Download files parallely from a list of URLs in a file\n\nOptions:\n -i, --input PATH File containing newline-separated URLs\n -o, --output PATH Output directory path\n -m, --max-attempts INTEGER Maximum number of download attempts\n -p, --parallel INTEGER Maximum number of parallel downloads\n --help Show this message and exit.\n```\n\n# Install from source\n\nPoetry is required. For installation click [here](https://python-poetry.org/docs/#installation).\n\nDownload the source and install the dependencies by running:\n\n ```bash\n git clone https://github.com/aqdasak/parldl.git\n cd parldl\n poetry install\n ```\n\n### Run\n\nIn the source folder containing pyproject.toml\n\n```bash\npoetry shell\n```\n\nthen cd into the folder containing url file and execute:\n\n```bash\nparldl <url_file> <output_dir>\n```\n\n## License\n\nThis project is licensed under the MIT License.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Download files parallely from a list of URLs in a file",
"version": "0.2.0",
"project_urls": {
"Homepage": "https://github.com/aqdasak/parldl",
"Repository": "https://github.com/aqdasak/parldl"
},
"split_keywords": [
"python",
" parallel",
" download",
" urls"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "be9797bf497752170c2e80522d7daccbe75ea29bb06959c4e4e3a8bc0df90535",
"md5": "2b83e0aec8597e35655ac8014eae76a3",
"sha256": "4b6453234215c6a25a70635ea1776e56d5304fd01577b3b1d02584f18198ec0c"
},
"downloads": -1,
"filename": "parldl-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2b83e0aec8597e35655ac8014eae76a3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 4917,
"upload_time": "2024-09-29T10:15:22",
"upload_time_iso_8601": "2024-09-29T10:15:22.110076Z",
"url": "https://files.pythonhosted.org/packages/be/97/97bf497752170c2e80522d7daccbe75ea29bb06959c4e4e3a8bc0df90535/parldl-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "704eba41ad67234cc57edaf8fb6082380ff2218c6492c67e0a299e35b10a3903",
"md5": "7641fd9b8bda28fb7e51e4331f3efbb6",
"sha256": "a93e5faecc1eb89f5956c35c4bf5b3d6f013b0a47c0c9e281301397479fbf95b"
},
"downloads": -1,
"filename": "parldl-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "7641fd9b8bda28fb7e51e4331f3efbb6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 4596,
"upload_time": "2024-09-29T10:15:23",
"upload_time_iso_8601": "2024-09-29T10:15:23.338452Z",
"url": "https://files.pythonhosted.org/packages/70/4e/ba41ad67234cc57edaf8fb6082380ff2218c6492c67e0a299e35b10a3903/parldl-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-29 10:15:23",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "aqdasak",
"github_project": "parldl",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "parldl"
}