The machine

2 entries

Markdown

sdk.machine

The machine, by its folder's name.

Signature
sdk.machine(slug)
Example · Where the machine is defined
from core import sdk

m = sdk.machine("quote-follow-up")

Every machine starts here. The name is the folder's own: lowercase letters, digits and hyphens. Everything else is a call on what it hands back.

Returns
The machine, m.

m.home

The address of the machine's own page.

Signature
m.home
Example · Inside a job
m.save_setting("my_page", m.home)

/my/<name> on the Ownbox. Every page the machine declares lives at it or under it.

Needs in machine.yaml
Nothing
Returns
A path, like /my/quote-follow-up.