Skip to content

Commit 1efff49

Browse files
committed
upgrade version to 6.0.0: support Highlight; update protobuf from 3.19.0 to 4.25.0; support Python 3.8、Python 3.9、Python 3.10、Python 3.11、Python 3.12
1 parent 7090e55 commit 1efff49

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+4136
-12267
lines changed

CHANGELOG.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
TableStore SDK for Python 版本记录
1+
Tablestore SDK for Python 版本记录
22
===========================
33

4-
Python SDK的版本号遵循 `Semantic Versioning <http://semver.org/>`_ 规则。
4+
Python SDK 的版本号遵循 `Semantic Versioning <http://semver.org/>`_ 规则。
5+
6+
Version 6.0.0
7+
-------------
8+
9+
- Update protobuf from 3.19.0 to 4.25.0
10+
- Support Python 3.8、Python 3.9、Python 3.10、Python 3.11、Python 3.12
11+
- Support Highlight
512

613
Version 5.4.4
714
_____________

README.rst

Lines changed: 46 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ Aliyun Tablestore SDK for Python
1515
概述
1616
----
1717

18-
- 此Python SDK基于 `阿里云表格存储服务 <http://www.aliyun.com/product/ots/>`_ API 构建。
18+
- 此 Python SDK 基于 `阿里云表格存储服务 <http://www.aliyun.com/product/ots/>`_ API 构建。
1919
- 阿里云表格存储是构建在阿里云飞天分布式系统之上的 NoSQL 数据存储服务,提供海量结构化数据的存储和实时访问。
2020

2121
运行环境
2222
---------
2323

24-
- 安装Python即可运行,支持python2.6、Python2.7、python3.3、python3.4、python3.5 和 python3.6
24+
- 安装 Python 即可运行,支持 python3.8、Python3.9、python3.10、python3.11、python3.12
2525

2626
安装方法
2727
---------
@@ -53,7 +53,7 @@ Github安装
5353
源码安装
5454
--------
5555

56-
1. 下载SDK发布包并解压
56+
1. 下载 SDK 发布包并解压
5757
2. 安装
5858

5959

@@ -64,6 +64,8 @@ Github安装
6464
示例代码
6565
---------
6666

67+
表(Table)示例:
68+
6769
- `表操作(表的创建、获取、更新和删除) <https://github.com/aliyun/aliyun-tablestore-python-sdk/blob/master/examples/table_operations.py>`_
6870
- `单行写(向表内写入一行数据) <https://github.com/aliyun/aliyun-tablestore-python-sdk/blob/master/examples/put_row.py>`_
6971
- `单行读(从表内读出一样数据) <https://github.com/aliyun/aliyun-tablestore-python-sdk/blob/master/examples/get_row.py>`_
@@ -77,45 +79,70 @@ Github安装
7779
- `局部事务(提交事务) <https://github.com/aliyun/aliyun-tablestore-python-sdk/blob/master/examples/transaction_and_commit.py>`_
7880
- `局部事务(舍弃事务) <https://github.com/aliyun/aliyun-tablestore-python-sdk/blob/master/examples/transaction_and_abort.py>`_
7981

80-
- `Search <https://github.com/aliyun/aliyun-tablestore-python-sdk/blob/master/examples/search_index.py>`_
81-
- `Parallel Scan <https://github.com/aliyun/aliyun-tablestore-python-sdk/blob/master/examples/parallel_scan.py>`_
82-
- `Max/Min/Sum/Avg/Count/DistinctCount/Percentiles <https://github.com/aliyun/aliyun-tablestore-python-sdk/blob/master/examples/agg.py>`_
83-
- `GroupBy/Histogram <https://github.com/aliyun/aliyun-tablestore-python-sdk/blob/master/examples/group_by.py>`_
84-
- `SQL <https://github.com/aliyun/aliyun-tablestore-python-sdk/blob/master/examples/sql_query.py>`_
82+
多元索引(Search)示例:
8583

84+
- `基础搜索 <https://github.com/aliyun/aliyun-tablestore-python-sdk/blob/master/examples/search_index.py>`_
85+
- `并发圈选数据 <https://github.com/aliyun/aliyun-tablestore-python-sdk/blob/master/examples/parallel_scan.py>`_
86+
- `全文检索 <https://github.com/aliyun/aliyun-tablestore-python-sdk/blob/master/examples/full_text_search.py>`_
87+
- `向量检索 <https://github.com/aliyun/aliyun-tablestore-python-sdk/blob/master/examples/parallel_scan.py>`_
88+
- `Max/Min/Sum/Avg/Count/DistinctCount 等 <https://github.com/aliyun/aliyun-tablestore-python-sdk/blob/master/examples/agg.py>`_
89+
- `GroupBy/Histogram 等 <https://github.com/aliyun/aliyun-tablestore-python-sdk/blob/master/examples/group_by.py>`_
8690

8791
执行测试
8892
---------
8993

90-
**注意:测试case中会有清理某个实例下所有表的动作,所以请使用专门的测试实例来测试。**
94+
**注意:测试 case 中会有清理某个实例下所有表的动作,所以请使用专门的测试实例来测试。**
95+
96+
1. 测试前准备
97+
98+
.. code-block:: bash
99+
100+
$ /bin/bash tests_setup.sh
91101
92-
1. 安装nosetests
102+
2. 安装nosetests
93103

94104
.. code-block:: bash
95105
96106
$ pip install nose
97107
98-
2. 设置执行Case的配置
108+
3. 设置执行Case的配置
99109

100110
.. code-block:: bash
101111
102-
$ export OTS_TEST_ACCESS_KEY_ID=<your access id>
103-
$ export OTS_TEST_ACCESS_KEY_SECRET=<your access key>
112+
$ export OTS_TEST_ACCESS_KEY_ID=<your access key id>
113+
$ export OTS_TEST_ACCESS_KEY_SECRET=<your access key secret>
104114
$ export OTS_TEST_ENDPOINT=<tablestore service endpoint>
105-
$ export OTS_TEST_INSTANCE=<your instance name>
115+
$ export OTS_TEST_INSTANCE=<tablestore instance name>
116+
117+
4. 运行case
106118

107-
2. 运行case
119+
python3.8、Python3.9、python3.10、python3.11可使用以下命令
108120

109121
.. code-block:: bash
110122
111-
$ nosetests tests/
123+
$ export PYTHONPATH=$(pwd)/tests:$PYTHONPATH; nosetests tests/
124+
125+
python3.12可使用以下命令
126+
127+
.. code-block:: bash
128+
129+
$ /bin/bash tests_run.sh
130+
131+
编译proto文件
132+
----------------
133+
.. code-block:: bash
134+
135+
$ /bin/bash protoc.sh
112136
113137
贡献代码
114138
--------
115-
- 我们非常欢迎大家为Tablestore Python SDK以及其他Tablestore SDK贡献代码
116-
- 非常感谢 `@Wall-ee <https://github.com/Wall-ee>`_ 对4.3.0版本的贡献
139+
- 我们非常欢迎大家为 Tablestore Python SDK 以及其他 Tablestore SDK 贡献代码
140+
- 非常感谢 `@Wall-ee <https://github.com/Wall-ee>`_ 对 4.3.0 版本的贡献
117141

118142
联系我们
119143
--------
120-
- `阿里云Tablestore官方网站 <http://www.aliyun.com/product/ots>`_
144+
- `阿里云 Tablestore 官方网站 <http://www.aliyun.com/product/ots>`_
121145
- `阿里云官网联系方式 <https://help.aliyun.com/document_detail/61890.html>`_
146+
- `阿里云 Tablestore 官方文档 <https://help.aliyun.com/zh/tablestore/product-overview>`_
147+
148+

0 commit comments

Comments
 (0)