Skip to content

Commit e86ef98

Browse files
authored
Merge pull request #457 from qiniu/feat/7.16.0
Bump to v7.16.0
2 parents fca7849 + 322adec commit e86ef98

File tree

11 files changed

+427
-69
lines changed

11 files changed

+427
-69
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Changelog
2+
## 7.16.0
3+
* 对象存储,优化并发场景的区域查询
4+
* CDN,查询域名带宽,支持 `data_type` 参数
5+
26
## 7.15.0
37
* 对象存储,持久化处理支持工作流模版
48
* 对象存储,修复 Windows 平台兼容性问题

Diff for: examples/cdn_bandwidth.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
查询指定域名指定时间段内的带宽
66
"""
77
import qiniu
8-
from qiniu import CdnManager
8+
from qiniu import CdnManager, DataType
99

1010

1111
# 账户ak,sk
@@ -31,3 +31,9 @@
3131

3232
print(ret)
3333
print(info)
34+
35+
ret, info = cdn_manager.get_bandwidth_data(
36+
urls, startDate, endDate, granularity, data_type=DataType.BANDWIDTH)
37+
38+
print(ret)
39+
print(info)

Diff for: qiniu/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# flake8: noqa
1111

12-
__version__ = '7.15.0'
12+
__version__ = '7.16.0'
1313

1414
from .auth import Auth, QiniuMacAuth
1515

@@ -21,7 +21,7 @@
2121
build_batch_stat, build_batch_delete, build_batch_restoreAr, build_batch_restore_ar
2222
from .services.storage.uploader import put_data, put_file, put_stream
2323
from .services.storage.upload_progress_recorder import UploadProgressRecorder
24-
from .services.cdn.manager import CdnManager, create_timestamp_anti_leech_url, DomainManager
24+
from .services.cdn.manager import CdnManager, DataType, create_timestamp_anti_leech_url, DomainManager
2525
from .services.processing.pfop import PersistentFop
2626
from .services.processing.cmd import build_op, pipe_cmd, op_save
2727
from .services.compute.app import AccountClient

Diff for: qiniu/compat.py

+7
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
# because of u'...' Unicode literals.
1515
import json # noqa
1616

17+
# -------
18+
# Platform
19+
# -------
20+
21+
is_windows = sys.platform == 'win32'
22+
is_linux = sys.platform == 'linux'
23+
is_macos = sys.platform == 'darwin'
1724

1825
# -------
1926
# Pythons

0 commit comments

Comments
 (0)