# Path: chanjo_report/server/app.py
# def create_app(config=None):
#     """Create a Flask app (Flask Application Factory)."""
#     app = Flask(__name__, instance_relative_config=True)
#     configure_app(app, config=config)
#     configure_extensions(app)
#     configure_blueprints(app)
#     configure_template_filters(app)
# 
#     return app
# 
# Path: chanjo_report/server/config.py
# class DefaultConfig(BaseConfig):
# 
#     """Default config values during development."""
# 
#     DEBUG = True
#     ACCEPT_LANGUAGES = {'en': 'English', 'sv': 'Svenska'}


from flask import url_for
from flask_weasyprint import HTML
from chanjo_report.server.app import create_app
from chanjo_report.server.config import DefaultConfig
# -*- coding: utf-8 -*-



def render_pdf(options):
    """Generate a PDF report for a given group of samples."""
    group_id = options['report']['group']
    url = "/groups/{}".format(group_id)

    # spin up the Flask server

# Path: chanjo_report/server/app.py
# def create_app(config=None):
#     """Create a Flask app (Flask Application Factory)."""
#     app = Flask(__name__, instance_relative_config=True)
#     configure_app(app, config=config)
#     configure_extensions(app)
#     configure_blueprints(app)
#     configure_template_filters(app)
# 
#     return app
# 
# Path: chanjo_report/server/config.py
# class DefaultConfig(BaseConfig):
# 
#     """Default config values during development."""
# 
#     DEBUG = True
#     ACCEPT_LANGUAGES = {'en': 'English', 'sv': 'Svenska'}


# Path: chanjo_report/interfaces/pdf.py
from flask import url_for
from flask_weasyprint import HTML
from chanjo_report.server.app import create_app
from chanjo_report.server.config import DefaultConfig

# -*- coding: utf-8 -*-



def render_pdf(options):
    """Generate a PDF report for a given group of samples."""
    group_id = options['report']['group']
    url = "/groups/{}".format(group_id)

    # spin up the Flask server

    config = DefaultConfig