title: Python flask RESTful: Directory structure
body: <p>I am fairly new to python and flask, I have created an authentication stystem, A JWT token based authentication. Currently my directory structure is :</p>
  
  <blockquote>
    <p>Note : If possible, Please answer in detail.</p>
  </blockquote>
  
  <pre><code>-Project
    -- venv (folder)
    -- models.py
    -- resources.py
    -- run.py
    -- views.py
  </code></pre>
  
  <p>As the names are self explanatory, models.py have a class which named <code>UserModel</code>, In resources,py there are many classes like <code>UserRegistration</code>, <code>UserLogin</code>, <code>UserLogoutAccess</code>, <code>UserLogoutRefresh</code>, <code>TokenRefresh</code>, <code>AllUsers</code>.</p>
  
  <p><code>run.py</code> have the server related and app initialization code, And also the endpoints resource are defined here like :</p>
  
  <p><code>api.add_resource(resources.UserRegistration, '/registration')</code></p>
  
  <p>I know its messy, But also i have no idea about the python Flask conventions, Should each class have its own file, Should the authentication code be placed in one directory, As the project will obviously grow.</p>
  
  <p>I am thinking about the following directory structure :</p>
  
  <pre><code>-Project
    -- venv
    -- Authentication
        -- login.py
        -- registration.py
        -- logout.py
        -- userLogoutRefresh.py
        ....
        ....
    -- Models
        -- UserModel.py
        ....
        ....
    -- run.py
  </code></pre>
  
  <blockquote>
    <p>Looking for suggestions.</p>
  </blockquote>