HitchRunPy
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
- CProfile
- Run with environment variables
- Exceptions
- Include files
- Interact with running code
- Setup code
- Error occurred
- Timeout
- Use modules
Why use HitchRunPy?
HitchRunPy combined with HitchStory serves as an effective replacement for unit tests in the situation where unit tests are most effective.
Release files for hitchrunpy 0.11.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hitchrunpy-0.11.3.tar.gz | 19.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hitchrunpy-0.11.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.3 kB
Release files / hitchrunpy-0.11.3.tar.gz
| Download URL | hitchrunpy-0.11.3.tar.gz |
|---|---|
| Size | 19.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2df12e8ddf51d630f3d6388836bff1e8268fc2dc408383b7a52dbd6dd974d3e3
|
|
BLAKE2b-256 checksum How to use checksums |
26a6baeefa148df4c385ced68569f792a3808da4d03d940fdba8ea125aebaf7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / hitchrunpy-0.11.3-py3-none-any.whl
| Download URL | hitchrunpy-0.11.3-py3-none-any.whl |
|---|---|
| Size | 18.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
282bfa48e808755d917a6a42f00e1694b7e46d29721482e718135b29dff2f558
|
|
BLAKE2b-256 checksum How to use checksums |
39e804f91cd8546c095c15042500c2123bdf473ee445c5b11b80a3ce08cd0aa8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|