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
Built Distribution
File details
Details for the file rabbitmq_api_client-0.0.5.tar.gz
.
File metadata
- Download URL: rabbitmq_api_client-0.0.5.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42ded6462c31b4bc6fe580fd136b62d283a3c96863558da415fce00ec5e285f7 |
|
MD5 | bf183cb51bd866f4ede378d5a66b6ffb |
|
BLAKE2b-256 | 98fca55e5d63596813c26714fe909d79934d2857f246e4250f9da27ab4db5480 |
File details
Details for the file rabbitmq_api_client-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: rabbitmq_api_client-0.0.5-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a73f2db1c525d61476e0a84a2b1082027c6c2dfa307126c3cfa8dac3ea2368a1 |
|
MD5 | 1d48a4ba55747195394bfe685c1710c8 |
|
BLAKE2b-256 | dd41f0f865cae64b054c3cf4be0abaecb04e3f645cab2dddec6527ee70395e4e |