psrunner
Python SDK for PythonScriptRunner stages.
A stage is one Python script with typed inputs and outputs. The .NET runner validates the inputs,
runs the script in an isolated process and validates the outputs. psrunner handles the protocol,
so the script only contains the logic:
from psrunner import stage
@stage
def run(inputs, ctx):
a1, ratio, n = inputs["a1"], inputs["ratio"], inputs["n"]
terms = [a1 * ratio**i for i in range(n)]
ctx.log.info("generated %d terms", n)
return {"terms": terms}
Test it locally with pytest, without .NET:
from psrunner.testing import run_stage
def test_terms():
result = run_stage("stages/terms/script.py", {"a1": 1, "ratio": 2, "n": 4},
stage_json="stages/terms/stage.json")
assert result.outputs == {"terms": [1, 2, 4, 8]}
Install the pandas extra to receive table inputs as pandas.DataFrame: pip install psrunner[pandas].
Metadata
Release files for psrunner 0.1.0
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 |
|---|---|---|---|---|
| psrunner-0.1.0.tar.gz | 92.5 kB | With provenance | Details for psrunner-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| psrunner-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for psrunner-0.1.0-py3-none-any.whl |
Total release size: 118.5 kB
Release files / psrunner-0.1.0.tar.gz
| Download URL | psrunner-0.1.0.tar.gz |
|---|---|
| Size | 92.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a36d71933f67010d743b869204cb51f894100836740a30bfec49c7ec07f80e2
|
|
BLAKE2b-256 checksum How to use checksums |
db48ab0823b20d6d118cbb16fbb1b88d0b02812185acd8a2fc57f9c4577a96c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logRelease files / psrunner-0.1.0-py3-none-any.whl
| Download URL | psrunner-0.1.0-py3-none-any.whl |
|---|---|
| Size | 26.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3241e9e15b5f5c0f0e63b2ca5846b98986c936a0f93ed93dd0663b7499d3cc88
|
|
BLAKE2b-256 checksum How to use checksums |
dfaeaebe1e7597094dc18d6e6461c5a3eeca350f9499d76f56f4d8bf63f35548
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logSecurity for psrunner 0.1.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for psrunner-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logA 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.