Application Scripts

This section provides documentation for the main application scripts located at the root of the project, including the application factory and configuration classes.

Application Factory (app.py)

app.create_app(config_name)[source]

Creates and Configures a Flask app instance following the Application-factory pattern.

Parameters:

config_name (str) – The configuration name to use [dev/testing/prod].

Returns:

The Flask app instance.

Return type:

Flask

app.main()[source]

Main entry point for running the app using Flask server.

Configuration (config.py)

class config.Config[source]

Base configuration class for the Flask app.

class config.DevelopmentConfig[source]

Development configuration for the Flask app.

class config.PerformanceConfig[source]

Performance Testing configuration for the Flask app.

class config.ProductionConfig[source]

Production configuration for the Flask app.

class config.TestingConfig[source]

Testing configuration for the Flask app.