CLIENTS / PYTHON SDK

Python SDK

The Python SDK exposes a minimal prompt model and loads prompts/prompt-index.json plus per-prompt JSON files from either a filesystem bundle or packaged resources. It’s published as promptlm-client on PyPI and maintained in promptLM/promptlm-clients under client-sdk-python/.

Requires Python 3.10+.

Note

The Python SDK is work in progress for the 0.1.0 release. Track status in the promptLM/promptlm-clients repository.

Install

pip install promptlm-client==0.1.0

Runtime contract

The SDK consumes the same JSON bundle the Java SDK does: prompts/prompt-index.json plus the per-prompt files it references. See Runtime bundles for how that bundle is produced.

For current API shape and usage examples, refer to the SDK’s source README at https://github.com/promptLM/promptlm-clients/tree/main/client-sdk-python.