Alist API 简单封装.
Project description
Alist Sdk
Alist API 简单封装
Alist API 文档
安装
pip install alist-sdk
使用
客户端或异步客户端方法签名于API基本一致。
# 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.4.tar.gz
(10.3 kB
view hashes)
Built Distribution
alist_sdk-0.2.4-py3-none-any.whl
(10.5 kB
view hashes)
Close
Hashes for alist_sdk-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba2cac42811f19105db183238a8fab9ce38d1e087f6868f9b744da2aa2f79956 |
|
MD5 | 98b731a69c9d7504102c99be2faf331f |
|
BLAKE2b-256 | 872ee04abc5a60dd57e8ea961bfaa4b1ffe96cef29d6affca67cf710df645dc5 |