Aget - An Asynchronous Downloader
Project Links
Meta
Author: PeterDing
Requires Python: >=3.8,<4.0
Classifiers
Environment
- Console
Intended Audience
- Developers
License
- OSI Approved :: MIT License
Operating System
- MacOS
- Microsoft :: Windows
- POSIX :: Linux
Programming Language
- Python :: 3
- Python :: 3.8
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.10
- Python :: 3.8
- Python :: 3.9
Aget - Asynchronous Downloader
Aget is an asynchronous downloader operated in command-line, running on Python > 3.5.
It supports HTTP(S), using httpx request library.
Aget continues downloading a partially downloaded file as default.
Installion
$ pip3 install aget
Usage
aget https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png
# get an output name
aget https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png -o 'google.png'
# set headers
aget https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png -H "User-Agent: Mozilla/5.0" -H "Accept-Encoding: gzip"
# set concurrency
aget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.9.tar.xz -s 10
# set request range size
aget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.9.tar.xz -k 1M
Options
-o OUT, --out OUT # output path
-H HEADER, --header HEADER # request header
-X METHOD, --method METHOD # request method
-d DATA, --data DATA # request data
-t TIMEOUT, --timeout TIMEOUT # timeout
-s CONCURRENCY, --concurrency CONCURRENCY # concurrency
-k CHUCK_SIZE, --chuck_size CHUCK_SIZE # request range size
For Developer
logging
Use environment variable AGET_LOG_LEVEL
to setting logging level.
The default level is CRITICAL
.
Dec 04, 2023
0.2.0
Dec 22, 2018
0.1.17
Nov 02, 2017
0.1.16
Aug 12, 2017
0.1.15
Aug 12, 2017
0.1.14
Aug 12, 2017
0.1.13
Apr 21, 2017
0.1.12
Feb 20, 2017
0.1.11
Dec 26, 2016
0.1.10
Dec 25, 2016
0.1.9
Dec 18, 2016
0.1.8
Dec 03, 2016
0.1.7
Dec 01, 2016
0.1.6
Nov 21, 2016
0.1.4
Nov 21, 2016
0.1.3
Nov 21, 2016
0.1.2
Files in release
Extras:
None
Dependencies:
(>=0.25)
httpx