
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
[!WARNING]
本SDK默认API已切换为异步API,若需要使用同步API,请使用AListSync
和AListAdminSync
,或安装1.3.2
及以下的版本
AList3SDK 是一个高性能的 Python SDK,用于与 AList 服务轻松交互 🚀。它支持异步和同步 API ⚡,并提供完善的类型注解 📝,让开发更高效!
您可以使用 pip 安装 AList3SDK:
pip install alist3
使用 AList3SDK,您可以轻松地与 AList 服务进行交互。以下是一个快速示例:
import asyncio
from alist import AList, AListUser
# 初始化 AList3SDK 客户端
user = AListUser("<your-user-name>", "<your-password>") # 用户名和密码
client = AList("<your-server-url>") # 服务器 URL
async def main():
# 登录
await client.login(user)
# 列出指定目录下的文件
res = await client.list_dir("/test")
# 打印目录内容
async for item in res:
print(item)
# 运行异步任务
asyncio.run(main())
有关示例代码,请参阅我们的 文档📄。
请参阅我们的 文档📄。
Q: 如果遇到身份验证问题应该怎么办?
A: 请确保您的 AList地址和账号密码正确,并具有足够的权限。
我们欢迎社区贡献者为改进和完善 AList3SDK 做出贡献。如果发现任何 bug 或有新的功能建议,请提交 issue 或 PR。
FAQs
AList V3 PythonSDK
We found that alist3 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.