Metadata-Version: 2.1
Name: PI-KA-CHU
Version: 0.1.0
Summary: a PIKA based, Cuter and more Human rabbitmq queue Utility (´_ゝ`)
Home-page: https://github.com/smilefufu/PIKACHU
Author: fufu
Author-email: fufu.bluesand@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: pika

# PIKACHU
a PIKA based, Cuter and more Human rabbitmq queue Utility (´_ゝ`)

## Simple to use
### put a message into queue(independent by namespace):
```python
import PIKACHU
PIKACHU.SimpleProducor("amqp://localhost").put(dict(data="some message"))
```

### get some messages from queue:

```python
for envelope in PIKACHU.SimpleConsumer("amqp://localhost").get():
    print("get message:", envelope.message)
    envelope.message_read()
```

### use listener to listen message arrival constantly:

```python
def callback(envelope):
    print("get message:", envelope.message)
    envelope.message_read()

consumer = PIKACHU.SimpleAsyncConsumer(settings.amqp)
ioloop = consumer.start_listen(callback)
ioloop.start()
```



# installation

```bash
pip install git+https://github.com/smilefufu/PIKACHU@master
```



