skillfed

tablestore

Aliyun TableStore(OTS) SDK

tablestore v6.4.8 107.6K downloads/30d#12,607 on PyPI
Permissive license Apache-2.0 Active released

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 tablestore

uv

uv add tablestore

poetry

poetry add tablestore

Installing 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

License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

aliyun tablestore sdknosql database python clientaliyun ots pythonmanaged table storage apibatch write read operationsfull-text vector searchdistributed data storage
aliyun-cloudnosqlmanaged-service

More Database packages