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.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 bare-stow-host 0.1.0
File Size Uploaded Provenance Actions
bare_stow_host-0.1.0.tar.gz 10.9 kB Without provenance Details for bare_stow_host-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 21.2 kB

Release files / bare_stow_host-0.1.0.tar.gz

Download URL bare_stow_host-0.1.0.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ab59fe3ef776763b674ce6445a98e4c0b765a4ac8885dbb2d029a3a3cd4f7023
BLAKE2b-256 checksum
How to use checksums
206bc62be4f0b04cc6522c2a97f491b443ef0b917917395591c93c5eda680924
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.12.15

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

Download URL bare_stow_host-0.1.0-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1cb08d02a6f44628e8670e60b93497b5844c9c6dadbff844c6dc39a927d96f2
BLAKE2b-256 checksum
How to use checksums
b99a6f4b649ca77a80d844253638a009e11d768198a85f146fe767e8849d3a36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.12.15

Security for bare-stow-host 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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