Libreria para crear Workers que responden a eventos desde kafka/Nats
Project description
Worker
Libreria la implementacion de workes basados en kafka y Nats.
Ejemplo
from Workerpy import Manager, Worker, Options
@Manager.Define(
Options(
'DemoWorker', # Nombre del worker
'gitlab_push', # Topico/evento que escucha
['broker:123'] # Kafka/Nats Hosts
)
)
class demo(Worker):
def process(self, data):
print(data)
Los workes solo escuchan, no tienen posibilidad de responder
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Workerpy-1.1.0.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file Workerpy-1.1.0.tar.gz
.
File metadata
- Download URL: Workerpy-1.1.0.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.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2ff97c47de9c9f72b131841672970b302fca6f96ffc9f4af8bb580337e6990f |
|
MD5 | 924f94f1e2d2cf64abd26dbde67f2195 |
|
BLAKE2b-256 | d2b836bd6ef0421abd8e734adfec947d65c80e32e7db98c81693f529fea49865 |
File details
Details for the file Workerpy-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: Workerpy-1.1.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13790f67e37fca3c029e5e0bad2134a1231d355c95c8148aec54fe2eac375451 |
|
MD5 | e77798cbbcc53fad00c683d712da6c99 |
|
BLAKE2b-256 | 7a4e7c5f28dabf3659d5d78003ddf43b24e74f266192c0b5b68430dc1111f33a |