Small Task Queue
Project description
============
hakka-py
============
.. image:: https://img.shields.io/pypi/v/hakka.svg
:target: https://pypi.python.org/pypi/hakka
.. image:: https://img.shields.io/travis/Himenon/hakka-py.svg
:target: https://travis-ci.org/Himenon/hakka-py
.. image:: https://readthedocs.org/projects/hakka-py/badge/?version=latest
:target: https://hakka-py.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://pyup.io/repos/github/Himenon/hakka-py/shield.svg
:target: https://pyup.io/repos/github/Himenon/hakka-py/
:alt: Updates
Small Task Queue
* Free software: MIT license
* Documentation: <https://hakka.readthedocs.io>.
Usage
=====
.. code-block::bash
$ pip install hakka
**Receiver**
.. code-block::python
from hakka import Hakka
app = Hakka()
@app.watch('hello:msg', redis_dtype='list', redis_vtype='json')
def hello_msg(name=None, msg=None, **kwargs):
print("Hello {name}!, {msg}".format(name=name, msg=msg))
app.listen('localhost', 6379, 0, debug=True)
**Sender**
.. code-block::bash
$ redis-cli lpush hello:msg '{"name": "yourname", "msg": "Congratulation!"}'
How to Develop
==============
Using: Docker, docker-compose
.. code-block::bash
$ docker-compose up
# start pytest-watch
=======
History
=======
0.1.0 (2018-02-23)
------------------
* First release on PyPI.
hakka-py
============
.. image:: https://img.shields.io/pypi/v/hakka.svg
:target: https://pypi.python.org/pypi/hakka
.. image:: https://img.shields.io/travis/Himenon/hakka-py.svg
:target: https://travis-ci.org/Himenon/hakka-py
.. image:: https://readthedocs.org/projects/hakka-py/badge/?version=latest
:target: https://hakka-py.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://pyup.io/repos/github/Himenon/hakka-py/shield.svg
:target: https://pyup.io/repos/github/Himenon/hakka-py/
:alt: Updates
Small Task Queue
* Free software: MIT license
* Documentation: <https://hakka.readthedocs.io>.
Usage
=====
.. code-block::bash
$ pip install hakka
**Receiver**
.. code-block::python
from hakka import Hakka
app = Hakka()
@app.watch('hello:msg', redis_dtype='list', redis_vtype='json')
def hello_msg(name=None, msg=None, **kwargs):
print("Hello {name}!, {msg}".format(name=name, msg=msg))
app.listen('localhost', 6379, 0, debug=True)
**Sender**
.. code-block::bash
$ redis-cli lpush hello:msg '{"name": "yourname", "msg": "Congratulation!"}'
How to Develop
==============
Using: Docker, docker-compose
.. code-block::bash
$ docker-compose up
# start pytest-watch
=======
History
=======
0.1.0 (2018-02-23)
------------------
* First release on PyPI.
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
hakka-0.1.6.tar.gz
(15.1 kB
view hashes)
Built Distribution
Close
Hashes for hakka-0.1.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a63cfa9488bd882146001afe42533590ae743aad070601cd0ac6bdf927dd02dd |
|
MD5 | 01a3f297fb775bf4ffb522b1415c9f92 |
|
BLAKE2b-256 | 4e113879e9f7b5910ca690113a25048166087c73110eb6aff48f4eb803763e18 |