Tests about a simple python3 fastcgi runner using libfcgi and the Python-C API.
Find a file
2021-01-24 11:26:38 +01:00
docs Fixes #40 Fixing doxygen documentation 2019-12-18 21:51:02 +01:00
include Using FCGIlib OS_IpcClose and increase monitor watchdog timeout 2021-01-24 11:26:38 +01:00
src Using FCGIlib OS_IpcClose and increase monitor watchdog timeout 2021-01-24 11:26:38 +01:00
tests Fixing logger test 2019-11-25 09:45:40 +01:00
AUTHORS Add missing am files 2019-07-03 17:12:54 +02:00
autogen.sh Autotools enhancement 2019-08-24 03:32:50 +02:00
benchmarks Add 120s siege benchmarks 2019-08-06 18:45:19 +02:00
ChangeLog Add missing am files 2019-07-03 17:12:54 +02:00
configure.ac Autotools enhancement 2019-08-24 03:32:50 +02:00
COPYING Add autotools & checks 2019-07-03 17:11:01 +02:00
foo.py 1st fonctionnal implementation of both python<->C IPC 2019-08-03 17:16:26 +02:00
foo_pep333.py Add tests for stdout & stderr in foo_pep333.py example 2019-11-25 13:57:47 +01:00
includes_python3.7m.patch Initial commit 2019-06-30 08:19:03 +02:00
Makefile.am Autotools enhancement 2019-08-24 03:32:50 +02:00
NEWS Add missing am files 2019-07-03 17:12:54 +02:00
README Fixes #32 set stderr non-blocking 2019-11-25 10:12:41 +01:00

Patch python3 headers :
-----------------------
	# cd /usr/include/python3.7m/
	# patch -p1 < PATH_TO/includes_python3.7m.patch

Building & running pyfcgi :
---------------------------
	$ ./autogen.sh
	$ ./configure
	$ make
	# To run foo_pep333.entrypoint() PEP333 application
	$ ./src/pyfcgi -l '127.0.0.1:9000' -v -e foo_pep333 -E entrypoint
or
	# To run foo.entrypoint() sending to FCGI python stdout
	$ ./src/pyfcgi -l '127.0.0.1:9000' -v -e foo -E entrypoint -A


configure script determine python flags, libs & includes paths using
python3-config programm. The path can be specified using the
PYTHON_CONFIG_PATH environment variable.

Example : linking against a debug build of python :
---------
	$ ./configure PYTHON_CONFIG_PATH=/usr/bin/python3dm-config --enable-debug
	$ make clean && make
	$ valgrind --log-file=/tmp/val.log --trace-children=yes src/pyfcgi -S -e foo_pep333 -E entrypoint -L '/tmp/foo.log;0xff;{datetime} {msg} {ident}'

logging to file example :
-------------------------
-L '/tmp/foo.log;0xff;{datetime} {msg} {ident}'

uwsgi equivalent :
------------------
uwsgi_python3 --fastcgi-socket 127.0.0.1:9000 --module foo_pep333:entrypoint --processes=5