Basic RabbitMQ
Project description
upy-rabbitmq
How to install?
pip install upy-rabbitmq
Config
Add an environment variation called RABBITMQ_URL in your project's .env file.
RABBITMQ_URL=amqp://user:password@remote.server.com:port//vhost
Start Queue
from upy_rabbitmq.worker import UpyMQWorker
worker = UpyMQWorker()
worker.start_queue(
key="key",
callback=callback
)
New Task
from upy_rabbitmq.worker import UpyMQClient
client = UpyMQClient()
client.new_task(
key="key",
message="Hello"
)
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
Fernando Celmer- email@fernandocelmer.com
Project Link: https://github.com/UpyExplorer/upy-rabbitmq
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
upy-rabbitmq-0.0.5.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for upy_rabbitmq-0.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdd8de804ec5ba6b818758f88d05497bc862a01009be21d116201375c70f90b5 |
|
MD5 | 68ea735794333d4bc55539461f7659fa |
|
BLAKE2b-256 | 9293d10ae114aa7795e3347157b8a5418aec06af6ca719d8202bddd1f4747a0b |