Skip to main content

Tools to run and interact with python code.

Project description

Tools to run and interact with python code at arm’s length, from other python code.

Install

$ pip install hitchrunpy

Example

from hitchrunpy import ExamplePythonCode

ExamplePythonCode((
    'with open("examplefile", "w") as handle:'
    '     handle.write("exampletext")'
)).run(
    '/path/to/working_directory',
    '/path/to/bin/python',
)

Features

  • Test variables for equality.

  • “Expect” exceptions and get detailed debugging info when the exception is not quite right.

  • Monitor what is printed to stdout.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page