异步tus (tus.io) 客户端库
项目描述
aiotus - 异步tus客户端库
aiotus
实现了tus协议的客户端。
功能
用法
import aiotus
creation_url = "http://example.com/files"
metadata = {
"Filename": "image.jpeg".encode(),
"Content-Type": "image/jpeg".encode()
}
# Upload a file to a tus server.
with open("image.jpeg", "rb") as f:
location = await aiotus.upload(creation_url, f, metadata)
# 'location' is the URL where the file was uploaded to.
# Read back the metadata from the server.
metadata = await aiotus.metadata(location)
需求
安装
从PyPi安装aiotus
pip install aiotus
可以从TestPyPi安装开发版本
pip install --index-url https://test.pypi.org/simple --extra-index-url https://pypi.ac.cn/simple aiotus
文档
文档可以在aiotus.readthedocs.io找到。
许可证
aiotus
采用Apache 2.0许可证。
项目详情
下载文件
下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。
源代码分发
aiotus-0.1.15.tar.gz (30.0 kB 查看哈希值)
构建分发
aiotus-0.1.15-py3-none-any.whl (16.4 kB 查看哈希值)
关闭
aiotus-0.1.15.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | bcbc5820539119bcb29194fd89007b482e78f84c04a7af542051c6ac26ae7274 |
|
MD5 | 4491a06241ed8c099072d0522d7cca43 |
|
BLAKE2b-256 | c7afcb8b32b5b9fdd8555a9d5559449f7ec1cab873a575ac27c08e1c0c7eae82 |
关闭
aiotus-0.1.15-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 19aca7dacbe86ee82e7b1565626533703240f629045b203926dd6f13513d5e35 |
|
MD5 | 1e342baa017c980a71aea3149dc48a28 |
|
BLAKE2b-256 | b6a31a77dff5d6cf4f6a0603e789bbaa6b51102f6da838d4185f12ef3f54bb5d |