Skip to content

merge develop to master #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 18, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions docs/README.gist.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
title: Python SDK 使用指南 | 七牛云存储
title: Python SDK 使用指南
---

# Python SDK 使用指南

此 Python SDK 适用于2.x版本,基于 [七牛云存储官方API](http://docs.qiniu.com/) 构建。使用此 SDK 构建您的网络应用程序,能让您以非常便捷地方式将数据安全地存储到七牛云存储上。无论您的网络应用是一个网站程序,还是包括从云端(服务端程序)到终端(手持设备应用)的架构的服务或应用,通过七牛云存储及其 SDK,都能让您应用程序的终端用户高速上传和下载,同时也让您的服务端更加轻盈。

SDK 下载地址:<https://github.com/qiniu/python-sdk/tags>
Expand Down Expand Up @@ -208,6 +206,7 @@ PutExtra是上传时的可选信息,默认为None
上传文件到七牛(通常是客户端完成,但也可以发生在服务端):

直接上传二进制流

```{python}
@gist(gist/conf.py#config)

Expand Down Expand Up @@ -237,6 +236,7 @@ ret是一个字典,含有`hash`,`key`等信息。
我们来看支持了断点上续传、分块并行上传的基本样例:

上传二进制流

```{python}
@gist(gist/conf.py#config)

Expand All @@ -246,6 +246,7 @@ ret是一个字典,含有`hash`,`key`等信息。
```

上传本地文件

```{python}
@gist(gist/conf.py#config)

Expand Down Expand Up @@ -358,6 +359,7 @@ ret是一个字典,含有`hash`,`key`等信息。

<a name="batch-stat"></a>
##### 批量获取文件信息

```{python}
@gist(gist/conf.py#config)

Expand All @@ -370,6 +372,7 @@ ret是一个字典,含有`hash`,`key`等信息。

<a name="batch-copy"></a>
##### 批量复制文件

```{python}
@gist(gist/conf.py#config)

Expand All @@ -382,6 +385,7 @@ ret是一个字典,含有`hash`,`key`等信息。

<a name="batch-move"></a>
##### 批量移动文件

```{python}
@gist(gist/conf.py#config)

Expand All @@ -394,6 +398,7 @@ ret是一个字典,含有`hash`,`key`等信息。

<a name="batch-delete"></a>
##### 批量删除文件

```{python}
@gist(gist/conf.py#config)

Expand Down Expand Up @@ -435,6 +440,7 @@ ret是一个字典,含有`hash`,`key`等信息。

<a name="fop-image-info"></a>
##### 查看图像属性

```{python}
@gist(gist/conf.py#config)

Expand All @@ -446,6 +452,7 @@ ret是一个字典,含有`hash`,`key`等信息。

<a name="fop-exif"></a>
##### 查看图片EXIF信息

```{python}
@gist(gist/conf.py#config)

Expand All @@ -458,6 +465,7 @@ ret是一个字典,含有`hash`,`key`等信息。

<a name="fop-image-view"></a>
##### 生成图片预览

```{python}
@gist(gist/conf.py#config)

Expand Down
14 changes: 11 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
title: Python SDK 使用指南 | 七牛云存储
title: Python SDK 使用指南
---

# Python SDK 使用指南

此 Python SDK 适用于2.x版本,基于 [七牛云存储官方API](http://docs.qiniu.com/) 构建。使用此 SDK 构建您的网络应用程序,能让您以非常便捷地方式将数据安全地存储到七牛云存储上。无论您的网络应用是一个网站程序,还是包括从云端(服务端程序)到终端(手持设备应用)的架构的服务或应用,通过七牛云存储及其 SDK,都能让您应用程序的终端用户高速上传和下载,同时也让您的服务端更加轻盈。

SDK 下载地址:<https://github.com/qiniu/python-sdk/tags>
Expand Down Expand Up @@ -230,6 +228,7 @@ class PutExtra(object):
上传文件到七牛(通常是客户端完成,但也可以发生在服务端):

直接上传二进制流

```{python}
import qiniu.conf

Expand Down Expand Up @@ -278,6 +277,7 @@ ret是一个字典,含有`hash`,`key`等信息。
我们来看支持了断点上续传、分块并行上传的基本样例:

上传二进制流

```{python}
import qiniu.conf

Expand All @@ -297,6 +297,7 @@ print ret,
```

上传本地文件

```{python}
import qiniu.conf

Expand Down Expand Up @@ -449,6 +450,7 @@ if err is not None:

<a name="batch-stat"></a>
##### 批量获取文件信息

```{python}
import qiniu.conf

Expand All @@ -469,6 +471,7 @@ if err is not None:

<a name="batch-copy"></a>
##### 批量复制文件

```{python}
import qiniu.conf

Expand All @@ -490,6 +493,7 @@ if not rets[0]['code'] == 200:

<a name="batch-move"></a>
##### 批量移动文件

```{python}
import qiniu.conf

Expand All @@ -511,6 +515,7 @@ if not rets[0]['code'] == 200:

<a name="batch-delete"></a>
##### 批量删除文件

```{python}
import qiniu.conf

Expand Down Expand Up @@ -587,6 +592,7 @@ def list_all(bucket, rs=None, prefix=None, limit=None):

<a name="fop-image-info"></a>
##### 查看图像属性

```{python}
import qiniu.conf

Expand All @@ -612,6 +618,7 @@ print '可以在浏览器浏览: %s' % url

<a name="fop-exif"></a>
##### 查看图片EXIF信息

```{python}
import qiniu.conf

Expand All @@ -638,6 +645,7 @@ print '可以在浏览器浏览: %s' % url

<a name="fop-image-view"></a>
##### 生成图片预览

```{python}
import qiniu.conf

Expand Down