Skip to main content

Kawa python server to run python scripts from Kawa - https://learn.kawa.ai

Project description

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

Project details


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.36.5.tar.gz (34.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kawapythonserver-0.36.5-py3-none-any.whl (47.2 kB view details)

Uploaded Python 3

File details

Details for the file kawapythonserver-0.36.5.tar.gz.

File metadata

  • Download URL: kawapythonserver-0.36.5.tar.gz
  • Upload date:
  • Size: 34.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for kawapythonserver-0.36.5.tar.gz
Algorithm Hash digest
SHA256 5b88954f614cf0e0fb82923d388352874c8c7cd337c2a3529802dae2af77f2b2
MD5 260998bccd9844ba3885be1eae3a46a9
BLAKE2b-256 4734ba330381a58a6fa2fd6b68c5a0f765d5187ae98aa2e2d9ae3f30d677fd74

See more details on using hashes here.

File details

Details for the file kawapythonserver-0.36.5-py3-none-any.whl.

File metadata

File hashes

Hashes for kawapythonserver-0.36.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bca2c297bca14e06cdc6e9a524cb24b4a96db4c3f93647a1f71e90e5968b810b
MD5 f1599409f109a30d5d077c3618acbc7b
BLAKE2b-256 2b1adbdac5eaf2f81b47085683cc5b65b687005ccfbbf1e9331fc32dce2e8c86

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page