Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fraidev/tornado
Tornado is a BitTorrent client written entirely in OCaml.
https://github.com/fraidev/tornado
ocaml torrent
Last synced: 2 months ago
JSON representation
Tornado is a BitTorrent client written entirely in OCaml.
- Host: GitHub
- URL: https://github.com/fraidev/tornado
- Owner: fraidev
- License: mit
- Created: 2022-03-27T03:36:50.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-12T17:07:14.000Z (11 months ago)
- Last Synced: 2024-02-12T18:29:51.928Z (11 months ago)
- Topics: ocaml, torrent
- Language: OCaml
- Homepage:
- Size: 203 KB
- Stars: 56
- Watchers: 3
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tornado
Tornado is a BitTorrent client written entirely in OCaml.
[![asciicast](https://asciinema.org/a/518394.png)](https://asciinema.org/a/518394?t=25&rows=18&speed=5&)
Note: speed x5 on this video.
## Setup
### Nix
Just run:
```
nix develop -c $SHELL
```### Opam
First, create a switch like so:
```bash
opam switch create . 5.0.0~alpha1+options --no-install
```Then you can run:
```
opam pin stdint https://github.com/andrenth/ocaml-stdint.git#322a8a4a8c69e4a0b75763460b915200356e3af3
opam install ocamlformat
opam install ocaml-lsp-server
opam install . --deps-only --with-test
```## Build, tests and Downloading a file
Build the codebase with:
```
dune build
```Run test:
```
dune build @runtest --force --no-buffer
```Execute it for download a torrent file:
```
dune exec bin/cli.exe debian-11.4.0-arm64-netinst.iso.torrent
```