Skip to main content

FUSE for AliyunDrive

Project description

aliyundrive-fuse

GitHub Actions PyPI Docker Image aliyundrive-fuse Crates.io

🚀 Help me to become a full-time open-source developer by sponsoring me on GitHub

阿里云盘 FUSE 磁盘挂载,主要用于配合 Emby 或者 Jellyfin 观看阿里云盘内容,功能特性:

  1. 目前只读,不支持写入
  2. 支持 Linux 和 macOS,暂不支持 Windows

aliyundrive-webdav 项目已经实现了通过 WebDAV 访问阿里云盘内容,但由于 Emby 和 Jellyfin 都不支持直接访问 WebDAV 资源, 需要配合 rclone 之类的软件将 WebDAV 挂载为本地磁盘,而本项目则直接通过 FUSE 实现将阿里云盘挂载为本地磁盘,省去使用 rclone 再做一层中转。

安装

  • macOS 需要先安装 macfuse
  • Linux 需要先安装 fuse
    • Debian 系如 Ubuntu: apt-get install -y fuse3
    • RedHat 系如 CentOS: yum install -y fuse3

可以从 GitHub Releases 页面下载预先构建的二进制包, 也可以使用 pip 从 PyPI 下载:

pip install aliyundrive-fuse

如果系统支持 Snapcraft 比如 Ubuntu、Debian 等,也可以使用 snap 安装:

sudo snap install aliyundrive-fuse

OpenWrt 路由器

GitHub Releases 中有预编译的 ipk 文件, 目前提供了 aarch64/arm/x86_64/i686 等架构的版本,可以下载后使用 opkg 安装,以 nanopi r4s 为例:

wget https://github.com/messense/aliyundrive-fuse/releases/download/v0.1.8/aliyundrive-fuse_0.1.8-1_aarch64_generic.ipk
wget https://github.com/messense/aliyundrive-fuse/releases/download/v0.1.8/luci-app-aliyundrive-fuse_0.1.8_all.ipk
wget https://github.com/messense/aliyundrive-fuse/releases/download/v0.1.8/luci-i18n-aliyundrive-fuse-zh-cn_0.1.8-1_all.ipk
opkg install aliyundrive-fuse_0.1.8-1_aarch64_generic.ipk
opkg install luci-app-aliyundrive-fuse_0.1.8_all.ipk
opkg install luci-i18n-aliyundrive-fuse-zh-cn_0.1.8-1_all.ipk

其它 CPU 架构的路由器可在 GitHub Releases 页面中查找对应的架构的主程序 ipk 文件下载安装。

Tips: 不清楚 CPU 架构类型可通过运行 opkg print-architecture 命令查询。

命令行用法

USAGE:
    aliyundrive-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
    -r, --refresh-token <REFRESH_TOKEN>          Aliyun drive refresh token [env: REFRESH_TOKEN=]
    -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/aliyundrive 目录:

mkdir -p /mnt/aliyundrive /var/run/aliyundrive-fuse
aliyundrive-fuse -r your-refresh-token -w /var/run/aliyundrive-fuse /mnt/aliyundrive

Emby/Jellyfin

如果是直接运行在系统上的 Emby/Jellyfin,则可以直接在其控制台添加媒体库的时候选择阿里云盘对应的挂载路径中的文件夹即可; 如果是 Docker 运行的 Emby/Jellyfin,则需要将阿里云盘挂载路径也挂载到 Docker 容器中,假设阿里云盘挂载路径为 /mnt/aliyundrive, 以 Jellyfin 为例(假设 Jellyfin 工作路径为 /root/jellyfin)将云盘挂载到容器 /media 路径:

docker run -d --name jellyfin \
  -v /root/jellyfin/config:/config \
  -v /root/jellyfin/cache:/cache \
  -v /mnt/aliyundrive:/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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aliyundrive_fuse-0.1.8.tar.gz (33.6 kB view details)

Uploaded Source

Built Distributions

aliyundrive_fuse-0.1.8-py3-none-musllinux_1_1_x86_64.whl (2.3 MB view details)

Uploaded Python 3 musllinux: musl 1.1+ x86-64

aliyundrive_fuse-0.1.8-py3-none-musllinux_1_1_i686.whl (2.2 MB view details)

Uploaded Python 3 musllinux: musl 1.1+ i686

aliyundrive_fuse-0.1.8-py3-none-musllinux_1_1_armv7l.whl (1.9 MB view details)

Uploaded Python 3 musllinux: musl 1.1+ ARMv7l

aliyundrive_fuse-0.1.8-py3-none-musllinux_1_1_aarch64.whl (2.1 MB view details)

Uploaded Python 3 musllinux: musl 1.1+ ARM64

aliyundrive_fuse-0.1.8-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (1.9 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARMv7l

aliyundrive_fuse-0.1.8-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.1 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

aliyundrive_fuse-0.1.8-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl (2.3 MB view details)

Uploaded Python 3 manylinux: glibc 2.5+ x86-64

aliyundrive_fuse-0.1.8-py3-none-manylinux_2_5_i686.manylinux1_i686.whl (2.2 MB view details)

Uploaded Python 3 manylinux: glibc 2.5+ i686

aliyundrive_fuse-0.1.8-py3-none-macosx_10_7_x86_64.whl (1.9 MB view details)

Uploaded Python 3 macOS 10.7+ x86-64

File details

Details for the file aliyundrive_fuse-0.1.8.tar.gz.

File metadata

  • Download URL: aliyundrive_fuse-0.1.8.tar.gz
  • Upload date:
  • Size: 33.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for aliyundrive_fuse-0.1.8.tar.gz
Algorithm Hash digest
SHA256 d123093a62bfb1a6b880b7b8c9700e3080bc7405cee34c81d27a057bc9cef85b
MD5 130009a99f324a4691639fc20c7e9631
BLAKE2b-256 6231589fa18d7fa36dc219752385d90eef02c6d9ef4a0a2e616b8c45dbf68fb3

See more details on using hashes here.

File details

Details for the file aliyundrive_fuse-0.1.8-py3-none-musllinux_1_1_x86_64.whl.

File metadata

  • Download URL: aliyundrive_fuse-0.1.8-py3-none-musllinux_1_1_x86_64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: Python 3, musllinux: musl 1.1+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for aliyundrive_fuse-0.1.8-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 06c3b01e7bfa001d7b06de659601d7e73dc268a35de842c2d15a862ca07cb8c1
MD5 b7df198c754dae9b526cc345d033c193
BLAKE2b-256 215b6afb080ac8a3876317cd2694b3fd5943aa8f72355b38ffa0abcefaff41c0

See more details on using hashes here.

File details

Details for the file aliyundrive_fuse-0.1.8-py3-none-musllinux_1_1_i686.whl.

File metadata

  • Download URL: aliyundrive_fuse-0.1.8-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/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for aliyundrive_fuse-0.1.8-py3-none-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 79c1422d7e9cfdf03342134771c7739ad879a8b1ba0d4dc3c82d0035905341e6
MD5 8068d6284cf869ae41395b090a17a7d2
BLAKE2b-256 db0f4d222506b403a42a316fe3fbe8dd828d93cab6b7446a3759fe62833be274

See more details on using hashes here.

File details

Details for the file aliyundrive_fuse-0.1.8-py3-none-musllinux_1_1_armv7l.whl.

File metadata

  • Download URL: aliyundrive_fuse-0.1.8-py3-none-musllinux_1_1_armv7l.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: Python 3, musllinux: musl 1.1+ ARMv7l
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for aliyundrive_fuse-0.1.8-py3-none-musllinux_1_1_armv7l.whl
Algorithm Hash digest
SHA256 cad6029dfdd3cebcbb2d3d7561c3bb3d4875bf344b16ae16ab11f76a1834a055
MD5 36c96cfbb02618b9308bd342e7fbd363
BLAKE2b-256 8decc13a19f5b26a07cac4c7cbb154d0c591deea54dd0c0d2b18664f9bb87eb7

See more details on using hashes here.

File details

Details for the file aliyundrive_fuse-0.1.8-py3-none-musllinux_1_1_aarch64.whl.

File metadata

  • Download URL: aliyundrive_fuse-0.1.8-py3-none-musllinux_1_1_aarch64.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3, musllinux: musl 1.1+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for aliyundrive_fuse-0.1.8-py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 4fd893683223db14cbad373a701b708c93a27af9cbc2151a82249b3bf28eb79a
MD5 e04e113395c7897fab95aa2684433278
BLAKE2b-256 78fff8a78d04806ab1bb38bf84d9417a04f646484355d9a4527e1d8c42f9ab04

See more details on using hashes here.

File details

Details for the file aliyundrive_fuse-0.1.8-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

  • Download URL: aliyundrive_fuse-0.1.8-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: Python 3, manylinux: glibc 2.17+ ARMv7l
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for aliyundrive_fuse-0.1.8-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 83b8ef90508761b141fae23a4cd67bed4de77731c2cb9deca926463e0451be10
MD5 4d60d6498434f2a4ed4b23477f385706
BLAKE2b-256 8514dba205b84cea8802382075618dc361f1aa31b84f75ecdd159882ff16c56d

See more details on using hashes here.

File details

Details for the file aliyundrive_fuse-0.1.8-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

  • Download URL: aliyundrive_fuse-0.1.8-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3, manylinux: glibc 2.17+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for aliyundrive_fuse-0.1.8-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 55e12b973f46a969642f6c4ddf3c0fad7b539089e2e2c92f1e091a0919641a68
MD5 7e3f9a2bc2b87a78683e615640180402
BLAKE2b-256 af4dd3ca7a4c8e029f5d22b4fd2b6ca0f98d2fe2449099032f1f88c05c13ffa0

See more details on using hashes here.

File details

Details for the file aliyundrive_fuse-0.1.8-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

  • Download URL: aliyundrive_fuse-0.1.8-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: Python 3, manylinux: glibc 2.5+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for aliyundrive_fuse-0.1.8-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2f20cb52aa68925d7b51958165140bd136f840496b3a82be1d67d9242a224eb1
MD5 c25f3d52d06e7324cd62419c0b6d29e9
BLAKE2b-256 f8d2f1364805ce21c6dcaee79be6e1298c98a7e468c9d5f8f0a29547f122fb03

See more details on using hashes here.

File details

Details for the file aliyundrive_fuse-0.1.8-py3-none-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

  • Download URL: aliyundrive_fuse-0.1.8-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/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for aliyundrive_fuse-0.1.8-py3-none-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 74b982ead5fa2e44089807e4e8c229184f6dcb8de916372f28fb1691aad70d96
MD5 97f41c543cfdc775b39cfd22ff8b9666
BLAKE2b-256 86b4feec28818478f40da8636df36ba6a8bd719eb393990a87e917e7619d33bc

See more details on using hashes here.

File details

Details for the file aliyundrive_fuse-0.1.8-py3-none-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: aliyundrive_fuse-0.1.8-py3-none-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: Python 3, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for aliyundrive_fuse-0.1.8-py3-none-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 7e6fa518574e595186668cbd1ec8ac0e2caf38524044344d4dbbf9905b3538a2
MD5 9aad47b56dac89e02186666bf245c63a
BLAKE2b-256 2f301a391b4c8311911ef8171e9d7e0e88dd8b84fd7c7acfd69cc7bac39a8407

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page