Back to Spring Boot Admin

Pyctuator

spring-boot-admin-docs/src/site/docs/08-third-party/pyctuator.md

4.0.41.2 KB
Original Source

Pyctuator

You can easily integrate Spring Boot Admin with Flask or FastAPI Python applications using the Pyctuator project.

The following steps uses Flask, but other web frameworks are supported as well. See Pyctuator’s documentation for an updated list of supported frameworks and features.

  1. Install the pyctuator package:
bash
pip install pyctuator
  1. Enable pyctuator by pointing it to your Flask app and letting it know where Spring Boot Admin is running:
python
import os
from flask import Flask
from pyctuator.pyctuator import Pyctuator
app_name = "Flask App with Pyctuator"
app = Flask(app_name)
@app.route("/")
def hello():
    return "Hello World!"
Pyctuator(
    app,
    app_name,
    app_url="http://example-app.com",
    pyctuator_endpoint_url="http://example-app.com/pyctuator",
    registration_url=os.getenv("SPRING_BOOT_ADMIN_URL")
)
app.run()

For further details and examples, see Pyctuator’s documentation and examples.