Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

secret-kernel-factory

Factory that resolves a provider name and builds a Secret Kernel client.

This is the package an application imports from. Install it with the provider your application will use:

uv add secret-kernel-factory secret-kernel-provider-aws-parameter-store

It re-exports the whole of secret_kernel.contracts — the parse modes, the error classes, the types and the provider registry — so the application does not install the contract separately.

Usage

from secret_kernel.factory import (
    CreateSecretClientConfig,
    SecretProviderName,
    create_secret_client,
)
from secret_kernel.provider_aws_parameter_store import AwsParameterStoreProviderOptions

client = await create_secret_client(
    CreateSecretClientConfig(
        provider_name=SecretProviderName.AWS_PARAMETER_STORE,
        env="prod",
        prefix=["my-app"],
        options=AwsParameterStoreProviderOptions(region="us-east-1"),
    )
)

secret = await client.get_secret("database/password")

create_secret_client is a coroutine. It returns a SecretClient, or an instance of provider_class when the config names one. options takes the provider's own options dataclass, so it is checked against that provider without making secret-kernel-factory depend on every optional provider distribution.

Providers

  • SecretProviderName.IN_MEMORY
  • SecretProviderName.AWS_PARAMETER_STORE
  • SecretProviderName.GCP_PARAMETER_MANAGER
  • SecretProviderName.AWS_SECRETS_MANAGER
  • SecretProviderName.GCP_SECRET_MANAGER

Documentation

The normative public surface is in docs/secret-kernel-api-reference.md.

License

MIT

Metadata

Release files for secret-kernel-factory 0.1.0a10

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

Source distribution (sdist)

Source distribution for secret-kernel-factory 0.1.0a10
File Size Uploaded Provenance Actions
secret_kernel_factory-0.1.0a10.tar.gz 4.4 kB Without provenance Details for secret_kernel_factory-0.1.0a10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for secret-kernel-factory 0.1.0a10
File Interpreter ABI Platform Actions
secret_kernel_factory-0.1.0a10-py3-none-any.whl Python 3 none any Details for secret_kernel_factory-0.1.0a10-py3-none-any.whl

Total release size: 10.2 kB

Release files / secret_kernel_factory-0.1.0a10.tar.gz

Download URL secret_kernel_factory-0.1.0a10.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
72450b7a6536f852fcbdb3b78c97617e68e23ecf5cca1f9211110e4cd1cfa4ef
BLAKE2b-256 checksum
How to use checksums
0a3a59b6df866345f642be909c9682ff52c3810a597d595d8ee6e4588c37816d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / secret_kernel_factory-0.1.0a10-py3-none-any.whl

Download URL secret_kernel_factory-0.1.0a10-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b1f276094dda3c7b8c939a2acb02bd2bf4b4c439e8a2cca291a93ef2d62a024
BLAKE2b-256 checksum
How to use checksums
3c8edae06f502317792b5e4f850f11090057904cc20446402ab3b3bcc8183203
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for secret-kernel-factory 0.1.0a10

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