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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hitchrunpy-0.2.0.tar.gz (4.9 kB view hashes)

Uploaded Source

Supported by

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