Skip to main content

glovebox-hosts

The helpers every part of glovebox shares that read or write outside the process: the bundled Public Suffix List, file locks, owner-only files, sockets and directories, atomic file publish, process-group stops, text elision and terminal-safe text. The host rules and the JSON reader live in glovebox-core.

BUNDLED_SUFFIXES is the Public Suffix List that tldextract bundles, read offline. Pass it to each glovebox_core.host_rules rule that judges a name against that list. tldextract is imported only when a name is judged, so a python without it raises SuffixListUnread there and nowhere else.

python3 -m glovebox_hosts runs the host rules for a caller outside Python: name-check judges one name.

glovebox_hosts.display_text reads the one list of Unicode categories unsafe to print on a terminal. escape_unsafe spells each such character out, so an escape sequence prints as inert text.

glovebox_hosts.flock holds an exclusive file lock: held, for a block. It lives here because the host tools and the monitor package can both import it.

glovebox_hosts.boundary receives bytes across a trust boundary on a Unix socket. peer names the far end from the kernel's SO_PEERCRED. read and message cap the bytes and hold one deadline for the whole read, and raise TooLong or TooSlow. The launcher and the node stack import it from here.

glovebox_hosts.proc_handle follows a process through a kernel handle and stops a process group as one unit. run_group runs a child under a timeout that stops the grandchildren too. The launcher, the monitor, the driver and the eval harnesses all import it from here.

glovebox_hosts.failed_command gives a failed command's reason: failure_reason names the program, how it ended and the last lines of its stderr, masked by the install's secret masker and bounded. output_tail bounds and masks other captured output. A message that reports a failed command takes its reason from here.

glovebox_hosts.install finds the glovebox a caller already has, and never downloads one: $GLOVEBOX_BIN, else PATH, else the release that glovebox-driver's bootstrap cached. resolvable_glovebox names that executable, and beside_glovebox names a file shipped with it. The secret masker, the driver and the glovebox-ranges provider all resolve their install here.

glovebox_hosts.reads reads a host file or folder and raises ReadFailed when a read fails. Only a present_* reader answers None for a missing path. glovebox_hosts.proc_identity judges whether a pid still names the process a record holds, by its start time. glovebox_hosts.probe_timeouts holds the ceiling and kill grace one host probe gets. The launcher imports each from here, and the services it holds can import them without the launcher's code.

glovebox_hosts.held_services names each host service of a session that should run and does not (down): each helper the launcher started that ended, and each stack unit whose systemd state reads down. The monitor reads it for its health verdict, and glovebox panic for its snapshot.

Metadata

Release files for glovebox-hosts 0.14.4

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

Source distribution (sdist)

Source distribution for glovebox-hosts 0.14.4
File Size Uploaded Provenance Actions
glovebox_hosts-0.14.4.tar.gz 54.7 kB Without provenance Details for glovebox_hosts-0.14.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for glovebox-hosts 0.14.4
File Interpreter ABI Platform Actions
glovebox_hosts-0.14.4-py3-none-any.whl Python 3 none any Details for glovebox_hosts-0.14.4-py3-none-any.whl

Total release size: 118.7 kB

Release files / glovebox_hosts-0.14.4.tar.gz

Download URL glovebox_hosts-0.14.4.tar.gz
Size 54.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d938f77bccd7fc58c155375e0d43df78b20528fe278d7436e570dfef710f4556
BLAKE2b-256 checksum
How to use checksums
d9e959c787f2c6e0b5f9ec128436c30036daa8f4b8d0ecf845456b08269264a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / glovebox_hosts-0.14.4-py3-none-any.whl

Download URL glovebox_hosts-0.14.4-py3-none-any.whl
Size 64.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
276f0f1ff82e670a5a85a53f770f35c843c9e72b613b93a2f87316b7524a9341
BLAKE2b-256 checksum
How to use checksums
845bb26dc8f53b648e72a604992bbce53acb5f4d78dca60806feed8d10341b99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for glovebox-hosts 0.14.4

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