ahab-20160206
توضیحات
Ahab: on which to hang your Docker hooks
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | ahab-20160206 |
| نام | ahab |
| نسخه کتابخانه | 20160206 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Instacart |
| ایمیل نویسنده | open-source@instacart.com |
| آدرس صفحه اصلی | https://github.com/instacart/ahab |
| آدرس اینترنتی | https://pypi.org/project/ahab/ |
| مجوز | UNKNOWN |
====
Ahab
====
.. image:: ahab.png
It's easy to install Ahab:
.. code:: bash
pip install ahab
To get detailed information about Docker events from the command line:
.. code:: bash
ahab --console debug
To use Ahab as library, you can pass functions to the ``Ahab()`` constructor:
.. code:: python
def f(event, data):
pass # Handle the Docker event (and extended info, as available)
ahab = Ahab(handlers=[f])
ahab.listen()
Or subclass ``Ahab``:
.. code:: python
class Queequeg(Ahab):
def handle(self, event, data):
pass # Your code here
نحوه نصب
نصب پکیج whl ahab-20160206:
pip install ahab-20160206.whl
نصب پکیج tar.gz ahab-20160206:
pip install ahab-20160206.tar.gz