semvec/pypi-packages huggingface dataset:
rabbitmq-tool 0.0.1
A RabbitMQ CLI
License: MIT

# rabbitmq-tool
A RabbitMQ CLI

**Features**:
- manage bindings
- inspect exchanges and queues
- show all exchanges and queues
- create and delete exchanges and queues


## Installation
```
pip install rabbitmq-tool
```

## Usage Examples
See `--help` for more information.

### Create exchange
```
$ rabbitmq-tool --url http://localhost:15672 --username guest create-exchange myexchange

```

### Create queue
```
$ rabbitmq-tool --url http://localhost:15672 --username guest create-queue myqueue
```

### Bind exchange and queue
```
$ rabbitmq-tool --url http://localhost:15672 --username guest bind --exchange myexchange --queue myqueue --routing '#'
```
weaklru 0.1.1
Combination of weakref cache and LRU cache.
License: MIT

# weaklru

Simple combination of a weakref cache and a lru cache.

```

class Obj:
  pass


l = WeakLRU(max_size=2)

l.set("a", Obj())
l.set("b", Obj())
l.set("c", Obj())
l.get(a)        # none
l.get(b)        # obj
l.get(c)        # obj
```


You can add objects to the cache, and they will never expire as long as they are being used.

Also, a maximum number of objects will be stored in the LRU portion of the cache.