Python (Gunicorn)
Requirements
Installation & Configuration
1
pip install aikido_zenexport AIKIDO_TOKEN=AIK_RUNTIME_YOUR_TOKEN_HEREimport aikido_zen
aikido_zen.protect()import aikido_zen.decorators.gunicorn as aik
@aik.post_fork
def post_fork(server, worker):
# Keep your existing post_fork logic here if you already have one.
passgunicorn -c gunicorn_config.py --workers 2 app:app2
from aikido_zen import set_user
set_user({"id": "123", "name": "John Doe"})3
AIKIDO_TOKEN=AIK_RUNTIME_AIKIDO_BLOCK=falseAIKIDO_BLOCK=false AIKIDO_TOKEN=YOUR_SECRET_TOKEN gunicorn -c gunicorn_config.py --workers 2 app:app4

5


You are rate limited by Aikido firewall. (Your IP: 1.2.3.4)6
Last updated
Was this helpful?