Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juancarlospaco/aria
Aria2 API lib for Nim using RPC for any backend
https://github.com/juancarlospaco/aria
aria2 aria2-cli aria2c ftp-client json-rpc-client metalink nim nim-lang nim-language rpc-client torrent
Last synced: about 1 month ago
JSON representation
Aria2 API lib for Nim using RPC for any backend
- Host: GitHub
- URL: https://github.com/juancarlospaco/aria
- Owner: juancarlospaco
- License: mit
- Created: 2021-04-12T16:13:51.000Z (over 3 years ago)
- Default Branch: nim
- Last Pushed: 2021-04-17T14:52:23.000Z (over 3 years ago)
- Last Synced: 2024-10-15T00:53:44.966Z (3 months ago)
- Topics: aria2, aria2-cli, aria2c, ftp-client, json-rpc-client, metalink, nim, nim-lang, nim-language, rpc-client, torrent
- Language: Nim
- Homepage: https://juancarlospaco.github.io/aria/index.html
- Size: 35.2 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Aria
[Aria2](https://aria2.github.io) API lib for [Nim](https://nim-lang.org) using JSON-RPC over HTTP for any backend.
* https://aria2.github.io
* https://aria2.github.io/manual/en/html/aria2c.html#methods
* https://juancarlospaco.github.io/aria/index.html# Use
```nim
import aria
import std/json # $let client: Aria = newAria(ip = "127.0.0.1", port = 6800.uint16)
aria:
## These are just Aria API calls, same naming as from Aria Documentation.
echo client.getVersion()
## See also addTorrent(), addMetalink(), addUrl(), etc
```Aria in the Browser, JavaScript target:
```nim
import aria
import std/[jsffi, jsfetch] ## fetch()let client: Aria = newAria(ip = "127.0.0.1", port = 6800.uint16)
echo client.getVersion().repr
```### Notes
- https://github.com/aria2/aria2/issues/1759#issue-856909078