Skip to main content

spax-secret

spax-secret is a Python client for storing and retrieving application secrets as encrypted key/value pairs through the Sixpetal secret service.

Features

  • Store secrets for a specific project and environment
  • Retrieve one or many values with a single call
  • Support batch operations for reads and writes
  • Verify signatures and decrypt values before returning them to your application

Installation

Install from PyPI:

pip install spax-secret
twine upload dist/* --repository spax-secret --config-file .pypirc 

Requirements

  • Python 3.12+
  • Dependencies are installed automatically with the package

Quick Start

from spax_secret import SecretManager

sm = SecretManager("my-project", "development")

sm.set("API_KEY", "super-secret-value")
print(sm.get("API_KEY"))

Reading Multiple Values

from spax_secret import SecretManager

sm = SecretManager("my-project", "production")
values = sm.get_all(["API_KEY", "DB_HOST"])

for item in values:
    print(item.key, item.value)

Batch Operations

from spax_secret import SecretManager
from spax_secret.models import KeyValuePair

sm = SecretManager("my-project", "staging")

pairs = [
    KeyValuePair(key="APP_NAME", value="spax-secret"),
    KeyValuePair(key="DEBUG", value="true"),
]

sm.set_all(pairs)

Notes

  • The client communicates with the remote secret service endpoint used by the package.
  • Make sure the target project and environment names are valid for your deployment.

License

This project is licensed under the MIT License.

Author

Sixpetal Developer

Metadata

Release files for spax-secret 1.1.3

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

Source distribution (sdist)

Source distribution for spax-secret 1.1.3
File Size Uploaded
spax_secret-1.1.3.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spax-secret 1.1.3
File Interpreter ABI Platform
spax_secret-1.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 20.3 kB

Release files / spax_secret-1.1.3.tar.gz

Download URL spax_secret-1.1.3.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
20d788718c583a2c965073af60ace055063116a91d7564c717c2b20c3db86b77
BLAKE2b-256 checksum
How to use checksums
d464a0ceb9ebb75199f955df59f7abbc6e055b954a50f2fe765787549fcae971
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release files / spax_secret-1.1.3-py3-none-any.whl

Download URL spax_secret-1.1.3-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0248f6c29bd190ef1d75076ccd39139a32a1f7cb07a7949d197da333b69b727
BLAKE2b-256 checksum
How to use checksums
6e271eb0b922c53ce64cb0738da904e56d04565a70f5a0ade664cd5c59fa972e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

1.1.3 This release

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