Skip to main content

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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redis_simplify-0.1.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

redis_simplify-0.1.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for redis_simplify-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7dd57fc04ce3b74a6707bcb7d454074a50213113de926d764ed623c85fb625cd
MD5 575f8efa7e63d618606bf11597e395f4
BLAKE2b-256 99c17ddc7e73ffb6ea85c0a68a4c0e813c0602898e02b3225c5e09e068b77a28

See more details on using hashes here.

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

Hashes for redis_simplify-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6cf932cb8b2d6c25efd697e5a623017246dd53e25ec8464750cbdea7ebb31784
MD5 1d71c04eee291955cefa53cc4b31c501
BLAKE2b-256 92edc565890d68649e98ce2320624b6ea2eedb179bcddc8f358aa3257a2d5804

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page