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

Metadata

Release files for shopcloud_secrethub 2.20.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shopcloud_secrethub 2.20.0
File Size Uploaded Provenance Actions
shopcloud_secrethub-2.20.0.tar.gz 6.1 kB Without provenance Details for shopcloud_secrethub-2.20.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shopcloud_secrethub 2.20.0
File Interpreter ABI Platform Actions
shopcloud_secrethub-2.20.0-py3-none-any.whl Python 3 none any Details for shopcloud_secrethub-2.20.0-py3-none-any.whl

Total release size: 13.1 kB

Release files / shopcloud_secrethub-2.20.0.tar.gz

Download URL shopcloud_secrethub-2.20.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5c2f66c973c953007a35132d3ef40e6688ea5ea73cd0e69f479fbbd326408edd
BLAKE2b-256 checksum
How to use checksums
4a0653756f1419917e0f75e2f664e9b4d24daa9d1a7800c3d9a3a19130274b26
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / shopcloud_secrethub-2.20.0-py3-none-any.whl

Download URL shopcloud_secrethub-2.20.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39555a7858d1d5ee3b3e35e1b87309bd3d5cb6154668a505cb1da69957dc98d2
BLAKE2b-256 checksum
How to use checksums
7b0c11ff55a253bb93c23df2b9307736d2ced2ea0052130a690b4fc2890dd2d7
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for shopcloud_secrethub 2.20.0

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.

No provenance found

None of the files in this release were 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.

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