kronotop-py
Official Python client for Kronotop.
Kronotop speaks RESP2 and RESP3 on the wire. The client is built on redis-py.
Install
pip install kronotop-py
# or, with the C parser:
pip install "kronotop-py[hiredis]"
Usage
See Kronotop's Quickstart document first.
from kronotop import Kronotop
client = Kronotop() # localhost:5484
with client.session() as session:
session.ping()
One TCP connection is one session, and the session holds the open transaction. The client keeps a pool, so a session pins one connection until it is closed. Every command is on the session.
with client.session() as session:
session.zmap.set("greeting", "Hello") # commits on its own
session.zmap.get("greeting") # b'Hello'
with session.transaction(returning="committed-version") as tx:
session.zmap.set("a", "1")
session.zmap.set("b", "2")
# COMMIT on a clean exit, ROLLBACK when the block raises
print(tx.committed_version)
KronotopConfig carries the session attributes and the namespace. Every
session opened on the client starts from it.
from kronotop import KronotopConfig
client = Kronotop(config=KronotopConfig(namespace="app", batch=500))
from kronotop.asyncio import Kronotop
client = Kronotop()
async with client.session() as session:
async with session.transaction():
...
await client.aclose()
Examples
The examples folder has small programs that show the client in use.
Packages
This repository is a monorepo. Each directory under packages/ ships as its own distribution.
Development
uv sync --all-extras --all-packages
uv run ruff check . && uv run ruff format --check .
uv run mypy
Tests
uv run pytest # integration tests skip without a server
uv run pytest -m "not integration" # never touches the network
uv run pytest -m integration # only the tests that need a server
Integration tests connect to kronotop://localhost:5484, and the Admin
tests to the admin port of that member, localhost:3320. Use
--kronotop-url and --kronotop-admin-host to point them somewhere else.
The tests that need a password are skipped unless --kronotop-password
names the auth.requirepass of the server.
uv run pytest -m integration --kronotop-url kronotop://192.168.1.10:5484
uv run pytest -m integration --kronotop-admin-host 192.168.1.10:3320
uv run pytest -m integration --kronotop-password devpass
Start a Kronotop first. docker/docker-compose.yaml brings up FoundationDB and one Kronotop node:
docker compose -f docker/docker-compose.yaml up
License
Apache License 2.0. See LICENSE.
Metadata
Release files for kronotop-py 0.1.0
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 |
|---|---|---|---|---|
| kronotop_py-0.1.0.tar.gz | 307.1 kB | With provenance | Details for kronotop_py-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kronotop_py-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for kronotop_py-0.1.0-py3-none-any.whl |
Total release size: 413.1 kB
Release files / kronotop_py-0.1.0.tar.gz
| Download URL | kronotop_py-0.1.0.tar.gz |
|---|---|
| Size | 307.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a6e4a1b0d52bb7ff0bcc7c5bdcd19d588ef3873227eb1279691c86d7de83a7e
|
|
BLAKE2b-256 checksum How to use checksums |
2ab5621b2ea807ca6c593f9ada3ec7048d0e210af2b1c85812844319ae421b67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.
Transparency logRelease files / kronotop_py-0.1.0-py3-none-any.whl
| Download URL | kronotop_py-0.1.0-py3-none-any.whl |
|---|---|
| Size | 106.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4543b90f30c7d76a0c3e46de54dd3d1f2c9f25a5421770c6c11855176f8ee267
|
|
BLAKE2b-256 checksum How to use checksums |
b03788eb626fd56bcfcc0aa01b6797990ddef429e0ed69b6139bf15e5d717401
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.
Transparency logSecurity for kronotop-py 0.1.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for kronotop_py-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.
Transparency logA 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.