Skip to content

Commit 16f36ec

Browse files
author
“bingtao”
committed
chore: update fundrive to 2.0.76, use read_secret for webdav config
1 parent 4cdcd36 commit 16f36ec

2 files changed

Lines changed: 7 additions & 16 deletions

File tree

example/t1.py

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
1-
from fundrive.drives.pan115 import Pan115Drive
1+
from nltsecret import read_secret
22

3-
4-
drive = Pan115Drive()
5-
drive.login()
6-
7-
8-
def add(fid):
9-
for f in drive.get_dir_list(fid):
10-
print(f)
11-
add(f["fid"])
12-
for f in drive.get_file_list(fid):
13-
print(f)
14-
15-
16-
add("3383167882122639641")
3+
read_secret(
4+
"fundrive", "webdav", "funtrack", "server_url", "http://192.168.31.131:19798/dav/"
5+
)
6+
read_secret("fundrive", "webdav", "funtrack", "username", value="funtrack")
7+
read_secret("fundrive", "webdav", "funtrack", "password", value="funtrack")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "fundrive"
3-
version = "2.0.74"
3+
version = "2.0.76"
44
description = "fundrive"
55
readme = "README.md"
66
requires-python = ">=3.12"

0 commit comments

Comments
 (0)