Queue with
Project description
moonqueue
=========
Author: Gatsby
Since: 2019-04-04
How to Install
--------------
.. code-block:: bash
pip install moonqueue
How To Use
----------
.. code-block:: python
>>> from mq import RedisQueue
>>> r = RedisQueue('hello')
>>> r.push(['apple'])
>>> r.pop()
('hello', [b'apple'])
# Multiple message can be pushed
>>> r.push(['apple', 'banana'])
>>> r.pop()
('hello', [b'apple'])
>>> r.pop()
('hello', [b'banana'])
Supported Message Storage
------------------------
* Redis
=========
Author: Gatsby
Since: 2019-04-04
How to Install
--------------
.. code-block:: bash
pip install moonqueue
How To Use
----------
.. code-block:: python
>>> from mq import RedisQueue
>>> r = RedisQueue('hello')
>>> r.push(['apple'])
>>> r.pop()
('hello', [b'apple'])
# Multiple message can be pushed
>>> r.push(['apple', 'banana'])
>>> r.pop()
('hello', [b'apple'])
>>> r.pop()
('hello', [b'banana'])
Supported Message Storage
------------------------
* Redis
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
moonqueue-0.1.1.tar.gz
(2.2 kB
view hashes)