Kawa Python Server
It is the python runtime for the Kawa platform. Please refer to this documentation to register python runtime in the Kawa platform: Register python runtimes.
Configure the server
Create a .env file in the root of the venv.
It must contain the following environment variables:
# This is the secret for this server.
# It will need to be set on KAWA platform too
# to communicate with this server.
# You can generate it like that: head /dev/urandom | sha256sum | cut -d ' ' -f 1
# (REQUIRED)
KAWA_AUTOMATION_SERVER_AES_KEY=8c180b7df391a24fcdf5504fadbd37f2df79ead5c4b36987acb683bd8e8bc465
# This defines the URL of the KAWA platform this python server will be paired with
# (OPTIONAL) Defaults to http://localhost:8080
KAWA_URL=http://localhost:8080
# This will define on which host/port the python server will listen
# (OPTIONAL) Defaults to 0.0.0.0, port 8815
# KAWA_AUTOMATION_SERVER_HOST=0.0.0.0
# KAWA_AUTOMATION_SERVER_PORT=8815
# This will override the path to the pex executable.
# pex is used by the script runner to package dependencies
# https://docs.pex-tool.org/
# (OPTIONAL) Defaults to pex
# KAWA_AUTOMATION_PEX_EXECUTABLE_PATH=pex
# Defines the working dir of the python server
# It will store pex files and sync files
# (OPTIONAL) Defaults to /tmp
# KAWA_AUTOMATION_SERVER_WORKING_DIRECTORY=/tmp
# If set to true, PEX will use pip config.
# This is important if some specific configuration is required (such as a private package registry etc)
# (OPTIONAL) Defaults to false
# KW_PEX_USE_PIP_CONFIG=false
Starting the server
Just run kawapythonserver
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kawapythonserver-0.37.2.tar.gz
(37.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kawapythonserver-0.37.2.tar.gz.
File metadata
- Download URL: kawapythonserver-0.37.2.tar.gz
- Upload date:
- Size: 37.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85082707f4106e493b62fe92f66107d250fbdbac72cae14d8ea9e028fbb9ded8
|
|
| MD5 |
3ddb709466b0758b26abe41c1a85540e
|
|
| BLAKE2b-256 |
d9b0bfe6f36e5ff9c13c555abe8f758db9a01cc8ad0f966b79c2b5bf47db1dd8
|
File details
Details for the file kawapythonserver-0.37.2-py3-none-any.whl.
File metadata
- Download URL: kawapythonserver-0.37.2-py3-none-any.whl
- Upload date:
- Size: 51.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a3c028659c3150ebfd492fd019bfaaaa59fd833f1e02ecaea39c3c828428b25
|
|
| MD5 |
59b8c5a821ed0f9cbb4aed5fa3f3bc01
|
|
| BLAKE2b-256 |
d656d5f9b623ff1acde7f629bd27973a237beaca8b6abf81f34284047c6cdafa
|