File tree Expand file tree Collapse file tree 1 file changed +41
-4
lines changed Expand file tree Collapse file tree 1 file changed +41
-4
lines changed Original file line number Diff line number Diff line change @@ -18,24 +18,47 @@ docker run -d --pull always --name restack -p 5233:5233 -p 6233:6233 -p 7233:723
18
18
19
19
## Start python shell
20
20
21
+ If using uv:
22
+
21
23
``` bash
22
- poetry env use 3.10 && poetry shell
24
+ uv venv && source .venv/bin/activate
23
25
```
24
26
25
- ## Install dependencies
27
+ If using poetry:
26
28
27
29
``` bash
28
- poetry install
30
+ poetry env use 3.12 && poetry shell
29
31
```
30
32
33
+ If using pip:
34
+
31
35
``` bash
32
- poetry env info # Optional: copy the interpreter path to use in your IDE (e.g. Cursor, VSCode, etc.)
36
+ python -m venv .venv && source .venv/bin/activate
33
37
```
34
38
39
+ ## Install dependencies
40
+
41
+ If using uv:
42
+
35
43
``` bash
44
+ uv sync
45
+ uv run dev
46
+ ```
47
+
48
+ If using poetry:
49
+
50
+ ``` bash
51
+ poetry install
36
52
poetry run dev
37
53
```
38
54
55
+ If using pip:
56
+
57
+ ``` bash
58
+ pip install -e .
59
+ python -c " from src.services import watch_services; watch_services()"
60
+ ```
61
+
39
62
## Run workflows
40
63
41
64
### from UI
@@ -54,10 +77,24 @@ You can run workflows from the API by using the generated endpoint:
54
77
55
78
You can run workflows with any client connected to Restack, for example:
56
79
80
+ If using uv:
81
+
57
82
``` bash
58
83
poetry run schedule
59
84
```
60
85
86
+ If using poetry:
87
+
88
+ ``` bash
89
+ poetry run schedule
90
+ ```
91
+
92
+ If using pip:
93
+
94
+ ``` bash
95
+ python -c " from schedule_workflow import run_schedule_workflow; run_schedule_workflow()"
96
+ ```
97
+
61
98
executes ` schedule_workflow.py ` which will connect to Restack and execute the ` TranscribeTranslateWorkflow ` workflow.
62
99
63
100
## Deploy on Restack Cloud
You can’t perform that action at this time.
0 commit comments