FUSE for alist
Project description
能用 但是由于fuse机制 会大量请求服务器 体验不好 不建议使用
docker: https://hub.docker.com/r/ykxvk8yl5l/alist-fuse
演示视频: https://youtu.be/fl1Lp1_1AR4
https://youtu.be/yEOhw2mQwyI
基本完成
命令行使用【可选参数--proxy-url xxxxxxxx】:
./alist-fuse --alist-user XXXXXXXXX --alist-password XXXXXXX -w token保存目录 挂载点
有网友反馈非邮箱登陆会登陆失败,请使用邮箱、密码方式登陆.Gmail用户请在alist后台设置密码.
Docker安装演示:https://youtu.be/-JXdcD0Yfbk
安装[可能需要给执行权限]
- 在relase下载所需二进制,用命令行启动
- pip install alist-fuse
alist-fuse
🚀 Help me to become a full-time open-source developer by sponsoring me on GitHub
alist网盘 FUSE 磁盘挂载,主要用于配合 Emby 或者 Jellyfin 观看alist网盘内容,功能特性:
1. 目前只读,不支持写入
2. 支持 Linux 和 macOS,暂不支持 Windows(Mac上上传文件会闪退暂不解决).
alist-webdav 项目已经实现了通过 WebDAV 访问alist网盘内容,但由于 Emby 和 Jellyfin 都不支持直接访问 WebDAV 资源, 需要配合 rclone 之类的软件将 WebDAV 挂载为本地磁盘,而本项目则直接通过 FUSE 实现将alist网盘挂载为本地磁盘,省去使用 rclone 再做一层中转。
安装
- macOS 需要先安装 macfuse
brew install --cask macfuse
- Linux 需要先安装 fuse
- Debian 系如 Ubuntu:
apt-get install -y fuse3
- RedHat 系如 CentOS:
yum install -y fuse3
- Debian 系如 Ubuntu:
可以从 GitHub Releases 页面下载预先构建的二进制包, 也可以使用 pip 从 PyPI 下载:
pip install alist-fuse
如果系统支持 Snapcraft 比如 Ubuntu、Debian 等,也可以使用 snap 安装【未实现】:
sudo snap install alist-fuse
OpenWrt 路由器
GitHub Releases 中有预编译的 ipk 文件, 目前提供了 aarch64/arm/x86_64/i686 等架构的版本,可以下载后使用 opkg 安装,以 nanopi r4s 为例:
wget https://github.com/ykxVK8yL5L/alist-fuse/releases/download/v0.1.1/alist-fuse_0.1.1-1_aarch64_generic.ipk
wget https://github.com/ykxVK8yL5L/alist-fuse/releases/download/v0.1.1/luci-app-alist-fuse_0.1.1_all.ipk
wget https://github.com/ykxVK8yL5L/alist-fuse/releases/download/v0.1.1/luci-i18n-alist-fuse-zh-cn_0.1.1-1_all.ipk
opkg install alist-fuse_0.1.1-1_aarch64_generic.ipk
opkg install luci-app-alist-fuse_0.1.1_all.ipk
opkg install luci-i18n-alist-fuse-zh-cn_0.1.1-1_all.ipk
其它 CPU 架构的路由器可在 GitHub Releases 页面中查找对应的架构的主程序 ipk 文件下载安装。
Tips: 不清楚 CPU 架构类型可通过运行
opkg print-architecture
命令查询。
命令行用法
USAGE:
alist-fuse [OPTIONS] --refresh-token <REFRESH_TOKEN> <PATH>
ARGS:
<PATH> Mount point
OPTIONS:
--allow-other Allow other users to access the drive
--domain-id <DOMAIN_ID> Aliyun PDS domain id
-h, --help Print help information
--alist-user <Alist_USER> [env: Alist_USER=]
--alist-password <Alist_PASSWORD> [env: Alist_PASSWORD=]
--proxy-url <API_URL> [env: API_URL=]
-S, --read-buffer-size <READ_BUFFER_SIZE> Read/download buffer size in bytes, defaults to 10MB [default: 10485760]
-V, --version Print version information
-w, --workdir <WORKDIR> Working directory, refresh_token will be stored in there if specified
比如将磁盘挂载到 /mnt/alistDrive
目录:
mkdir -p /mnt/alistDrive /var/run/alist-fuse
alist-fuse --alist-user XXXXXXXXX --alist-password XXXXXXX -w /var/run/alist-fuse /mnt/alistDrive
Emby/Jellyfin
如果是直接运行在系统上的 Emby/Jellyfin,则可以直接在其控制台添加媒体库的时候选择alist网盘对应的挂载路径中的文件夹即可;
如果是 Docker 运行的 Emby/Jellyfin,则需要将alist网盘挂载路径也挂载到 Docker 容器中,假设alist网盘挂载路径为 /mnt/alistDrive
,
以 Jellyfin 为例(假设 Jellyfin 工作路径为 /root/jellyfin
)将云盘挂载到容器 /media
路径:
docker run -d --name jellyfin \
-v /root/jellyfin/config:/config \
-v /root/jellyfin/cache:/cache \
-v /mnt/alistDrive:/media \
-p 8096:8096 \
--device=/dev/dri/renderD128 \
--device /dev/dri/card0:/dev/dri/card0 \
--restart unless-stopped \
jellyfin/jellyfin
License
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file alist_fuse-0.1.1.tar.gz
.
File metadata
- Download URL: alist_fuse-0.1.1.tar.gz
- Upload date:
- Size: 49.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a3a21d54118569b9a218fb220bf3d7cdc5973d6871aeae73b875b89c4d70126 |
|
MD5 | 64c55c3bf38e465752fa2fa9ba70238d |
|
BLAKE2b-256 | e44393b23dbed0f98096c722d448b6dcf9c5fe4f68e6fcfb9848db246c84f0bc |
File details
Details for the file alist_fuse-0.1.1-py3-none-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: alist_fuse-0.1.1-py3-none-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 2.5 MB
- Tags: Python 3, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ed1a43464dbef2988504c2d35ccaecfc1c884c536cf888c659148d4d73c5719 |
|
MD5 | 0c93abca7b1272eaff2a9eac22d163e0 |
|
BLAKE2b-256 | 9dd80d86049ed5a249160e2b090a9cc9bb7c17fa2cf970498fe68c76ec6cd381 |
File details
Details for the file alist_fuse-0.1.1-py3-none-musllinux_1_1_i686.whl
.
File metadata
- Download URL: alist_fuse-0.1.1-py3-none-musllinux_1_1_i686.whl
- Upload date:
- Size: 2.2 MB
- Tags: Python 3, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63c6ace7b2348dc3c082fcf1a41d33a44470fa86a41d068af7300eb0156d79a1 |
|
MD5 | 3f2d10e37977a72518c149e86ec1eb52 |
|
BLAKE2b-256 | c1ddc370a2ba69814765cb701faab707aa2fe8dead359385fefffb1be65e5393 |
File details
Details for the file alist_fuse-0.1.1-py3-none-musllinux_1_1_armv7l.whl
.
File metadata
- Download URL: alist_fuse-0.1.1-py3-none-musllinux_1_1_armv7l.whl
- Upload date:
- Size: 2.1 MB
- Tags: Python 3, musllinux: musl 1.1+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cc008aed18042828c511f4ef10a81bea560cca09fcdaef0855b581c33d880f4 |
|
MD5 | 67b35c389c9c375d7b6a8838ef7e1e31 |
|
BLAKE2b-256 | 5e0557c26cfdfea796813823e643617c8d79bd706124714d023e7cdf6a42a7ac |
File details
Details for the file alist_fuse-0.1.1-py3-none-musllinux_1_1_aarch64.whl
.
File metadata
- Download URL: alist_fuse-0.1.1-py3-none-musllinux_1_1_aarch64.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 3, musllinux: musl 1.1+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a796a3fe734bba81a702e191620238c2fd3803eb8629d79f1c6721390f0ecc4 |
|
MD5 | 560aa1a608a2232d33d9a3407e990002 |
|
BLAKE2b-256 | 08729e2812c53a0fdff5bb3fe6891b935e9c595f1703ca22c04e96134018b87b |
File details
Details for the file alist_fuse-0.1.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
.
File metadata
- Download URL: alist_fuse-0.1.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 2.1 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f2601bc2a6fabdc47d8aa7f1b3610917d2511fa4233697970a481909450a9c5 |
|
MD5 | ce71a27321f69045d298ff6284a24e3f |
|
BLAKE2b-256 | 6ed33f695a35a9cbc9097c3c2a59077b353362a19906a5a94570fa1cb00ebc3d |
File details
Details for the file alist_fuse-0.1.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: alist_fuse-0.1.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eda95b250cae331fb3a9bf86690ed5dd836d01f1af64a5b3d33b36ea0e8aacd2 |
|
MD5 | 3b6409c24b5ec833d76b6588bced50d6 |
|
BLAKE2b-256 | a0703583fcbc4da9bc52f5157a8fd1759d32893babe9da9afd15970765480441 |
File details
Details for the file alist_fuse-0.1.1-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: alist_fuse-0.1.1-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 2.5 MB
- Tags: Python 3, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bbb9fbbb9b35cb8b06f09b59244fd756688d2f70cb16daf84e93813f9ed3587 |
|
MD5 | 1199fb10c14d0b82ab2d4433a11d9eda |
|
BLAKE2b-256 | 3e928958b7208c7b977ef7737ca0a639bcb9f41b311ba9cf23338039dfb25c2d |
File details
Details for the file alist_fuse-0.1.1-py3-none-manylinux_2_5_i686.manylinux1_i686.whl
.
File metadata
- Download URL: alist_fuse-0.1.1-py3-none-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 2.2 MB
- Tags: Python 3, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7081f76cd6d62143c0ae35aa357bc97db79c3bafee78459c0d95d8e0b2ae4d92 |
|
MD5 | b88029d2e303ede4163c839d3ce71e7b |
|
BLAKE2b-256 | cb645136493f1585187f2c24873b86a14f706c79ae3f53188df6232a451ca5be |
File details
Details for the file alist_fuse-0.1.1-py3-none-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: alist_fuse-0.1.1-py3-none-macosx_10_7_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: Python 3, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4484a20e8cc3775fa7418e9601d53634dd33d2f869060f6958ed23b53ec9b9ed |
|
MD5 | 41d40292700d0ab11afd5d5eab08f06c |
|
BLAKE2b-256 | c99d2a555d8152cd31f5593ab0e066f23ba2ca844cf0aa8f693da006c726a8e3 |