Skip to main content

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

Metadata

Release files for kawapythonserver 0.37.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kawapythonserver 0.37.9
File Size Uploaded
kawapythonserver-0.37.9.tar.gz 41.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kawapythonserver 0.37.9
File Interpreter ABI Platform
kawapythonserver-0.37.9-py3-none-any.whl Python 3 none any Details

Total release size: 97.8 kB

Release files / kawapythonserver-0.37.9.tar.gz

Download URL kawapythonserver-0.37.9.tar.gz
Size 41.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a36595d0499dac68c807b20a7568c5b0ada9f3cc8c1555476658c359ada0b7d8
BLAKE2b-256 checksum
How to use checksums
043f30ba01e21a25fc30160d67d79b25d6f738585f6b75dd79f15acb42009066
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Release files / kawapythonserver-0.37.9-py3-none-any.whl

Download URL kawapythonserver-0.37.9-py3-none-any.whl
Size 56.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0adfc0f6699ceb8fb58aace22016918e1db0e0bd879c0403fbcca175c54f05f
BLAKE2b-256 checksum
How to use checksums
5d771cb9cc41c08f2e4e5c0f84564ab34b7086075a2f8092138a3be4fd235a43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page