Metadata-Version: 2.1
Name: fast-downloader-mt
Version: 0.1.0
Summary: Multithreaded fast downloader
Home-page: https://github.com/Kirozen/how-am-i-supposed-to
License: MIT
Author: Kirozen
Requires-Python: >=3.8,<4.0
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Communications
Classifier: Topic :: Internet
Classifier: Topic :: Terminals
Classifier: Topic :: Utilities
Requires-Dist: click (>=7.1.2,<8.0.0)
Requires-Dist: requests (>=2.24.0,<3.0.0)
Requires-Dist: rich (>=8.0.0,<9.0.0)
Project-URL: Repository, https://github.com/Kirozen/how-am-i-supposed-to
Description-Content-Type: text/markdown

# Fast Downloader

## Why?

Primarly, to have a nice tool to download ubuntu packages with apt-fast.

## Documents

#### [CHANGELOG.md](https://github.com/kirozen/fast-downloader/blob/master/CHANGELOG.md)
#### [LICENSE MIT](https://github.com/kirozen/fast-downloader/blob/master/LICENSE)


## Features

- Download multiple files in parallel
- Partially compatible with aria2 input file format

## Installing

Install with `pip` or your favorite PyPi package manager.

```shell
pip install fast-downloader-mt
```

## Dependencies

- Python 3.8+
- Rich
- Requests
- Click

## Usage

Usage: fdl [OPTIONS] [URLS]...

Options:
  -t, --threads INTEGER        thread number
  -i, --input PATH             input file
  -q, --quiet
  -d, --destination PATH
  --aria2-compatibility
  --buffer-size INTEGER
  --help                       Show this message and exit.

Default number of threads set to `cpu_count()`

### Usage with apt-fast

In `/etc/apt-fast.conf`

```conf
_DOWNLOADER='fdl --aria2-compatibility -t ${_MAXNUM} -i ${DLLIST} -d ${DLDIR}'
```

## Dev environment

### Dev dependencies

- pytest
- pylint
- black
- mypy
- flake8
- bandit
- safety

## Setup

With poetry:

```shell
poetry install
```

