Skip to main content

pyrede - The redis Element Snooze Python Module

:rocket:A Rede is a fancy snooze delayed queue

Usage

The Rede is an effective 'snooze button' for events, you push an event into it along (for future referance) and in how many seconds you want it back, and poll whenever you want the elements back. only expired elements would pop out.

   import pyrede
   import redis

   rede = pyrede.Rede(redis.Redis(decode_responses=True), "demo")

   rede.push("123", 1)
   rede.push("456", 1)
   rede.push("789", 3)

   time.sleep(1)

   list(rede.poll())

output-> ["123", "456"]

Download files

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

Source Distribution

pyrede-0.0.4.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file pyrede-0.0.4.tar.gz.

File metadata

  • Download URL: pyrede-0.0.4.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for pyrede-0.0.4.tar.gz
Algorithm Hash digest
SHA256 574704aff45a21faecd37cd26880f61a11b4dc734a17ff2a93e15dc2fe1cf8dd
MD5 624ad9f7f63e9be3282d779e6df5b02c
BLAKE2b-256 43eb581adef6e6689097d9228816e6f6ee9bf6d83f66fc3a4481cef2637f507a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

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