Skip to main content

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, and with support.
  • PIPE, STDOUT, DEVNULL; SubprocessError, CalledProcessError, TimeoutExpired (messages match CPython's wording).
  • text=True decodes UTF-8 and applies universal newlines; env= is a full replacement mapping; shell=True runs through cmd /c on Windows and /bin/sh -c elsewhere.

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)

Source distribution for serp-subprocess 0.1.0
File Size Uploaded
serp_subprocess-0.1.0.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for serp-subprocess 0.1.0
File Interpreter ABI Platform
serp_subprocess-0.1.0-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page