> This page is for Applications Protection.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.humansecurity.com/llms.txt.

# Installation

## Standalone Installation

To install the Python middleware as standalone, use PIP as follows:

```python
pip install perimeterx-python-3-wsgi //Python 3
pip install perimeterx-python-wsgi //Python 2
```

## Google App Engine Installation

To install the Python middleware on Google App Engine, please follow these steps:

1. Create a folder to store the Python middleware:

   ShellShell

   ```shell
   mkdir lib
   ```
2. Using PIP, install the Python middleware with the -t flag to have it installed to the folder previously created:

   PythonPython

   ```python
   pip install -t lib/ perimeterx-python-wsgi-gae
   ```
3. Create a file named `appengine_config.py` in the same folder as your `app.yaml`file with the following content:

   PythonPython

   ```python
   from google.appengine.ext import vendor
   vendor.add('lib')
   ```

   In your `app.yaml`file, request the following libraries:
4. YAMLYAML

   ```yaml
   libraries:
   - name: flask
     version: "0.12"
   - name: pycrypto
     version: "2.6.1"
   - name: werkzeug
     version: "0.11.10"
   - name: ssl
     version: "2.7.11"
   ```