tablestore
Aliyun TableStore(OTS) SDK
What it is and what it does
Tablestore is the official Python client for Aliyun Tablestore (OTS), a cloud-hosted NoSQL database built on Aliyun's distributed infrastructure. It provides a full-featured API for creating and managing tables, performing single-row and batch read/write operations, scanning ranges of data, managing transactions, and executing advanced queries including full-text search and vector retrieval. The SDK abstracts the HTTP protocol layer and handles serialization via protobuf and flatbuffers, making it straightforward to integrate Tablestore into Python applications.
The package is designed for applications that need to store and query large volumes of structured data with real-time access patterns. It supports modern Python versions (3.8 through 3.14) and includes both synchronous and asynchronous HTTP clients. Common use cases include time-series data ingestion, user profile storage, event logging, and search-enabled data retrieval. The SDK is actively maintained and carries no known security vulnerabilities.
Use it for:
- Store and query time-series metrics or event logs at scale with range-scan and aggregation capabilities.
- Implement full-text search over product catalogs or document collections using the multi-element index feature.
- Perform vector similarity search for recommendation or semantic-matching workloads.
- Batch ingest or export large datasets with multi-table batch read/write operations.
- Build transactional workflows with local transaction support for multi-row consistency.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python SDK for Aliyun Tablestore (OTS), a managed NoSQL database service, enabling read, write, batch operations, range scans, transactions, and full-text or vector search on structured data.
Yes, if you are already committed to Aliyun Tablestore as your data store. The SDK is actively maintained, permissively licensed, has low install friction, and carries no known vulnerabilities. It is the canonical way to access Tablestore from Python. However, it is only useful if you have an Aliyun account and an active Tablestore instance; it is not a general-purpose database client.
Install
tablestore on PyPI
pip
pip install tablestoreuv
uv add tablestorepoetry
poetry add tablestoreInstalling tablestore
Before you install
Low install friction with a pure-wheel distribution. Actively maintained as of 35 days ago. Depends on common, stable libraries (protobuf, urllib3, certifi, numpy, aiohttp) with no known compiled-extension blockers beyond what aiohttp and numpy typically require.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and redistribution with minimal restrictions—no copyleft obligations or proprietary constraints.
Quickstart
pip install tablestore
from tablestore import OTSClient
client = OTSClient(
endpoint='http://your-instance.cn-hangzhou.ots.aliyuncs.com',
access_key_id='your_key_id',
access_key_secret='your_key_secret',
instance_name='your_instance'
)
response = client.get_row('table_name', [('pk_col', 'value')])
Requires valid Aliyun account credentials and an active Tablestore instance endpoint; Python 3.8 or later.
Verify before relying
- Whether the SDK supports async operations natively or only via aiohttp integration
- Performance characteristics and throughput limits for batch operations at scale
- Whether vector search requires additional setup beyond the SDK (e.g., index configuration in Aliyun console)
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<4.0,>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 9 — protobuf, urllib3, certifi, future, six, flatbuffers, numpy, crc32c, aiohttp |
| Maintenance | actively maintained — 35 days since the last release |
| First released | |
| Downloads | 107,598/month — #12,607 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tablestore-6.4.8-py3-none-any.whl
Tags
More Database packages
psycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI
ydbYDB Python SDK is the official client library…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
sqlparsesqlparse tokenizes SQL text into a tree of…
permissive · top 1,000 on PyPI
dbt-adaptersProvides base adapter protocols and shared…
permissive · top 1,000 on PyPI
oss2Python SDK for uploading, downloading, and…
permissive · top 5,000 on PyPI
pyodpspyodps is a Python SDK for accessing Aliyun…
permissive · top 5,000 on PyPI
google-cloud-datastorePython client library for Google Cloud…
permissive · top 5,000 on PyPI
aliyun-log-python-sdkPython SDK for Alibaba Cloud Log Service that…
permissive · top 15,000 on PyPI
google-cloud-firestorePython client library for Google Cloud…
permissive · top 1,000 on PyPI
borneoPython SDK for connecting to Oracle NoSQL…
unclear · top 15,000 on PyPI
alibabacloud-oss-v2Uploads, downloads, and manages files on…
permissive · top 5,000 on PyPI
aliyun-python-sdk-coreProvides core client infrastructure for calling…
permissive · top 5,000 on PyPI
aliyun-python-sdk-core-v3Provides core client and authentication…
permissive · top 15,000 on PyPI
aliyun-python-sdk-ecsProvides Python bindings to Aliyun's Elastic…
permissive · top 15,000 on PyPI