Skip to main content

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.

Release files for hitchrunpy 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hitchrunpy 0.5.0
File Size Uploaded
hitchrunpy-0.5.0.tar.gz 5.1 kB Details

Release files / hitchrunpy-0.5.0.tar.gz

Download URL hitchrunpy-0.5.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5bc69d9dd4d5e22e70cb36adadca3da4b7a79b37c877a6056be1694796a8c999
BLAKE2b-256 checksum
How to use checksums
790d1c424f6be77a2d9f9470199f53cdccab774bd0ea8838168b5099c3f79142
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.11.2

1 release file

0.11.0

1 release file

0.10.0

1 release file

0.9.0

1 release file

0.8.0

1 release file

0.7.0

1 release file

0.6.3

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6.0

1 release file

This release

0.5.0 This release

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page