This release is a pre-release and may not be stable for production use.
secret-kernel-core
Shared implementation for Secret Kernel: name resolution, parsing, option normalization, the in-memory cache and the reader-backed client every provider extends.
Install this distribution when you write a provider, or when a provider you install declares it. Applications normally get it transitively.
uv add secret-kernel-core
Usage
Most consumers never import it directly. Provider authors do:
from dataclasses import dataclass
from secret_kernel.contracts import SecretClientOptions, SecretProviderValue
from secret_kernel.core import ReaderBackedSecretClient
@dataclass(frozen=True, slots=True)
class MyOptions:
url: str
class MyReader:
def __init__(self, options: MyOptions) -> None:
self._options = options
async def read_secret(self, full_name: str, secret_name: str) -> SecretProviderValue:
return SecretProviderValue(value=await my_backend.get(self._options.url, full_name))
async def close(self) -> None:
pass
class MySecretClient(ReaderBackedSecretClient):
provider_name = "my-backend"
def __init__(
self, common_options: SecretClientOptions, provider_options: MyOptions
) -> None:
super().__init__(MyReader(provider_options), common_options)
The reader answers with a decrypted string. Caching, parsing, name resolution and observability are kernel behavior and stay in this package, so every provider inherits them unchanged.
Documentation
The normative public surface is in
docs/secret-kernel-api-reference.md.
License
MIT
Metadata
Release files for secret-kernel-core 0.1.0a10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| secret_kernel_core-0.1.0a10.tar.gz | 12.9 kB | Without provenance | Details for secret_kernel_core-0.1.0a10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| secret_kernel_core-0.1.0a10-py3-none-any.whl | Python 3 | none | any | Details for secret_kernel_core-0.1.0a10-py3-none-any.whl |
Total release size: 30.2 kB
Release files / secret_kernel_core-0.1.0a10.tar.gz
| Download URL | secret_kernel_core-0.1.0a10.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af5276f5adffc5149cb8d19d8da2db9e159e29bb68ced62e20b7109678392f73
|
|
BLAKE2b-256 checksum How to use checksums |
fae23bc4b8d6ec8380453ebf92bbeb0d87c829f288be99fda05f5ab64752bff7
|
| 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_core-0.1.0a10-py3-none-any.whl
| Download URL | secret_kernel_core-0.1.0a10-py3-none-any.whl |
|---|---|
| Size | 17.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d5f2f5ea4b8d5d65cc06aa8253ed788a4ced2f06e919b48a9217e3fe1b8e65ed
|
|
BLAKE2b-256 checksum How to use checksums |
f5602b317ca81276dd6762c37d38a202c6775b2faeaf048b062779d3adb5ee74
|
| 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-core 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.