python - 提供运行 Python 脚本的能力
问题描述
我有一个 Python 脚本,它连接到 SQL Server 并使用一些 Python 库以 CSV 格式导出结果。我需要为无法访问 SQL Server 的团队提供运行 Python 脚本的能力。有没有一种方法可以将我的 Python 包装到一个 shell 中并让它们运行那个会生成相同 CSV 的 shell(可执行文件)?
我愿意接受建议。
谢谢!
解决方案
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
推荐阅读
- javascript - 检测 AMP 页面上的滚动方向并根据它显示或隐藏元素
- python - 根据一个列值组合多行,并根据 Pandas 中的其他列值添加额外的列
- c# - 在 C# 中异步加载属性的最佳方法是什么
- dataframe - Pyspark,如何将原始数据转换为 SVMLight 格式
- python - 如何在 matplotlib 的范围之间绘制数据?
- python - 将变量传递给正则表达式 exact pandas
- azure - 将应用服务证书与 Azure 应用程序网关一起使用
- git - 无法取消忽略 GIT 子目录
- deep-learning - 如何使用带有 DeepLearning4j 的二维数组的 LSTM
- javascript - 如何在 React 中将数据存储在 JSON 文件中?