{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "Alibaba Cloud OSS SDK for Python\n================================\n\n.. image:: https://badge.fury.io/py/oss2.svg\n :target: https://badge.fury.io/py/oss2\n.. image:: https://travis-ci.org/aliyun/aliyun-oss-python-sdk.svg?branch=master\n :target: https://travis-ci.org/aliyun/aliyun-oss-python-sdk\n.. image:: https://coveralls.io/repos/github/aliyun/aliyun-oss-python-sdk/badge.svg?branch=master\n :target: https://coveralls.io/github/aliyun/aliyun-oss-python-sdk?branch=master\n\n`README of Chinese `\n\nOverview\n--------\n\nAlibaba 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. \n\n\nThe SDK of this version is dependent on the third-party HTTP library `requests `_ and `crcmod`. Install the SDK following the methods below. \n\nNote:\n\n This version does not contain the `osscmd` command line tool. \n\nRunning environment\n-------------------\n\nPython 2.6(not recommended)\uff0c2.7\uff0c3.3(not recommended)\uff0c3.4\uff0c3.5\uff0c3.6\n\n\nNote:\n Python 2.6 is not recommended because it is no longer supported by the Python core team. \n Do not use Python 3.3.0 or 3.3.1. Refer to `Python Issue 16658 `_.\n\nInstalling\n----------\n\nInstall the official release version through PIP (taking Linux as an example): \n\n.. code-block:: bash\n\n $ pip install oss2\n\nYou can also install the unzipped installer package directly: \n\n.. code-block:: bash\n\n $ sudo python setup.py install\n\n\nGetting started\n---------------\n\n.. code-block:: python\n\n # -*- coding: utf-8 -*-\n\n import oss2\n\n endpoint = 'http://oss-cn-hangzhou.aliyuncs.com' # Suppose that your bucket is in the Hangzhou region. \n\n auth = oss2.Auth('', '')\n bucket = oss2.Bucket(auth, endpoint, '')\n\n # The object key in the bucket is story.txt\n key = 'story.txt'\n\n # Upload\n bucket.put_object(key, 'Ali Baba is a happy youth.')\n\n # Download\n bucket.get_object(key).read()\n\n # Delete\n bucket.delete_object(key)\n\n # Traverse all objects in the bucket\n for object_info in oss2.ObjectIterator(bucket):\n print(object_info.key)\n\nFor more examples, refer to the code under the \"examples\" directory. \n\nHandling errors\n---------------\n\nThe Python SDK interface will throw an exception in case of an error (see oss2.exceptions sub-module) unless otherwise specified. An example is provided below:\n\n.. code-block:: python\n\n try:\n result = bucket.get_object(key)\n print(result.read())\n except oss2.exceptions.NoSuchKey as e:\n print('{0} not found: http_status={1}, request_id={2}'.format(key, e.status, e.request_id))\n\nSetup Logging\n---------------\n\nThe following code can set the logging level of 'oss2'.\n .. code-block:: python\n\n import logging\n logging.getLogger('oss2').setLevel(logging.WARNING)\n\nTesting\n-------\n\nFirst set the required AccessKeyId, AccessKeySecret, endpoint and bucket information for the test through environment variables (**Do not use the bucket for the production environment**). \nTake the Linux system for example: \n\n.. code-block:: bash\n\n $ export OSS_TEST_ACCESS_KEY_ID=\n $ export OSS_TEST_ACCESS_KEY_SECRET=\n $ export OSS_TEST_ENDPOINT=\n $ export OSS_TEST_BUCKET=\n\n $ export OSS_TEST_STS_ID=\n $ export OSS_TEST_STS_KEY=\n $ export OSS_TEST_STS_ARN=\n\n\nRun the test in the following method: \n\n.. code-block:: bash\n\n $ nosetests # First install nose\n\n\nYou can set environment variable to test auth v2:\n\n.. code-block:: bash\n\n $ export OSS_TEST_AUTH_VERSION=v2\n\nMore resources\n--------------\n- `More examples `_. \n- `Python SDK API documentation `_. \n- `Official Python SDK documentation `_.\n\nContacting us\n-------------\n- `Alibaba Cloud OSS official website `_.\n- `Alibaba Cloud OSS official forum `_.\n- `Alibaba Cloud OSS official documentation center `_.\n- Alibaba Cloud official technical support: `Submit a ticket `_.\n\nLicense\n-------\n- `MIT `_.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://oss.aliyun.com", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "oss2", "package_url": "https://pypi.org/project/oss2/", "platform": "", "project_url": "https://pypi.org/project/oss2/", "project_urls": { "Homepage": "http://oss.aliyun.com" }, "release_url": "https://pypi.org/project/oss2/2.8.0/", "requires_dist": null, "requires_python": "", "summary": "Aliyun OSS (Object Storage Service) SDK", "version": "2.8.0" }, "last_serial": 5655097, "releases": { "2.0.2": [], "2.0.3": [ { "comment_text": "", "digests": { "md5": "6859b77d2425db32054449752cb95182", "sha256": "09f4298e60e8d08d4110c8cfabc6bb39745b60d2d70db4644f156614502ea5a2" }, "downloads": -1, "filename": "oss2-2.0.3.zip", "has_sig": false, "md5_digest": "6859b77d2425db32054449752cb95182", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 60112, "upload_time": "2015-12-12T01:13:03", "url": "https://files.pythonhosted.org/packages/1e/4e/570a16f021d67410ba40223f03c1087ed729f15c8476032aafc8c77eb73a/oss2-2.0.3.zip" } ], "2.0.4": [ { "comment_text": "", "digests": { "md5": "d84bceaa9c84da39df5bffd7b62fc7ce", "sha256": "0033ff84aba92c542135a1de09bbc42bb44ec3b396c325779b33e2975dcac456" }, "downloads": -1, "filename": "oss2-2.0.4.zip", "has_sig": false, "md5_digest": "d84bceaa9c84da39df5bffd7b62fc7ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61009, "upload_time": "2015-12-18T14:42:49", "url": "https://files.pythonhosted.org/packages/66/62/a44cbdad5ce472c890e4178b2205c3db0c128a698fe0aff5696f1704935e/oss2-2.0.4.zip" } ], "2.0.5": [ { "comment_text": "", "digests": { "md5": "fc4a0bb22038389032581aa93fb8c396", "sha256": "e9f8e5255376dd3be549b153720170b7ec2da3e0c50062203d766bb29b101459" }, "downloads": -1, "filename": "oss2-2.0.5.zip", "has_sig": false, "md5_digest": "fc4a0bb22038389032581aa93fb8c396", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 73210, "upload_time": "2016-01-16T03:01:18", "url": "https://files.pythonhosted.org/packages/9a/78/52d6726ff2c555f00462ddaa71c4f318ca80ddc3fb4bb72db7efe87f8ab1/oss2-2.0.5.zip" } ], "2.0.6": [ { "comment_text": "", "digests": { "md5": "ad48bc469eea95e05dd543791ba58ea0", "sha256": "65257d460ad8f2ac789e990b8b2426c939676d1d09c71977e4be9338681106e1" }, "downloads": -1, "filename": "oss2-2.0.6.zip", "has_sig": false, "md5_digest": "ad48bc469eea95e05dd543791ba58ea0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 78825, "upload_time": "2016-03-07T12:10:10", "url": "https://files.pythonhosted.org/packages/0d/71/a0ff1e25baa2e8b92afb66fa6cb20aa48b01fd956a944a929b1865e6d366/oss2-2.0.6.zip" } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "0d3dc78d3dc95c0ccd4b18edde813041", "sha256": "1d1a44b947a1d1b0802aa67593f295b770cb48f5f853cea1e6900b90b9e6f2a8" }, "downloads": -1, "filename": "oss2-2.1.0.zip", "has_sig": false, "md5_digest": "0d3dc78d3dc95c0ccd4b18edde813041", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 87772, "upload_time": "2016-03-25T06:08:22", "url": "https://files.pythonhosted.org/packages/9f/81/c6e3a8e3b940dc70a6219ee7ada3af5585d702dd17b226a551695f7c0561/oss2-2.1.0.zip" } ], "2.1.1": [ { "comment_text": "", "digests": { "md5": "69db0127814c88912f6b7819ffb9ccc5", "sha256": "cf08e8c1975d078279deac377d411d8ed6fbe6d8ad0b1f3287957e8c48963614" }, "downloads": -1, "filename": "oss2-2.1.1.zip", "has_sig": false, "md5_digest": "69db0127814c88912f6b7819ffb9ccc5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 87903, "upload_time": "2016-03-30T07:47:23", "url": "https://files.pythonhosted.org/packages/b4/77/a944dfabdb48b20ad012c0887c6c8857161138a2a40398340b685b492483/oss2-2.1.1.zip" } ], "2.2.0": [ { "comment_text": "", "digests": { "md5": "a031a6f4e2cbb7699753b5ca9527417f", "sha256": "f910f5b7a721963bbce21e1f3b2901c1d6f3121eba96df99f2c6057a1358f5b3" }, "downloads": -1, "filename": "oss2-2.2.0.zip", "has_sig": false, "md5_digest": "a031a6f4e2cbb7699753b5ca9527417f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 109257, "upload_time": "2016-08-29T02:13:03", "url": "https://files.pythonhosted.org/packages/19/95/6f1540d2df7232f87b256296cc62202289c2787ab30aa17f862f9a158f17/oss2-2.2.0.zip" } ], "2.2.1": [ { "comment_text": "", "digests": { "md5": "038338059e507209383df2ecc7a4779e", "sha256": "500457685eb9f8c251f0009370daabc2f11b056347cd9ebeca0692a5c7f4baef" }, "downloads": -1, "filename": "oss2-2.2.1.zip", "has_sig": false, "md5_digest": "038338059e507209383df2ecc7a4779e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 124133, "upload_time": "2016-11-11T07:29:00", "url": "https://files.pythonhosted.org/packages/9b/34/fb1e397f4db5de6182b03edfae544179ea4fa0f8c09bb32791e39dfdd528/oss2-2.2.1.zip" } ], "2.2.2": [ { "comment_text": "", "digests": { "md5": "ad6edd920f2984fbab69f3135d778a37", "sha256": "1de808c8b28b461f5babebcf38fb0cef802f8309531aadad0bf24c9a1998fe15" }, "downloads": -1, "filename": "oss2-2.2.2.zip", "has_sig": false, "md5_digest": "ad6edd920f2984fbab69f3135d778a37", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 124375, "upload_time": "2016-11-14T11:24:38", "url": "https://files.pythonhosted.org/packages/55/a5/60b192f5f7b986d39a3aa70b5b5ce9569dd5fc2e056d5f821577c0b0c2c7/oss2-2.2.2.zip" } ], "2.2.3": [ { "comment_text": "", "digests": { "md5": "d90cc595ae1a62917a1481b08cbd87e4", "sha256": "b7a024b009f896fae30185f92f7664ab2010f381a025e8e1b6ed60ece266e992" }, "downloads": -1, "filename": "oss2-2.2.3.zip", "has_sig": false, "md5_digest": "d90cc595ae1a62917a1481b08cbd87e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 124643, "upload_time": "2017-01-11T09:38:40", "url": "https://files.pythonhosted.org/packages/24/9e/8ca424fe573f13b17a841ced0bcdc68e8aa99cdb53d37175c0c02d8893cc/oss2-2.2.3.zip" } ], "2.3.0": [ { "comment_text": "", "digests": { "md5": "c379f77ec909be132d779bc70126c744", "sha256": "92579e7720f7ca0cbd243e3963e9c8485678018f66717bc53f1e03ea2ac79e51" }, "downloads": -1, "filename": "oss2-2.3.0.zip", "has_sig": false, "md5_digest": "c379f77ec909be132d779bc70126c744", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 125478, "upload_time": "2017-04-07T07:49:11", "url": "https://files.pythonhosted.org/packages/98/98/ebe1cc1858126b2b1710993469d1071575ec215ac143118564a371966662/oss2-2.3.0.zip" } ], "2.3.1": [ { "comment_text": "", "digests": { "md5": "aa5a7fe4d3c7c2cc4de5ad56d5261ffe", "sha256": "367aef7ba42b99789c6b5cbba63455942897075edd45796df3acb7a3437a817e" }, "downloads": -1, "filename": "oss2-2.3.1.zip", "has_sig": false, "md5_digest": "aa5a7fe4d3c7c2cc4de5ad56d5261ffe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 126202, "upload_time": "2017-05-03T01:27:51", "url": "https://files.pythonhosted.org/packages/61/a5/7274ee55711c9a123c52fe8c7eadedb5d1747151464585a2e81dbfb8a53d/oss2-2.3.1.zip" } ], "2.3.2": [ { "comment_text": "", "digests": { "md5": "81048e2c799cae6411064fa6e33c728a", "sha256": "13cfcf0587893b9bf0e33fdfaa3bc0fa4bf3b13ae36800c71a2aef0bc60a8d46" }, "downloads": -1, "filename": "oss2-2.3.2.zip", "has_sig": false, "md5_digest": "81048e2c799cae6411064fa6e33c728a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 126981, "upload_time": "2017-05-26T05:52:57", "url": "https://files.pythonhosted.org/packages/30/3a/b62139971aeee3a411e9840688ce4f4f419f0c290229d9e2a128a5ef1330/oss2-2.3.2.zip" } ], "2.3.3": [ { "comment_text": "", "digests": { "md5": "61bc2911bad687763b81b9b3578ce5a7", "sha256": "9f130df9f10195aeec4cc44280ad2586308b5f26114c89c5d2db0376f9e829d2" }, "downloads": -1, "filename": "oss2-2.3.3.zip", "has_sig": false, "md5_digest": "61bc2911bad687763b81b9b3578ce5a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 127920, "upload_time": "2017-06-22T02:57:24", "url": "https://files.pythonhosted.org/packages/fa/22/444459b0f35a62dfe45ad156d1f4db7f37ecf6271b2bec1c7d38499374c8/oss2-2.3.3.zip" } ], "2.3.4": [ { "comment_text": "", "digests": { "md5": "9a3c20c14f7d1cc496098a07e1a0eca6", "sha256": "66fbda506e22cac34e3fe97cc6a37f0276e4c09a0cf35e78b27e27097d90c8c8" }, "downloads": -1, "filename": "oss2-2.3.4.zip", "has_sig": false, "md5_digest": "9a3c20c14f7d1cc496098a07e1a0eca6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 130630, "upload_time": "2017-09-19T11:35:53", "url": "https://files.pythonhosted.org/packages/91/0f/f7545e77ca6241a5d59340bd510472f69deba9a2119f593334632d932bbb/oss2-2.3.4.zip" } ], "2.4.0": [ { "comment_text": "", "digests": { "md5": "7e4a841e955e2f029a71f55aec80f72d", "sha256": "a26b2126db974726a3350d7bb96e885e9778df2b49fdf8bacdfec7278ec1f7dc" }, "downloads": -1, "filename": "oss2-2.4.0.tar.gz", "has_sig": false, "md5_digest": "7e4a841e955e2f029a71f55aec80f72d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 102782, "upload_time": "2017-11-21T01:45:55", "url": "https://files.pythonhosted.org/packages/57/c2/6ea84c56d398988482610e835b92f2f990e3b439a56f2e7c3fba9c5ae51b/oss2-2.4.0.tar.gz" } ], "2.5.0": [ { "comment_text": "", "digests": { "md5": "7a70577c0394905899085bb5a222af5f", "sha256": "1caca2fc40c2f68f934754d470392e6bb82b039bc7244af84329cca3784b9aec" }, "downloads": -1, "filename": "oss2-2.5.0.tar.gz", "has_sig": false, "md5_digest": "7a70577c0394905899085bb5a222af5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 116714, "upload_time": "2018-05-31T02:00:31", "url": "https://files.pythonhosted.org/packages/35/b0/63cb7865a1b1c18c1e21ea6ceb63ef9cf9d2b31bedcecbc21277b5705b01/oss2-2.5.0.tar.gz" } ], "2.6.0": [ { "comment_text": "", "digests": { "md5": "1eab169989c506807a782e12dd8f9f66", "sha256": "4a80f6e2765460975c44ccba60172088857b08fabd01ff47973e78ca36d4df87" }, "downloads": -1, "filename": "oss2-2.6.0.tar.gz", "has_sig": false, "md5_digest": "1eab169989c506807a782e12dd8f9f66", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 139103, "upload_time": "2018-11-12T11:50:01", "url": "https://files.pythonhosted.org/packages/fe/c6/ab8293c1bcfa5487fe8326c29714767b085d2475fec30d59b71ca77ea006/oss2-2.6.0.tar.gz" } ], "2.6.1": [ { "comment_text": "", "digests": { "md5": "b43e1a7dc3e79e1a061f8cc1e2997602", "sha256": "088c14fca5f13018658a02da36ec68d2636768c7005a4178de14ed7466aa04ae" }, "downloads": -1, "filename": "oss2-2.6.1.tar.gz", "has_sig": false, "md5_digest": "b43e1a7dc3e79e1a061f8cc1e2997602", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 139691, "upload_time": "2019-01-24T07:40:45", "url": "https://files.pythonhosted.org/packages/79/3e/84e5f7d5faa3d7f7b7d4aa239ca92faf3f4bb5503b25b66044ab17e65a76/oss2-2.6.1.tar.gz" } ], "2.7.0": [ { "comment_text": "", "digests": { "md5": "cb4316a3635d81c16c1dc03cefbfa1f3", "sha256": "7d1843a48fe77bbd79183e21fb32a7db22802f91e945392a3d3ed24d66444c98" }, "downloads": -1, "filename": "oss2-2.7.0-py2-none-any.whl", "has_sig": false, "md5_digest": "cb4316a3635d81c16c1dc03cefbfa1f3", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 80589, "upload_time": "2019-06-26T12:28:23", "url": "https://files.pythonhosted.org/packages/55/62/4c729af73ce23908ba974d30e0849d7eb3d713c1c55cf2e73a9ca3008d1d/oss2-2.7.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dbb74e59f5e4526417965a0b60cd4fc9", "sha256": "ac482e3fb1e3c71bf535610aefe25704a2e543224205b3d45669b036882bcee8" }, "downloads": -1, "filename": "oss2-2.7.0.tar.gz", "has_sig": false, "md5_digest": "dbb74e59f5e4526417965a0b60cd4fc9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 155625, "upload_time": "2019-06-26T12:28:26", "url": "https://files.pythonhosted.org/packages/f7/48/d70a29e2e410e1470ec99fd9fb666b30a27d8154eb3259a5bbe731b5aece/oss2-2.7.0.tar.gz" } ], "2.8.0": [ { "comment_text": "", "digests": { "md5": "c2677c4914432955ae458495317b47d7", "sha256": "8dc551e657ea967e83ba14a0f1c69c755467bb188dab3dd96cad58e7af0eed4c" }, "downloads": -1, "filename": "oss2-2.8.0.tar.gz", "has_sig": false, "md5_digest": "c2677c4914432955ae458495317b47d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 171180, "upload_time": "2019-08-09T11:30:30", "url": "https://files.pythonhosted.org/packages/37/7f/feca82c4a73dd2d22d65cfd3eb3b7f7e5b9c3b89bf7a574a1638b11f1b19/oss2-2.8.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c2677c4914432955ae458495317b47d7", "sha256": "8dc551e657ea967e83ba14a0f1c69c755467bb188dab3dd96cad58e7af0eed4c" }, "downloads": -1, "filename": "oss2-2.8.0.tar.gz", "has_sig": false, "md5_digest": "c2677c4914432955ae458495317b47d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 171180, "upload_time": "2019-08-09T11:30:30", "url": "https://files.pythonhosted.org/packages/37/7f/feca82c4a73dd2d22d65cfd3eb3b7f7e5b9c3b89bf7a574a1638b11f1b19/oss2-2.8.0.tar.gz" } ] }