Welcome to ledge’s documentation!¶
Ledge is a pluggable webhook catcher that handles the complexities of async Python for you.
It utilizes Twisted, environ-config, and a variety of other packages in order to allow you to easily write Python code to catch and handle webhooks.
Ledge uses environmental variables for configuration, including specifying
which handlers and responders you want to run on your server, and allows
you to specify anything you can import as a handler or responder. This allows
you to use handlers or responders you’ve installed via pip, or .py files
in your current working directory.
Ledge handlers and responders are subclasses of ledge.HandlerImplementation
or ledge.ResponderImplementation that minimally override a handful of
functions and attributes.
Take a look at the Demo Handler and the Demo Responder to see just how easy it is to write your own webhook handling Python!