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
.
note
When using Node, the entry point is capeHandler
within app.js
.
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.