Skip to main content

Http client to manage Rabbitmq admin

Project description

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')

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

rabbitmq_api_client-0.0.3.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

rabbitmq_api_client-0.0.3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file rabbitmq_api_client-0.0.3.tar.gz.

File metadata

  • Download URL: rabbitmq_api_client-0.0.3.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for rabbitmq_api_client-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3a9bcf13488238095efd46117971990becae4bc718609e13d61504729ac2b7ae
MD5 c702818d48fa66ce4fe9d432481b3e59
BLAKE2b-256 ffb2eedd21cb04082e98f95e231d92af974e7bab69ccb6e1fba22c4a0ad02dc1

See more details on using hashes here.

File details

Details for the file rabbitmq_api_client-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for rabbitmq_api_client-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5b926f3f22187d2691006c627b0c428cb5325faf0964f9058b4ae1f91b86d37a
MD5 063fa17b6065a660ec0ac749b38d9eee
BLAKE2b-256 5a231cdffaf82d5958a90681e16534fceecde44536e7da01543bce93fdb98595

See more details on using hashes here.

Supported by

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