選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

tablestore_config.py 857B

123456789101112131415161718192021222324252627282930
  1. from typing import Optional
  2. from pydantic import Field
  3. from pydantic_settings import BaseSettings
  4. class TableStoreConfig(BaseSettings):
  5. """
  6. Configuration settings for TableStore.
  7. """
  8. TABLESTORE_ENDPOINT: Optional[str] = Field(
  9. description="Endpoint address of the TableStore server (e.g. 'https://instance-name.cn-hangzhou.ots.aliyuncs.com')",
  10. default=None,
  11. )
  12. TABLESTORE_INSTANCE_NAME: Optional[str] = Field(
  13. description="Instance name to access TableStore server (eg. 'instance-name')",
  14. default=None,
  15. )
  16. TABLESTORE_ACCESS_KEY_ID: Optional[str] = Field(
  17. description="AccessKey id for the instance name",
  18. default=None,
  19. )
  20. TABLESTORE_ACCESS_KEY_SECRET: Optional[str] = Field(
  21. description="AccessKey secret for the instance name",
  22. default=None,
  23. )