Skip to main content

PyPI PyPI PyPI PyPI

Overview

saseg_runner get you run egp file from python or command line.

Requirment

  • windows
  • python 3.6 later
  • SAS Enterprise guide

Install

pip install saseg_runner

Usage

as python library

from saseg_runner import run_egp, SASEGRuntimeError
run_egp(egp_path='test_success.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_success.egp
# -> egp file opened
# running test_success.egp
# -> run finished
# -> saved to test_success_20191031-1102.egp
# getting logs from test_success_20191031-1102.egp
# -> log created
# successfully finished exectuing test_success.egp
# elapsed_time:40[sec]

In case some tasks in the egp file fails, 'run_egp' can raise Exception of SASEGRuntimeError!

from saseg_runner import run_egp, SASEGRuntimeError
run_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

Parameters

  • egp_path : Union[str, Path]
    • SAS Enterprise Guide file path.
  • profile_name : str
    • profile name to use
  • overwrite: bool
    • controls whether to save the egp file after exection. if False, timestamp is added to filename. The default is False.
  • remove_log: bool
    • whether to remove log files or not. the default is True.
  • verbose: bool
    • default is False

from command line

run_egp <your egp file path>

Release files for saseg-runner 0.1.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for saseg-runner 0.1.14
File Size Uploaded
saseg_runner-0.1.14.tar.gz 136.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for saseg-runner 0.1.14
File Interpreter ABI Platform
saseg_runner-0.1.14-py3-none-any.whl Python 3 none any Details

Total release size: 143.5 kB

Release files / saseg_runner-0.1.14.tar.gz

Download URL saseg_runner-0.1.14.tar.gz
Size 136.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9bd2e38ae8487257056892397773313286c1ad7279fa79ac46f1d14f2cc6255b
BLAKE2b-256 checksum
How to use checksums
e89e0038a758f9731c9dbe5c3e3fa2d737cf59272b6b59735b8537b837ff6c14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2

Release files / saseg_runner-0.1.14-py3-none-any.whl

Download URL saseg_runner-0.1.14-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07444cfe4e4e23e6cf4b16853c9599b20658be4338ed9e57bb1cf6ecd29566f5
BLAKE2b-256 checksum
How to use checksums
e66d927d424b41248ba6f77ade8fb60762a1080d66ed061cb5b5468de9f90e9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.1.14 This release

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page