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
Release history Release notifications | RSS feed
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file osscore-0.1.3.tar.gz.
File metadata
- Download URL: osscore-0.1.3.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffc909e81c90c523cb681e2a95f9543dfcfeef6416b1a45db6d5989cd54781be
|
|
| MD5 |
ae166e162c64c08c10b0ea20abc47f86
|
|
| BLAKE2b-256 |
6a343bbcb61a4ee894e2e185d19f355b490f36c9710cd0fd0b6302ccac37c1d9
|
File details
Details for the file osscore-0.1.3-py3-none-any.whl.
File metadata
- Download URL: osscore-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0625d702465bedfd4ca4bf6fe1a80d1c5842fce7e69551610959281f7d66d135
|
|
| MD5 |
9ec7989f751e024e856029edf194c26d
|
|
| BLAKE2b-256 |
b7b1db3d964b2e906a4720e5b7faa8b22736571ffffcbe08d880042d1e9d7005
|