Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/source/worker/external_workers.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@ This is currently only available through a python script:

from pathlib import Path
from tierkreis import Worker
from tierkreis.codegen import Namespace
from tierkreis.namespace import Namespace


if __name__ == "__main__":
tsp_path = Path("<path to your spec file>")
namespace = Namespace.from_spec_file(tsp_path)
worker = Worker("TestNamespace") # same name as interface
worker.namespace = namespace
worker.write_stubs(tsp_path.parent / "stubs.py")
```
Expand Down