Coder Social home page Coder Social logo

oss-sdk-python's Introduction

适用于 Python 的 云存储开发工具包

oss-sdk-python 是适用于 Python 编程语言的开发工具包。

SDK 需要 Python 3.7 的最低版本。

入门

假设您安装了受支持的 Python 版本,您可以先设置您的环境:

$ python -m venv .venv
...
$ . .venv/bin/activate

然后,您可以使用以下命令从 PyPI 安装 boto3:

$ python -m pip install oss-sdk-python

或从源代码安装:

$ git clone https://github.com/oss/oss-sdk-python.git
$ cd oss-sdk-python
$ python -m pip install -e .
代码示例
import oss

s3 = oss.resource('s3', endpoint_url='',
access_key_id='jvv4i43jx5jjszcjwxn4xvlf72kq',
secret_access_key='j27ksdw63rbqmalfge23ss4aqg5tbfmkz7qeanrbguvyysp7xokh2',
)
s3.create_bucket(Bucket="bucket1")

oss-sdk-python's People

Contributors

qtdslly avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.