易于使用,人性化的阿里云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)
| File | Size | Uploaded | |
|---|---|---|---|
| osscore-0.1.3.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| osscore-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
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
|