migrate-redis-py

Installation
SKILL.md

Migrating from redis-py to Valkey GLIDE (Python)

Use when migrating a Python application from redis-py to the GLIDE client library.

Routing

  • String, hash, list, set, sorted set, delete, exists, cluster -> API Mapping
  • Pipeline, transaction, Batch API -> Advanced Patterns
  • PubSub, subscribe, publish, dynamic subscriptions -> Advanced Patterns

Key Differences

Area redis-py GLIDE
Default mode Synchronous Async-first (sync API from GLIDE 2.1)
Return type Strings (with decode_responses=True) Bytes always - call .decode()
Multi-arg commands Varargs: delete("k1", "k2") List args: delete(["k1", "k2"])
Expiry Keyword args: ex=60 ExpirySet objects
Conditional SET Separate setnx(), setex() Enum options on set()
Related skills

More from avifenesh/valkey-skills

Installs
1
GitHub Stars
2
First Seen
Apr 4, 2026