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.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

osscore-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file osscore-0.1.1.tar.gz.

File metadata

  • Download URL: osscore-0.1.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.7

File hashes

Hashes for osscore-0.1.1.tar.gz
Algorithm Hash digest
SHA256 26ddc8442be3e37c07bdc5804c22150b04368d27a562c198dba7329b5a1dacf6
MD5 e290e31b2b30342c689da2b7adcbefa0
BLAKE2b-256 a34ad77ae90326d4324f60a96784dd2d16f0dc086051b55bd92ead8adfed1cec

See more details on using hashes here.

File details

Details for the file osscore-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: osscore-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.7

File hashes

Hashes for osscore-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c83ebbc8f12f006fa73c03d43f3ccf708189e0e86dedc00b7e7dd6e3dfff7fe6
MD5 f7b57859eff329041538107541e44108
BLAKE2b-256 06f67605c43ccef377685866e6aa45a738a73653a4c16aafe6973cb2343a1345

See more details on using hashes here.

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