python封装nos上传文件逻辑,支持大文件(>100M)分片上传
安装
pip install nosuplodapi
初始化实例
from uploadapi import UploadClient
# 初始化nos上传实例
uploadClient = UploadClient(access_key="******",
secret_key="******",
bucket="******",
end_point="******")
注: 所需对象存储请到网易云开发者平台申请
上传文件
result = uploadClient.upload(path="******")
返回数据
{
'url': 'nos下载地址',
'fileByteSize': 文件大小,
'md5': '文件md5值',
'fileName': '源文件名'
}
参考文档
Metadata
Release files for nosuplodapi 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nosuplodapi-0.0.2.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nosuplodapi-0.0.2-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 6.2 kB
Release files / nosuplodapi-0.0.2.tar.gz
| Download URL | nosuplodapi-0.0.2.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96e766f1412ca2bf8989965a11846a05f4d4f95a30b50939054783b4f27979f3
|
|
BLAKE2b-256 checksum How to use checksums |
69b6623be5750580c94ec3446b3ca20d48875682d552f8acef02733f4a59865f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.10
|
Release files / nosuplodapi-0.0.2-py2-none-any.whl
| Download URL | nosuplodapi-0.0.2-py2-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
99b8aa5762d79b62f2d6eab3bbc8bf95ea43a11feda62cdb5efbdaac3bb6989c
|
|
BLAKE2b-256 checksum How to use checksums |
4857343ce7ae146f3f15be92d148ed2226c30973d5fdd6a3d0f1458829d734dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.10
|