Skip to main content

Ahab: on which to hang your Docker hooks

Project description

ahab.png

It’s easy to install Ahab:

pip install ahab

To get detailed information about Docker events from the command line:

ahab --console debug

To use Ahab as library, you can pass functions to the Ahab() constructor:

def f(event, data):
    pass        # Handle the Docker event (and extended info, as available)


ahab = Ahab(handlers=[f])
ahab.listen()

Or subclass Ahab:

class Queequeg(Ahab):
    def handle(self, event, data):
        pass                                               # Your code here

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

ahab-20160206.tar.gz (3.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page