db_config.py 649 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """
  4. 数据库配置文件
  5. 用于超星数据移植与定时同步脚本
  6. """
  7. # 数据库配置信息
  8. DB_CONFIG = {
  9. "host": "47.99.164.66",
  10. "port": 3306,
  11. "database": "hzdyjs_xg",
  12. "user": "root",
  13. "password": "nsyOfyOyoFCr%Brj-k_5PqbW",
  14. "charset": "utf8mb4"
  15. }
  16. # 表名映射(API类型 -> 数据库表名)
  17. TABLE_MAPPING = {
  18. "class": "his_bjsj", # 班级数据
  19. "department": "his_xbsj", # 系部数据
  20. "student": "his_xssj", # 学生数据
  21. "major": "his_zysj" , # 专业数据
  22. "teacher": "his_lssj" # 老师数据
  23. }