Skip to content

lwzm/revent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages