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.6

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.6
File Size Uploaded
kawapythonserver-0.37.6.tar.gz 39.4 kB Details

Built distribution (wheel)

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

Total release size: 92.5 kB

Release files / kawapythonserver-0.37.6.tar.gz

Download URL kawapythonserver-0.37.6.tar.gz
Size 39.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b22a8440f747fb81083daf3e5b14780b1bd586f093ab54c331db8d5e2ee229d6
BLAKE2b-256 checksum
How to use checksums
a135fee08240e2c7450af6624186ac14c3ea744866aa9899aed571d73120377c
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.6-py3-none-any.whl

Download URL kawapythonserver-0.37.6-py3-none-any.whl
Size 53.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40f2e1a2b424c0ff9c325e5891c23a48e818b95b879c7d7e2e1e4f5431deeae0
BLAKE2b-256 checksum
How to use checksums
d7f8661e09ffb081650268a3a75a76351daae91a212006a83c58688dfe8d6258
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