fromaria2_rpc_clientimportDefaultClientfromaria2_rpc_clientimportDefaultConnectionfromaria2_rpc_clientimportFileDownloadOptions# Make connection, enter aria2 rpc server informationconnection=DefaultConnection("localhost", "6800", "top_secret_key")
# Make clientclient=DefaultClient(connection)
# Download optionsoptions=FileDownloadOptions()
options.set_filename("changed.mkv")
options.set_dir("/home/user/downloads")
options.add_header("token", "da78d676ds6a86dsa6d8sa6d8")
# Download start & set optionsresult=client.add_uri(["https://jell.yfish.us/media/jellyfish-15-mbps-hd-h264.mkv"], options)
# Get defined GID number from aria2print(result)
# 6be2fb970af88d07# Set download pausepause_download=client.pause(result)
print(pause_download)
# 6be2fb970af88d07
The Tidelift Subscription provides access to a continuously curated stream of human-researched and maintainer-verified data on open source packages and their licenses, releases, vulnerabilities, and development practices.