No project description provided
Project description
易于使用,人性化的阿里云oss工具包
安装
pip install osscore
使用
OSSFileSystem
- access_key_id or define env OSS_ACCESS_KEY_ID
- access_key_secret or define env OSS_ACCESS_KEY_SECRET
- endpoint or define env OSS_ENDPOINT
- token
上传文件
from osscore import OSSFileSystem
OSSFileSystem().upload("bucket_name", "local_path", "key")
下载文件
local_path 不写会返回 temp file
from osscore import OSSFileSystem
OSSFileSystem().download("bucket_name", "key", "local_path")
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
osscore-0.1.3.tar.gz
(5.8 kB
view hashes)