4.5 apache - Access to Apache Internals.

# 4.5 `apache` - Access to Apache Internals.

The Python interface to Apache internals is contained in a module appropriately named `apache`, located inside the `mod_python` package. This module provides some important objects that map to Apache internal structures, as well as some useful functions, all documented below. (The request object also provides an interface to Apache internals, it is covered in its own section of this manual.)

The `apache` module can only be imported by a script running under mod_python. This is because it depends on a built-in module `_apache` provided by mod_python.

It is best imported like this:

    from mod_python import apache

`mod_python.apache` module defines the following functions and objects. For a more in-depth look at Apache internals, see the Apache Developer page