aget


Nameaget JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/PeterDing/aget
SummaryAget - An Asynchronous Downloader
upload_time2023-12-04 10:34:09
maintainer
docs_urlNone
authorPeterDing
requires_python>=3.8,<4.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Aget - Asynchronous Downloader

[中文](https://github.com/PeterDing/aget/blob/master/README_zh.md)

Aget is an asynchronous downloader operated in command-line, running on Python > 3.5.

It supports HTTP(S), using [httpx](https://github.com/encode/httpx) request library.

Aget continues downloading a partially downloaded file as default.

### Installion

```shell
$ pip3 install aget
```

### Usage

```shell
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

```shell
-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`.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/PeterDing/aget",
    "name": "aget",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "PeterDing",
    "author_email": "dfhayst@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/b0/f5/2754950906ce7399830bb911257c374e87edd079ed985c9f5290006e8358/aget-0.2.0.tar.gz",
    "platform": null,
    "description": "# Aget - Asynchronous Downloader\n\n[\u4e2d\u6587](https://github.com/PeterDing/aget/blob/master/README_zh.md)\n\nAget is an asynchronous downloader operated in command-line, running on Python > 3.5.\n\nIt supports HTTP(S), using [httpx](https://github.com/encode/httpx) request library.\n\nAget continues downloading a partially downloaded file as default.\n\n### Installion\n\n```shell\n$ pip3 install aget\n```\n\n### Usage\n\n```shell\naget https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png\n\n# get an output name\naget https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png -o 'google.png'\n\n# set headers\naget https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png -H \"User-Agent: Mozilla/5.0\" -H \"Accept-Encoding: gzip\"\n\n# set concurrency\naget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.9.tar.xz -s 10\n\n# set request range size\naget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.9.tar.xz -k 1M\n```\n\n### Options\n\n```shell\n-o OUT, --out OUT             # output path\n-H HEADER, --header HEADER    # request header\n-X METHOD, --method METHOD    # request method\n-d DATA, --data DATA          # request data\n-t TIMEOUT, --timeout TIMEOUT # timeout\n-s CONCURRENCY, --concurrency CONCURRENCY   # concurrency\n-k CHUCK_SIZE, --chuck_size CHUCK_SIZE      # request range size\n```\n\n### For Developer\n\n#### logging\n\nUse environment variable `AGET_LOG_LEVEL` to setting logging level.  \nThe default level is `CRITICAL`.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Aget - An Asynchronous Downloader",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://github.com/PeterDing/aget"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b0f52754950906ce7399830bb911257c374e87edd079ed985c9f5290006e8358",
                "md5": "021395aa6107f50129b05b61fc210f83",
                "sha256": "bcb79250dadae37ab0c335a2885223cee9651e964fb9df009c1b881afa55698f"
            },
            "downloads": -1,
            "filename": "aget-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "021395aa6107f50129b05b61fc210f83",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 8373,
            "upload_time": "2023-12-04T10:34:09",
            "upload_time_iso_8601": "2023-12-04T10:34:09.267268Z",
            "url": "https://files.pythonhosted.org/packages/b0/f5/2754950906ce7399830bb911257c374e87edd079ed985c9f5290006e8358/aget-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-04 10:34:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "PeterDing",
    "github_project": "aget",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "aget"
}
        
Elapsed time: 0.15444s