config module

class config.Config[source]

Bases: object

Configuration class for the Flask application. Reads settings from environment variables or uses default values.

SECRET_KEY

Secret key for session management and encryption.

Type:

str

SQLALCHEMY_DATABASE_URI

Database connection URI.

Type:

str

SQLALCHEMY_TRACK_MODIFICATIONS

Disable SQLAlchemy modification tracking.

Type:

bool

OAUTHLIB_INSECURE_TRANSPORT

Allow OAuth over HTTP (dev only).

Type:

str

GOOGLE_CLIENT_SECRETS_FILE

Path to the Google OAuth client secrets file.

Type:

str

GOOGLE_SCOPES

List of required Google API scopes.

Type:

list

GOOGLE_CLIENT_SECRETS_FILE = '/home/runner/work/ClassDeck/ClassDeck/client_secret.json'
GOOGLE_SCOPES = ['https://www.googleapis.com/auth/userinfo.email', 'https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/classroom.courses.readonly', 'https://www.googleapis.com/auth/classroom.announcements.readonly', 'https://www.googleapis.com/auth/classroom.student-submissions.me.readonly', 'https://www.googleapis.com/auth/classroom.courseworkmaterials.readonly', 'https://www.googleapis.com/auth/classroom.rosters.readonly', 'https://www.googleapis.com/auth/calendar', 'openid']
OAUTHLIB_INSECURE_TRANSPORT = None
SECRET_KEY = 'you-will-never-guess'
SQLALCHEMY_DATABASE_URI = 'sqlite:////home/runner/work/ClassDeck/ClassDeck/app.db'
SQLALCHEMY_TRACK_MODIFICATIONS = False
google_secrets_json = None
uri = None