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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for kgrid-python-runtime-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63c05af14dacbf4ed70f6315ed58e373b78223720cf4a89d2492bc8f3af22e60 |
|
MD5 | 92e9f8f3607cbfe884efbb048e35ff2c |
|
BLAKE2b-256 | 569fec95e23cd0879114cc530a1759a41638d9bea18de2587671adc6c13f36dc |
Hashes for kgrid_python_runtime-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2de6a7b2a06e2ea6a514bf641774953d89624eb16979b679ba79bb4184993634 |
|
MD5 | 07a002162ff5d500f01dee1e219ea46a |
|
BLAKE2b-256 | 5ad473ca10a245e047a9aa402a231f6c494ffff2e8e14416226c88eb791c0b96 |