Aliyun Tablestore SDK for Python
概述
- 此 Python SDK 基于
阿里云表格存储服务 <http://www.aliyun.com/product/ots/>_ API 构建。 - 阿里云表格存储是构建在阿里云飞天分布式系统之上的 NoSQL 数据存储服务,提供海量结构化数据的存储和实时访问。
运行环境
- 安装 Python 即可运行,支持 python3.8、Python3.9、python3.10、python3.11、python3.12。
安装方法
1. PIP安装
pip install tablestore
2. 源码安装
- 下载源码
git clone https://github.com/aliyun/aliyun-tablestore-python-sdk.git
- 构建 whl (构建好的whl文件在dist目录下)
poetry build
- 安装
pip install dist/tablestore-{替换为实际版本}-py3-none-any.whl
示例代码
表(Table)示例:
- 表操作(表的创建、获取、更新和删除)
- 单行写(向表内写入一行数据)
- 单行读(从表内读出一样数据)
- 更新单行(更新某一行的部分字段)
- 删除某行(从表内删除某一行数据)
- 批量写(向多张表,一次性写入多行数据)
- 批量读(从多张表,一次性读出多行数据)
- 范围扫描(给定一个范围,扫描出该范围内的所有数据)
- 主键自增列(主键自动生成一个递增ID)
- 全局二级索引
- 局部事务(提交事务)
- 局部事务(舍弃事务)
多元索引(Search)示例:
贡献代码
- 请参考 开发指南 进行开发.
- 我们非常欢迎大家为 Tablestore Python SDK 以及其他 Tablestore SDK 贡献代码。
- 非常感谢 @Wall-ee 对 4.3.0 版本的贡献。
联系我们
Metadata
Release files for tablestore 6.4.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tablestore-6.4.8.tar.gz | 5.1 MB | Without provenance | Details for tablestore-6.4.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tablestore-6.4.8-py3-none-any.whl | Python 3 | none | any | Details for tablestore-6.4.8-py3-none-any.whl |
Total release size: 10.3 MB
Release files / tablestore-6.4.8.tar.gz
| Download URL | tablestore-6.4.8.tar.gz |
|---|---|
| Size | 5.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
772b8505f324e6bad81b27165ce3c0d387ecf843c5c9c71cb7424d8af8041d04
|
|
BLAKE2b-256 checksum How to use checksums |
b8e5e0babae5e9b591080b1a229a0d25a13323025e53b3d708aac7b3be301758
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.9.19 Linux/5.10.134-010.ali5000.al8.x86_64
|
Release files / tablestore-6.4.8-py3-none-any.whl
| Download URL | tablestore-6.4.8-py3-none-any.whl |
|---|---|
| Size | 5.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f87d7410569c16cd011acd5c0501f75d1f66c6ba8005218649221bbf147838e
|
|
BLAKE2b-256 checksum How to use checksums |
28a0e2b34ebc075ead0081506952319ed667b1cb23fa9542eb88ed7dc445db5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.9.19 Linux/5.10.134-010.ali5000.al8.x86_64
|
Security for tablestore 6.4.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.