WebDAV server for AliyunDrive
Project description
aliyundrive-webdav
阿里云盘 WebDAV 服务
安装
可以从 GitHub Releases 页面下载预先构建的二进制包, 也可以使用 pip 从 PyPI 下载:
pip install aliyundrive-webdav
OpenWrt 路由器
GitHub Releases 中有预编译的 ipk 文件, 目前提供了 aarch64 和 arm 两个版本,可以下载后使用 opkg 安装,比如
wget https://github.com/messense/aliyundrive-webdav/releases/download/v0.1.16/aliyundrive-webdav_0.1.16-0_aarch64_generic.ipk
wget https://github.com/messense/aliyundrive-webdav/releases/download/v0.1.16/luci-app-aliyundrive-webdav_0.1.16-0_all.ipk
opkg install aliyundrive-webdav_0.1.16-0_aarch64_generic.ipk
opkg install luci-app-aliyundrive-webdav_0.1.16-0_all.ipk
Koolshare 梅林固件
GitHub Releases 中有预编译包 aliyundrivewebdav-merlin-arm*.tar.gz
,
目前只提供了旧的 arm380 固件的版本,可在下载后在软件中心离线安装。
梅林 384/386 固件也可以离线安装,但后台管理界面可能不工作(暂无机器开发适配,欢迎 PR 修复),可以直接使用 dbus
命令进行配置
dbus set aliyundrivewebdav_refresh_token='xxx' # 阿里云盘 refresh_token
dbus set aliyundrivewebdav_enable=1 # 设置为 0 禁用服务
dbus set aliyundrivewebdav_port=8080 # 监听端口
dbus set aliyundrivewebdav_auth_user=admin # 用户名
dbus set aliyundrivewebdav_auth_password=admin # 密码
并使用 /koolshare/scripts/aliyundrivewebdav_config.sh
命令启动/停止服务。
命令行用法
aliyundrive-webdav --help
aliyundrive-webdav 0.1.16
USAGE:
aliyundrive-webdav [FLAGS] [OPTIONS] --refresh-token <refresh-token>
FLAGS:
-I, --auto-index Automatically generate index.html
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-W, --auth-password <auth-password> WebDAV authentication password [env: WEBDAV_AUTH_PASSWORD=]
-U, --auth-user <auth-user> WebDAV authentication username [env: WEBDAV_AUTH_USER=]
--cache-size <cache-size> Directory entries cache size [default: 1000]
--host <host> Listen host [default: 127.0.0.1]
-p, --port <port> Listen port [default: 8080]
-S, --read-buffer-size <read-buffer-size>
Read/download buffer size in bytes, defaults to 10MB [default: 10485760]
-r, --refresh-token <refresh-token> Aliyun drive refresh token [env: REFRESH_TOKEN=]
获取 refresh_token
登录阿里云盘后,可以在开发者工具 ->
Application -> Local Storage 中的 token
字段中找到。
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
aliyundrive_webdav-0.1.16.tar.gz
(344.2 kB
view hashes)
Built Distributions
Close
Hashes for aliyundrive_webdav-0.1.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65617f6792fc847e099bae7fa9cefe455b27e17a4c6c9ef2ceb8584ea6c6d4d2 |
|
MD5 | c675cea0fa3b17f618c0e5184e049e19 |
|
BLAKE2b-256 | 4774d9b4417a067a8e917dd8068c10dbad0268e5eab4db6bbd5b38b68744b0dc |
Close
Hashes for aliyundrive_webdav-0.1.16-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c08ef9ba13a6022343872e404636b46e719adb4e2a7b0dc2a2baa5db18361e4 |
|
MD5 | 2eeb71d1aa482d1bf2f4d851286e8307 |
|
BLAKE2b-256 | 09e019976d66b15fc5c45305dfad0734f11df768c9adfe88dfa8b9553ac3b834 |
Close
Hashes for aliyundrive_webdav-0.1.16-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc1588293107687c01de51b799d285d608cb96dfae401705520d80fdbf12a7da |
|
MD5 | b992267f33b4ff3f14f698bc0654f32b |
|
BLAKE2b-256 | b8b212d5f8dbc6a2898354db016fcfa18dc86cbf333c2b8a3f9f9c5e3da1ea62 |
Close
Hashes for aliyundrive_webdav-0.1.16-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 192b057c51f377e32fa7be20f6b4bbc2152c05370ff978dbc21235fe97263fac |
|
MD5 | 644e1d6ecec60228f976fa007b451c41 |
|
BLAKE2b-256 | d2ead79d162ed9a9b4636bd4018cbe34da3c70c1814b38384554572ede4b8313 |
Close
Hashes for aliyundrive_webdav-0.1.16-py3-none-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e21e951ae765f3f789b217d45e095f7eb18d49a5fc631e5f3850ad38a9f43782 |
|
MD5 | 1af8fe2f4b19feede703347bb0892223 |
|
BLAKE2b-256 | 343b3daeaf9c40856fafb694897f56d699c1515e7e08de77f8fc2e723a2ec5db |
Close
Hashes for aliyundrive_webdav-0.1.16-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe4967278a827798442f9d272556ae9ab0e687f9d0b88034dcb1bd969682808e |
|
MD5 | f5953c825ff400a1c0c3a39f8320b533 |
|
BLAKE2b-256 | 1819c9047647f350b6ef925b071c1491b23a95a14de137e68706da4af1471a42 |
Close
Hashes for aliyundrive_webdav-0.1.16-py3-none-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e9de492ee2cf2159c4cb0fcb87497823b48092a9bf25362c762b6ab852e6703 |
|
MD5 | 0e2488c736f25afe9195c50927ce9421 |
|
BLAKE2b-256 | 52860253da8cc0eaa81e7687f31aa6148f652ae3a6a463e28778e2942caabf3b |