refactor: Reorganize datamate-python (#34)

refactor: Reorganize datamate-python (previously label-studio-adapter) into a DDD style structure.
This commit is contained in:
Jason Wang
2025-10-30 01:32:59 +08:00
committed by GitHub
parent 0614157c0b
commit 2f7341dc1f
79 changed files with 1077 additions and 1577 deletions

View File

@@ -66,37 +66,6 @@ MYSQL_USER=label_studio_user
MYSQL_PASSWORD=user_password
MYSQL_DATABASE=label_studio_adapter
# =========================
# Label Studio 数据库配置 (PostgreSQL)
# =========================
# 仅在使用 docker-compose.label-studio.yml 启动 Label Studio 时需要配置
POSTGRES_HOST=label-studio-db
POSTGRES_PORT=5432
POSTGRES_USER=labelstudio
POSTGRES_PASSWORD=labelstudio@4321
POSTGRES_DATABASE=labelstudio
# =========================
# SQLite 数据库配置(兜底选项)
# =========================
# 优先级3:如果没有配置 MySQL/PostgreSQL,将使用 SQLite
SQLITE_PATH=./data/labelstudio_adapter.db
# =========================
# 可选:直接指定数据库 URL
# =========================
# 如果设置了此项,将覆盖上面的 MySQL/PostgreSQL/SQLite 配置
# DATABASE_URL=postgresql+asyncpg://user:password@host:port/database
# =========================
# 安全配置
# =========================
# 密钥(生产环境务必修改)
SECRET_KEY=your-secret-key-change-this-in-production
# Token 过期时间(分钟)
ACCESS_TOKEN_EXPIRE_MINUTES=30
# =========================
# CORS 配置
# =========================