This commit is contained in:
“shengyudong”
2026-01-06 14:18:39 +08:00
commit 5a384b694e
10345 changed files with 2050918 additions and 0 deletions

View File

@@ -0,0 +1 @@
pip

View File

@@ -0,0 +1,185 @@
Metadata-Version: 2.4
Name: oss2
Version: 2.18.0
Summary: Aliyun OSS (Object Storage Service) SDK
Home-page: http://oss.aliyun.com
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
License-File: LICENSE
Requires-Dist: requests!=2.9.0
Requires-Dist: crcmod>=1.7
Requires-Dist: pycryptodome>=3.4.7
Requires-Dist: aliyun-python-sdk-kms>=2.4.1
Requires-Dist: aliyun-python-sdk-core>=2.13.12
Requires-Dist: six
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary
Alibaba Cloud OSS SDK for Python
================================
.. image:: https://badge.fury.io/py/oss2.svg
:target: https://badge.fury.io/py/oss2
.. image:: https://travis-ci.org/aliyun/aliyun-oss-python-sdk.svg?branch=master
:target: https://travis-ci.org/aliyun/aliyun-oss-python-sdk
.. image:: https://coveralls.io/repos/github/aliyun/aliyun-oss-python-sdk/badge.svg?branch=master
:target: https://coveralls.io/github/aliyun/aliyun-oss-python-sdk?branch=master
`README of Chinese <https://github.com/aliyun/aliyun-oss-python-sdk/blob/master/README-CN.rst>`
Overview
--------
Alibaba Cloud Object Storage Python SDK 2.x. This version is not compatible with the previous version (Version 0.x). The package name is `oss2` to avoid conflict with previous versions.
The SDK of this version is dependent on the third-party HTTP library `requests <https://github.com/kennethreitz/requests>`_ and `crcmod`. Install the SDK following the methods below.
Note:
This version does not contain the `osscmd` command line tool.
Running environment
-------------------
Python 2.6(not recommended)2.73.3(not recommended)3.43.53.6
Note:
Python 2.6 is not recommended because it is no longer supported by the Python core team.
Do not use Python 3.3.0 or 3.3.1. Refer to `Python Issue 16658 <https://bugs.python.org/issue16658>`_.
Installing
----------
Install the official release version through PIP (taking Linux as an example):
.. code-block:: bash
$ pip install oss2
You can also install the unzipped installer package directly:
.. code-block:: bash
$ sudo python setup.py install
Getting started
---------------
.. code-block:: python
# -*- coding: utf-8 -*-
import oss2
endpoint = 'http://oss-cn-hangzhou.aliyuncs.com' # Suppose that your bucket is in the Hangzhou region.
auth = oss2.Auth('<Your AccessKeyID>', '<Your AccessKeySecret>')
bucket = oss2.Bucket(auth, endpoint, '<your bucket name>')
# The object key in the bucket is story.txt
key = 'story.txt'
# Upload
bucket.put_object(key, 'Ali Baba is a happy youth.')
# Download
bucket.get_object(key).read()
# Delete
bucket.delete_object(key)

View File

@@ -0,0 +1,47 @@
oss2-2.18.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
oss2-2.18.0.dist-info/METADATA,sha256=hFnC77NfdhBPnfsuo0jwJHQIaZ09vcaRX0NUHS5gMtY,6270
oss2-2.18.0.dist-info/RECORD,,
oss2-2.18.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
oss2-2.18.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
oss2-2.18.0.dist-info/licenses/LICENSE,sha256=LBCQE2XK-42c0CWPGXvLIZMsFtn69CqlHFvYqDk5R_4,1053
oss2-2.18.0.dist-info/top_level.txt,sha256=Q_qcZgb_SXrk4yJKNTUBw-FuCvuOjRZL07JtDhoc3Sw,5
oss2/__init__.py,sha256=7ffbsMD7tpu2PuxhriGd7OvudYpSglYkYVSdZ1nLoF8,2864
oss2/__pycache__/__init__.cpython-312.pyc,,
oss2/__pycache__/api.cpython-312.pyc,,
oss2/__pycache__/auth.cpython-312.pyc,,
oss2/__pycache__/compat.cpython-312.pyc,,
oss2/__pycache__/crc64_combine.cpython-312.pyc,,
oss2/__pycache__/credentials.cpython-312.pyc,,
oss2/__pycache__/crypto.cpython-312.pyc,,
oss2/__pycache__/crypto_bucket.cpython-312.pyc,,
oss2/__pycache__/defaults.cpython-312.pyc,,
oss2/__pycache__/exceptions.cpython-312.pyc,,
oss2/__pycache__/headers.cpython-312.pyc,,
oss2/__pycache__/http.cpython-312.pyc,,
oss2/__pycache__/iterators.cpython-312.pyc,,
oss2/__pycache__/models.cpython-312.pyc,,
oss2/__pycache__/resumable.cpython-312.pyc,,
oss2/__pycache__/select_params.cpython-312.pyc,,
oss2/__pycache__/select_response.cpython-312.pyc,,
oss2/__pycache__/task_queue.cpython-312.pyc,,
oss2/__pycache__/utils.cpython-312.pyc,,
oss2/__pycache__/xml_utils.cpython-312.pyc,,
oss2/api.py,sha256=kEeGq52xzFgmdo00lUGHey8sOx4O_uJWTV6D-N5GjLs,146984
oss2/auth.py,sha256=0avgYNS2_q_YbIMrAwIZ3oygT2zhiY8nXacqlLudLV8,28925
oss2/compat.py,sha256=t7X7s3-odpVpqEEapvL68ddzqMLn14D93cSwHKrV5Z0,2283
oss2/crc64_combine.py,sha256=6RakjPWxQeyuowPCN4YiDBaXYXwwz1soIxuZXyRJsIs,4913
oss2/credentials.py,sha256=zG1j9nRa5PHemrYlNXhRCduE1bp_YxYy9I5MibhnyLM,5648
oss2/crypto.py,sha256=K5hCbKD8-jGCzt_09XCQviHylM4tYgV_9NlGiAHm5DY,15091
oss2/crypto_bucket.py,sha256=ciLzpSHu2DGjcOV9PV2WXsEbLuukeUcrDxEIk-3pygU,17743
oss2/defaults.py,sha256=GzcPYt28dUZnfMCQgVDdGASkg6jJ3Y_WOjsw6Rl7cNw,985
oss2/exceptions.py,sha256=AxKZQgwy3ghw9zfv3OsB0yfLMOabxDA8N39-G8Zb3Qc,9375
oss2/headers.py,sha256=v-YZdTxrEp_tXPXiokpy4uKsLguttIL6pOOa7t3FUmA,3593
oss2/http.py,sha256=qru-l37mof_9xnYu2t7h1Yfr5egkAy22pC2cfTxg1M8,5764
oss2/iterators.py,sha256=sXb2su0_rFrPbOQuOWQBeP-anH4W7NMAQ0KUpUwsFtM,12793
oss2/models.py,sha256=eCFgleZ63iJp8EoRwXCyVyGbirCUWRB4xRU0ffCu-eM,100659
oss2/resumable.py,sha256=aSv37Ci7lA-aybuq6MVTcfBVcNOOn9cl4qJUgdwlSN8,37191
oss2/select_params.py,sha256=JCXAgfCFrWG3y8mvOv00nB2GqSEQ16DEg7dN8Aqar9k,1210
oss2/select_response.py,sha256=6Peafs8JpvmPEWU0etYQH6A5p2vdSR-2EYpgUzoxfag,10063
oss2/task_queue.py,sha256=p3PZVtmCy7beRYnxvEJn3em3M5GUsNFrTowPihH5f8A,2311
oss2/utils.py,sha256=AzRpJCDktfLwIrvyEwXCZ_-gPC4qvrOqRvGqKUeCc0E,26046
oss2/xml_utils.py,sha256=a7rnI58Hkgwdy1braW7vkUqBV-y4crfsZm3a4g6UvCk,92090

View File

@@ -0,0 +1,5 @@
Wheel-Version: 1.0
Generator: setuptools (80.9.0)
Root-Is-Purelib: true
Tag: py3-none-any

View File

@@ -0,0 +1,14 @@
Copyright (c) 2015 aliyun.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1 @@
oss2