kore/pyko
Joris Vink ab956fc97a better pyko readme 2018-04-10 22:48:13 +02:00
..
conf Add pyko, not linked to build. 2018-04-09 13:05:38 +02:00
src let us know why we failed to open a config file. 2018-04-10 15:16:05 +02:00
.gitignore Add pyko, not linked to build. 2018-04-09 13:05:38 +02:00
Makefile Add pyko, not linked to build. 2018-04-09 13:05:38 +02:00
README.md better pyko readme 2018-04-10 22:48:13 +02:00

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.