Installation
Local Install
This guide is for Beta9, the open-source and self-hosted version of Beam. If you are looking for the cloud-hosted version of Beam, you can find that here.
Setting up the server
k3d is used for local development. You’ll need Docker and Make to get started.
To use our fully automated setup, run the setup
make target.
This will overwrite some of the tools you may already have installed. Review the setup.sh to learn more.
make setup
Setting up the SDK
The SDK is written in Python. You’ll need Python 3.8 or higher. Use the setup-sdk
make target to get started.
This will install the Poetry package manager.
make setup-sdk
Using the SDK
After you’ve setup the server and SDK, check out the SDK readme here.
Example App
from beta9 import function
@function(cpu=8)
def square(i: int):
return i**2
def main():
numbers = list(range(10))
squared = []
# Run a remote container for every item in list
for result in square.map(numbers):
squared.append(result)
Was this page helpful?