首页 > 解决方案 > 提供运行 Python 脚本的能力

问题描述

我有一个 Python 脚本,它连接到 SQL Server 并使用一些 Python 库以 CSV 格式导出结果。我需要为无法访问 SQL Server 的团队提供运行 Python 脚本的能力。有没有一种方法可以将我的 Python 包装到一个 shell 中并让它们运行那个会生成相同 CSV 的 shell(可执行文件)?

我愿意接受建议。

谢谢!

标签: pythonsql-serverpowershellpowershell-remoting

解决方案


I guess you should deploy the sql service somewhere and use credentials on the python code to get the data and process it. to protect the credentials you just have to deactivate read for this file and you are all good to go


推荐阅读