Skip to main content

xyberos-redis

Redis plugin — RFC-0019, M4. RedisVectorStore + RedisMemory + cache backing for CacheResponder, all lazy-importing redis. Covers the [state] extra scope (cache + state + vector).

Install

pip install xyberos-redis               # from PyPI
pip install "xyberos-redis[state]"      # pulls in redis

# development (editable, from this repo):
pip install -e ./redis
pip install redis               # or: pip install xyberos[state]

Usage

from xyberos import create_app
from xyberos_redis import RedisPlugin

app = create_app()
app.load_plugin(RedisPlugin(url="redis://localhost:6379"))   # or set REDIS_URL

vector = app.resolve("redis_vector")     # a VectorStore
memory = app.resolve("redis_memory")     # a Memory
cache  = app.resolve("redis_cache")      # exact-match string cache

RedisPlugin(replace_defaults=True) also swaps the app's vector_store / memory providers.

CacheResponder backing

RedisVectorStore is a full VectorStore, so it plugs straight into the core CacheResponder for near-exact prompt -> answer caching:

from xyberos.llm import HashEmbedder
from xyberos.router import CacheResponder
from xyberos_redis import RedisVectorStore

responder = CacheResponder(store=RedisVectorStore(url="redis://localhost:6379"),
                           embedder=HashEmbedder())
responder.teach("what is xyberos?", "a cognitive platform")

Design

  • RedisVectorStore — one Redis hash per namespace; vectors JSON-encoded; queries scored with exact cosine (the same scan-and-score approach as the stdlib SqliteVectorStore, so behavior — and parity — holds without needing a RediSearch vector module).
  • RedisMemory — one entry per store() appended to a Redis list; retrieve() returns MemoryEntrys oldest-first, mirroring SqliteMemory.
  • RedisStringCache — tiny exact-match get/set/delete with optional TTL.
  • redis is imported lazily; a clear ProviderError is raised when missing.

Tests

pip install pytest fakeredis
pytest tests/

Tests run against fakeredis (an in-memory redis-py client), so they need no Redis server; they skip cleanly when redis/fakeredis are absent. The vector parity tests run the exact scenarios the SqliteVectorStore reference passes.

Ship location

[state] extra (redis already added to pyproject.toml).

Metadata

Release files for xyberos-redis 0.1.1

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

Source distribution (sdist)

Source distribution for xyberos-redis 0.1.1
File Size Uploaded Provenance Actions
xyberos_redis-0.1.1.tar.gz 9.2 kB With provenance Details for xyberos_redis-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xyberos-redis 0.1.1
File Interpreter ABI Platform Actions
xyberos_redis-0.1.1-py3-none-any.whl Python 3 none any Details for xyberos_redis-0.1.1-py3-none-any.whl

Total release size: 17.9 kB

Release files / xyberos_redis-0.1.1.tar.gz

Download URL xyberos_redis-0.1.1.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
954cc0dd112d59c1827bfac91084941cd1736c41b2a58bcf870b5271c63bd7b7
BLAKE2b-256 checksum
How to use checksums
1eee9acfec23b61bd2d665d6645b4c00867a5605113593b4933b2f5c7b01676f
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 Sep 16, 2026.

Transparency log

Release files / xyberos_redis-0.1.1-py3-none-any.whl

Download URL xyberos_redis-0.1.1-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d32dc57d515636e3c592ef20cbcff8587cc9e8939ed57ccd63ceed83563f9f81
BLAKE2b-256 checksum
How to use checksums
1ad6280b341baaaca947eb7466d11656e8e80a824d7c170db01abfb8a6236750
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 Sep 16, 2026.

Transparency log

Security for xyberos-redis 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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for xyberos_redis-0.1.1.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 Sep 16, 2026.

Transparency log

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.

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