The idea behind this package is possibility to you use some client or something like the Metabase for collect and analyse logs of your application.
Its need two environments variables:
-
TYPE = 'TEST' or 'DEV'
- TEST: You will use fakeredis and not need use Redis instance. (Don't need environment REDIS_URL)
- DEV: Use this if You has a local Redis like Docker Redis. (Don't need environment REDIS_URL)
-
REDIS_URL = 'complete_redis_sentinel_url'
- Sample: sentinel://:testefoobar@host1.sentinel.domain.com:26379,host2.sentinel.domain.com:26379,host3-155915407905.sentinel.domain.com:26379/service_name:redisservice
Sample:
from redis_sentinel_connector import RedisConnector
redis_connector = RedisConnector().connect()
Or pass a variable with the complete url to the connect function
Sample:
from redis_sentinel_connector import RedisConnector
SENTINEL_URL = "sentinel://:testefoobar@host1.sentinel.domain.com:26379,host2.sentinel.domain.com:26379,host3-155915407905.sentinel.domain.com:26379/service_name:redisservice"
redis_connector = RedisConnector().connect(SENTINEL_URL)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file redis_sentinel_connector-0.1.8.tar.gz.
File metadata
- Download URL: redis_sentinel_connector-0.1.8.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e97d4c11b0a633c674ad66457ed2f428db8eb7abc85089191003fba6879ac970
|
|
| MD5 |
51f5c394a48a2eceaf34d234dc7c7dbd
|
|
| BLAKE2b-256 |
5ad01fd7529f32650965c20cf81a385116947539f308d4d0d45b279655443763
|