Skip to content

Commit

Permalink
添加README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-cq committed Jan 26, 2024
1 parent 16844b8 commit 7543d0e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,16 @@ client = AsyncClient(

asyncio.run(client.me())
```

像使用pathlib一样操作Alist上的文件
```python
from alist_sdk.path_lib import login_server, AlistPath

login_server("http://localhost:5244", username='admin', password='123456')

path = AlistPath('http://localhost:5244/test')
path.stat()
path.is_dir()
path.read_text()
path.iterdir()
```
2 changes: 1 addition & 1 deletion alist_sdk/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "0.30.1"
__version__ = "0.30.3"

ALIST_VERSION = "v3.30.0"
1 change: 1 addition & 0 deletions tests/test_path_lib.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 测试 path_lib.py

0 comments on commit 7543d0e

Please sign in to comment.