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.
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| hitchrunpy-0.11.3.tar.gz | 19.0 kB | Without provenance | Details for hitchrunpy-0.11.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hitchrunpy-0.11.3-py3-none-any.whl | Python 3 | none | any | Details for hitchrunpy-0.11.3-py3-none-any.whl |
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
|
Security for hitchrunpy 0.11.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.