Skip to content

Commit 5ef54c1

Browse files
committed
Updated README, added namespace section.
1 parent 8c27da2 commit 5ef54c1

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.rst

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
Nginx Python Module
33
*******************
44

5-
The module allows using Python at Nginx configuration stage and in runtime.
5+
The module allows using Python in Nginx both at configuration stage and in
6+
runtime.
67

78

89
Compatibility
910
=============
1011

11-
- python version supported: 2.7
12+
- nginx version >= 1.11.5 (HTTP-only version can be compiled with 1.11.2)
13+
- Python version: 2.7
1214
- tested on recent Linux, FreeBSD and MacOS
1315

1416

@@ -161,6 +163,16 @@ The list of classes and functions, unblocked by the module:
161163
functions
162164

163165

166+
Default Python namespace
167+
========================
168+
169+
For each nginx configuration a new default Python namespace is created. That
170+
namespace is shared between all HTTP requests or Stream sessions. HTTP and
171+
Stream have separate namespaces however. The namespace can be initialized with
172+
the ``python`` and ``python_include`` directives, which operate at configuration
173+
time.
174+
175+
164176
Examples
165177
========
166178

0 commit comments

Comments
 (0)