Supported Versions

  • Flask 0.10 and above.

Installation steps

  1. Install the Atatus python agent:

    Option 1: Install the agent using pip.

    copy
    icon/buttons/copy
    pip install 'atatus[flask]'
    

    Option 2: Add atatus[flask] to your project's requirements.txt file, and install the agent using pip.

    copy
    icon/buttons/copy
    # requirements.txt
    atatus[flask]
    
    copy
    icon/buttons/copy
    pip install -r requirements.txt
    
  2. Initialize the agent with app name and license key in your main file:

    copy
    icon/buttons/copy
    from atatus.contrib.flask import Atatus
    app = Flask(__name__)
    
    # Add atatus agent to your app.
    app.config['ATATUS'] = {
        'APP_NAME': 'Flask App',
        'LICENSE_KEY': 'lic_apm_xxxxxxx'
    }
    atatus = Atatus(app)
    
  3. Restart your flask server.