Skip to main content

Redis-Sentinel-Url

Travis CI

Redis-Sentinel-Url provides parser and connection factory for redis:// and redis+sentinel:// URLs (the latter being defined by this package).

  • Supports Python 2.7 and 3.3+

  • Licensed using Apache License 2.0

Installation

Install with pip:

pip install Redis-Sentinel-Url

URL scheme for connecting via Sentinel

This package defines redis+sentinel:// scheme for connecting to Redis via Sentinel:

redis+sentinel://[:sentinel_password@]host:port[,host2:port2,...][/service_name[/db]][?param1=value1[&param2=value=2&...]]
  • You can specify multiple sentinel host:port pairs separated by comma.

  • If service_name is provided, it is used to create a default client

  • service_name and db can also be specified as URL parameters (URL parameters take precedence)

  • Client options (keyword arguments to redis.StrictRedis) are specified as URL parameters

  • Options for connecting to Sentinel (keyword arguments to redis.sentinel.Sentinel) are specified with sentinel_ prefix

  • There is special client_type option to specify whether the default client should be master (the default) or slave service when connecting via Sentinel

Basic usage

Supports schemes supported by redis.StrictRedis.from_url and also redis+sentinel:// scheme described above:

import redis_sentinel_url

sentinel, client = redis_sentinel_url.connect('redis://localhost/0')
# None, StrictRedis(...)

sentinel, client = redis_sentinel_url.connect('rediss://localhost/0')
# None, StrictRedis(...)

sentinel, client = redis_sentinel_url.connect('unix://[:password]@/path/to/socket.sock?db=0')
# None, StrictRedis(...)

sentinel, client = redis_sentinel_url.connect('redis+sentinel://localhost:26379,otherhost:26479/mymaster/0')
# Sentinel(...), StrictRedis(...)

Metadata

Release files for Redis-Sentinel-Url 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Redis-Sentinel-Url 1.0.0
File Size Uploaded Provenance Actions
Redis-Sentinel-Url-1.0.0.tar.gz 7.6 kB Without provenance Details for Redis-Sentinel-Url-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Redis-Sentinel-Url 1.0.0
File Interpreter ABI Platform Actions
Redis_Sentinel_Url-1.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for Redis_Sentinel_Url-1.0.0-py2.py3-none-any.whl

Total release size: 12.2 kB

Release files / Redis-Sentinel-Url-1.0.0.tar.gz

Download URL Redis-Sentinel-Url-1.0.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5b16be7d0674fded714e6fbe18ca3a4dc2d41616b6247ca4a0ef0dde7058d311
BLAKE2b-256 checksum
How to use checksums
f8260f0c12cd7a50c38b620864649ba66085516075071487d30e182f59b64908
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Redis_Sentinel_Url-1.0.0-py2.py3-none-any.whl

Download URL Redis_Sentinel_Url-1.0.0-py2.py3-none-any.whl
Size 4.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2b5e55571007d04be4f74eadd5278c83c070fb1489fa517b18f3ff9e94b91695
BLAKE2b-256 checksum
How to use checksums
a6111fe0438baef27567ae38e83321670076a2da545960cc64348df6a14c40bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Redis-Sentinel-Url 1.0.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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