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

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.4
File Size Uploaded
kawapythonserver-0.37.4.tar.gz 38.0 kB Details

Built distribution (wheel)

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

Total release size: 89.3 kB

Release files / kawapythonserver-0.37.4.tar.gz

Download URL kawapythonserver-0.37.4.tar.gz
Size 38.0 kB
Tags Source
SHA-256 checksum
How to use checksums
31504fba900b1bd48ffb5f9ae33f0446e85c82661520efbc486e298a8ce1da50
BLAKE2b-256 checksum
How to use checksums
e2918847835c1a3b986cde385baae1d1f5e89e4fce2cea46d20fb01fcd6fe099
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.4-py3-none-any.whl

Download URL kawapythonserver-0.37.4-py3-none-any.whl
Size 51.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8acf9e6365c50f8bbf8e404aef5da1ffada9deed10d36fea642e758267d44890
BLAKE2b-256 checksum
How to use checksums
628a4f5512bd3da64e2dedf6ad8a557c4bb34b685224e1a854baa1b5acad189f
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