Skip to main content

Testcontainer for RabbitMQ

Project description

Python Testcontainer RabbitMQ

Usage

import pika
from testcontainer_python_rabbitmq import RabbitMQContainer


def test_rabbitmq():
    config = RabbitMQContainer()
    with config as container:
        connection = pika.BlockingConnection(
            pika.ConnectionParameters(
                host=container.get_container_host_ip(),
                port=container.get_amqp_port(),
                credentials=pika.PlainCredentials(username="guest", password="guest"),
            )
        )

        # do something...

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

testcontainer-python-rabbitmq-0.4.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

testcontainer_python_rabbitmq-0.4.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file testcontainer-python-rabbitmq-0.4.0.tar.gz.

File metadata

  • Download URL: testcontainer-python-rabbitmq-0.4.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.6 Linux/5.15.0-1014-azure

File hashes

Hashes for testcontainer-python-rabbitmq-0.4.0.tar.gz
Algorithm Hash digest
SHA256 f8f6510e8abd5fe23ea1ae089df9e3868e3b85dd3796f0665a2dabb064c3e366
MD5 1d7c6925602136c692348bc1ef5ae430
BLAKE2b-256 981bac9c9fb986bf4c26ab99d01a175bf2ca77dacd736cda55dded1bfc65f4c9

See more details on using hashes here.

File details

Details for the file testcontainer_python_rabbitmq-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for testcontainer_python_rabbitmq-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2b1aca37834d076f14676ad1680923e985930f5889e03cf91c9ea8ca8df6cde
MD5 8248f145893d2c78be0f4960e5b58194
BLAKE2b-256 b4575e0deb5bcad5ce34f634da4404cb058a2feec823a5bbafbd68bce2f7f27e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page