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

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.8
File Size Uploaded
kawapythonserver-0.37.8.tar.gz 41.6 kB Details

Built distribution (wheel)

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

Total release size: 97.8 kB

Release files / kawapythonserver-0.37.8.tar.gz

Download URL kawapythonserver-0.37.8.tar.gz
Size 41.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9367fb29ae7f063dae23c5e7f79ed35dff99ca7e95001f71b7e5f9238feb7857
BLAKE2b-256 checksum
How to use checksums
5528e10fe4cc1efb1d010d83f1c40ec7ecd1f7e74c892e85c741d7e2d619703e
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.8-py3-none-any.whl

Download URL kawapythonserver-0.37.8-py3-none-any.whl
Size 56.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e76d6de0f5259475babf57583851f716d7094495a594dd5a78229d0f0695942
BLAKE2b-256 checksum
How to use checksums
91ab76ee121eb52fb51ddb03f0b15ed1860ba37ae317c611c757a58369cc9f9e
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