Tests about a simple python3 fastcgi runner using libfcgi and the Python-C API.
python
c
wsgi
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Yann Weber 18a561a7ef Add some decref + update README adding debugging notes 4 years ago
include 1st fonctionnal implementation of both python<->C IPC 4 years ago
src Add some decref + update README adding debugging notes 4 years ago
tests Start implementing pep333 application support 4 years ago
AUTHORS Add missing am files 4 years ago
COPYING Add autotools & checks 4 years ago
ChangeLog Add missing am files 4 years ago
Doxyfile Start implementing pep333 application support 4 years ago
Makefile.am Deleted lib dir + autoconf enhancement 4 years ago
NEWS Add missing am files 4 years ago
README Add some decref + update README adding debugging notes 4 years ago
autogen.sh Start implementing pep333 application support 4 years ago
configure.ac Deleted lib dir + autoconf enhancement 4 years ago
foo.py 1st fonctionnal implementation of both python<->C IPC 4 years ago
foo_pep333.py 1st fonctionnal implementation of both python<->C IPC 4 years ago
includes_python3.7m.patch Initial commit 4 years ago

README

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

Building & running pyfcgi :
---------------------------
$ ./autogen.sh
$ ./configure
$ make

$ spawn-fcgi -d . -n -p 9000 -a 127.0.0.1 -- src/pyfcgi -S -e foo -E entrypoint -A
or
$ spawn-fcgi -d . -n -p 9000 -a 127.0.0.1 -- src/pyfcgi -S -e foo_pep333 -E entrypoint

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

Debugging :
-----------
$ ./configure PYTHON_CONFIG_PATH=/usr/bin/python3dm-config --enable-debug
$ make clean && make
$ valgrind --log-file=/tmp/val.log --trace-children=yes spawn-fcgi -d . -n -p 9000 -a 127.0.0.1 -- src/pyfcgi -S -e foo_pep333 -E entrypoint -L '/tmp/foo.log;0xff;{datetime} {msg} {ident}'