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.1.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for alist_sdk-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08b7fc420c56ca31158468592711a1b708d977b207291bfd2530f32dcda5faf8 |
|
MD5 | 43405f6a6c0ded56f6ca958dc15bc0ac |
|
BLAKE2b-256 | 600a39900b5d1d3c29e67da30f41e33594a64a9744b83c2717c591b724979b57 |