Skip to main content

Run and interact with snippets of python code.

Project description

HitchRunPy

Main branch status

HitchRunPy is a tool to run, test and profile snippets of python code.

HitchRunPy was developed to run executable specifications using HitchStory that define Python APIs.

As such it can be used with HitchStory to build effective replacements for unit tests and integration tests where the 'spec' is a python API.

HitchRunPy is used to run the executable specifications for all libraries on HitchDev.

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()

Install

$ pip install hitchstory

Using HitchRunPy

Why use HitchRunPy?

HitchRunPy combined with HitchStory serves as an effective replacement for unit tests in the situation where unit tests are most effective.

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hitchrunpy-0.11.3-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hitchrunpy-0.11.3.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for hitchrunpy-0.11.3.tar.gz
Algorithm Hash digest
SHA256 2df12e8ddf51d630f3d6388836bff1e8268fc2dc408383b7a52dbd6dd974d3e3
MD5 d4135d515fd803671d97c82c7d12765a
BLAKE2b-256 26a6baeefa148df4c385ced68569f792a3808da4d03d940fdba8ea125aebaf7d

See more details on using hashes here.

File details

Details for the file hitchrunpy-0.11.3-py3-none-any.whl.

File metadata

  • Download URL: hitchrunpy-0.11.3-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for hitchrunpy-0.11.3-py3-none-any.whl
Algorithm Hash digest
SHA256 282bfa48e808755d917a6a42f00e1694b7e46d29721482e718135b29dff2f558
MD5 1535c36de0aebedaa84823d05d091a2f
BLAKE2b-256 39e804f91cd8546c095c15042500c2123bdf473ee445c5b11b80a3ce08cd0aa8

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