Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

hitchdev/hitchrunpy

Open more actions menu

Repository files navigation

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.

About

Tools to run and interact with python code.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.