Python SDK

A high-performance Python client for secure secret retrieval and management.

Installation

pip install customkeys-sdk

Basic Usage

from customkeys import CustomKeysClient import os client = CustomKeysClient( token=os.getenv("CUSTOMKEYS_TOKEN"), env="production" ) def start_app(): # Fetch a single secret db_url = client.get("DATABASE_URL") # Fetch all secrets all_secrets = client.get_all() print(f"Connected to {db_url}") if __name__ == "__main__": start_app()

Features

  • Thread-safe: Designed for concurrent application servers like Gunicorn or Uvicorn.
  • WebSocket Watcher: Low-latency cache invalidation when secrets change.
  • Auto-Retry: Robust connection handling for transient network issues.
Last updated: 4/20/2026Report Issue