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.4.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

rabbitmq_api_client-0.0.4-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rabbitmq_api_client-0.0.4.tar.gz
  • Upload date:
  • Size: 5.2 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.4.tar.gz
Algorithm Hash digest
SHA256 446165521282a7832f3375f1473719bb4fd566c375aa71966a22f83d87c0b261
MD5 15366b4058d0b1415cc281575855f173
BLAKE2b-256 f6bab9da8f710e1ecdaea1400dddeb9f684f7b7e3ab57e18e0ab2d50826e9712

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rabbitmq_api_client-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 10f5373daf213b95b0ef1eee2aadb7279f4069c54f824263a4d9f66423776f3b
MD5 89d067ff03ba91134e41671b38f24db7
BLAKE2b-256 d92727aef9dfe3b1bb829c76b0d588c35332f094a7a0cc83b71f9cb33fa70262

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