Skip to main content

A runtime for python-based Knowledge Objects

Project description

kgrid-python-runtime

KGrid runtime for Knowledge Objects in python

Getting started:

  • Install Python 3.8 or higher

  • Install pip

  • run python -m pip install kgrid-python-runtime to download the latest package

  • to start the server run python -m kgrid_python_runtime

  • Download Kgrid Python Runtime from github

  • Navigate to the folder containing app.py

  • In a terminal, install the required dependencies with:

    pip install -r requirements.txt

  • To start the Python runtime:

    python kgrid_python_runtime/app.py runserver

  • The runtime starts on port 5000, but can be specified with KGRID_PYTHON_ENV_URL

  • By default, the python runtime points to a Kgrid activator at url: http://localhost:8080

    This can be customized by setting the environment variable: KGRID_PROXY_ADAPTER_URL

  • By default, the python runtime will tell the Kgrid Activator that it is started at http://localhost:5000.

    If you're starting the runtime at a different address, that url must be specified by setting the environment variable: KGRID_PYTHON_ENV_URL

To run the tests: python -m unittest discover -s tests

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

kgrid-python-runtime-0.0.4.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

kgrid_python_runtime-0.0.4-py3-none-any.whl (16.8 kB view hashes)

Uploaded Python 3

Supported by

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