Skip to main content

Cape Function Format

Cape functions are defined within a python file named app.py.

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

For example:

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

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

$ ls isprime
app.py requirements.txt

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

Note

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