@cli_app.command("<STR_LIT>")<EOL>@click.option(<EOL>"<STR_LIT>",<EOL>prompt="<STR_LIT>",<EOL>help="<STR_LIT>",<EOL>)<EOL>@click.option(<EOL>"<STR_LIT>",<EOL>prompt="<STR_LIT>",<EOL>type=click.Choice(["<STR_LIT>", "<STR_LIT>"]),<EOL>default="<STR_LIT>",<EOL>help="<STR_LIT>",<EOL>)<EOL>def create_app(name, engine):
try:<EOL><INDENT>if engine.lower() == "<STR_LIT>":<EOL><INDENT>url = urlopen(SQLA_REPO_URL)<EOL>dirname = "<STR_LIT>"<EOL><DEDENT>elif engine.lower() == "<STR_LIT>":<EOL><INDENT>url = urlopen(MONGOENGIE_REPO_URL)<EOL>dirname = "<STR_LIT>"<EOL><DEDENT>zipfile = ZipFile(BytesIO(url.read()))<EOL>zipfile.extractall()<EOL>os.rename(dirname, name)<EOL>click.echo(click.style("<STR_LIT>", fg="<STR_LIT>"))<EOL>return True<EOL><DEDENT>except Exception as e:<EOL><INDENT>click.echo(click.style("<STR_LIT>".format(e), fg="<STR_LIT>"))<EOL>if engine.lower() == "<STR_LIT>":<EOL><INDENT>click.echo(<EOL>click.style(<EOL>"<STR_LIT>".format(SQLA_REPO_URL), fg="<STR_LIT>"<EOL>)<EOL>)<EOL><DEDENT>elif engine.lower() == "<STR_LIT>":<EOL><INDENT>click.echo(<EOL>click.style(<EOL>"<STR_LIT>".format(MONGOENGIE_REPO_URL), fg="<STR_LIT>"<EOL>)<EOL>)<EOL><DEDENT>return False<EOL><DEDENT>
Create a Skeleton application (needs internet connection to github)