Skip to main content

Shared constants and utilities for OTS operations tools

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ots_shared-0.4.2.tar.gz (127.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ots_shared-0.4.2-py3-none-any.whl (66.7 kB view details)

Uploaded Python 3

File details

Details for the file ots_shared-0.4.2.tar.gz.

File metadata

  • Download URL: ots_shared-0.4.2.tar.gz
  • Upload date:
  • Size: 127.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ots_shared-0.4.2.tar.gz
Algorithm Hash digest
SHA256 3874640d7f168eaf676188486af1e5468addc2af7c3c7cf89a9dd4ec46f93d51
MD5 e8de802693b7c4004794a4260ea98f65
BLAKE2b-256 91efde5345d0171219746888bcc7101afd4b070408db87bf7bf22b71fa1123f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for ots_shared-0.4.2.tar.gz:

Publisher: release.yml on onetimesecret/ots-shared

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ots_shared-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: ots_shared-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 66.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ots_shared-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bd38dfb8333cdf51cb5da6dec2f56a3e37b81012f39797cea176cc0c1794b985
MD5 1e64c491872ee1b9e70d4ced3c2bd3e8
BLAKE2b-256 71a88e431a18be3e344187b98d28349f5b1d5c4015e30dfaf9eea81d2e933ce4

See more details on using hashes here.

Provenance

The following attestation bundles were made for ots_shared-0.4.2-py3-none-any.whl:

Publisher: release.yml on onetimesecret/ots-shared

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page