阿里云oss助手
Project description
pyalioss_util
- alioss_util.py
阿里云oss,使用示例:
access_key_id = ''
access_key_secret = ''
endpoint = 'http://oss-cn-hangzhou.aliyuncs.com'
bucket_name = ''
oss = AliyunOSS(access_key_id, access_key_secret, endpoint, bucket_name)
# 上传对象
object_name = 'test2/docker_test.py'
file_path = '../docker/docker_test.py'
oss.upload_object(object_name, file_path)
# 下载对象
local_file_path = './docker_test.py'
oss.download_object(object_name, local_file_path)
# 删除对象
oss.delete_object(object_name)
# 遍历存储桶中的所有对象
objects = oss.list_files_in_directory()
print(objects)
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
pyalioss_util-1.0.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for pyalioss_util-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60277be25997e5ee8d3e23ab8d20061812a6a13e9589e4e8fc2c4704de3d392c |
|
MD5 | 6bed3adaff98c8ab79a6ab9e6d60dea3 |
|
BLAKE2b-256 | e2aab823bec2e15d387b4d4212b55570fa3f33fe2b4f5148c8f30c4203b28732 |