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 details)
File details
Details for the file revent-1.7.tar.gz.
File metadata
- Download URL: revent-1.7.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85aa8ebd0ba1963c96fd8cf36daf3ae0226dc8b94e90c61aec2ed808c1a1512f
|
|
| MD5 |
baacf43aa110cd6671ae6fe329900474
|
|
| BLAKE2b-256 |
c699b2e732436d4db8c6f84af4061253d326912de0ff6604f4a835629942f606
|