aria2-rpc-client


Namearia2-rpc-client JSON
Version 0.5.0 PyPI version JSON
download
home_pagehttps://github.com/ozkansen/aria2_rpc_client
SummaryAria2 RPC Client
upload_time2023-03-16 10:30:29
maintainer
docs_urlNone
authorÖzkan ŞEN
requires_python>=3.8,<4.0
licenseMIT
keywords aria2 rpc client xmlrpc-client
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # How to using this package

## Installing

```
pip install aria2_rpc_client
```

## Using

```python
from aria2_rpc_client import DefaultClient
from aria2_rpc_client import DefaultConnection
from aria2_rpc_client import FileDownloadOptions

# Make connection, enter aria2 rpc server information
connection = DefaultConnection("localhost", "6800", "top_secret_key")

# Make client
client = DefaultClient(connection)

# Download options
options = FileDownloadOptions()
options.set_filename("changed.mkv")
options.set_dir("/home/user/downloads")
options.add_header("token", "da78d676ds6a86dsa6d8sa6d8")

# Download start & set options
result = client.add_uri(["https://jell.yfish.us/media/jellyfish-15-mbps-hd-h264.mkv"], options)

# Get defined GID number from aria2
print(result)
# 6be2fb970af88d07

# Set download pause
pause_download = client.pause(result)
print(pause_download)
# 6be2fb970af88d07
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ozkansen/aria2_rpc_client",
    "name": "aria2-rpc-client",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "aria2,rpc,client,xmlrpc-client",
    "author": "\u00d6zkan \u015eEN",
    "author_email": "ozkansen@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c9/ee/a120fb8f8304f2c3dbe8ffbd1a7279db62e2d1f899212320bb0730a41c6e/aria2_rpc_client-0.5.0.tar.gz",
    "platform": null,
    "description": "# How to using this package\n\n## Installing\n\n```\npip install aria2_rpc_client\n```\n\n## Using\n\n```python\nfrom aria2_rpc_client import DefaultClient\nfrom aria2_rpc_client import DefaultConnection\nfrom aria2_rpc_client import FileDownloadOptions\n\n# Make connection, enter aria2 rpc server information\nconnection = DefaultConnection(\"localhost\", \"6800\", \"top_secret_key\")\n\n# Make client\nclient = DefaultClient(connection)\n\n# Download options\noptions = FileDownloadOptions()\noptions.set_filename(\"changed.mkv\")\noptions.set_dir(\"/home/user/downloads\")\noptions.add_header(\"token\", \"da78d676ds6a86dsa6d8sa6d8\")\n\n# Download start & set options\nresult = client.add_uri([\"https://jell.yfish.us/media/jellyfish-15-mbps-hd-h264.mkv\"], options)\n\n# Get defined GID number from aria2\nprint(result)\n# 6be2fb970af88d07\n\n# Set download pause\npause_download = client.pause(result)\nprint(pause_download)\n# 6be2fb970af88d07\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Aria2 RPC Client",
    "version": "0.5.0",
    "split_keywords": [
        "aria2",
        "rpc",
        "client",
        "xmlrpc-client"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4395dca1620d1d5ec77f23c4e1d8c9b478635280c3d71a807bc5491d1c94fe84",
                "md5": "93215c2d57afdc20655a7cc366dd328b",
                "sha256": "c75cfdf4be22f80465d833e7aaa705a2ef9db77282522758c51e87eb0c834036"
            },
            "downloads": -1,
            "filename": "aria2_rpc_client-0.5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "93215c2d57afdc20655a7cc366dd328b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 4860,
            "upload_time": "2023-03-16T10:30:27",
            "upload_time_iso_8601": "2023-03-16T10:30:27.087407Z",
            "url": "https://files.pythonhosted.org/packages/43/95/dca1620d1d5ec77f23c4e1d8c9b478635280c3d71a807bc5491d1c94fe84/aria2_rpc_client-0.5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c9eea120fb8f8304f2c3dbe8ffbd1a7279db62e2d1f899212320bb0730a41c6e",
                "md5": "51e842c4e7f7016b719b3157b373bd90",
                "sha256": "0630a413f2ca912239e34c7a70caf4f27266c829c17a3030987ded7a55291f60"
            },
            "downloads": -1,
            "filename": "aria2_rpc_client-0.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "51e842c4e7f7016b719b3157b373bd90",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 3716,
            "upload_time": "2023-03-16T10:30:29",
            "upload_time_iso_8601": "2023-03-16T10:30:29.257304Z",
            "url": "https://files.pythonhosted.org/packages/c9/ee/a120fb8f8304f2c3dbe8ffbd1a7279db62e2d1f899212320bb0730a41c6e/aria2_rpc_client-0.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-16 10:30:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "ozkansen",
    "github_project": "aria2_rpc_client",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "aria2-rpc-client"
}
        
Elapsed time: 0.12020s