Skip to main content

FUSE for AliyunDrive

Project description

aliyundrive-fuse

GitHub Actions PyPI 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.5/aliyundrive-fuse_0.1.5_aarch64_generic.ipk
wget https://github.com/messense/aliyundrive-fuse/releases/download/v0.1.5/luci-app-aliyundrive-fuse_0.1.5_all.ipk
wget https://github.com/messense/aliyundrive-fuse/releases/download/v0.1.5/luci-i18n-aliyundrive-fuse-zh-cn_0.1.5-1_all.ipk
opkg install aliyundrive-fuse_0.1.5_aarch64_generic.ipk
opkg install luci-app-aliyundrive-fuse_0.1.5_all.ipk
opkg install luci-i18n-aliyundrive-fuse-zh-cn_0.1.5-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

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.5.tar.gz (31.8 kB view details)

Uploaded Source

Built Distributions

aliyundrive_fuse-0.1.5-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.5-py3-none-musllinux_1_1_i686.whl (2.2 MB view details)

Uploaded Python 3 musllinux: musl 1.1+ i686

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

Uploaded Python 3 musllinux: musl 1.1+ ARMv7l

aliyundrive_fuse-0.1.5-py3-none-musllinux_1_1_aarch64.whl (2.2 MB view details)

Uploaded Python 3 musllinux: musl 1.1+ ARM64

aliyundrive_fuse-0.1.5-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.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

aliyundrive_fuse-0.1.5-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.5-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.5-py3-none-macosx_10_7_x86_64.whl (2.0 MB view details)

Uploaded Python 3 macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: aliyundrive_fuse-0.1.5.tar.gz
  • Upload date:
  • Size: 31.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aliyundrive_fuse-0.1.5.tar.gz
Algorithm Hash digest
SHA256 960d872d3f3ef3683d3b56ed53dcf87bb866dd04181962ae378a70bf28a85219
MD5 00a78ab17bb9918c84dc1400d18e9037
BLAKE2b-256 274b9f23bb3ed5b8fb7266f65aa855f4234040d17805265b9750ed8d96f01b2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aliyundrive_fuse-0.1.5-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.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aliyundrive_fuse-0.1.5-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 a83c9af48564777654a7d2e57471e9b107556d958e8210d4eeaf5b6f26e6f3bb
MD5 718011926afd13e5926a95f118b339e2
BLAKE2b-256 bb1b39b5bb46cf25a57ac2dc076080f5c2854c9911e140dab9b59ce2efa9b1c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aliyundrive_fuse-0.1.5-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.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aliyundrive_fuse-0.1.5-py3-none-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 426767b05496205c0c9c87de68df6d3c9c2895315a77b575ad8e65c322500b72
MD5 f410c1070fb2b0ea1d6f00fbccd5c368
BLAKE2b-256 cdfe7f8ac548cad9ebb618c4899476d268f8f5ec504cd6ca89757d48c9e6b143

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aliyundrive_fuse-0.1.5-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.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aliyundrive_fuse-0.1.5-py3-none-musllinux_1_1_armv7l.whl
Algorithm Hash digest
SHA256 49f1b110d0ef3d5c49252fb98a90994d5133814809559c40b4e032cda8dc6d4d
MD5 b6100cd7212122fc152bdcb02654f226
BLAKE2b-256 acaed04cf00925ef6ab74089257bdf207feb8d81ee5b00c5a6afbb0f89533c05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aliyundrive_fuse-0.1.5-py3-none-musllinux_1_1_aarch64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: Python 3, musllinux: musl 1.1+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aliyundrive_fuse-0.1.5-py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 6702065b3a87e1d28dbce0f4ceee4258d10ebbc8c8a9fe28fc1f42fc8e2e45c2
MD5 edbaf9fead65233d1c0450b6906c32be
BLAKE2b-256 c685d47f4514590bfe1586dbcbc15f9a95dee4923e038c42d421709048780c1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aliyundrive_fuse-0.1.5-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 04d9a7362c51e20fac88647a12be7fbeb1c3f7ff59617193f0971b94bab2f9e6
MD5 2fe2f063b1186ff62ec28199be059ef7
BLAKE2b-256 eb9789cead2e9a205f9b0956d6e22aaf80d185e2ab81a0db9d71f0f8310dedce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aliyundrive_fuse-0.1.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 06d028f9e919eac3a394acba2f6cb5d1e2084f896e30c449648bd30ca5db4abf
MD5 c486fd1c7fe5f6df5d96e9800544b07e
BLAKE2b-256 886831611347c2f21ade903b466696a0a361d528f09520969f4fbf0661dce386

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aliyundrive_fuse-0.1.5-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cf897b3d304e1b5141355f152ac6ebb14b60eca44c5d2845a4c50e10447e6c23
MD5 59ef36637b84f442a6f99ae28d13a66c
BLAKE2b-256 ae97a37894ad24a0ffd51e0e9255ed536a6efb560c41d46e0e5c56a28636493e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aliyundrive_fuse-0.1.5-py3-none-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 a4ef873fb24d1cd8de1fd41c74eba820c19271f9b8815f92afac2327ce81c261
MD5 3d1e42187200c2674d7a244e429d7e91
BLAKE2b-256 96e5f7dfece2b0abc652dd25508be7a97d4771eefa324957d32c78b7a1933e3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aliyundrive_fuse-0.1.5-py3-none-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 3, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aliyundrive_fuse-0.1.5-py3-none-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 3379485ca0688396cf01934253ada0d8bf54226e57ce280be6852a008de8d0d0
MD5 a4bb77cf89a899b31e4efb30dad39caf
BLAKE2b-256 fa1607c6a2f63bb176c46ba74cbc0ade1ce421630f304c32a98ac297fd44d865

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