Skip to main content

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


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)

Uploaded Source

Built Distribution

osscore-0.1.3-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page