klyro-db
Typed Python client for the Klyro in-memory database. It supports ordinary
Redis-compatible commands through redis-py and provides typed methods for all
15 current MEM.* commands.
from klyro_db import Klyro, MemoryCreate, MemoryAdd, MemoryQuery
db = Klyro()
db.memory.create("notes", MemoryCreate(mode="HYBRID", dim=384))
record_id = db.memory.add("notes", MemoryAdd(
text="User prefers PostgreSQL",
vector=[0.1] * 384,
metadata={"kind": "preference"},
))
hits = db.memory.query("notes", MemoryQuery(
text="database preference",
vector=[0.1] * 384,
top_k=5,
with_metadata=True,
with_scores=True,
))
db.close()
Klyro listens on 127.0.0.1:7171 by default. Run the server separately with
npx klyro-db, Docker, or the native binary. The package includes a
py.typed marker, so type checkers use its bundled annotations.
Metadata
Release files for klyro-db 0.1.1
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 |
|---|---|---|---|---|
| klyro_db-0.1.1.tar.gz | 6.1 kB | Without provenance | Details for klyro_db-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| klyro_db-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for klyro_db-0.1.1-py3-none-any.whl |
Total release size: 11.5 kB
Release files / klyro_db-0.1.1.tar.gz
| Download URL | klyro_db-0.1.1.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05949fa7def7dbc60b7d0fe9b14c0309d579dfeeeae23c9f716d8827a8e69dd9
|
|
BLAKE2b-256 checksum How to use checksums |
166683b716759f9a075869d241dc8232209472c6cfe5decc6354b1dbcf7814a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Release files / klyro_db-0.1.1-py3-none-any.whl
| Download URL | klyro_db-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9302ffd20456ce2b328fe18277b83bdd0dfdfc2bea28d6aaf078df66bb76204d
|
|
BLAKE2b-256 checksum How to use checksums |
bf546f87ce245b5b86fc05c0546b29f76d33136acc6ea348f901b3a9b4bce8f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Security for klyro-db 0.1.1
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.