Skip to content

phenicle/enginepy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

enginepy

A simple and powerful python API for running external commands.

Arguments toggle the behavior of STDOUT and STDERR.

  • DISPLAY - prints stdout to stdout, stderr to stderr
  • CAPTURE - returns stdout as result['stdout'], stderr as result['stderr']
  • IGNORE - ignores the value
  • APPEND - append to a file you specify
  • OVERWRITE - write to a file you specify

Specify stdout_filepath or stderr_filepath using keyword arguments.

The result returned is a dictionary.

The return code is found in result['code'].

    result = Engine('ls -l', Engine.CAPTURE, Engine.CAPTURE).run()
    pprint(result)

About

A simple and powerful python API for running external commands.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages