Skip to main content

Tools to run and interact with python code.

Project description

Run, profile and interact with python code at arm’s length - from other python code.

HitchRunPy was developed to be able to run executable specifications of python libraries using hitchstory.

Note that HitchRunPy is ALPHA until it reaches version 1.0. APIs may change at any time and without warning.

Install

$ pip install hitchrunpy

Example

from hitchrunpy import ExamplePythonCode

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

Features

  • Pretty stack traces when your code snippets fail.
  • Interact with your code via a virtual terminal - send key strokes, wait for messages to appear on screen.
  • Generate profiling data from your code.

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
hitchrunpy-0.6.3.tar.gz (5.2 kB) Copy SHA256 hash SHA256 Source None Oct 8, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page