Wrapper de conveniência para Redis - conexão, JSON helpers e reconexão automática
Project description
Configuration
All configuration is explicit via constructor parameters:
from redis_simplify import RedisClient
client = RedisClient(
host="localhost", # Required
port=6379, # Default: 6379
password=None, # Optional
db=0 # Default: 0
)
The package does not automatically read .env files.
Configuration is intentionally explicit to keep behavior predictable and framework-agnostic.
Automatic Reconnection Example
from redis_simplify import RedisClient
# Redis is running
client = RedisClient(host="localhost")
client.set("key", "value") # ✅ Works
# Redis goes down
# ... server restart, network interruption, etc.
# When Redis becomes available again,
# the next operation automatically attempts reconnection.
value = client.get("key")
print(value)
No manual reconnection logic is required.
Differences from redis-py
| Feature | redis-py | redis-simplify |
|---|---|---|
| Exception handling | Raises exceptions | Logs and returns fallback values |
| Reconnection | Manual handling | Automatic |
| JSON helpers | No built-in helpers | set_json() / get_json() |
| Configuration | Highly flexible | Explicit constructor configuration |
| Convenience wrapper | No | Yes |
| Safe defaults | No | Yes |
Documentation
Useful resources:
- Redis Commands: https://redis.io/commands
- redis-py Documentation: https://redis-py.readthedocs.io/
- redis-simplify GitHub: https://github.com/Paulouuul/redis-simplify
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file redis_simplify-0.1.1.tar.gz.
File metadata
- Download URL: redis_simplify-0.1.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dd57fc04ce3b74a6707bcb7d454074a50213113de926d764ed623c85fb625cd
|
|
| MD5 |
575f8efa7e63d618606bf11597e395f4
|
|
| BLAKE2b-256 |
99c17ddc7e73ffb6ea85c0a68a4c0e813c0602898e02b3225c5e09e068b77a28
|
File details
Details for the file redis_simplify-0.1.1-py3-none-any.whl.
File metadata
- Download URL: redis_simplify-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cf932cb8b2d6c25efd697e5a623017246dd53e25ec8464750cbdea7ebb31784
|
|
| MD5 |
1d71c04eee291955cefa53cc4b31c501
|
|
| BLAKE2b-256 |
92edc565890d68649e98ce2320624b6ea2eedb179bcddc8f358aa3257a2d5804
|