def _factory(partial_module_string, url_prefix):
    name = partial_module_string
    import_name = 'pypi_portal.views.{}'.format(partial_module_string)
    template_folder = 'templates'
    blueprint = Blueprint(name, import_name, template_folder=template_folder, url_prefix=url_prefix)
    return blueprint
Generates blueprint objects for view modules.
dataset/ETHPy150Open Robpol86/Flask-Large-Application-Example/pypi_portal/blueprints.py/_factory