Rabbit MQ wrapper implement with amqpstorm and with threading or multiprocessing
Project description
rmqworkers -- Manage dynamic workers rabbitmq for Python applications
Project rmqworkers offer high availability through simple, yet powerful library: This library doesn't work as a standalone.
This project require a rabbitmq server.
Please note that for development I've used a container:
How to run
docker run -d --hostname my-rabbit --name rabbitmq-server -p 15672:15672 -p 5672:5672 rabbitmq:3-management
Default has credentials: user: quest passw: quest
cd rmqworkers/examples
source venv/bin/activate or venv/Scripts/activate.sh
pip install -r requirements.txt
python example_1queue_in_and_1queue_out.py
Expected output
Default will use thread.
publish in queue in { "job_info": "11111"}
Verify if in queue out is {'job_info': '11111!!!!!!!', 'add_something': 'something'}
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
Built Distribution
File details
Details for the file rmqworkers-0.0.4.tar.gz
.
File metadata
- Download URL: rmqworkers-0.0.4.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e12f5c55634a9d1e8cd3f83aae458943e9cb4dc6f6fab35bdd5d15f9d5f02db9 |
|
MD5 | 30a7ab003d6b7ebdd665c0788363f3cc |
|
BLAKE2b-256 | 1687d08b32d199d3aaac4f2eb4a156c8dd689ec4f8a8a2fd9570af32f969d1b7 |
File details
Details for the file rmqworkers-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: rmqworkers-0.0.4-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd11f3f548e48ba24b74720239bf3f6c6800f420f7202ebd653788c56b34f9c6 |
|
MD5 | 596aad3f4df44edf3b28e79c969d85bb |
|
BLAKE2b-256 | fd92a94e26ab1d5e7a0eceb660d16fc34c523288ebb2ac26e58e8512698a8a7b |