serp-subprocess
Drop-in replacement for CPython's subprocess (core surface). Native builds
spawn children through the runtime (std::process + platform pipes, no
crates); under CPython the serp_subprocess_core delegate drives stdlib
subprocess.Popen through the same handle API, so output is byte-identical
across both worlds.
API
run(args, *, stdin, input, stdout, stderr, capture_output, shell, cwd, timeout, check, env, text)→CompletedProcess(args, returncode, stdout, stderr)with.check_returncode()and CPython's repr.check_output(args, ...),check_call(args, ...),call(args, ...).Popen(args, stdin, stdout, stderr, shell, cwd, env, text)with.communicate(input, timeout),.wait(timeout),.poll(),.kill(),.terminate(),.pid,.returncode, andwithsupport.PIPE,STDOUT,DEVNULL;SubprocessError,CalledProcessError,TimeoutExpired(messages match CPython's wording).text=Truedecodes UTF-8 and applies universal newlines;env=is a full replacement mapping;shell=Trueruns throughcmd /con Windows and/bin/sh -celsewhere.
Divergences: exceptions carry only their message (no .returncode/.output
attributes); communicate() returns a tuple to index (res[0], res[1]) since
tuple unpacking is outside the subset; timeout renders as a float in the
TimeoutExpired message; spawn failures use normalized messages instead of
CPython's [Errno N]/[WinError N] texts; no encoding=/errors=/bufsize=,
no streaming .stdout file objects, no preexec_fn/start_new_session.
Install
serp add serp-subprocess
pip install serp-subprocess
Metadata
Release files for serp-subprocess 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 |
|---|---|---|---|---|
| serp_subprocess-0.1.0.tar.gz | 8.4 kB | With provenance | Details for serp_subprocess-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| serp_subprocess-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for serp_subprocess-0.1.0-py3-none-any.whl |
Total release size: 16.1 kB
Release files / serp_subprocess-0.1.0.tar.gz
| Download URL | serp_subprocess-0.1.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6e40e88cbbf967c3a789ab86017d9b455e59a47c56044a68c492f38037279b0
|
|
BLAKE2b-256 checksum How to use checksums |
be0977535e76a17044221bc8bd949d6677be4c3795dc90cfbe4f555c27a63653
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 29, 2026.
Transparency logRelease files / serp_subprocess-0.1.0-py3-none-any.whl
| Download URL | serp_subprocess-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7cf56a01140050d018597e2d7d556b850b680c7e3fe9242f1b827eaad62c280d
|
|
BLAKE2b-256 checksum How to use checksums |
5d1133e79c6067595acf74c79f90e39b505ab50ac2e1e449024fba3a52e2ecc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 29, 2026.
Transparency logSecurity for serp-subprocess 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
Both files in this release have been uploaded with provenance metadata.
Attestation for serp_subprocess-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 Sep 29, 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.