Shared utility library for the terok-* sibling packages
Project description
terok-util
Shared utility library for the terok-*
sibling packages.
terok-util sits at the bottom of the terok dependency chain: every
sibling package depends on it, and it depends on nothing else in the
ecosystem. It collects the small set of cross-cutting bits that would
otherwise be duplicated (or quietly diverge) across
terok-shield,
terok-clearance,
terok-sandbox,
terok-executor, and
terok.
What's in the box
| Module | Use case |
|---|---|
cli_types |
CommandDef / ArgDef / CommandTree — argparse-driven CLI registry types used by every sibling that exposes a CLI tree. |
fs |
ensure_dir, ensure_dir_writable, write_sensitive_file (atomic O_CREAT | O_EXCL 0o600 writer). |
paths |
namespace_state_dir, namespace_config_dir, namespace_runtime_dir — XDG-aware path resolution for a per-namespace deployment. |
config_stack |
ConfigStack + deep_merge — layered round-trip YAML config merge engine. |
security |
sanitize_tty — strips C0 / C1 / ANSI sequences from untrusted strings before rendering to the operator's terminal (CWE-150 mitigation). |
podman |
podman_userns_args — rootless --userns=keep-id:uid=1000,gid=1000 builder. |
Installation
pip install terok-util
The package is published as a Python wheel; siblings pin to a specific
GitHub-release wheel URL via pyproject.toml.
Convention
The rule for what belongs here: if two or more terok-* packages
need it, it lives in terok-util. Single-package helpers stay in
the package that owns them. The __all__ declaration in
src/terok_util/__init__.py is the contract — symbols listed there
are stable across minor releases.
License
Apache-2.0. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file terok_util-0.2.0.tar.gz.
File metadata
- Download URL: terok_util-0.2.0.tar.gz
- Upload date:
- Size: 24.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fc285c4fdcfc6a2c3aeb04236f85c49093cb60c8602fe0e43d1e8b9a6f3e7cd
|
|
| MD5 |
41a2dafceb974a88229690dba7bc8355
|
|
| BLAKE2b-256 |
1ae81571965c07ed47c18bfafea73f7245975515cd44d16f9b52a535d7704a0d
|
Provenance
The following attestation bundles were made for terok_util-0.2.0.tar.gz:
Publisher:
release.yml on terok-ai/terok-util
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
terok_util-0.2.0.tar.gz -
Subject digest:
8fc285c4fdcfc6a2c3aeb04236f85c49093cb60c8602fe0e43d1e8b9a6f3e7cd - Sigstore transparency entry: 1763679370
- Sigstore integration time:
-
Permalink:
terok-ai/terok-util@6a98cb0e25ab85217d9e70dfedce13a1c4b5bb6f -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/terok-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6a98cb0e25ab85217d9e70dfedce13a1c4b5bb6f -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file terok_util-0.2.0-py3-none-any.whl.
File metadata
- Download URL: terok_util-0.2.0-py3-none-any.whl
- Upload date:
- Size: 31.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74f047643962ff64e62e354958fe37caa91f04dc811eb61f6af41220f8311ef8
|
|
| MD5 |
8cfb0af506b770aa46b746b104f68847
|
|
| BLAKE2b-256 |
cc3278c7cf2b9e3aed716e0c31799608836325c55cb05b4c114025e028fbc8a2
|
Provenance
The following attestation bundles were made for terok_util-0.2.0-py3-none-any.whl:
Publisher:
release.yml on terok-ai/terok-util
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
terok_util-0.2.0-py3-none-any.whl -
Subject digest:
74f047643962ff64e62e354958fe37caa91f04dc811eb61f6af41220f8311ef8 - Sigstore transparency entry: 1763679604
- Sigstore integration time:
-
Permalink:
terok-ai/terok-util@6a98cb0e25ab85217d9e70dfedce13a1c4b5bb6f -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/terok-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6a98cb0e25ab85217d9e70dfedce13a1c4b5bb6f -
Trigger Event:
workflow_dispatch
-
Statement type: