You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,18 @@ Even though [k6 intentionally only supports one programming language](https://k6
54
54
55
55
The [starlark-go](https://github.com/google/starlark-go) package is a pure go implementation of the [Starlark python dialect](https://github.com/google/starlark-go/blob/master/doc/spec.md). Its use does not require external dependencies, such as the installation of CPython. It doesn't even require the use of [cgo](https://go.dev/wiki/cgo). This enables the portability of the k6 executable binary and simplifies its use in the cloud.
56
56
57
+
## Is it Python?
58
+
59
+
Yes and no.
60
+
61
+
Yes, because starlark is a python dialect. The **language and syntax is python**.
62
+
63
+
No, because the **usual python ecosystem cannot be used**:
64
+
- no python module system
65
+
- packages that can be installed with pip cannot be used.
66
+
67
+
This is an embedded python interpreter that does not make the python ecosystem available in the same way as the k6 JavaScript interpreter does not make the Node.js reason system available. So only the python language and syntax can be used plus the built-in modules and the local and remote python/starlark modules.
68
+
57
69
## Features
58
70
59
71
The xk6-python development is in the PoC phase, but it can be used to write real k6 tests. Currently implemented main features:
0 commit comments