Skip to content

Commit 8f8a638

Browse files
committed
docs: note about python compatibility
1 parent 890b298 commit 8f8a638

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@ Even though [k6 intentionally only supports one programming language](https://k6
5454

5555
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.
5656

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+
5769
## Features
5870

5971
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

Comments
 (0)