Skip to content

Python library provides a convenient way to interact with the RabbitMQ Admin API.

License

Notifications You must be signed in to change notification settings

elterrien/rabbitmq_api_client

Repository files navigation

Python library to interact with the RabbitMQ Admin API.

Description

This package provides a simple http client to manage Rabbitmq admin api.

The package is based on httpx.

It also provides pydantic models for request.

Installation

pip install rabbitmq-api-client

Usage

from rabbitmq_api_client.client import RabbitMQClient
from rabbitmq_api_client.schemas import CreateUser

# Initialize client with url and credentials
client = RabbitMQClient('http://localhost:15672', 'user', 'password')

# Define a user with pydantic model
user = CreateUser(username='test', password='test', tags='administrator')

# Create user
client.create_user(user)

# Get user by name
user_dict = client.get_user('test')

About

Python library provides a convenient way to interact with the RabbitMQ Admin API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages