aria2-rpc-client-0.5.0
توضیحات
Aria2 RPC Client
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aria2-rpc-client-0.5.0 |
| نام | aria2-rpc-client |
| نسخه کتابخانه | 0.5.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Özkan ŞEN |
| ایمیل نویسنده | ozkansen@gmail.com |
| آدرس صفحه اصلی | https://github.com/ozkansen/aria2_rpc_client |
| آدرس اینترنتی | https://pypi.org/project/aria2-rpc-client/ |
| مجوز | MIT |
# 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
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl aria2-rpc-client-0.5.0:
pip install aria2-rpc-client-0.5.0.whl
نصب پکیج tar.gz aria2-rpc-client-0.5.0:
pip install aria2-rpc-client-0.5.0.tar.gz