Alist API 简单封装.
Project description
Alist Sdk
Alist API 简单封装
Alist API 文档
安装
pip install alist-sdk
使用
# Sync 模式
from alist_sdk import Client
client = Client(
base_url='http://localhost:5244',
username="",
password="",
token="", # 与 Username Password 二选一
)
client.me()
client.mkdir("/local/test")
# Async 模式
import asyncio
from alist_sdk import AsyncClient
client = AsyncClient(
base_url='http://localhost:5244',
username="",
password="",
token="", # 与 Username Password 二选一
)
asyncio.run(client.me())
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
alist-sdk-0.2.2.tar.gz
(9.2 kB
view hashes)
Built Distribution
Close
Hashes for alist_sdk-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 463785f126d3388fdd127b00d952171f6e26f0754c233fe4618949f2868a880d |
|
MD5 | c49d4df811ce5ba9c85aa0cd78c62414 |
|
BLAKE2b-256 | 65ae981cf734535f8fe8f43204e5a0947d0eb26051e1c5133eea2464b4c047a1 |