{"id":18676611,"url":"https://github.com/hitchdev/hitchrunpy","last_synced_at":"2025-08-27T22:39:01.889Z","repository":{"id":95872638,"uuid":"100845376","full_name":"hitchdev/hitchrunpy","owner":"hitchdev","description":"Tools to run and interact with python code.","archived":false,"fork":false,"pushed_at":"2023-04-07T13:59:24.000Z","size":195,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T20:47:21.867Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hitchdev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-20T07:24:30.000Z","updated_at":"2024-07-31T11:24:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3e59a8a-bcf5-43e3-923b-1a52c5e8a468","html_url":"https://github.com/hitchdev/hitchrunpy","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitchdev%2Fhitchrunpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitchdev%2Fhitchrunpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitchdev%2Fhitchrunpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitchdev%2Fhitchrunpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hitchdev","download_url":"https://codeload.github.com/hitchdev/hitchrunpy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239520734,"owners_count":19652747,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T09:29:59.595Z","updated_at":"2025-02-18T17:46:20.706Z","avatar_url":"https://github.com/hitchdev.png","language":"Python","readme":"# HitchRunPy\n\n[![Main branch status](https://github.com/hitchdev/hitchrunpy/actions/workflows/regression.yml/badge.svg)](https://github.com/hitchdev/hitchrunpy/actions/workflows/regression.yml)\n\nHitchRunPy is a tool to run, test and profile snippets of python code.\n\nHitchRunPy was developed to run executable specifications\nusing [HitchStory](https://hitchdev.com/hitchstory) that define\nPython APIs.\n\nAs such it can be used with HitchStory to build effective replacements\nfor unit tests and integration tests where the 'spec' is a python API.\n\nHitchRunPy is used to run the executable specifications for all libraries\non [HitchDev](https://hitchdev.com/).\n\n## Example\n\n\n```python\nfrom hitchrunpy import ExamplePythonCode\n\nExamplePythonCode(\n    '/path/to/bin/python',\n    '/path/to/working_directory',\n).with_code((\n    'with open(\"examplefile\", \"w\") as handle:'\n    '     handle.write(\"exampletext\")'\n)).run()\n```\n\n\n## Install\n\n```sh\n$ pip install hitchstory\n```\n\n## Using HitchRunPy\n\n- [CProfile](https://hitchdev.com/hitchrunpy/using/alpha/cprofile)\n- [Run with environment variables](https://hitchdev.com/hitchrunpy/using/alpha/environment-vars)\n- [Exceptions](https://hitchdev.com/hitchrunpy/using/alpha/exceptions)\n- [Include files](https://hitchdev.com/hitchrunpy/using/alpha/include-files)\n- [Interact with running code](https://hitchdev.com/hitchrunpy/using/alpha/interact-with-running-code)\n- [Setup code](https://hitchdev.com/hitchrunpy/using/alpha/setup-code)\n- [Error occurred](https://hitchdev.com/hitchrunpy/using/alpha/syntax-errors)\n- [Timeout](https://hitchdev.com/hitchrunpy/using/alpha/timeout)\n- [Use modules](https://hitchdev.com/hitchrunpy/using/alpha/variables)\n\n\n\n## Why use HitchRunPy?\n\nHitchRunPy combined with HitchStory serves as an effective replacement for unit tests\nin the situation where unit tests are most effective.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhitchdev%2Fhitchrunpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhitchdev%2Fhitchrunpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhitchdev%2Fhitchrunpy/lists"}