For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
HUMAN DashboardHUMAN WebsiteRequest a Demo
Product GuidesEnforcer GuidesMobile SDKAPI ReferenceCustomer support
Product GuidesEnforcer GuidesMobile SDKAPI ReferenceCustomer support
  • General
    • About Enforcers
    • Support first-party HUMAN calls
    • Troubleshoot Enforcer configurations
  • Enforcer frameworks
    • Akamai ESI
    • Apache - C Module
    • ASP.NET
    • Callout Enforcer
    • Envoy Proxy
    • F5 BIGIP
    • Fastly JavaScript Compute@Edge
    • Google Cloud Platform (GCP) Callout Enforcer
    • Kong Plugin
    • NGINX - C Module
    • NGINX - LUA Module
    • PHP
    • Python
      • What's New
      • Installation
      • Required Configuration
      • Configuration Options
      • Upgrading
      • First Party Configuration
    • Ruby
    • Salesforce Commerce Cloud Cartridge
LogoLogo
Login
Login
HUMAN DashboardHUMAN WebsiteRequest a Demo
On this page
  • Standalone Installation
  • Google App Engine Installation
Enforcer frameworksPython

Installation

Was this page helpful?
Previous

Required Configuration

Next
Built with

Standalone Installation

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

1pip install perimeterx-python-3-wsgi //Python 3
2pip 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

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

    PythonPython

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

    PythonPython

    1from google.appengine.ext import vendor
    2vendor.add('lib')

    In your app.yamlfile, request the following libraries:

  4. YAMLYAML

    1libraries:
    2- name: flask
    3 version: "0.12"
    4- name: pycrypto
    5 version: "2.6.1"
    6- name: werkzeug
    7 version: "0.11.10"
    8- name: ssl
    9 version: "2.7.11"