Skip to main content

NGINXpy

https://img.shields.io/pypi/v/nginxpy.svg https://img.shields.io/travis/decentfox/nginxpy.svg Documentation Status Updates

Embed Python in NGINX.

Features

  • 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 logging module redirected to NGINX error.log

  • (ongoing) NGINX event loop wrapped as Python asyncio interface

  • (TBD) Python and Cython interface to most NGINX code

  • (TBD) Adapt NGINX web server to WSGI, ASGI and aiohttp interfaces

Installation

  1. Install NGINX in whatever way, make sure nginx command is available.

  2. pip install nginxpy, or get the source and run pip install .. You may want to add the -v option, because the process is a bit slow downloading Cython, NGINX source code and configuring it. The usual python setup.py install currently doesn’t work separately - you should run python setup.py build first.

  3. Run python -c 'import nginx' to get NGINX configuration hint.

  4. Update NGINX configuration accordingly and reload NGINX.

  5. See NGINX error.log for now.

Development

  1. Install NGINX in whatever way, make sure nginx command is available.

  2. Checkout source code.

  3. Run python setup.py build and python setup.py develop.

  4. Run python -c 'import nginx' to get NGINX configuration hint.

  5. Update NGINX configuration accordingly and reload NGINX.

  6. See NGINX error.log for now.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2018-11-30)

  • First release on PyPI with asyncio sleep demo.

Metadata

Release files for nginxpy 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nginxpy 0.1.0
File Size Uploaded
nginxpy-0.1.0.tar.gz 15.0 kB Details

Release files / nginxpy-0.1.0.tar.gz

Download URL nginxpy-0.1.0.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
27b4af16496dd9b9fbfa68dcb6668b64b43996ef340527ed61b0bce42491b5ae
BLAKE2b-256 checksum
How to use checksums
750e84655d0e8984b326c65b5ef649ae616819204b677c6e2c48eab101d8b6e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page