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.15/aliyundrive-webdav_0.1.15-0_aarch64_generic.ipk
wget https://github.com/messense/aliyundrive-webdav/releases/download/v0.1.15/luci-app-aliyundrive-webdav_0.1.15-0_all.ipk
opkg install aliyundrive-webdav_0.1.15-0_aarch64_generic.ipk
opkg install luci-app-aliyundrive-webdav_0.1.15-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.15
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.15.tar.gz
(343.9 kB
view hashes)
Built Distributions
Close
Hashes for aliyundrive_webdav-0.1.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ee6d4b5105fa107bae810408d6cb427ff13ec009765bbc891b6ed67afd701df |
|
MD5 | b101e37953ae06462e668f6e14d36190 |
|
BLAKE2b-256 | 12b994bb598a6ef32b78421b7f3d6954a6d176afa27c1966c7c4ccbe44def2e9 |
Close
Hashes for aliyundrive_webdav-0.1.15-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f95206798ad36c91a103cf67dd6bcfccd0a3d939a7f651c4a71a02d08194871e |
|
MD5 | 8821577304e5d8ff4e4218e7ca9d2a21 |
|
BLAKE2b-256 | 5487ebe9e79a87ff05470076012822c8123c2e49e6f8789e8c2da5081cec8431 |
Close
Hashes for aliyundrive_webdav-0.1.15-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c5e3832b0db2e7e1391081e4eb6c3da04732c2a256e0159e3aefe651c913f8e |
|
MD5 | 1d5edbee2aab32c8e2c19a16a27ce67a |
|
BLAKE2b-256 | 4d93bb1fb46fc6e26fed0af9b822bcfab2981eec886a0ec9e1ab3d126f3c3f44 |
Close
Hashes for aliyundrive_webdav-0.1.15-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e448cecd8c050aa88e1a7e8ffd9e4c2925bf4e9e31ce3321e8b539bac3336f14 |
|
MD5 | 1ebefd9ed71a7df0ca89c6b70d4505d1 |
|
BLAKE2b-256 | 3a887b9b8628ef7e19fb560767f1cd0d6a8dd5c5e23c68fc445af57fe34fb900 |
Close
Hashes for aliyundrive_webdav-0.1.15-py3-none-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ff7d7ba897763d9557c05389d5174adc898e8b4051ce99b6c37247aaf65357b |
|
MD5 | 9aec8e409ff0d954e2f75c961f0178f5 |
|
BLAKE2b-256 | 04ee01ee4daeb3795e1cb255c64d811dbf3fa55973253e0d52685825db2694d8 |
Close
Hashes for aliyundrive_webdav-0.1.15-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35f0bd76a667775c3f79855461a18ffadef4a075dd8d8993fb7e31ec45e391d1 |
|
MD5 | 499257c0fd3104b0f3e4784da2b64aac |
|
BLAKE2b-256 | a7654e3fe5b7cc6df9aecb1abb6ab06100ddf5f47285fea5d4bfd11b330e494b |
Close
Hashes for aliyundrive_webdav-0.1.15-py3-none-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfb710ebe349a3e2bd906cd04814e51c0073a8e5461f3697c97f1e4a9ee90c15 |
|
MD5 | 59bf9b24b0e7fcf2f4b72477c5cadfab |
|
BLAKE2b-256 | a3d783efd120809cda6422869c9b000c08d13fa70003d7366cf90a2736f2819f |