No description
Find a file
dependabot[bot] e41ef28975
Bump docker/login-action from v1.8.0 to v1.9.0 (#57)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 18:40:35 +02:00
.github Bump docker/login-action from v1.8.0 to v1.9.0 (#57) 2021-04-29 18:40:35 +02:00
assets No limit on cache size. (#31) 2021-01-13 14:31:46 +01:00
build_tools Move from logrus to zerolog. (#45) 2021-03-10 10:54:56 +01:00
cmd/distribyted Modify configuration structure. (#49) 2021-04-04 19:24:58 +02:00
config Modify configuration structure. (#49) 2021-04-04 19:24:58 +02:00
docs/images Improve web interface. (#27) 2021-01-02 20:09:05 +01:00
fs Update dependencies. (#56) 2021-04-25 11:00:27 +02:00
fuse Update dependencies. (#56) 2021-04-25 11:00:27 +02:00
http Move from logrus to zerolog. (#45) 2021-03-10 10:54:56 +01:00
iio Update dependencies. (#56) 2021-04-25 11:00:27 +02:00
stats Improve web interface. (#27) 2021-01-02 20:09:05 +01:00
templates Modify configuration structure. (#49) 2021-04-04 19:24:58 +02:00
torrent Modify configuration structure. (#49) 2021-04-04 19:24:58 +02:00
webdav Modify configuration structure. (#49) 2021-04-04 19:24:58 +02:00
.gitignore Reload server and edit configuration. (#15) 2020-11-08 18:19:25 +01:00
binary_fs.go Implement logrus, fix httpFs 2020-07-14 13:55:08 +02:00
Dockerfile Docker image (#22) 2020-11-14 16:28:50 +01:00
go.mod Update dependencies. (#56) 2021-04-25 11:00:27 +02:00
go.sum Update dependencies. (#56) 2021-04-25 11:00:27 +02:00
http_fs.go Reload server and edit configuration. (#15) 2020-11-08 18:19:25 +01:00
LICENSE Create LICENSE 2020-07-28 10:43:38 +02:00
Makefile Docker image (#22) 2020-11-14 16:28:50 +01:00
README.md Modify configuration structure. (#49) 2021-04-04 19:24:58 +02:00

Releases Contributors Forks Stargazers Issues GPL3 License Coveralls Docker Image


Logo

distribyted

Torrent client with on-demand file downloading as a filesystem.

Report a Bug · Request Feature

Table of Contents

About The Project

Distribyted Screen Shot

Distribyted tries to make easier integrations with other applications among torrent files, presenting them as a standard filesystem.

We aim to use some compressed file characteristics to avoid download it entirely, just the parts that we'll need.

Also, if the file format is not supported, distribyted can stream and seek through the file if needed.

Note that distribyted is in alpha version, it is a proof of concept with a lot of bugs.

Use Cases

  • Play multimedia files on your favorite video or audio player. These files will be downloaded on demand and only the needed parts.
  • Explore TBs of data from public datasets only downloading the parts you need. Use Jupyter Notebooks directly to process or analyze this data.
  • Play your ROM backups directly from the torrent file. You can have virtually GBs in games and only downloaded the needed ones.

Supported Expandable File Formats

Distribyted can show some kind of files directly as folders, making it possible for applications read only the parts that they need. Here is a list of supported, to be supported and not supported formats.

Supported

  • zip: Able to uncompress just one file. The file is decompressed to a temporal file sequentially to make possible seek over it. The decompression stops if no one is reading it.

To Be Supported

  • tar: Seek to any file and inside that files using a modified standard library. Not useful on .tar.gz files.
  • 7zip: Similar to Zip. Need for a library similar to zip.
  • xz: Only worth it when the file is created using blocks. Possible library here and here.

Not Supported

  • gzip: As far as I know, it doesn't support random access.

Getting Started

Get the latest release from releases page or download the source code and execute make build.

Run the program: ./distribyted-[VERSION]-[OS]-[ARCH]

Defaults are good enough for starters, but you can change them. Here is the output of ./distribyted -help:

NAME:
   distribyted - Torrent client with on-demand file downloading as a filesystem.

USAGE:
   distribyted [global options] [arguments...]

GLOBAL OPTIONS:
   --config value      YAML file containing distribyted configuration. (default: "./distribyted-data/config.yaml") [$DISTRIBYTED_CONFIG]
   --http-port value   HTTP port for web interface (default: 4444) [$DISTRIBYTED_HTTP_PORT]
   --fuse-allow-other  Allow other users to acces to all fuse mountpoints. You need to add user_allow_other flag to /etc/fuse.conf file. (default: false) [$DISTRIBYTED_FUSE_ALLOW_OTHER]
   --help, -h          show help (default: false)

Prerequisites on windows

Download and install WinFsp.

Usage

After executing and load all torrent or magnet files, a web interface will be available here: http://localhost:4444 It contains information about the mounted routes and torrent files like download/upload speed, leechers, seeders...

You can also modify the configuration file and reload the server from here: http://localhost:4444/config .

Docker

Docker run example:

docker run \
  --rm -p 4444:4444 -p 36911:36911 \
  --cap-add SYS_ADMIN \
  --device /dev/fuse \
  --security-opt apparmor:unconfined \
  -v /tmp/mount:/distribyted-data/mount:shared \
  -v /tmp/metadata:/distribyted-data/metadata \
  -v /tmp/config:/distribyted-data/config \
  distribyted/distribyted:latest

Docker compose example:

distribyted:
    container_name: distribyted
    image: distribyted/distribyted:latest
    restart: always
    ports:
      - "4444:4444/tcp"
      - "36911:36911/tcp"
    volumes:
      - /home/user/mount:/distribyted-data/mount:shared
      - /home/user/metadata:/distribyted-data/metadata
      - /home/user/config:/distribyted-data/config
    security_opt:
      - apparmor:unconfined
    devices:
      - /dev/fuse
    cap_add:
      - SYS_ADMIN

Configuration File

You can see the default configuration file with some explanation comments here.

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the GPL3 license. See LICENSE for more information.