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.1.1.tar.gz (4.2 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for hitchrunpy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a063700983b01998ce2a20da9720064897e464f6736dd3d36330a693bc896426
MD5 0bcc54c079129d621f0e725518a9e0a3
BLAKE2b-256 fe0f9138bb67af665e0821cd7985e18034249384c8b9a610b4c9293cdbdfed8b

See more details on using hashes here.

Supported by

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