Skip to content

Commit eb23e47

Browse files
authored
Merge pull request #322 from bernieyangmh/master
add qvm annotate
2 parents 2f4446c + ef80b62 commit eb23e47

32 files changed

+452
-217
lines changed

.travis.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
sudo: false
22
language: python
33
python:
4-
- '2.6.9'
4+
- 2.6.9
55
- '2.7'
66
- '3.4'
77
- '3.5'
@@ -17,13 +17,13 @@ before_script:
1717
- export QINIU_TEST_ENV="travis"
1818
- export PYTHONPATH="$PYTHONPATH:."
1919
script:
20-
- if [[ "$TRAVIS_PYTHON_VERSION" != "2.6.9" ]]; then flake8 --show-source --max-line-length=160 .; fi
20+
- if [[ "$TRAVIS_PYTHON_VERSION" != "2.6.9" ]]; then flake8 --show-source --max-line-length=160
21+
.; fi
2122
- py.test --cov qiniu
22-
- if [[ "$TRAVIS_PYTHON_VERSION" != "2.6.9" ]]; then ocular --data-file .coverage; fi
23-
deploy:
24-
provider: pypi
25-
user: qiniusdk
26-
password:
27-
secure: N2u9xzhncbziIhoDdpaCcr7D3lW/N7AOIZDpx+M5QW0lPqIXkZDioOTZ7b4QNwx/XFMu6tdeK79A2Wg7T9/8VfEWDd2bYL7a1J7spoFJi9k3HVHHiFBmg7vXr1OGn3D51xqsrq3Kh9uRP150a5CA2qxYabKb6b6dn5QhOTPhfFY=
28-
on:
29-
tags: true
23+
- if [[ "$TRAVIS_PYTHON_VERSION" != "2.6.9" ]]; then ocular --data-file .coverage;
24+
fi
25+
26+
env:
27+
global:
28+
secure: McZuxM4UAKabtGvCi+t1F/Spb/3Yzb6O7hEk0JLwJEYCnl7hkfV1ogAgjjYdHwkNPjOwUaz3rpdmahz64ohtpucPsIyQjgK7tigTM+UgdAcg77RflB50yJ3yCnJOHMxVRF0RNLZqFeuf3GkfnOyzZFynN+LmM5n+0/iIuC4LXgs=
29+
QINIU_ACCESS_KEY=vHg2e7nOh7Jsucv2Azr5FH6omPgX22zoJRWa0FN5

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
# 7.2.3 (2019-02-25)
4+
* 新增region类,zone继承
5+
* 上传可以指定上传域名
6+
* 新增上传指定上传空间和qvm指定上传内网的例子
7+
* 新增列举账号空间,创建空间,查询空间信息,改变文件状态接口,并提供例子
8+
39
# 7.2.2 (2018-05-10)
410
* 增加连麦rtc服务端API功能
511

examples/batch_copy.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# -*- coding: utf-8 -*-
2+
# flake8: noqa
3+
4+
25
"""
36
批量拷贝文件
47

examples/batch_delete.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
# flake8: noqa
3+
24
"""
35
批量删除文件
46

examples/batch_move.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
# flake8: noqa
3+
24
"""
35
批量移动文件
46

examples/batch_rename.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
# flake8: noqa
3+
24
"""
35
批量重命名文件
46

examples/batch_stat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# -*- coding: utf-8 -*-
2+
# flake8: noqa
3+
24
"""
35
批量查询文件信息
46
57
https://developer.qiniu.com/kodo/api/1250/batch
68
"""
79

8-
910
from qiniu import build_batch_stat, Auth, BucketManager
1011

1112
access_key = ''
12-
1313
secret_key = ''
1414

1515
q = Auth(access_key, secret_key)

examples/bucket_info.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
# flake8: noqa
3+
4+
from qiniu import Auth
5+
from qiniu import BucketManager
6+
7+
# 需要填写你的 Access Key 和 Secret Key
8+
access_key = ''
9+
secret_key = ''
10+
11+
# 空间名
12+
bucket_name = 'bucket_name'
13+
14+
q = Auth(access_key, secret_key)
15+
16+
bucket = BucketManager(q)
17+
18+
ret, info = bucket.bucket_info(bucket_name)
19+
print(info)

examples/cdn_bandwidth.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
# flake8: noqa
3+
24
"""
35
查询指定域名指定时间段内的带宽
46
"""

examples/cdn_flux.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
# flake8: noqa
3+
24
"""
35
查询指定域名指定时间段内的流量
46
"""

0 commit comments

Comments
 (0)