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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e0b223f195e432e0aa899e01a0ed9bc4478ebda8fe742b2d3900c3a5c497120 |
|
MD5 | 63b5ee92453609c2644b972625eac5b5 |
|
BLAKE2b-256 | ce444f176def70f478c6619a94ff416ef14b36379ef44f7a31b762a5ea73611b |
Hashes for kgrid_python_runtime-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3b2f852db2c657e4e9b83a0d6053fb39a3e2d5b2246f9ad99056da3c5469686 |
|
MD5 | db313d98b06cd56d57c3e09a663f1592 |
|
BLAKE2b-256 | 6de5568392b1dbcba97bfc53d66279c7d6ca56b31d6ddd62cd859a163293c2d9 |