Stimulsoft Reports.Python is a native Python library: the server configures a viewer and report, and the JavaScript viewer is emitted into the page.

Build the viewer in a Flask view.
viewer = StiViewer()

# Return the processed request (data, events) to the client
if viewer.processRequest(request):
    return viewer.getFrameworkResponse()

report = StiReport()
report.loadFile(url_for('static', filename='reports/SimpleList.mrt'))
viewer.report = report

return viewer.getFrameworkResponse()

How it works. Python configures and wires the component, but rendering happens client-side, so the same view both serves the page and answers its callbacks.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.