Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 980 Bytes

File metadata and controls

45 lines (33 loc) · 980 Bytes

Python client: Developer notes

Generating missing client code

For the code to work you need to generate control plane client. Ensure its up-to-date schema is in ../api-schemas/control-plane.json and run generate client script:

bash scripts/generate_client.sh

Running CLI

You can run any of the CLI commands using the poetry run multinode prefix. For example:

poetry run multinode --help

Deploying your first project

To deploy your first project in the development mode, first run:

poetry run multinode login

You will be asked for an API key.

Once successfully logged in, create a test.py file with the following content:

from multinode import Multinode

mn = Multinode()


@mn.function()
def a():
    print("Hello, Multinode A!")


@mn.function()
def b():
    print("Hello, Multinode B!")

and run

poetry run multinode deploy test.py --project-name my-first-project