Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

combee — Python SDK

Combee 的 Python 客户端(同步 Combee + 异步 AsyncCombee,基于 httpx)。

from combee import Combee

combee = Combee(base_url="https://api.combee.example", api_key="cmb_sk_...")
cell = combee.cells.create(name="my-app")

cell.sql.execute("CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT)")
cell.sql.execute("INSERT INTO users (name) VALUES (?)", ["Alice"])
rows = cell.sql.query("SELECT id, name FROM users")["rows"]

cell.kv.set("session:abc", "user:1", ttl=3600)
print(combee.usage.summary())
print(combee.credits.balance())
  • 完整能力:Cell CRUD / SQL+事务 / KV 全子集(TTL/计数器/JSON)/ 备份恢复 / 复制状态 / API Keys / Usage / Credits / Voucher 兑换 / Pricing;
  • 错误:稳定 code → 类型化异常(均携带 request_id);
  • 内部接口(/internal/*、/rpc/*、/admin/*)不出现在 SDK 表面。

测试

python3 -m venv .venv && .venv/bin/pip install httpx pytest pytest-asyncio
cargo build -p combee-api-server            # contract tests 需要真实 server
.venv/bin/python -m pytest tests/ -q

示例

examples/01_create_cell.py … examples/10_credits.py + async_basic.py。

发布

pip install build && python -m build && twine upload dist/*(发布到 PyPI 时执行)。

Metadata

Release files for combee 0.1.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for combee 0.1.0a1
File Size Uploaded Provenance
combee-0.1.0a1.tar.gz 8.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for combee 0.1.0a1
File Interpreter ABI Platform
combee-0.1.0a1-py3-none-any.whl Python 3 none any Details

Total release size: 16.6 kB

Release files / combee-0.1.0a1.tar.gz

Download URL combee-0.1.0a1.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c99da5bc5cbd16a2faf002b53d38f7d488ba10b910f4fe62f689ae18d82beb5c
BLAKE2b-256 checksum
How to use checksums
ff4ed8cbc20ed8fcd46bb1b0c29b4a484b0ab2bb1d81bd1310dea15753bc8ddf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / combee-0.1.0a1-py3-none-any.whl

Download URL combee-0.1.0a1-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
607a83cea690da16e9de5224470c2926ca8b30072198274e223bf4b2d0382e1b
BLAKE2b-256 checksum
How to use checksums
14152d4c473685f5ff5c67349b9228b14424fdefbb0e5b0e6253108efb7714ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for combee 0.1.0a1

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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page