Python Server Resource
The Python Server Resource is a lightweight runtime for running custom, server-side Python 3.9 (opens in a new tab) code. Dynaboard manages the deployment and secure sandboxing of your code.
Properties
Common Code
Prop | commonCode |
---|---|
Type | string |
Default | undefined |
This code will be added to the top of all this resource's functions. Use it to share common functions or libraries.
Keyspace
Prop | keyspace |
---|---|
Type | string |
Default | default |
An optional keyspace for scoping K/V store values
Actions
Call Server Function
Calls a server-side Python 3.9 function called run
. Access can be scoped to a specific keyspace of key/value storage.
Parameter | Type | Default |
---|---|---|
code | string | def run(kv, func, event): return 'Hello, World!' |