Supported Versions
- Flask 0.10 and above.
Installation steps
Install the Atatus python agent:
Option 1: Install the agent using pip.
copypip install 'atatus[flask]'
Option 2: Add
atatus[flask]
to your project's requirements.txt file, and install the agent using pip.copy# requirements.txt atatus[flask]
copypip install -r requirements.txt
Initialize the agent with app name and license key in your main file:
copyfrom 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)
Restart your flask server.