Skip to main content

易于使用,人性化的阿里云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")

Metadata

Release files for osscore 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for osscore 0.1.3
File Size Uploaded Provenance Actions
osscore-0.1.3.tar.gz 5.8 kB Without provenance Details for osscore-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for osscore 0.1.3
File Interpreter ABI Platform Actions
osscore-0.1.3-py3-none-any.whl Python 3 none any Details for osscore-0.1.3-py3-none-any.whl

Total release size: 12.1 kB

Release files / osscore-0.1.3.tar.gz

Download URL osscore-0.1.3.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ffc909e81c90c523cb681e2a95f9543dfcfeef6416b1a45db6d5989cd54781be
BLAKE2b-256 checksum
How to use checksums
6a343bbcb61a4ee894e2e185d19f355b490f36c9710cd0fd0b6302ccac37c1d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.7

Release files / osscore-0.1.3-py3-none-any.whl

Download URL osscore-0.1.3-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0625d702465bedfd4ca4bf6fe1a80d1c5842fce7e69551610959281f7d66d135
BLAKE2b-256 checksum
How to use checksums
b7b1db3d964b2e906a4720e5b7faa8b22736571ffffcbe08d880042d1e9d7005
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.7

Security for osscore 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page