Skip to main content

Event util base on Redis

Project description

Revent

pip install revent

subscribe events

from revent import sub

@sub
def some_event_occurs(foo, bar, **others):
    foo
    bar
    blah...

start listen events and run

from revent import loop

# do some thing
# ...
# and

loop()

or auto subscribe events and run

python -m revent module_xxx module_yyy

optional environment variable

URL_REDIS="redis://[:PASSWORD@]REDIS_HOST[:6379][/DB_INDEX]"
URL_REDIS="redis://:xxxx@redis.host:12345/2"

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

revent-1.7.tar.gz (2.6 kB view hashes)

Uploaded Source

Supported by

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