Skip to main content

Shopcloud SecretHub CLI

The SecretHub CLI provides the command-line interface to interact with the SecretHub API.

install

pip install shopcloud_secrethub

Or with uv:

uv add shopcloud_secrethub

Usage

Reading and writing secrets:

$ secrethub auth
$ secrethub read <secret-name>
$ secrethub write <secret-name> <value>

Provisioning your applications with secrets:

Provision a template file

$ secrethub inject -i app.temp.yaml -o app.yaml

# app.temp.yaml
env_variables:
  ENV: {{ talk-point/test-repo/env }}
  SECRET_KEY: {{ talk-point/test-repo/secret_key }}

Provision to the environment

$ eval `secrethub printenv -i app.temp.yaml`

# app.temp.yaml
env_variables:
  ENV: {{ talk-point/test-repo/env }}
  SECRET_KEY: {{ talk-point/test-repo/secret_key }}

in Code:

from shopcloud_secrethub import SecretHub
hub = SecretHub(user_app="test-script", api_token='<TOKEN>')
hub.read('talk-point/test-repo/secret_key')

Contributing

Install uv if you don't have it:

curl -LsSf https://astral.sh/uv/install.sh | sh

Set up the project:

uv sync

Run tests:

uv run pytest

Deploy to PyPI

Deployment is handled automatically by CI when pushing to master. To build and publish manually:

uv build
uv publish

Download files

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

Source Distribution

shopcloud_secrethub-2.20.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

shopcloud_secrethub-2.20.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file shopcloud_secrethub-2.20.0.tar.gz.

File metadata

  • Download URL: shopcloud_secrethub-2.20.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","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}

File hashes

Hashes for shopcloud_secrethub-2.20.0.tar.gz
Algorithm Hash digest
SHA256 5c2f66c973c953007a35132d3ef40e6688ea5ea73cd0e69f479fbbd326408edd
MD5 47ab1787b3ad80fd5b3f888f93eaa12f
BLAKE2b-256 4a0653756f1419917e0f75e2f664e9b4d24daa9d1a7800c3d9a3a19130274b26

See more details on using hashes here.

File details

Details for the file shopcloud_secrethub-2.20.0-py3-none-any.whl.

File metadata

  • Download URL: shopcloud_secrethub-2.20.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","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}

File hashes

Hashes for shopcloud_secrethub-2.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39555a7858d1d5ee3b3e35e1b87309bd3d5cb6154668a505cb1da69957dc98d2
MD5 69057d27fab3e175d768abac809e2e1d
BLAKE2b-256 7b0c11ff55a253bb93c23df2b9307736d2ced2ea0052130a690b4fc2890dd2d7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.20.0 This release

2 files

2.19.0

2 files

2.18.0

2 files

2.17.0

2 files

2.16.0

2 files

2.15.0

2 files

2.12.0

3 files

2.11.2

3 files

2.11.1

2 files

2.10.0

2 files

2.9.0

2 files

2.8.4

2 files

2.8.2

2 files

2.8.1

2 files

2.8.0

2 files

2.7.0

2 files

2.6.2

3 files

2.6.1

2 files

2.6.0

2 files

2.4.0

2 files

2.3.0

2 files

2.0.0

3 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