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

Uploaded Source

Built Distribution

osscore-0.1.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: osscore-0.1.2.tar.gz
  • Upload date:
  • Size: 5.2 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.2.tar.gz
Algorithm Hash digest
SHA256 4728938cc38bfd554d7266034edadd6f631dacf72723f53e03b2563789a151d6
MD5 2e3d951aa45ceb769ca5405fd5e40e15
BLAKE2b-256 069d73c03000f722e00a305c82a633899ca1303d1c3a4680a7dad273c4464d36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: osscore-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 031e97d6511f56387f1f6a8231bda4033f45376cae4e7ece42f68f32fbd39e95
MD5 c5230934a09ea950a4003b75c91ecd9d
BLAKE2b-256 ce0daaca8dc6d7389baba8a8542df197063ff3e54250a24d61edb585101037c5

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