python runner for SAS Enterprise Gide文件

saseg-runner的Python项目详细描述


PyPIPyPIPyPIPyPI

概述

saseg\u runner让您从python或命令行运行egp文件。在

要求

  • 窗口
  • python 3.6以后的版本
  • SAS企业指南

安装

pip install saseg_runner

使用

python库作为

^{pr2}$

如果egp文件中的某些任务失败,'run\eu egp'会引发SASEGRuntimeError的异常!在

fromsaseg_runnerimportrun_egp,SASEGRuntimeErrorrun_egp(egp_path='test_fail.egp',eg_version='7.1',profile_name='Your Profile')# opening SAS Enterprise Guide 7.1# -> application instance created# activating profile:[SAS Asia]# -> profile:[SAS Asia] activated# opening test_fail.egp# -> egp file opened# running test_fail.egp# -> run finished# -> saved to test_fail_20191031-1056.egp# getting logs from test_fail_20191031-1056.egp# -> log created# [task 2] failed in test_fail.egp# ERROR: CLI error occured: [DataDirect][ODBC lib] Specified driver could not be loaded# Traceback (most recent call last):#   File "saseg_runner/runner.py", line 123, in <module>#     run_egp(SCRIPTDIR_PATH.parent.parent / 'test/test_fail.egp')#   File "saseg_runner/runner.py", line 103, in run_egp#     raise SASEGRuntimeError# __main__.SASEGRuntimeError

参数

  • egp_路径:联合[str,path]
    • SAS企业指南文件路径。在
  • 配置文件名:str
    • 要使用的配置文件名称
  • 覆盖:bool
    • 控制执行后是否保存egp文件。如果为False,则将时间戳添加到文件名中。默认值为False。在
  • 删除日志:bool
    • 是否删除日志文件。默认值为True。在
  • 冗长:布尔
    • 默认值为False

从命令行

run_egp <your egp file path>

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
来自偏移量的java JavaPairInputStream流   gzip Java TarInputStream读取tar的文件名。包含另一个tar的gz文件。gz文件   如何在Linux shell脚本中确定和使用实际的java路径   java请求太多FirebaseError   java错误json解析   java在localserver上发送安卓应用程序的输出   JavaSpring:启动和停止webapplication时更新DBtable条目   java如何使用JavaFX在矩形处设置文本?   java SQL查询在Hibernate中出现异常   java我无法使用javamail代码通过outlook(hotmail帐户)配置发送邮件,但在gmail中工作正常   java是不同的持久性。测试运行/JPA装置的xml属性   无头Eclipse的java导出战   使用ContentVersionStrategy的java Spring引导缓存禁止使用gzip进行资源压缩   java如何获取计算机的设备令牌?   图像文件的java ImageInfo不包含有效值   继承强制在Java中使用基类方法