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.

Source Distribution

hitchrunpy-0.5.0.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file hitchrunpy-0.5.0.tar.gz.

File metadata

  • Download URL: hitchrunpy-0.5.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hitchrunpy-0.5.0.tar.gz
Algorithm Hash digest
SHA256 5bc69d9dd4d5e22e70cb36adadca3da4b7a79b37c877a6056be1694796a8c999
MD5 ddc3612100ef27cd562a41ce36702c93
BLAKE2b-256 790d1c424f6be77a2d9f9470199f53cdccab774bd0ea8838168b5099c3f79142

See more details on using hashes here.

Supported by

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