Skip to main content

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)

Source distribution for ots-shared 0.4.2
File Size Uploaded
ots_shared-0.4.2.tar.gz 127.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ots-shared 0.4.2
File Interpreter ABI Platform
ots_shared-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 193.9 kB

Release files / ots_shared-0.4.2.tar.gz

Download URL ots_shared-0.4.2.tar.gz
Size 127.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3874640d7f168eaf676188486af1e5468addc2af7c3c7cf89a9dd4ec46f93d51
BLAKE2b-256 checksum
How to use checksums
91efde5345d0171219746888bcc7101afd4b070408db87bf7bf22b71fa1123f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 4, 2026.

Transparency log

Release files / ots_shared-0.4.2-py3-none-any.whl

Download URL ots_shared-0.4.2-py3-none-any.whl
Size 66.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd38dfb8333cdf51cb5da6dec2f56a3e37b81012f39797cea176cc0c1794b985
BLAKE2b-256 checksum
How to use checksums
71a88e431a18be3e344187b98d28349f5b1d5c4015e30dfaf9eea81d2e933ce4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

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