ots-shared
Shared constants, taxonomy, and utility libraries for the OneTimeSecret operations tooling family (rots, lots, pots).
This package is not intended for end-user consumption. It is published to PyPI so the downstream operator-facing CLIs can pin a single, versioned source of truth for:
- exit codes and error taxonomy
- command history records
- environment marker / scaffold helpers
- SSH connection and executor protocols
- Hetzner Cloud (
hcloud) configuration, network, and server defaults
Install
pip install ots-shared
# with optional SSH dependencies (paramiko)
pip install "ots-shared[ssh]"
Layout
src/ots_shared/
cli.py # init sub-app exposed by downstream CLIs
exit_codes.py # canonical exit codes
history.py # command history serialization
init.py # environment scaffold helpers
taxonomy.py # error taxonomy
hcloud/ # Hetzner Cloud config, networks, server defaults
ssh/ # connection + executor protocols
Development
uv sync --extra dev --extra test --extra ssh
uv run pytest tests/
uv run ruff check src/
uv run pyright src/
Releasing
Tag a vX.Y.Z commit on main. The Release workflow builds the wheel and sdist,
creates a GitHub release with auto-generated notes, and publishes to PyPI via Trusted
Publisher. The PyPI environment in the workflow must match the project on
pypi.org/p/ots-shared.
License
MIT — see LICENSE.
Metadata
Release files for ots-shared 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ots_shared-0.4.2.tar.gz | 127.2 kB | With provenance | Details for ots_shared-0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ots_shared-0.4.2-py3-none-any.whl | Python 3 | none | any | Details for ots_shared-0.4.2-py3-none-any.whl |
Total release size: 193.9 kB
Security for ots-shared 0.4.2
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.
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.