Skip to main content

pico-data-redis

PyPI Ask DeepWiki License: MIT CI (tox matrix) codecov Quality Gate Status Duplicated Lines (%) Maintainability Rating PyPI Downloads Docs Interactive Lab

Redis for the pico ecosystem: a shared injectable client, and a distributed backend that makes @cacheable (pico-caching) work across processes. Installing it is opting in.

Installation

pip install pico-data-redis

Quick start

redis:
  url: redis://cache.internal:6379/0

Inject the shared client anywhere:

from redis import Redis
from pico_ioc import component

@component
class Sessions:
    def __init__(self, redis: Redis):
        self._redis = redis

With pico-caching installed, @cacheable methods automatically use Redis instead of process memory — no code changes, the interceptor prefers any non-in-memory backend:

from pico_caching import cacheable

@component
class Reports:
    @cacheable(ttl_seconds=300)
    def heavy_query(self, day: str) -> dict: ...

Notes:

  • Cached values are pickled — treat the Redis instance as trusted, private infrastructure.
  • The backend fails open: an unreachable Redis degrades to cache misses, never to errors.
  • Keys are namespaced under redis.cache_prefix (default pico:cache:); clear() only touches that namespace.
  • The client's pool closes on container shutdown.

Documentation

Full documentation: https://dperezcabrera.github.io/pico-data-redis/

Built for AI-assisted development

pico-data-redis is part of an ecosystem designed for humans and coding agents building software together. Every package ships AGENTS.md working conventions, an llms.txt machine-readable docs index and documented behaviour pinned by regression tests; pico-testing gives agents a verification loop for their own changes, and releases are gated by the whole ecosystem booting together against real infrastructure. The full story: Built for AI-assisted development.

Install the agent skills for Claude Code or OpenAI Codex:

curl -sL https://raw.githubusercontent.com/dperezcabrera/pico-skills/main/install.sh | bash

The pico-conventions skill teaches the assistant this module's API surface and invariants; /add-component and /add-tests scaffold components and tests that use it.

License

MIT

Metadata

Release files for pico-data-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 pico-data-redis 0.1.1
File Size Uploaded
pico_data_redis-0.1.1.tar.gz 23.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pico-data-redis 0.1.1
File Interpreter ABI Platform
pico_data_redis-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 31.1 kB

Release files / pico_data_redis-0.1.1.tar.gz

Download URL pico_data_redis-0.1.1.tar.gz
Size 23.6 kB
Tags Source
SHA-256 checksum
How to use checksums
081b6f0f12d519b06841369db04dec81693579ab10850343d5fcf6cba1792075
BLAKE2b-256 checksum
How to use checksums
2516e1bf7853c5a4e0782425bce247a3577619a4735e2849a1e8b201ddd28e5e
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 29, 2026.

Transparency log

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

Download URL pico_data_redis-0.1.1-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7844dcffd56e3db8dd00f7d7d5902b107430b1aea47af5dc242314cd0e627f5f
BLAKE2b-256 checksum
How to use checksums
31c5f1e3a8c5e8e1a0e3a5686d551a71cf6a90fa0915abf6a41829110da6b575
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 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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