Giter Club home page Giter Club logo

rabbitmq-admin's Introduction

https://travis-ci.org/ambitioninc/rabbitmq-admin.svg?branch=master https://coveralls.io/repos/ambitioninc/rabbitmq-admin/badge.png?branch=master

rabbitmq-admin

This project is a python wrapper around the RabbitMQ Management HTTP API.

Example

>>> from rabbitmq_admin import AdminAPI
>>> api = AdminAPI(url='http://192.168.99.100:15672', auth=('guest', 'guest'))
>>> api.create_vhost('second_vhost')
>>> api.create_user('second_user', 'password')
>>> api.create_user_permission('second_user', 'second_vhost')
>>> api.list_permission()
[{'configure': '.*',
  'read': '.*',
  'user': 'guest',
  'vhost': '/',
  'write': '.*'},
 {'configure': '.*',
  'read': '.*',
  'user': 'second_user',
  'vhost': 'second_vhost',
  'write': '.*'}]

Unsupported Management API endpoints

This is a list of unsupported API endpoints. Please do not make issues for these, but pull requests implementing them are welcome.

  • /api/exchanges/vhost/name/bindings/source [GET]
  • /api/exchanges/vhost/name/bindings/destination [GET]
  • /api/exchanges/vhost/name/publish [POST]
  • /api/queues/vhost/name/bindings [GET]
  • /api/queues/vhost/name/contents [DELETE]
  • /api/queues/vhost/name/actions [POST]
  • /api/queues/vhost/name/get [POST]
  • /api/bindings/vhost/e/exchange/q/queue [GET, POST]
  • /api/bindings/vhost/e/exchange/q/queue/props [GET, DELETE]
  • /api/bindings/vhost/e/source/e/destination [GET, POST]
  • /api/bindings/vhost/e/source/e/destination/props [GET, DELETE]
  • /api/parameters [GET]
  • /api/parameters/component [GET]
  • /api/parameters/component/vhost [GET]
  • /api/parameters/component/vhost/name [GET, PUT, DELETE]

Installation

To install the latest release, type:

pip install rabbitmq-admin

To install the latest code directly from source, type:

pip install git+git://github.com/ambitioninc/rabbitmq-admin.git

Documentation

Full documentation is available at http://rabbitmq-admin.readthedocs.org

License

MIT License (see LICENSE)

rabbitmq-admin's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rabbitmq-admin's Issues

delete_connection() always 404s

The following fails if connection name contains space(?):

for c in rabbitmq_admin_api.list_connections():
    rabbitmq_admin_api.delete_connection(c['name'])

# requests.exceptions.HTTPError: 404 Client Error: Not Found

It is because urllib.parse.quote_plus() is used:

urllib.parse.quote_plus(name)

The following works fine (without quote_plus)

for c in rabbitmq_admin_api.list_connections():
    requests.delete(rabbitmq_admin_api.url + '/api/connections/' + c['name']).raise_for_status()

Tested version:

  • rabbitmq-admin==0.2
  • requests==2.7.0 (also with 2.21.0)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.