title: Split Python Flask app into multiple files
body: <p>I'm having trouble understanding how to split a flask app into multiple files.</p>
  
  <p>I'm creating a web service and I want to split the api's into different files (AccountAPI.py, UploadAPI.py, ...), just so I don't have one huge python file.</p>
  
  <p>I've read that you can do this with Blueprints, but I'm not entirely sure that route is the right one for me. </p>
  
  <p>Ultimately I want to run one Main python file and include other files so that when it runs, they are considered one big file.</p>
  
  <p>For example if I have Main.py and AccountAPI.py I want to be able to do this:</p>
  
  <p>Main.py:</p>
  
  <pre><code>from flask import Flask
  import AccountAPI
  
  app = Flask(__name__)
  
  @app.route("/")
  def hello():
      return "Hello World!"
  
  if __name__ == "__main__":
      app.run()
  </code></pre>
  
  <p>AccountAPI.py:</p>
  
  <pre><code>@app.route("/account")
  def accountList():
      return "list of accounts"
  </code></pre>
  
  <p>I know with this example it obviously won't work, but is it possible to do something like that? </p>
  
  <p>Thanks</p>