# spectral_automation **Repository Path**: evilcodes_admin/spectral_automation ## Basic Information - **Project Name**: spectral_automation - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-30 - **Last Updated**: 2025-12-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # python 项目基础环境运行步骤: ## 在项目根目录下执行 ### 创建虚拟环境 python -m venv venv ### 激活虚拟环境 venv\Scripts\activate ### 安装依赖 pip install -r requirements.txt ### 退出虚拟环境pip deactivate ## 在安装依赖的时候为了加速可以使用国内镜像进行加载 pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple ## 如果有新增的依赖,需要在 requirements.txt 中添加 pip freeze > requirements.txt ## 在新功能提交以前务必将自己虚拟环境的目录添加到.gitignore 文件中,格式为:文件名+"/" ## 添加Python缓存到.gitignore 文件中(__pycache__/和*.pyc),并通过git rm --cached *.pyc命令将缓存文件从暂存区中移除,最后提交修改后的.gitignore 文件 ## 利用如下命令自动生成数据库表格对应的ORM类 sqlacodegen mssql+pyodbc://spectral_auto:SPECTRAL_AUTO%40D8D874C1@172.16.210.198/SPECTRAL_AUTO?driver=ODBC+Driver+17+for+SQL+Server --outfile models.py