- Notifications
You must be signed in to change notification settings - Fork15
decentfox/nginxpy
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Embed Python in NGINX.
- Free software: Apache Software License 2.0
- Documentation:https://nginxpy.readthedocs.io.
- Standard Python package with Cython extension
- Automatically build into NGINX dynamic module for current NGINX install
- Run embeded Python in NGINX worker processes
- Write NGINX modules in Python or Cython
- Python
loggingmodule redirected to NGINXerror.log - (ongoing) NGINX event loop wrapped as Python
asynciointerface - (TBD) Python and Cython interface to most NGINX code
- (TBD) Adapt NGINX web server to WSGI, ASGI and aiohttp interfaces
- Install NGINX in whatever way, make sure
nginxcommand is available. pip install nginxpy, or get the source and runpip install .. Youmay want to add the-voption, because the process is a bit slowdownloading Cython, NGINX source code and configuring it. The usualpythonsetup.py installcurrently doesn't work separately - you should runpython setup.py buildfirst.- Run
python -c 'import nginx'to get NGINX configuration hint. - Update NGINX configuration accordingly and reload NGINX.
- Visit your NGINX site, see NGINX
error.logfor now.
- Install NGINX in whatever way, make sure
nginxcommand is available. - Checkout source code.
- Run
python setup.py build && python setup.py develop. - Run
python -c 'import nginx'to get NGINX configuration hint. - Update NGINX configuration accordingly and reload NGINX.
- Visit your NGINX site, see NGINX
error.logfor now. - Change code if result is not satisfying, or else go for pull request.
- Goto 3 if Cython code was changed, or else goto 5.
Surprisingly NGINX has a very simple but powerful architecture, learn about ithere:http://nginx.org/en/docs/dev/development_guide.html
This package was created withCookiecutter and theaudreyr/cookiecutter-pypackage project template.
About
Embed Python in NGINX.
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.