mirror of
https://git.kore.io/kore.git
synced 2024-11-18 16:08:29 +01:00
.. | ||
conf | ||
src | ||
.gitignore | ||
Makefile | ||
README.md |
About
Pyko is a single binary kore build aimed at starting kore python applications in a more easy and straight forward manner.
Building
This kore application builds with PYTHON=1 and PGSQL=1 automatically. See the kore README file on what dependencies are required for this.
From the root kore directory run:
$ make -C kodev
$ make -C pyko
$ sudo make -C pyko install
App layout
Your python application directory must have the following layout:
python_app/
kore.conf <- actual kore configuration
__init__.py <- module initialization (binds, worker setup)
handlers.py <- handler code
You can easily use the kodev tool from kore to create an application skeleton that gets you going:
$ kodev create -p myapp
$ cd myapp
$ pyko -frn
Usage
$ pyko -frn python_app
-f = foreground
-n = skip chroot
-r = skip privilege drop
You can run pyko from inside the module directory directly as well.