JOSE protocol implementation in Python with support for JSON Web Algorithms, Keys, and Signatures
73
Utilities for deduplicating asymmetric keys and exposing immutable connection settings for secure clients. Use the dependency's built-in comparable key wrappers for equality and hashing, and its immutable mapping utility for frozen configuration state.
merge returns a new instance with overrides while the original remains unchanged and both are hashable. @test@generates
from typing import Any, Iterable, Mapping, Sequence
class KeyRegistry:
def __init__(self, keys: Sequence[Any] = ()): ...
def add(self, key: Any, label: str = "") -> None: ...
def keys(self) -> Iterable[Any]: ...
def public_keys(self) -> Iterable[Any]: ...
def key_labels(self) -> Mapping[Any, str]: ...
class ConnectionOptions:
def __init__(self, **kwargs): ...
def merge(self, **kwargs) -> "ConnectionOptions": ...
def as_mapping(self) -> Mapping[str, Any]: ...Provides comparable wrappers for cryptography keys and immutable mapping utilities. @satisfied-by
Install with Tessl CLI
npx tessl i tessl/pypi-josepyevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10