Tests about a simple python3 fastcgi runner using libfcgi and the Python-C API.
python
c
wsgi
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
Yann Weber 3e9a0cd4d5 Fixing logger test 4年前
docs Remove a Makefile.in 4年前
include PyFCGI now handles fcgi socket creation 4年前
src Supress debug messages 4年前
tests Fixing logger test 4年前
AUTHORS Add missing am files 4年前
COPYING Add autotools & checks 4年前
ChangeLog Add missing am files 4年前
Makefile.am Autotools enhancement 4年前
NEWS Add missing am files 4年前
README Bugfix in README 4年前
autogen.sh Autotools enhancement 4年前
benchmarks Add 120s siege benchmarks 4年前
configure.ac Autotools enhancement 4年前
foo.py 1st fonctionnal implementation of both python<->C IPC 4年前
foo_pep333.py Bugfix foo_pep333.py for uwsgi 4年前
includes_python3.7m.patch Initial commit 4年前

README

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' -S -e foo_pep333 -E entrypoint
or
# To run foo.entrypoint() sending to FCGI python stdout
$ ./src/pyfcgi -l '127.0.0.1:9000' -S -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