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
Release history Release notifications | RSS feed
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.1.1.tar.gz
(4.2 kB
view hashes)