amqp-helper-0.0.8
توضیحات
simple Helper library to configure AMQP communication
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | amqp-helper-0.0.8 |
| نام | amqp-helper |
| نسخه کتابخانه | 0.0.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ole Hannemann |
| ایمیل نویسنده | cerberus885@gmail.com |
| آدرس صفحه اصلی | https://github.com/bad-microservices/amqp_helper |
| آدرس اینترنتی | https://pypi.org/project/amqp-helper/ |
| مجوز | MIT |
================
amqp_helper
================
Introduction
=============
:code:`amqp_helper` aims to be a simple Helper library to configure AMQP communication via other librarys like :code:`aio-pika` or :code:`pika`.
To achieve this goal this Library provides the :code:`AMQPConfig` class which enables us to configure the connection Parameters for other librarys in a unified way.
Installation
==============
:code:`amqp_helper` can be installed in multiple ways. The easiest Solution is to install it with :code:`pip`.
via pip
---------
.. code-block:: bash
python3 -m pip install amqp-helper
from source
------------
.. code-block:: bash
git clone https://github.com/bad-microservices/amqp_helper.git
cd amqp_helper
python3 -m pip install .
Example (aio-pika)
===================
.. code-block:: python
import asyncio
from amqp_helper import AMQPConfig
from aio_pika import connect_robust
amqp_config = AMQPConfig(username="test",password="testpw",vhost="testvhost")
async def main():
connection = await connect_robust(**amqp_config.aio_pika())
# do some amqp stuff
if __name__ == "__main__":
asyncio.run(main())
نیازمندی
| مقدار | نام |
|---|---|
| >=45.0 | setuptools |
نحوه نصب
نصب پکیج whl amqp-helper-0.0.8:
pip install amqp-helper-0.0.8.whl
نصب پکیج tar.gz amqp-helper-0.0.8:
pip install amqp-helper-0.0.8.tar.gz