Skip to main content

Http client to manage Rabbitmq admin

Project description

Http client to manage Rabbitmq admin api

Description

This package provides a simple http client to manage Rabbitmq admin api 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.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

rabbitmq_api_client-0.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rabbitmq_api_client-0.0.2.tar.gz
  • Upload date:
  • Size: 4.4 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.2.tar.gz
Algorithm Hash digest
SHA256 fb62f156ce90e3e70082a0b06e50e62d85e62ed44b87d49b89246fdc5fd97f2d
MD5 aababfa97fa9fc8837e78ce2c1894094
BLAKE2b-256 1e8af3053dcf66316351bffb88a0aa8a34d667d1f48ff75aa375cf60760488e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rabbitmq_api_client-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5d3b069edea27771bee826a69ed1b20742c5728eca8a158996535959e643403c
MD5 9e2022950e48165d7472f7fef62df818
BLAKE2b-256 c5231fb5a3fe7b7e0b0289e0dd7f5c2842ab2b1bcc4952976a7de409710da05f

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