text: #!/usr/bin/python
  # -*- coding: utf-8 -*-
  from __future__ import print_function
  from pynamodb.models import Model
  from pynamodb.attributes import UnicodeAttribute, UTCDateTimeAttribute
  import os
  
  __author__ = "bl"
  
  
  class BaseModel(Model):
      class Meta:
          billing_mode = "PAY_PER_REQUEST"
          region = os.getenv("REGIONNAME")
          aws_access_key_id = os.getenv("aws_access_key_id")
          aws_secret_access_key = os.getenv("aws_secret_access_key")
  
          if region is None or aws_access_key_id is None or aws_secret_access_key is None:
              from dotenv import load_dotenv
  
              if load_dotenv():
                  if region is None:
                      region = os.getenv("region_name")
  
                  if aws_access_key_id is None:
                      aws_access_key_id = os.getenv("aws_access_key_id")
  
                  if aws_secret_access_key is None:
                      aws_secret_access_key = os.getenv("aws_secret_access_key")
  
  
  class TraitModel(BaseModel):
      class Meta(BaseModel.Meta):
          pass
  
      created_at = UTCDateTimeAttribute()
      updated_at = UTCDateTimeAttribute()
      updated_by = UnicodeAttribute()
  