Skip to main content

阿里云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


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 details)

Uploaded Source

Built Distribution

pyalioss_util-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file pyalioss_util-1.0.0.tar.gz.

File metadata

  • Download URL: pyalioss_util-1.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for pyalioss_util-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c1620d8585e4c7be4e74c3a58ff8c657a6fde2a9fd0558d6e21d31e4b78fdd1f
MD5 9fbbaec461f1ee27555b7c23be25eec5
BLAKE2b-256 fd800d990e1d8cca49cef4849164fbc41d2e18af3745edda78271f4958a7d561

See more details on using hashes here.

File details

Details for the file pyalioss_util-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyalioss_util-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60277be25997e5ee8d3e23ab8d20061812a6a13e9589e4e8fc2c4704de3d392c
MD5 6bed3adaff98c8ab79a6ab9e6d60dea3
BLAKE2b-256 e2aab823bec2e15d387b4d4212b55570fa3f33fe2b4f5148c8f30c4203b28732

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page