text: # pylint: disable=too-few-public-methods,invalid-name,missing-docstring
  import os
  
  
  class BaseConfig(object):
  
      PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
      SERVER_NAME = "localhost:8888"
  
      # POSTGRESQL
      # DB_USER = 'user'
      # DB_PASSWORD = 'password'
      # DB_NAME = 'restplusdb'
      # DB_HOST = 'localhost'
      # DB_PORT = 5432
      # SQLALCHEMY_DATABASE_URI = 'postgresql://{user}:{password}@{host}:{port}/{name}'.format(
      #     user=DB_USER,
      #     password=DB_PASSWORD,
      #     host=DB_HOST,
      #     port=DB_PORT,
      #     name=DB_NAME,
      # )
  
      # DB_USER = 'root'
      # DB_PASSWORD = 'root'
      # DB_NAME = 'oscrm'
      # DB_HOST = 'localhost'
      # DB_PORT = 3306
      # DB_CONNECTOR = 'mysql+mysqlconnector'
      # SQLALCHEMY_DATABASE_URI = '{connector}://{user}:{password}@{host}:{port}/{name}'.format(
      #     connector=DB_CONNECTOR,
      #     user=DB_USER,
      #     password=DB_PASSWORD,
      #     host=DB_HOST,
      #     port=DB_PORT,
      #     name=DB_NAME,
      # )
  
      # RESTPLUS configuration
      RESTPLUS_SWAGGER_UI_DOC_EXPANSION = 'list'
      RESTPLUS_VALIDATE = True
      RESTPLUS_MASK_SWAGGER = False
      RESTPLUS_ERROR_404_HELP = False
  
      # SQLITE
      SQLALCHEMY_DATABASE_URI = 'sqlite:///%s' % (os.path.join(PROJECT_ROOT, "example.db"))
  
      DEBUG = True
      ERROR_404_HELP = False
  
      STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static')
  
      SWAGGER_UI_JSONEDITOR = True
  
      SQLALCHEMY_TRACK_MODIFICATIONS = True
      CSRF_ENABLED = True
  
  
  class ProductionConfig(BaseConfig):
      SQLALCHEMY_DATABASE_URI = os.getenv('SQLALCHEMY_DATABASE_URI')
  
  
  class DevelopmentConfig(BaseConfig):
      DEBUG = True
  
  
  class TestingConfig(BaseConfig):
      TESTING = True
  
      # Use in-memory SQLite database for testing
      SQLALCHEMY_DATABASE_URI = 'sqlite://'
  