Uploader files in a folder to Aliyun OSS
Project description
Uploader all files in a folder to Aliyun OSS
Must load OSS_ACCESS_KEY_ID
and OSS_ACCESS_KEY_SECRET
into environment variables first.
Install
pip install oss2-uploader
Usage
only executable under if __name__ == "__main__":
if __name__ == "__main__":
from oss2_uploader import folder_uploader
folder_uploader(, ,
folder_path="./test-folder,
bucket_name="test-bucket",
oss_endpoint="oss-ap-southeast-1.aliyuncs.com",
oss_path="pathname",
)
if oss_path
is omitted, will use the folder name as prefix in oss
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
oss2_uploader-0.0.9.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for oss2_uploader-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c5ee8d1006fd42221b3826ac60950654a104726ef34cda3024ec7fe7e509d0a |
|
MD5 | c67dcc8271d1913c71a2e42207c47ca9 |
|
BLAKE2b-256 | c37182c959c09d42a373404f453eb529239c08b6cd5e396e36ef27bcab04dc76 |