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.

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.1.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.1.1
File Size Uploaded Provenance Actions
bare_stow_host-0.1.1.tar.gz 11.0 kB With provenance Details for bare_stow_host-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 21.2 kB

Release files / bare_stow_host-0.1.1.tar.gz

Download URL bare_stow_host-0.1.1.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1db37572db17855770ea25053c2291c46829034b85ae02abf00135599ecea82b
BLAKE2b-256 checksum
How to use checksums
ffc6ca9432d267297e94d033f35df39693c4a5090b01e1964482f462e3e3213d
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 2, 2026.

Transparency log

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

Download URL bare_stow_host-0.1.1-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
677e2a45cfc3b9d8aa1e5be9cb9832cc572b25307c05811fe66a40fa7868d56a
BLAKE2b-256 checksum
How to use checksums
609f8601b15b9f9b071f29d6de7c8167d06eedd39b6104cf647530aecb528db3
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 2, 2026.

Transparency log

Security for bare-stow-host 0.1.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.1.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 2, 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