Skip to main content

bare-stow-host-python

Host side of the bare-stow lifecycle for Python. The Python counterpart of bare-stow-host: it multiplexes a control channel and a user data channel over a byte transport to a stowed bundle, and layers readiness, termination, and exit reporting on top. Harnesses generated by bare-stow import it to drive the bundles they boot.

pip install bare-stow-host

Usage

import signal

from bare_sidecar import spawn
from bare_stow_host import wrap


async def main():
    sidecar = await spawn("index.bundle")

    ipc = wrap(sidecar, kill=lambda: sidecar.kill(signal.SIGKILL))

    await ipc.ready

    await ipc.write(b"hello")

    code = await ipc.terminate()

Any object with async read(), returning b"" once the transport has ended, and async write(data) can be wrapped, such as a Sidecar from bare-sidecar-python.

Whoever wraps a transport must call ipc.exited(code, signal) once the worker exits, such as when the process of a sidecar exits. A transport that ends without the worker saying why is held back until then, so that reads and ready fail with the exit code or signal instead of ending cleanly. A transport that fails waits up to grace for the exit in the same way, and the worker is killed if it doesn't come.

Protocol

Every frame is a 4-byte little-endian length followed by that many bytes: A 1-byte tag and the payload. The tag is 0x00 for a control frame, whose payload is a UTF-8 JSON object carrying its type, and 0x01 for a user data frame. See bare-stow-protocol for the control frames.

License

Apache-2.0

Metadata

Release files for bare-stow-host 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bare-stow-host 0.2.1
File Size Uploaded Provenance Actions
bare_stow_host-0.2.1.tar.gz 13.2 kB With provenance Details for bare_stow_host-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bare-stow-host 0.2.1
File Interpreter ABI Platform Actions
bare_stow_host-0.2.1-py3-none-any.whl Python 3 none any Details for bare_stow_host-0.2.1-py3-none-any.whl

Total release size: 24.7 kB

Release files / bare_stow_host-0.2.1.tar.gz

Download URL bare_stow_host-0.2.1.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3da69f8e6be4f0a4866632c5ae02b4692d6fd757bff52c8d7d8a5104b15f2a6d
BLAKE2b-256 checksum
How to use checksums
1000cca5e8a050c8aaef7e5acdd4049fe357baa1890c458bdf485ee8ce95e9d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.12.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 Nov 5, 2026.

Transparency log

Release files / bare_stow_host-0.2.1-py3-none-any.whl

Download URL bare_stow_host-0.2.1-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fef09c872011ead1cdc8dbf918070221502db60474fb88088a357db08404b518
BLAKE2b-256 checksum
How to use checksums
109902081e2bf0a9ab4250fb1016b58e46ff15fcde08add0fadada0a4bcbb61b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.12.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 Nov 5, 2026.

Transparency log

Security for bare-stow-host 0.2.1

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.

Select from 2 files

Attestation for bare_stow_host-0.2.1.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 Nov 5, 2026.

Transparency log

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.

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