Skip to main content

Cape Function Format

Cape functions are defined within a python file named

The entry point to your function must be declared in a function called cape_handler within

For example:

# goes in project/
def cape_handler(arg: bytes) -> bytes:

The final project structure for a function called isprime should look like:

$ ls isprime requirements.txt

Full code examples for sample functions can be found on Github.


We are actively soliciting feedback from our beta. Please use this form to provide feedback.